Mobile terminal web page content push method and device based on Naive Bayes
By using the Naive Bayes algorithm and probability model on the mobile terminal, the content push is adjusted in real time according to the user's browsing behavior, which solves the problem of lack of accuracy in content push in the existing technology and significantly improves the user experience.
Patent Information
- Application Number
- CN202210187350.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-28
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2042-02-28
AI Technical Summary
In the existing technology, the content pushed by the server to the user device lacks accuracy, resulting in poor user experience and inability to effectively perform personalized processing based on user interests.
Adopting a mobile web content push method based on Naive Bayes, by obtaining the user's historical browsing data, establishing a basic probability model, and adjusting the user probability model in real time based on the user's current browsing information, pushing the content that is most likely to be of interest, and adjusting the weight value to improve push accuracy.
Through personalized processing, the accuracy of content push is improved, the user experience is improved, and the push content is ensured to be more in line with the user's interests and behaviors.
Smart Images

Figure CN114564643B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of message push, and in particular to a mobile terminal web page content push method based on naive Bayes, a computer-readable storage medium, a mobile terminal web page content push device based on naive Bayes, and a terminal device. Background Art
[0002] In the related art, with the promotion and popularization of various information flow resources, users often receive some push content when browsing the web. There are generally two ways for the existing server to push content to the user's device: one is to use random push, and the other is to push based on the page content of the web page. Since the content pushed by the above method may not be of interest to the user, the push lacks accuracy, resulting in a poor user experience. Summary of the invention
[0003] The present invention aims to solve at least one of the technical problems in the above-mentioned technologies to a certain extent. To this end, one purpose of the present invention is to propose a method for pushing web page content on a mobile terminal based on naive Bayes, which makes full use of mobile terminal data, makes real-time adjustments according to the user's current browsing information, and personalizes each user to form a user personalized model, thereby improving the accuracy of content push and thus improving user experience.
[0004] A second object of the present invention is to provide a computer-readable storage medium.
[0005] The third object of the present invention is to provide a mobile terminal web page content push device based on Naive Bayes.
[0006] A fourth objective of the present invention is to provide a terminal device.
[0007] To achieve the above-mentioned purpose, the first aspect of the embodiment of the present invention proposes a mobile web content push device based on Naive Bayes, comprising the following steps: obtaining existing historical browsing data, wherein the historical browsing data includes content categories and browsing data corresponding to each content category; using a Naive Bayes algorithm to calculate the browsing data corresponding to each content category to obtain a basic probability model for each content category; when a user to whom the web content is to be pushed enters a web page, determining whether there is a corresponding user probability model for the user to whom the web content is to be pushed; if there is no corresponding user probability model for the user to whom the web content is to be pushed, obtaining the current browsing data of the user to whom the web content is to be pushed data, and based on the basic probability model to obtain the user probability model of each content category and the maximum predicted probability value in the corresponding probability values, and push the content corresponding to the maximum predicted probability value to the user of the web page content to be pushed; when the user of the web page content to be pushed browses the pushed content, obtain the current browsing data of the user of the web page content to be pushed, and obtain the actual probability value based on the user probability model according to the current browsing data; determine whether the difference between the maximum predicted probability value and the actual probability value is greater than a first preset threshold; if the difference is greater than the first preset threshold, adjust the weight value of the user probability model to obtain a new user probability model.
[0008] According to the mobile terminal web page content push method based on Naive Bayes in an embodiment of the present invention, first, historical browsing data corresponding to each user is obtained, wherein the historical browsing data includes content categories and browsing data corresponding to each content category; then, the browsing data corresponding to each content category is calculated using the Naive Bayes algorithm to obtain a basic probability model for each content category; then, when the user to whom the web page content is to be pushed enters the web page, it is determined whether there is a corresponding user probability model for the user to whom the web page content is to be pushed; then, if there is no corresponding user probability model for the user to whom the web page content is to be pushed, the current browsing data of the user to whom the web page content is to be pushed is obtained, and based on the basic probability model, the maximum predicted probability value among the user probability model and the corresponding probability value for each content category is obtained. The probability value is measured, and the content corresponding to the maximum predicted probability value is pushed to the user of the web page content to be pushed; then, when the user of the web page content to be pushed browses the pushed content, the current browsing data of the user of the web page content to be pushed is obtained, and the actual probability value is obtained based on the user probability model according to the current browsing data; finally, it is determined whether the difference between the maximum predicted probability value and the actual probability value of the pushed content is greater than a first preset threshold; if the difference is greater than the first preset threshold, the weight value of the user probability model is adjusted to obtain a new user probability model; thus, by making full use of mobile terminal data and making real-time adjustments according to the user's current browsing information, each user is personalized and a user personalized model is formed, thereby improving the accuracy of content push and further improving user experience.
[0009] In addition, the mobile terminal web page content push method based on Naive Bayes proposed in the above embodiment of the present invention may also have the following additional technical features:
[0010] Optionally, the weight value of the user probability model is adjusted, including: determining whether the current browsing data is greater than a second preset threshold or less than a third preset threshold, if it is greater than the second preset threshold, increasing the corresponding weight value by a fourth preset threshold; if it is less than the third preset threshold, decreasing the corresponding weight value by a fourth preset threshold.
[0011] Optionally, the browsing data corresponding to each content category includes one or any several browsing parameters of user latitude and longitude coordinates, browsing sliding speed, user heart rate, and browsing dwell time.
[0012] Optionally, a naive Bayes algorithm is used to calculate the browsing data corresponding to each content category to obtain a basic probability model for each content category, including: setting the browsing data corresponding to each content category and the corresponding user's preference level to be Gaussian normally distributed to obtain the mean and variance of each browsing parameter corresponding to each content category; obtaining a normal distribution density function corresponding to each browsing parameter based on the mean and variance of each browsing parameter; and using a naive Bayes algorithm based on the normal distribution density function corresponding to each browsing parameter to obtain a basic probability model for each content category corresponding to each user.
[0013] Optionally, if a corresponding user probability model exists for the user to whom the web page content is to be pushed, the current browsing data of the user to whom the web page content is to be pushed is obtained, and the maximum predicted probability value among the corresponding probability values of each content category is obtained based on the current browsing data and the corresponding user probability model for each content category, and the content corresponding to the maximum predicted probability value is pushed to the user to whom the web page content is to be pushed.
[0014] Optionally, if the difference is less than or equal to a first preset threshold, the weight value of the user probability model is not adjusted.
[0015] To achieve the above-mentioned objectives, the second aspect of the present invention proposes a computer-readable storage medium, on which a mobile web page content push program based on naive Bayes is stored. When the mobile web page content push program based on naive Bayes is executed by a processor, the mobile web page content push method based on naive Bayes as described above is implemented.
[0016] According to the computer-readable storage medium of an embodiment of the present invention, by storing a mobile web page content push program based on Naive Bayes, the processor implements the mobile web page content push method based on Naive Bayes as described above when executing the mobile web page content push program based on Naive Bayes. Thus, by making full use of mobile terminal data and making real-time adjustments based on the user's current browsing information, each user can be personalized and a user personalized model can be formed, thereby improving the accuracy of content push and further improving user experience.
[0017] To achieve the above-mentioned purpose, the third aspect of the present invention proposes a mobile web content push device based on Naive Bayes, including: a first acquisition module, used to obtain existing historical browsing data, wherein the historical browsing data includes content categories and browsing data corresponding to each content category; a model generation module, used to use a Naive Bayes algorithm to calculate the browsing data corresponding to each content category to obtain a basic probability model for each content category; a first judgment module, used to judge whether there is a corresponding user probability model for the user to whom the web content is to be pushed after the user to whom the web content is to be pushed enters the web page; a push module, used to obtain the current user of the user to whom the web content is to be pushed if there is no corresponding user probability model for the user to whom the web content is to be pushed The method comprises the following steps: a first obtaining module, which is used to obtain the current browsing data of the user of the web page content to be pushed when the user of the web page content to be pushed browses the pushed content, and obtains the actual probability value based on the user probability model according to the current browsing data; a second judging module, which is used to judge whether the difference between the maximum predicted probability value and the actual probability value is greater than a first preset threshold value; and an adjusting module, which is used to adjust the weight value of the user probability model if the difference is greater than the first preset threshold value to obtain a new user probability model.
[0018] According to the mobile terminal web page content push device based on Naive Bayes in the embodiment of the present invention, the historical browsing data corresponding to each user is obtained through the first acquisition module, wherein the historical browsing data includes content categories and browsing data corresponding to each content category; the model generation module uses the Naive Bayes algorithm to calculate the browsing data corresponding to each content category to obtain the basic probability model of each content category; the first judgment module judges whether there is a corresponding user probability model for the user to which the web page content is to be pushed after the user to which the web page content is to be pushed enters the web page; if there is no corresponding user probability model for the user to which the web page content is to be pushed, the current browsing data of the user to which the web page content is to be pushed is obtained through the push module, and the user probability model of each content category and the maximum predicted probability value among the corresponding probability values are obtained based on the basic probability model. The method further comprises the steps of: measuring the probability value, and pushing the content corresponding to the maximum predicted probability value to the user of the web page content to be pushed; when the user of the web page content to be pushed browses the pushed content, the second acquisition module obtains the current browsing data of the user of the web page content to be pushed, and obtains the actual probability value based on the user probability model according to the current browsing data; the second judgment module judges whether the difference between the maximum predicted probability value and the actual probability value of the pushed content is greater than the first preset threshold; if the difference is greater than the first preset threshold, the weight value of the user probability model is adjusted by the adjustment module to obtain a new user probability model; thus, by making full use of the mobile terminal data and making real-time adjustments according to the user's current browsing information, each user is personalized and a user personalized model is formed, thereby improving the accuracy of content push and further improving the user experience.
[0019] In addition, the mobile terminal web page content push device based on naive Bayes proposed in the above embodiment of the present invention may also have the following additional technical features:
[0020] Optionally, the adjustment module is also used to determine whether the current browsing data is greater than a second preset threshold or less than a third preset threshold. If it is greater than the second preset threshold, the corresponding weight value is increased by a fourth preset threshold; if it is less than the third preset threshold, the corresponding weight value is reduced by a fourth preset threshold.
[0021] To achieve the above-mentioned objectives, the fourth aspect of the present invention proposes a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the mobile web page content push method based on naive Bayes as described above is implemented.
[0022] According to the terminal device of the embodiment of the present invention, the mobile terminal web page content push program based on Naive Bayes is stored in the memory, so that when the mobile terminal web page content push program based on Naive Bayes is executed by the processor, the above-mentioned mobile terminal web page content push method based on Naive Bayes is implemented. Therefore, by making full use of the mobile terminal data and making real-time adjustments according to the user's current browsing information, each user can be personalized and a user personalized model can be formed, thereby improving the accuracy of content push and further improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 A schematic diagram of a process of a method for pushing web page content to a mobile terminal based on Naive Bayes according to an embodiment of the present invention;
[0024] Figure 2 Schematic diagram of a block diagram of a mobile terminal web page content push device based on Naive Bayes according to an embodiment of the present invention. DETAILED DESCRIPTION
[0025] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present invention, and should not be construed as limiting the present invention.
[0026] In order to better understand the above technical solution, exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present invention and to fully convey the scope of the present invention to those skilled in the art.
[0027] In order to better understand the above technical solution, the above technical solution will be described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0028] Figure 1 FIG. 1 is a flow chart of a method for pushing web page content to a mobile terminal based on Naive Bayes according to an embodiment of the present invention. Figure 1 As shown, the mobile terminal web page content push method based on naive Bayes includes the following steps:
[0029] Step 101: Obtain historical browsing data corresponding to each user, wherein the historical browsing data includes content categories and browsing data corresponding to each content category.
[0030] That is, reliable basic modeling data is obtained by screening past user browsing data, and the historical browsing data includes content categories and browsing data corresponding to each content category.
[0031] As an embodiment, content categories can be divided into movie categories, food categories, finance categories, etc. Each content category corresponds to browsing data, and the browsing data may include browsing parameters such as user latitude and longitude coordinates, browsing sliding speed, user heart rate, browsing dwell time, etc., which are recorded as {D N1 ,D N2 ,…,D Nn}, where N represents the browsing parameter and n represents n groups of browsing parameters; for example, {D 11 , D 12 , ...} where D 11 The first 1 indicates that the browsing parameter category is longitude and latitude, and the second 1 indicates the first set of longitude and latitude data; D 12 1 indicates that the browsing parameter category is longitude and latitude, and 2 indicates the second set of longitude and latitude data; 21 , D 22 , ...} where D 21 2 indicates that the browsing parameter category is user heart rate, and 1 indicates the first group of user heart rates; D 22 The first 2 in indicates that the browsing parameter category is user heart rate, the second 2 indicates the second group of user heart rates, and so on.
[0032] Step 102: Using a naive Bayes algorithm to calculate the browsing data corresponding to each content category, so as to obtain a basic probability model for each content category.
[0033] It should be noted that the naive Bayes algorithm is used to calculate the browsing data corresponding to each content category to obtain the basic probability model of each content category corresponding to each user, including:
[0034] The browsing data corresponding to each content category and the corresponding user's preference degree are set to be Gaussian normally distributed to obtain the mean and variance of each browsing parameter corresponding to each content category; the normal distribution density function corresponding to each browsing parameter is obtained according to the mean and variance of each browsing parameter; the naive Bayes algorithm is used to obtain the basic probability model of each content category corresponding to each user according to the normal distribution density function corresponding to each browsing parameter.
[0035] As a specific embodiment, it is assumed that the browsing data corresponding to each content category and the corresponding user's preference degree are Gaussian normally distributed, so the mean of each browsing parameter can be obtained as:
[0036]
[0037] The standard deviation is:
[0038]
[0039] Thus, the Gaussian distribution density function is obtained as:
[0040]
[0041] According to the naive Bayes formula, the probability model is obtained as follows:
[0042]
[0043] Through the above data, the basic probability model for each content category {a, b, ..., m} is obtained as:
[0044] {A a P 基a ,A b P 基b ,…,A m P 基m}
[0045] Among them, A m is the adjustment coefficient of the probability of each content category, that is, the weight value, which is the prior data, and the initial value is differentiated by content category.
[0046] Step 103: When the user to whom the webpage content is to be pushed enters the webpage, it is determined whether there is a corresponding user probability model for the user to whom the webpage content is to be pushed.
[0047] That is to say, when a user enters a web page for the first time, the user probability model is retrieved in the database based on the user's ID to determine whether the user has browsed the web page.
[0048] Step 104, if there is no corresponding user probability model for the user to whom the web page content is to be pushed, the current browsing data of the user to whom the web page content is to be pushed is obtained, and based on the basic probability model, the user probability model of each content category and the maximum predicted probability value among the corresponding probability values are obtained, and the content corresponding to the maximum predicted probability value is pushed to the user to whom the web page content is to be pushed.
[0049] It should be noted that if there is a corresponding user probability model for the user to whom the web page content is to be pushed, the current browsing data of the user to whom the web page content is to be pushed is obtained, and the maximum predicted probability value among the corresponding probability values of each content category is obtained based on the corresponding user probability model for each content category according to the current browsing data, and the content corresponding to the maximum predicted probability value is pushed to the user to whom the web page content is to be pushed.
[0050] That is, if a user probability model already exists, the obtained data (i.e., the user's latitude and longitude coordinates, user's heart rate and other current real-time data) is input into the model; if it does not exist, it is substituted into the basic probability model to calculate the probability value of each content category as follows:
[0051] {A a P 用a ,A b P 用b ,…,A m P 用m}
[0052] The largest probability value is taken as the maximum predicted probability value, and the corresponding content is pushed to the user.
[0053] It should be noted that the larger the probability value corresponding to a content category is, the more interested the user is in the content category.
[0054] Step 105: When the user to whom the webpage content is to be pushed browses the pushed content, the current browsing data of the user to whom the webpage content is to be pushed is obtained, and an actual probability value is obtained based on the user probability model.
[0055] That is to say, when the user browses the pushed content, new browsing data is obtained, namely the user's longitude and latitude coordinates, browsing sliding speed, user heart rate, browsing dwell time, current content category, etc. The user's longitude and latitude coordinates, browsing sliding speed, user heart rate, and browsing dwell time data are substituted into the model to obtain the actual probability value.
[0056] Step 106: Determine whether the difference between the maximum predicted probability value and the actual probability value of the pushed content is greater than a first preset threshold.
[0057] It should be noted that the first preset threshold is set according to actual needs, and the present invention does not make any specific limitation on this.
[0058] Step 107: If the difference is greater than the first preset threshold, the weight value of the user probability model is adjusted to obtain a new user probability model.
[0059] That is, if
[0060] |P 预测 -P 实际 |>P 阈
[0061] It is believed that the user probability model should also be adjusted for user personalization, and the adjusted user probability model should be used to push new content to users.
[0062] As an embodiment, if the difference is less than or equal to the first preset threshold, the weight value of the user probability model is not adjusted.
[0063] That is, when the difference between the maximum predicted probability value and the actual probability value is less than or equal to the first preset threshold, the original model is used for the next push of new content to the user.
[0064] As an embodiment, the weight value of the user probability model is adjusted, including: determining whether the current browsing data is greater than a second preset threshold or less than a third preset threshold, if it is greater than the second preset threshold, increasing the corresponding weight value by a fourth preset threshold, if it is less than the third preset threshold, decreasing the corresponding weight value by a fourth preset threshold.
[0065] That is to say, when the user model is personalized, the adjustment coefficient of each content probability is set to increase or decrease and the relevant adjustment range according to experience; for example, when browsing a certain content, when the user's heart rate is greater than H 阈1 , the adjustment coefficient of the content is increased by 0.1; when the user's heart rate is less than H 阈2 , then reduce the adjustment coefficient of the content by 0.1; save the adjusted user personalization model.
[0066] In addition, the newly acquired data is input into the calculation in the above steps to obtain a new basic probability model; by obtaining data for comparison and calculation, and adjusting the weights through feedback, the model is updated through cyclic calculation to improve the accuracy of content push.
[0067] In summary, the basic probability model is a probability model calculated based on all data. When new browsing data is added, the basic probability model is updated; the user probability model is obtained based on user browsing data, coefficient adjustment and the basic probability model; that is, the basic probability model is used as a global backup for calculation when the user does not have a corresponding user probability model.
[0068] It should be noted that the second preset threshold, the third preset threshold and the fourth preset threshold are all empirical values, which are set according to actual needs, and the present invention does not make any specific limitations on this.
[0069] In summary, according to the method for pushing web page content on a mobile terminal based on Naive Bayes in an embodiment of the present invention, first, historical browsing data corresponding to each user is obtained, wherein the historical browsing data includes content categories and browsing data corresponding to each content category; then, the browsing data corresponding to each content category is calculated using the Naive Bayes algorithm to obtain a basic probability model for each content category; then, when the user to whom the web page content is to be pushed enters the web page, it is determined whether the user to whom the web page content is to be pushed has a corresponding user probability model for each content category; then, if the user to whom the web page content is to be pushed does not have a corresponding user probability model for each content category, the current browsing data of the user to whom the web page content is to be pushed is obtained, and the user probability model for each content category is obtained based on the current browsing data and the basic probability model. The maximum predicted probability value in the probability model and the corresponding probability value is obtained, and the content corresponding to the maximum predicted probability value is pushed to the user of the web page content to be pushed; then, when the user of the web page content to be pushed browses the pushed content, the current browsing data of the user of the web page content to be pushed is obtained, and the actual probability value is obtained based on the user probability model according to the current browsing data; finally, it is determined whether the difference between the maximum predicted probability value and the actual probability value is greater than a first preset threshold value; if the difference is greater than the first preset threshold value, the weight value of the user probability model is adjusted to obtain a new user probability model; thus, by making full use of mobile terminal data and making real-time adjustments according to the user's current browsing information, each user is personalized and a user personalized model is formed, thereby improving the accuracy of content push and thus improving user experience.
[0070] In order to implement the above-mentioned embodiment, the embodiment of the present invention proposes a computer-readable storage medium, on which a mobile web page content push program based on naive Bayes is stored. When the mobile web page content push program based on naive Bayes is executed by a processor, the mobile web page content push method based on naive Bayes as described above is implemented.
[0071] According to the computer-readable storage medium of an embodiment of the present invention, by storing a mobile web page content push program based on Naive Bayes, the processor implements the mobile web page content push method based on Naive Bayes as described above when executing the mobile web page content push program based on Naive Bayes. Thus, by making full use of mobile terminal data and making real-time adjustments based on the user's current browsing information, each user can be personalized and a user personalized model can be formed, thereby improving the accuracy of content push and further improving user experience.
[0072] In order to implement the above embodiment, Figure 2As shown, an embodiment of the present invention also proposes a mobile web page content push device based on naive Bayes, including: a first acquisition module 10, a model generation module 20, a first judgment module 30, a push module 40, a second acquisition module 50, a second judgment module 60 and an adjustment module 70.
[0073] Among them, the first acquisition module 10 is used to obtain the historical browsing data corresponding to each user, wherein the historical browsing data includes content categories and browsing data corresponding to each content category; the model generation module 20 is used to use the naive Bayes algorithm to calculate the browsing data corresponding to each content category to obtain the basic probability model of each content category; the first judgment module 30 is used to determine whether the user to whom the web page content is to be pushed has the corresponding user probability model of each content category after the user to whom the web page content is to be pushed enters the web page; the push module 40 is used to obtain the current browsing data of the user to whom the web page content is to be pushed, and according to The current browsing data is based on the basic probability model to obtain the user probability model of each content category and the maximum predicted probability value in the corresponding probability value, and the content corresponding to the maximum predicted probability value is pushed to the user of the web page content to be pushed; the second acquisition module 50 is used to obtain the current browsing data of the user of the web page content to be pushed when the user of the web page content to be pushed browses the pushed content, and obtain the actual probability value based on the user probability model according to the current browsing data; the second judgment module 60 is used to judge whether the difference between the maximum predicted probability value and the actual probability value is greater than a first preset threshold; the adjustment module 70 is used to adjust the weight value of the user probability model if the difference is greater than the first preset threshold to obtain a new user probability model.
[0074] As an example, the adjustment module 70 is also used to determine whether the current browsing data is greater than the second preset threshold or less than the third preset threshold. If it is greater than the second preset threshold, the corresponding weight value is increased by the fourth preset threshold; if it is less than the third preset threshold, the corresponding weight value is reduced by the fourth preset threshold.
[0075] It should be noted that the above Figure 1 The explanation of the mobile terminal web page content pushing method based on naive Bayes in is also applicable to the mobile terminal web page content pushing device based on naive Bayes, and will not be repeated here.
[0076] In summary, according to the mobile web content push device based on Naive Bayes in the embodiment of the present invention, the historical browsing data corresponding to each user is obtained through the first acquisition module, wherein the historical browsing data includes content categories and browsing data corresponding to each content category; the model generation module uses the Naive Bayes algorithm to calculate the browsing data corresponding to each content category to obtain a basic probability model for each content category; the first judgment module judges whether there is a corresponding user probability model of each content category for the user to whom the web content is to be pushed after the user to whom the web content is to be pushed enters the web page; if there is no corresponding user probability model of each content category for the user to whom the web content is to be pushed, the current browsing data of the user to whom the web content is to be pushed is obtained through the push module, and the probability model of each content category is obtained based on the current browsing data and the basic probability model. The maximum predicted probability value in the user probability model and the corresponding probability value, and the content corresponding to the maximum predicted probability value is pushed to the user of the web page content to be pushed; when the user of the web page content to be pushed browses the pushed content, the second acquisition module obtains the current browsing data of the user of the web page content to be pushed, and obtains the actual probability value based on the user probability model according to the current browsing data; the second judgment module judges whether the difference between the maximum predicted probability value and the actual probability value is greater than the first preset threshold; if the difference is greater than the first preset threshold, the weight value of the user probability model is adjusted by the adjustment module to obtain a new user probability model; thus, by making full use of mobile terminal data and making real-time adjustments according to the user's current browsing information, each user is personalized and a user personalized model is formed, thereby improving the accuracy of content push and further improving user experience.
[0077] In order to implement the above-mentioned embodiment, the embodiment of the present invention also proposes a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the mobile web page content push method based on naive Bayes as described above is implemented.
[0078] According to the terminal device of the embodiment of the present invention, the mobile terminal web page content push program based on Naive Bayes is stored in the memory, so that when the mobile terminal web page content push program based on Naive Bayes is executed by the processor, the above-mentioned mobile terminal web page content push method based on Naive Bayes is implemented. Therefore, by making full use of the mobile terminal data and making real-time adjustments according to the user's current browsing information, each user can be personalized and a user personalized model can be formed, thereby improving the accuracy of content push and further improving the user experience.
[0079] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0080] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0081] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0082] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0083] It should be noted that in the claims, any reference signs placed between brackets shall not be construed as limiting the claims. The word "comprising" does not exclude the presence of components or steps not listed in the claim. The word "a" or "an" preceding a component does not exclude the presence of a plurality of such components. The invention may be implemented by means of hardware comprising several different components and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means may be embodied by the same item of hardware. The use of the words first, second, and third etc. does not indicate any order. These words may be interpreted as names.
[0084] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.
[0085] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
[0086] In the description of the present invention, it should be understood that the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of the present invention, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0087] In the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0088] In the present invention, unless otherwise clearly specified and limited, a first feature being "above" or "below" a second feature may mean that the first and second features are in direct contact, or the first and second features are in indirect contact through an intermediate medium. Moreover, a first feature being "above", "above" or "above" a second feature may mean that the first feature is directly above or obliquely above the second feature, or simply means that the first feature is higher in level than the second feature. A first feature being "below", "below" or "below" a second feature may mean that the first feature is directly below or obliquely below the second feature, or simply means that the first feature is lower in level than the second feature.
[0089] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms should not be understood as necessarily referring to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, unless they are contradictory.
[0090] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.
Claims
1. A method for pushing web page content on a mobile terminal based on Naive Bayes, characterized in that: The following steps are involved: Acquire existing historical browsing data, wherein the historical browsing data includes content categories and browsing data corresponding to each content category; Using a naive Bayes algorithm to calculate the browsing data corresponding to each content category to obtain a basic probability model for each content category; When a user to whom webpage content is to be pushed enters a webpage, determining whether there is a corresponding user probability model for the user to whom webpage content is to be pushed; If there is no corresponding user probability model for the user to which the webpage content is to be pushed, the current browsing data of the user to which the webpage content is to be pushed is obtained, and based on the basic probability model, the maximum predicted probability value among the user probability model and the corresponding probability values of each content category is obtained, and the content corresponding to the maximum predicted probability value is pushed to the user to which the webpage content is to be pushed; When the user of the webpage content to be pushed browses the pushed content, current browsing data of the user of the webpage content to be pushed is obtained, and an actual probability value is obtained based on the user probability model; Determine whether a difference between a maximum predicted probability value of the pushed content and the actual probability value is greater than a first preset threshold; If the difference is greater than a first preset threshold, adjusting the weight value of the user probability model to obtain a new user probability model; The naive Bayes algorithm is used to calculate the browsing data corresponding to each content category to obtain a basic probability model for each content category, including: The browsing data corresponding to each content category and the corresponding user's preference degree are set to be Gaussian normally distributed, so as to obtain the mean and variance of each browsing parameter corresponding to each content category; Obtaining a normal distribution density function corresponding to each browsing parameter according to the mean and variance of each browsing parameter; A basic probability model of each content category corresponding to each user is obtained by using a naive Bayes algorithm according to the normal distribution density function corresponding to each browsing parameter.
2. The method for pushing web page content to a mobile terminal based on Naive Bayes as claimed in claim 1, characterized in that: The weight value of the user probability model is adjusted, including: Determine whether the current browsing data is greater than the second preset threshold or less than the third preset threshold. If it is greater than the second preset threshold, increase the corresponding weight value by the fourth preset threshold. If it is less than the third preset threshold, decrease the corresponding weight value by the fourth preset threshold.
3. The method for pushing web page content to a mobile terminal based on Naive Bayes as claimed in any one of claims 1 to 2, characterized in that: The browsing data corresponding to each content category includes one or any several browsing parameters of user latitude and longitude coordinates, browsing sliding speed, user heart rate, and browsing dwell time.
4. The method for pushing web page content to a mobile terminal based on Naive Bayes as claimed in claim 1, characterized in that: If a corresponding user probability model exists for the user to whom the web page content is to be pushed, the current browsing data of the user to whom the web page content is to be pushed is obtained, and the maximum predicted probability value among the corresponding probability values of each content category is obtained based on the current browsing data and the corresponding user probability model for each content category, and the content corresponding to the maximum predicted probability value is pushed to the user to whom the web page content is to be pushed.
5. The method for pushing web page content to a mobile terminal based on Naive Bayes as claimed in claim 1, characterized in that: If the difference is less than or equal to the first preset threshold, the weight value of the user probability model is not adjusted.
6. A computer-readable storage medium, characterized in that: A mobile terminal web page content pushing program based on Naive Bayes is stored thereon, and when the mobile terminal web page content pushing program based on Naive Bayes is executed by a processor, a mobile terminal web page content pushing method based on Naive Bayes as described in any one of claims 1-5 is implemented.
7. A mobile terminal web page content push device based on naive Bayes, characterized in that: include: A first acquisition module, configured to acquire existing historical browsing data, wherein the historical browsing data includes content categories and browsing data corresponding to each content category; A model generation module, used to calculate the browsing data corresponding to each content category using a naive Bayes algorithm to obtain a basic probability model for each content category; The first judgment module is used to judge whether there is a corresponding user probability model for the user to whom the webpage content is to be pushed when the user enters the webpage; A push module, for obtaining the current browsing data of the user to which the webpage content is to be pushed, and obtaining the maximum predicted probability value among the user probability model and the corresponding probability values of each content category based on the basic probability model if there is no corresponding user probability model for the user to which the webpage content is to be pushed, and pushing the content corresponding to the maximum predicted probability value to the user to which the webpage content is to be pushed; A second acquisition module is used to acquire current browsing data of the user of the web page content to be pushed when the user of the web page content to be pushed browses the pushed content, and obtain an actual probability value based on the user probability model; A second judgment module is used to judge whether the difference between the maximum predicted probability value of the pushed content and the actual probability value is greater than a first preset threshold; an adjustment module, configured to adjust the weight value of the user probability model to obtain a new user probability model if the difference is greater than a first preset threshold; The model generation module is further used to set the browsing data corresponding to each content category and the degree of preference of the corresponding user to be Gaussian normal distribution, so as to obtain the mean and variance of each browsing parameter corresponding to each content category; obtain the normal distribution density function corresponding to each browsing parameter according to the mean and variance of each browsing parameter; and use the naive Bayes algorithm to obtain the basic probability model of each content category corresponding to each user according to the normal distribution density function corresponding to each browsing parameter.
8. The mobile terminal web page content push device based on Naive Bayes as claimed in claim 7, characterized in that: The adjustment module is also used to determine whether the current browsing data is greater than a second preset threshold or less than a third preset threshold, and if it is greater than the second preset threshold, increase the corresponding weight value by a fourth preset threshold; if it is less than the third preset threshold, reduce the corresponding weight value by a fourth preset threshold.
9. A terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the method for pushing web page content on a mobile terminal based on Naive Bayes as described in any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
Information pushing method
CN105787061A
Phishing website detection method and system in Android environment
CN107438083A
