Article recommendation method and device, electronic equipment and storage medium
By constructing an article recommendation model, using Gaussian distribution data and confidence upper bound to determine the target recommended article, and updating the model based on user feedback, the problem of ignoring user association in the existing technology is solved, and the accuracy and relevance of article recommendations is improved.
Patent Information
- Application Number
- CN202410955399.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-16
- Publication Date
- 2024-11-05
- Estimated Expiration
- 2044-07-16
AI Technical Summary
Existing article recommendation methods ignore potential correlations between users when optimizing recommendation algorithms, resulting in a decrease in the accuracy and correlation of article recommendations.
By acquiring and feature processing of article data sets and user data sets, build an article recommendation model, use Gaussian distribution data and confidence upper bound to determine the target recommended article from multiple article feature data, and update the recommendation model based on user feedback to establish user links to correlation.
It improves the accuracy and relevance of article recommendations, realizes article recommendations based on the correlation between users, and enhances the personalization and efficiency of recommendations.
Smart Images

Figure CN118897912A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of artificial intelligence technology, and in particular to an article recommendation method, device, electronic device and storage medium. Background Art
[0002] At present, in the field of article recommendation, article recommendation methods based on machine learning models or deep learning models are usually used for article recommendation. However, in actual application scenarios, these models often ignore the potential associations between users when optimizing recommendation algorithms. Due to the lack of effective use of the correlations between different users, it is impossible to implement article recommendations based on the correlations between users, which reduces the accuracy and relevance of article recommendations.
[0003] Therefore, how to improve the accuracy of article recommendations has become a technical problem that needs to be solved urgently. Summary of the invention
[0004] The main purpose of the embodiments of the present application is to propose an article recommendation method, device, electronic device and storage medium, aiming to improve the accuracy of article recommendation.
[0005] To achieve the above-mentioned purpose, a first aspect of an embodiment of the present application proposes an article recommendation method, the method comprising:
[0006] Acquire an article data set, and perform feature processing on the article data set to obtain article feature data; wherein the number of the article feature data is multiple, and each of the article feature data corresponds to an article;
[0007] Acquire a user data set, and perform feature processing on the user data set to obtain user feature data; wherein the number of the user feature data is multiple, and each user feature data corresponds to one user;
[0008] Building an article recommendation model based on the article feature data and the user feature data;
[0009] For each of the users, determining a target recommended article from the plurality of article feature data by using the article recommendation model;
[0010] The target recommended article is recommended to the user.
[0011] In some embodiments, determining a target recommended article from the plurality of article feature data by using the article recommendation model includes:
[0012] Determine Gaussian distribution data of the article recommendation model;
[0013] Sampling the Gaussian distribution data to obtain distribution characteristic data;
[0014] Calculate the confidence upper bound of each of the article feature data according to the distribution feature data;
[0015] The target recommended article is determined from the plurality of article feature data based on the confidence upper bound.
[0016] In some embodiments, the distribution feature data includes distribution mean feature data and distribution variance feature data; and calculating the confidence upper bound of each article feature data according to the distribution feature data includes:
[0017] Perform a first feature calculation based on the article feature data and the distribution mean feature data to obtain first feature data;
[0018] Performing a second feature calculation based on a preset confidence factor, the article feature data, and the distribution variance feature data to obtain second feature data;
[0019] An aggregate calculation is performed based on the first feature data and the second feature data to obtain the upper limit of the confidence level.
[0020] In some embodiments, after recommending the target recommended article to the user, the method further includes:
[0021] Acquiring feedback information from the user; wherein the feedback information is used to characterize the user's viewing behavior of the target recommended article;
[0022] Constructing recommendation reward information according to the feedback information and the user characteristic data;
[0023] The article recommendation record is updated based on the target recommended article and the recommendation reward information; wherein the article recommendation record includes each of the user's historically recommended articles and the recommendation reward information corresponding to the historically recommended articles, and the historically recommended articles are determined by the article recommendation model;
[0024] The Gaussian distribution data is updated based on the updated article recommendation record to update the article recommendation model; wherein the updated article recommendation model is used for the next article recommendation.
[0025] In some embodiments, determining the target recommended article from the plurality of article feature data based on the confidence upper bound includes:
[0026] Sorting the confidence upper bounds corresponding to the plurality of article feature data to obtain a first confidence sequence;
[0027] Selecting the confidence upper bound with the largest value from the first confidence sequence, and determining it as the first target confidence data;
[0028] The article feature data corresponding to the first target confidence data is obtained, and the article is determined to be recommended as the target.
[0029] In some embodiments, determining the target recommended article from the plurality of article feature data based on the confidence upper bound includes:
[0030] Grouping the plurality of article feature data to obtain at least one grouped article data;
[0031] For each group of article data, the confidence upper bound of each article feature data in the group of article data is summed up to obtain confidence sum data;
[0032] Sorting the confidence sum data corresponding to the plurality of grouped article data to obtain a second confidence sequence;
[0033] Selecting the confidence sum data with the largest value from the second confidence sequence, and determining it as the second target confidence data;
[0034] The grouped article data corresponding to the second target confidence data is obtained, and is determined to be the target recommended article.
[0035] In some embodiments, the performing feature processing on the article dataset to obtain article feature data includes:
[0036] Performing data preprocessing on the article data set to obtain target article data;
[0037] Feature extraction is performed on the target article data to obtain the article feature data.
[0038] To achieve the above-mentioned purpose, a second aspect of an embodiment of the present application proposes an article recommendation device, the device comprising:
[0039] An article data acquisition module is used to acquire an article data set, and perform feature processing on the article data set to obtain article feature data; wherein the number of the article feature data is multiple, and each article feature data corresponds to an article;
[0040] A user data acquisition module is used to acquire a user data set and perform feature processing on the user data set to obtain user feature data; wherein the number of the user feature data is multiple, and each user feature data corresponds to one user;
[0041] A recommendation model building module, used to build an article recommendation model based on the article feature data and the user feature data;
[0042] A recommended article determination module, used for determining a target recommended article from a plurality of article feature data for each of the users through the article recommendation model;
[0043] The article recommendation module is used to recommend the target recommended article to the user.
[0044] To achieve the above-mentioned purpose, the third aspect of an embodiment of the present application proposes an electronic device, which includes a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the method described in the first aspect is implemented.
[0045] To achieve the above-mentioned purpose, the fourth aspect of an embodiment of the present application proposes a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method described in the first aspect is implemented.
[0046] The article recommendation method, device, electronic device and storage medium proposed in the present application obtain article data sets and perform feature processing on the article data sets to obtain article feature data; wherein the number of article feature data is multiple, and each article feature data corresponds to an article; obtain user data sets and perform feature processing on the user data sets to obtain user feature data; wherein the number of user feature data is multiple, and each user feature data corresponds to a user; construct an article recommendation model based on the article feature data and the user feature data, so as to establish connections between multiple users and implement article recommendation according to the correlation between users; for each user, determine the target recommended article from the multiple article feature data through the article recommendation model; recommend the target recommended article to the user, thereby improving the accuracy and relevance of the article recommendation. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] Figure 1 is a flow chart of the article recommendation method provided in an embodiment of the present application;
[0048] Figure 2 yes Figure 1 Flow chart of step S101 in FIG.
[0049] Figure 3 yes Figure 1 Flow chart of step S104 in FIG.
[0050] Figure 4 yes Figure 3 Flow chart of step S303 in FIG.
[0051] Figure 5 yes Figure 3 A flowchart of step S304 in FIG.
[0052] Figure 6 yes Figure 3 Another flowchart of step S304 in;
[0053] Figure 7 is a flow chart of an article recommendation method provided by another embodiment of the present application;
[0054] Figure 8 is a schematic diagram of the structure of an article recommendation device provided in an embodiment of the present application;
[0055] Fig. 9 It is a schematic diagram of the hardware structure of the electronic device provided in the embodiment of the present application. DETAILED DESCRIPTION
[0056] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0057] It should be noted that, although the functional modules are divided in the device schematic diagram and the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the device or the order in the flowchart. The terms "first", "second", etc. in the specification, claims and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0058] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0059] First, some nouns involved in this application are analyzed:
[0060] Artificial intelligence (AI) is a new technical science that studies and develops theories, methods, technologies and application systems for simulating, extending and expanding human intelligence. AI is a branch of computer science that attempts to understand the essence of intelligence and produce a new type of intelligent machine that can respond in a similar way to human intelligence. Research in this field includes robotics, speech recognition, image recognition, natural language processing and expert systems. AI can simulate the information process of human consciousness and thinking. AI is also a theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.
[0061] Bandit Algorithm, also known as Multi-Armed Bandit Algorithm (MAB), is a reinforcement learning algorithm framework that solves the problem of how to balance "exploration" and "utilization" under limited resources. Each bandit arm represents an optional behavior or decision, and each arm has an unknown reward distribution. The algorithm needs to estimate the expected reward of each arm by continuously exploring and trying different arms (i.e. different behaviors or decisions) in a limited number of attempts, and select the arm that maximizes the cumulative reward based on these estimates. In this way, the bandit algorithm can effectively learn in an uncertain environment and make the best decision.
[0062] Semi-slot machine algorithm,The semi-slot machine algorithm is a generalized multi-armed slot machine algorithm framework. In the semi-slot machine algorithm, the decision maker can choose multiple slot machine arms in each round of decision-making and try to maximize the cumulative reward within a limited number of attempts. Similar to the traditional multi-armed slot machine algorithm, the semi-slot machine algorithm also needs to balance between exploring new arms and using known high-reward arms.
[0063] Multi-task hierarchical Bayesian algorithm, the multi-task hierarchical Bayesian algorithm is a machine learning algorithm that combines the characteristics of multi-task learning and hierarchical Bayesian model. By learning multiple related tasks at the same time, the correlation between tasks is used to improve the performance of each task. At the same time, the algorithm uses the structured hierarchy of the hierarchical Bayesian model to construct a hierarchical prior distribution for the parameters of each task, effectively avoiding the overfitting problem caused by too many parameters. The multi-task hierarchical Bayesian algorithm not only enhances the predictive performance and generalization ability of the model, but also estimates the parameters of the posterior distribution through the Bayesian method, providing a powerful solution to complex statistical problems.
[0064] The upper confidence bound (UCB), that is, the upper limit of the confidence interval, is an important part of the confidence interval. In statistics, when conducting a sampling survey or data analysis, since only a part of the sample data can be obtained and the overall data cannot be obtained, it is necessary to use the sample data to estimate the overall data. In order to measure the credibility of the estimate, the confidence interval is used to express the estimated range of the overall parameter value.
[0065] Reward, in the slot machine problem, the reward usually refers to the return or gain obtained after each attempt at a slot machine arm (behavior or decision). These rewards are randomly generated, and each arm has its own reward distribution. The goal of the slot machine algorithm is to find and continuously select those arms that can produce the highest expected rewards within a limited number of attempts through a certain strategy or algorithm to maximize the cumulative total reward.
[0066] The slot machine problem is a sequential decision problem. In each round of decision making, an action needs to be selected from the action space and a random reward is received (the reward distribution function is unknown). After multiple rounds of decision making, the difference between the cumulative rewards obtained by the selected series of optimal actions and the cumulative rewards actually obtained by the model is defined as "regret". The goal of slot machine learning is to minimize regret or the upper bound of regret by exploring as many different actions as possible and using the actions that have received high rewards in the past as efficiently as possible.
[0067] When multiple slot machine tasks need to be solved, machine learning researchers use multi-task learning / meta-learning paradigms to achieve task adaptation and knowledge transfer. Current research on multi-task slot machine problems can be divided into three categories:
[0068] The first category attempts to learn a low-dimensional representation shared by different slot machine tasks, thereby obtaining a tighter cumulative regret bound than learning each slot machine task independently.
[0069] The second category exploits the similarity of context (e.g., features of actions) in the bandit task to improve the model’s ability to predict rewards in new tasks.
[0070] The third category chooses to maintain a high-level distribution function about the hyperparameters of the bandit algorithm (such as Tsallis-INF, OFUL and Thompson sampling) and extracts beneficial hyperparameters from the high-level distribution for new bandit tasks to achieve efficient regret minimization.
[0071] The article recommendation method provided in the embodiment of the present application belongs to the third category, which explains the problem of similar task learning by constructing a hierarchical Bayesian learning model.
[0072] Typical applications of slot machine algorithms include but are not limited to article recommendations, computational advertising, dynamic pricing, autonomous driving, logistics scheduling, etc.
[0073] In the field of article recommendation, each user is currently treated as an independent machine task, and the traditional single-task machine algorithm is used to recommend articles to each user. This article recommendation method treats different users separately, ignores the correlation between different users (for example, users in the same work unit or the same residential area are very likely to have the same article reading interests), and cannot achieve the beneficial information transmission between different machine tasks, resulting in low efficiency of article recommendation, and cannot achieve article recommendation based on the correlation between users, which reduces the accuracy and relevance of article recommendation.
[0074] Based on this, the embodiments of the present application provide an article recommendation method, device, electronic device and storage medium, aiming to improve the accuracy of article recommendation.
[0075] The article recommendation method, device, electronic device and storage medium provided in the embodiments of the present application are specifically described through the following embodiments. First, the article recommendation method in the embodiments of the present application is described.
[0076] The article recommendation method provided in the embodiment of the present application relates to the field of artificial intelligence technology. The article recommendation method provided in the embodiment of the present application can be applied to a terminal, can be applied to a server side, or can be software running in a terminal or a server side. In some embodiments, the terminal can be a smart phone, a tablet computer, a laptop computer, a desktop computer, etc.; the server side can be configured as an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms; the software can be an application that implements the article recommendation method, etc., but is not limited to the above forms.
[0077] The present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. The present application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.
[0078] It should be noted that in each specific implementation of the present application, when it comes to the need to perform relevant processing based on data related to user identity or characteristics such as user information, user behavior data, user historical data, and user location information, the user's permission or consent will be obtained first, and the collection, use, and processing of these data will comply with relevant laws, regulations, and standards. In addition, when the embodiment of the present application needs to obtain the user's sensitive personal information, the user's separate permission or consent will be obtained through a pop-up window or by jumping to a confirmation page. After clearly obtaining the user's separate permission or consent, the necessary user-related data for the normal operation of the embodiment of the present application will be obtained.
[0079] Figure 1is an optional flowchart of the article recommendation method provided in the embodiment of the present application. Figure 1 The method may include but is not limited to steps S101 to S105.
[0080] Step S101, obtaining an article data set, and performing feature processing on the article data set to obtain article feature data; wherein the number of article feature data is multiple, and each article feature data corresponds to an article;
[0081] Step S102, obtaining a user data set, and performing feature processing on the user data set to obtain user feature data; wherein the number of user feature data is multiple, and each user feature data corresponds to one user;
[0082] Step S103, constructing an article recommendation model based on the article feature data and the user feature data;
[0083] Step S104, for each user, determining a target recommended article from a plurality of article feature data through an article recommendation model;
[0084] Step S105: recommend the target recommended article to the user.
[0085] In steps S101 to S105 shown in the embodiment of the present application, article feature data is obtained by acquiring an article data set and performing feature processing on the article data set; wherein, there are multiple article feature data, and each article feature data corresponds to an article; a user data set is acquired and feature processing is performed on the user data set to obtain user feature data; wherein, there are multiple user feature data, and each user feature data corresponds to a user; an article recommendation model is constructed based on the article feature data and the user feature data, so that connections between multiple users can be established, and article recommendations can be implemented based on the correlation between users; for each user, a target recommended article is determined from multiple article feature data through the article recommendation model; the target recommended article is recommended to the user, thereby improving the accuracy and relevance of the article recommendation.
[0086] In some embodiments, the article data set may be article data of an online website, such as news articles, experience sharing articles, short reviews, etc., but is not limited thereto.
[0087] And the article data set contains multiple articles, each article includes but is not limited to the article title, article author, publication time, article content, article type, etc. Specifically, it is necessary to determine the information of the required article in combination with the actual application scenario, but it is not limited thereto.
[0088] See also Figure 2 In some embodiments, step S101 may include but is not limited to steps S201 to S202:
[0089] Step S201, preprocessing the article data set to obtain target article data;
[0090] Step S202: extract features from the target article data to obtain article feature data.
[0091] In steps S201 to S202 shown in the embodiment of the present application, by performing data preprocessing on the article data set to obtain the target article data, the quality and validity of the data set can be ensured; the target article data is subjected to feature extraction and converted into article feature data suitable for the model, which can significantly improve the efficiency and accuracy of the article recommendation model.
[0092] In step S201 of some embodiments, the data preprocessing operation includes but is not limited to data cleaning, data noise reduction, etc. Specifically, it is necessary to select corresponding preprocessing measures in combination with actual application scenarios, but it is not limited thereto.
[0093] In step S202 of some embodiments, feature extraction can be performed by a deep neural network model, such as a CNN model, an RNN model, an LSTM model, etc.; or feature extraction can be performed by a TF-IDF feature representation method. Specifically, it is necessary to select a corresponding feature extraction method in combination with the actual application scenario, but it is not limited thereto.
[0094] In some embodiments, the user data set may be user registration information of an online website, and the user data set may contain multiple users. The relevant information of each user may include but is not limited to user age, user gender, user region, user personal preferences, etc. Specifically, it needs to be set in combination with the actual application scenario, but is not limited to this.
[0095] In some embodiments, step S102 may include but is not limited to the following steps:
[0096] Perform data preprocessing on the user data set to obtain target user data;
[0097] Feature extraction is performed on target user data to obtain user feature data.
[0098] By preprocessing the user data set to obtain the target user data, the quality and effectiveness of the data set can be ensured; by extracting features from the target user data and converting them into user feature data suitable for the model, the efficiency and accuracy of the article recommendation model can be significantly improved.
[0099] Furthermore, the specific implementation of step S102 is substantially the same as the specific implementation of the above-mentioned steps S201 to S202, and will not be described in detail herein.
[0100] In step S103 of some embodiments, an article recommendation model is constructed based on the article feature data and the user feature data. Specifically, the article recommendation model is a multi-task linear machine / semi-machine model under hierarchical Gaussian sampling, which can solve the multi-task linear machine / semi-machine problem under hierarchical Gaussian sampling, and achieves article recommendation based on the correlation between users by establishing connections between multiple users, thereby improving the accuracy and relevance of article recommendation.
[0101] It should be noted that in the embodiment of the present application, the model must determine one or more target recommended articles for each user, which is called an article recommendation task. The action is the selection of the article, and the reward corresponds to the user's viewing behavior of the target recommended article.
[0102] In some examples, the multi-task linear slot machine / semi-slot machine model under hierarchical Gaussian sampling is theoretically explained in detail as follows:
[0103] First, the multi-task Bayesian linear slot machine / semi-slot machine problem assumes that each task s∈[m] (where [m] = {1, 2, ..., m}) is represented by a task parameter θ s,* portrayal.
[0104] In the multi-task linear slot machine / semi-slot machine problem, the model will interact with a task set in the tth iteration Interact in each task Select Action A s,t , and get a random reward Y s,t , where Y s,t Follow the distribution
[0105] In the multi-task Bayesian linear slot machine, A s,t is an action vector, Y s,t is a random variable;
[0106] In the multi-task Bayesian linear semi-bandit machine, is a subset of the action space [K], is a series of random variables, where is the feature vector corresponding to K actions (known in advance), η s,t is a K-dimensional random noise.
[0107] The multi-task linear bandit / semi-bandit problem under the hierarchical Bayesian framework further assumes that the task parameters θ s,* is independently sampled from the distribution And assume that the hyperparameter μ * is independently sampled from the high-level prior distribution function Q(μ).
[0108] Then, the multi-task linear slot machine problem under hierarchical Gaussian sampling is taken as an example of the hierarchical Bayesian slot machine / semi-slot machine problem to explain the specific algorithm.
[0109] Specifically, assume that the multi-task linear slot machine problem under hierarchical Gaussian sampling is:
[0110]
[0111]
[0112]
[0113] in, Represents a multivariate Gaussian distribution with mean vector μ and variance matrix Σ, that is, Gaussian distribution data.
[0114] The form of the multi-task linear semi-slot machine problem under hierarchical Gaussian sampling is very similar to the above form, the only difference is that formula (3) is Where <,> represents the inner product of two vectors.
[0115] At the same time, define the article recommendation record H is the article recommendation record for the model and task s∈[m] before round t. t =(H s,t ) s∈[m] It is the article recommendation record for all tasks before round t.
[0116] Assume the advanced posterior distribution of round t (Gaussian distribution data) It is easy to know The corresponding mean vector is:
[0117]
[0118] The corresponding covariance matrices are:
[0119]
[0120] Among them, in the multi-task linear slot machine problem under hierarchical Gaussian sampling:
[0121]
[0122]
[0123] In the multi-task linear semi-slot machine problem under hierarchical Gaussian sampling:
[0124]
[0125]
[0126] where Φ a is the transpose of the row vector of the a-th row of the matrix Φ.
[0127] Therefore, from the high-level posterior distribution Q t (μ) is sampled to get the hyperparameter μ t Then, sample the task parameters for task s
[0128] in is the mean of the posterior distribution, is the posterior distribution covariance matrix.
[0129] Finally, through the complete variance decomposition technique, we know that:
[0130] Gaussian distribution data is:
[0131] in,
[0132] See also Figure 3 In some embodiments, step S104 may include but is not limited to steps S301 to S304:
[0133] Step S301, determining Gaussian distribution data of the article recommendation model;
[0134] Step S302, sampling Gaussian distribution data to obtain distribution characteristic data;
[0135] Step S303, calculating the upper confidence limit of each article feature data according to the distribution feature data;
[0136] Step S304: determining a target recommended article from the plurality of article feature data based on the confidence upper bound.
[0137] In the steps S301 to S304 shown in the embodiment of the present application, the upper confidence limit of each article feature data is calculated by using the distribution feature data of the advanced distribution data, and then the target recommended article is determined from multiple article feature data based on the upper confidence limit, thereby improving the accuracy of article recommendation. Compared with the currently commonly used hierarchical Bayes Thompson sampling, the present application does not need to calculate the posterior probability distribution function of the task parameters, which can greatly simplify the complexity of program operation and achieve less regret.
[0138] It should be noted that if the article recommendation model is performing the article recommendation task for the first time, the Gaussian distribution function is a pre-set advanced prior Gaussian distribution function; if the article recommendation model is not performing the article recommendation task for the first time, the Gaussian distribution function is an advanced posterior Gaussian distribution function that is adjusted based on the recommendation results of the previous article recommendation, thereby achieving task adaptation and knowledge transfer.
[0139] In step S302 of some embodiments, the distribution characteristic data includes distribution mean characteristic data and distribution variance characteristic data.
[0140] Specifically, from the Gaussian distribution data Q t (μ) is sampled to get the hyperparameter μ t After that, we get:
[0141] Distribution mean characteristic data:
[0142] And the distribution variance characteristic data:
[0143] See also Figure 4 In some embodiments, step S303 may include but is not limited to steps S401 to S403:
[0144] Step S401, performing first feature calculation based on article feature data and distribution mean feature data to obtain first feature data;
[0145] Step S402, performing second feature calculation based on a preset confidence factor, article feature data, and distribution variance feature data to obtain second feature data;
[0146] Step S403: performing aggregation calculation based on the first feature data and the second feature data to obtain an upper confidence limit.
[0147] In the steps S401 to S403 shown in the embodiment of the present application, the first feature data is obtained by performing a first feature calculation based on the article feature data and the distribution mean feature data; the second feature data is obtained by performing a second feature calculation based on the preset confidence factor, the article feature data and the distribution variance feature data; and the upper confidence limit is obtained by performing an aggregation calculation based on the first feature data and the second feature data. Compared with the currently commonly used hierarchical Bayes Thompson sampling, the present application does not need to calculate the posterior probability distribution function of the task parameters, which can greatly simplify the complexity of program operation and achieve less regret.
[0148] For the multi-task linear slot machine / semi-slot machine model under hierarchical Gaussian sampling, in the tth iteration, for each user's corresponding article recommendation task Count every move The confidence upper bound of :
[0149]
[0150] Among them, a is the feature data of the article, and δ∈(0,1) is the confidence factor.
[0151] In some other embodiments, the upper confidence limit can also be set to , where c is a variable parameter that can vary according to specific settings, making the hierarchical Bayesian UCB algorithm more flexible and applicable.
[0152] See also Figure 5 In some embodiments, step S304 may include but is not limited to steps S501 to S503:
[0153] Step S501, sorting the confidence upper bounds corresponding to the plurality of article feature data to obtain a first confidence sequence;
[0154] Step S502, selecting the confidence upper bound with the largest value from the first confidence sequence, and determining it as the first target confidence data;
[0155] Step S503: Acquire article feature data corresponding to the first target confidence data, and determine it as a target recommended article.
[0156] In steps S501 to S503 shown in the embodiment of the present application, for the multi-task linear slot machine model under hierarchical Gaussian sampling, the confidence upper bounds corresponding to multiple article feature data are sorted to obtain a first confidence sequence, the confidence upper bound with the largest value is selected from the first confidence sequence and determined as the first target confidence data, the article feature data corresponding to the first target confidence data is obtained, and is determined as the target recommended article, so as to accurately select the target recommended article for each user, which can improve the accuracy of article recommendation; in addition, because the Gaussian distribution data (advanced Gaussian distribution function) of the hyperparameters of the multi-task linear slot machine model under hierarchical Gaussian sampling combines the recommended articles and rewards of each user, it is possible to establish connections between multiple users, realize article recommendation based on the correlation between users, and improve the relevance of article recommendation.
[0157] Specifically, each article feature data is calculated with a corresponding confidence upper bound. After sorting the confidence upper bounds corresponding to multiple article feature data by numerical value, a first confidence sequence is obtained, and then the confidence upper bound with the largest value is selected from the first confidence sequence. As the first target confidence data; obtain the article feature data corresponding to the first target confidence data, and determine it as the target recommended article A s,t .
[0158] It should be noted that the sorting process can be sorted from large to small according to the numerical value, or from small to large according to the numerical value. The specific selection needs to be made in combination with the actual application scenario, and is not limited to this.
[0159] See also Figure 6 In some embodiments, step S304 may also include but is not limited to steps S601 to S605:
[0160] Step S601, grouping multiple article feature data to obtain at least one grouped article data;
[0161] Step S602, for each group of article data, summing up the confidence upper bound of each article feature data in the group of article data to obtain confidence sum data;
[0162] Step S603, sorting the confidence sum data corresponding to the plurality of grouped article data to obtain a second confidence sequence;
[0163] Step S604, selecting the confidence sum data with the largest value from the second confidence sequence, and determining it as the second target confidence data;
[0164] Step S605: Acquire grouped article data corresponding to the second target confidence data, and determine them as target recommended articles.
[0165] Steps S601 to S605 shown in the embodiment of the present application are for a multi-task linear semi-slot machine model under hierarchical Gaussian sampling. By grouping multiple article feature data, at least one grouped article data is obtained. For each grouped article data, the confidence upper bound of each article feature data in the grouped article data is summed to obtain confidence sum data. The confidence sum data corresponding to the multiple grouped article data are sorted to obtain a second confidence sequence. The confidence sum data with the largest value is selected from the second confidence sequence and determined as the second target confidence data. The grouped article data corresponding to the second target confidence data is obtained and determined as the target recommended article, thereby accurately selecting multiple target recommended articles for each user, which can improve the accuracy of article recommendation. In addition, since the Gaussian distribution data (advanced Gaussian distribution function) about the hyperparameters of the multi-task linear semi-slot machine model under hierarchical Gaussian sampling combines the recommended articles and rewards of each user, it is possible to establish connections between multiple users, realize article recommendation based on the correlation between users, and improve the relevance of article recommendation.
[0166] In step S601 of some embodiments, multiple article feature data are grouped according to labels such as article type / field to form at least one grouped article data, and the number of article features contained in each grouped article data is not necessarily the same. The labels used for classification need to be selected in combination with the actual application scenario, but are not limited to this.
[0167] Then, for each group of article data, the confidence upper bound corresponding to each article feature data in the group of article data is summed up to obtain the confidence sum data.
[0168] Among them, the confidence sum data can be expressed as Among them, A is the grouped article data;
[0169] Next, the confidence sum data corresponding to the plurality of grouped article data are sorted by numerical value to obtain a second confidence sequence, and then the confidence sum data with the largest numerical value is selected from the second confidence sequence. and determined as second target confidence data;
[0170] Finally, the grouped article data corresponding to the second target confidence data is obtained and determined as the target recommended article set A s,t .
[0171] It should be noted that the sorting process can be sorted from large to small according to the numerical value, or from small to large according to the numerical value. The specific selection needs to be made in combination with the actual application scenario, and is not limited to this.
[0172] The embodiment of the present application can extend the confidence upper bound calculation method of the hierarchical Bayesian UCB algorithm from "the upper bound of feature data of one article" to "the sum of the upper bounds of feature data of multiple articles in grouped article data", and extend the hierarchical Bayesian UCB algorithm to the hierarchical Bayesian UCB semi-slot setting, thereby making the article recommendation method based on the hierarchical Bayesian algorithm have a broader application scenario.
[0173] See also Figure 7 In some embodiments, step S106 may include but is not limited to steps S701 to S704:
[0174] Step S701, obtaining user feedback information; wherein the feedback information is used to characterize the user's viewing behavior of the target recommended article;
[0175] Step S702, constructing recommendation reward information based on feedback information and user feature data;
[0176] Step S703, updating the article recommendation record based on the target recommended article and the recommendation reward information; wherein the article recommendation record includes each user's historically recommended articles and the recommendation reward information corresponding to the historically recommended articles, and the historically recommended articles are determined by the article recommendation model;
[0177] Step S704, updating the Gaussian distribution data based on the updated article recommendation record to update the article recommendation model; wherein the updated article recommendation model is used for the next article recommendation.
[0178] In the steps S701 to S704 shown in the embodiment of the present application, whether in a multi-task linear slot machine model under hierarchical Gaussian sampling or a multi-task linear semi-slot machine model under hierarchical Gaussian sampling, by collecting the user's viewing behavior of one / multiple target recommended articles as feedback information, and combining the user's characteristic data to construct the recommendation reward information, the recommendation effect can be evaluated in real time and the recommendation strategy can be adjusted, and the article recommendation record can be continuously self-optimized and updated, thereby improving the accuracy and personalization of the recommendation. Furthermore, by updating the Gaussian distribution data in the article recommendation model, the user's preferences and behavior patterns can be continuously learned to provide more accurate and efficient candidate articles for the next article recommendation. The formation of a closed-loop feedback learning mechanism helps to build a continuously evolving article recommendation model, thereby improving the accuracy of article recommendations.
[0179] In some embodiments, the recommendation reward information is recorded as Y s,t ;
[0180] Since the number of target recommended articles selected by the multi-task linear semi-slot machine model under hierarchical Gaussian sampling is multiple, the recommendation reward information of the multi-task Bayesian semi-slot machine model is recorded as:
[0181]
[0182] For a user, the article recommendation record is updated based on the target recommended articles and recommendation reward information determined for the user, specifically:
[0183] in, All article recommendation records before the tth article recommendation for this user;
[0184] After all the article recommendation records corresponding to all users are updated, the total article recommendation records H are obtained. t+1 =(H s,t+1 ) s∈[n] , specifically, the article recommendation records of all users before the tth article recommendation.
[0185] Next, based on the updated article recommendation record Ht+1 For Gaussian distribution data Q t Update to update the article recommendation model. Specifically, the updated Gaussian distribution data is recorded as
[0186] It should be noted that the updated article recommendation model is used for the next article recommendation. In the next article recommendation, if there are newly added users, this can be done by transferring knowledge based on the advanced posterior distribution function constructed based on the previously executed article recommendation task, which can alleviate the model cold start problem, improve the accuracy and relevance of article recommendations, and effectively improve the quality of recommendations for new users.
[0187] In some embodiments, the regret bound verification is performed on the multi-task linear slot machine / semi-slot machine model under the hierarchical Gaussian sampling proposed in the embodiment of the present application. The specific verification process is as follows:
[0188] First, define For any ε>0, then the multi-task Bayes regret Broken down into three parts:
[0189]
[0190] For the following two terms 1{Δ s,t <∈,E s,t}and Can be used to control.
[0191] For the first item, the confidence upper bound calculation method provided in the embodiment of the present application can be used to control the upper bound.
[0192] Then through algebraic control size;
[0193] A logarithmic regret bound of the order of O(mlog(mn)logn) can be obtained (the logarithmic regret bound for the number of iterations n in each task in the sense of the average regret bound).
[0194] For any iteration round t, let |S t |=1, assuming that the action space A is finite, then in the setting of a multi-task Gaussian linear slot machine, for any δ∈(0,1),∈>0, the Bayesian regret of the hierarchical Bayesian UCB algorithm is The upper bound of is as follows:
[0195]
[0196] Where c1, c2 are constants. λ1(M) represents the maximum eigenvalue of the matrix M. If δ=1 / (mn),∈=1 / (mn), the above regret bound is of the order of O(mlog(mn)logn).
[0197] In addition, for any iteration round t, let |S t |=1, assuming that the action space A is finite, in the setting of multi-task Gaussian linear semi-slot machine, for any δ∈(0,1),∈>0, the Bayesian regret of the hierarchical Bayesian UCB algorithm is The upper bound of is as follows:
[0198]
[0199] Where c4 is a constant.
[0200] In some embodiments, the embodiments of the present application compare the regret bounds of Bayesian slot machine algorithms at different levels. The Bayesian regret bounds of Bayesian slot machine algorithms at different levels for a multi-task d-dimensional linear (or K-arm) slot machine problem are shown in Table 1 below.
[0201] Where m is the number of tasks, n is the number of iterations for each task, and A is the action space. Bayesian regret bound = bound I + bound II + negligible terms, where bound I is the regret bound for solving m tasks, and bound II is the hyperparameter μ * , K is the size of the action space A.
[0202]
[0203] Table 1
[0204] In addition, the regret bounds of different levels of Bayesian semi-slot machine algorithms are compared. The Bayesian regret bounds of different levels of Bayesian semi-slot machine algorithms for the multi-task d-dimensional linear semi-slot machine problem are shown in Table 2 below.
[0205] Where m is the number of tasks, n is the number of iterations for each task, and A is the action space. Bayesian regret bound = bound I + bound II + negligible terms, where bound I is the regret bound for solving m tasks, and bound II is the hyperparameter μ * , K is the size of the action space A, and L is the number of actions selected in each iteration (1≤L≤K).
[0206]
[0207] Table 2
[0208] The multi-task linear prediction / semi-prediction model under hierarchical Gaussian sampling proposed in the embodiment of the present application can achieve a better confidence upper bound. In the hierarchical Bayesian UCB prediction algorithm, the advanced posterior distribution Q t The mean and variance Count every move The confidence upper bound of Then select the action with the largest confidence upper bound Compared with the hierarchical Thompson sampling algorithm HierTS first calculates the task parameter θ through the Bayesian rule s,t The posterior probability distribution function is used to sample θ from the posterior probability distribution function. s,t , then select Action Compared with hierarchical Bayes Thompson sampling, the hierarchical
[0209] The Bayesian UCB algorithm does not need to calculate the task parameters θ s,t The posterior probability distribution function can greatly simplify the complexity of program operation. At the same time, the theoretical verification process also shows that the hierarchical Bayesian UCB slot machine algorithm can achieve less regret than the hierarchical Thompson sampling slot machine algorithm.
[0210] In addition, in the theoretical analysis of the hierarchical Bayesian UCB slot machine algorithm, the embodiment of the present application chooses to decompose the regret into three parts: the regret when the confidence upper bound holds and the slot machine task distribution interval is greater than a certain threshold, the regret when the confidence upper bound holds and the slot machine task distribution interval is not greater than a certain threshold, and the regret when the confidence upper bound does not hold. Using this set of regret bound analysis methods, the present application provides an improved regret bound for the hierarchical Bayesian UCB slot machine algorithm.
[0211] Moreover, the embodiment of the present application can extend the confidence upper bound calculation method of the hierarchical Bayesian UCB algorithm from "the upper bound of feature data of one article" to "the sum of the upper bounds of feature data of multiple articles in grouped article data", and extend the hierarchical Bayesian UCB algorithm to the hierarchical Bayesian UCB semi-slot setting, thereby making the article recommendation method based on the hierarchical Bayesian algorithm have a broader application scenario.
[0212] Furthermore, the hierarchical Bayesian algorithm under the multi-task semi-slot machine setting provided in the embodiment of the present application may include not only the Bayesian UCB algorithm, but also the Thompson sampling algorithm or other Bayesian slot machine algorithms. For example, the hierarchical Thompson sampling algorithm HierTS can be extended to the semi-slot machine setting: first, the Bayesian rule is used to calculate the task parameter θ s,t The posterior probability distribution function is used to sample θ from the posterior probability distribution function. s,t , and then use offline tools to calculate the optimal action set Thus, we obtain the hierarchical Thompson sampling algorithm under the multi-task semi-slot machine setting.
[0213] It should be noted that the multi-task linear machine / semi-slot machine model under hierarchical Gaussian sampling provided in the embodiment of the present application can be applied to application scenarios such as clinical trials and dynamic product pricing in addition to the article recommendation application scenario proposed in the present application.
[0214] For example, in a clinical trial application scenario:
[0215] Desired goal: To improve the accuracy of the evaluation of the effectiveness of treatment plans for patients in clinical trials, promote effective drug development, and improve patient recovery efficiency.
[0216] Input: representation vectors (i.e., action vectors) of different treatment options (such as different drugs, or different drug doses), and hierarchical Bayesian modeling of the relationship between different patients.
[0217] Processing: By modeling the relationship between different patients as a hierarchical Bayesian model, the hierarchical Bayesian UCB algorithm is used to select different treatment plans for different patients, and the patient's feedback on the treatment plan is recorded. The statistical characteristics of the hierarchical Bayesian model (such as the mean and variance of the advanced prior distribution) are updated in real time according to the historical records.
[0218] Results: The hierarchical Bayesian model was used to realize the transfer of beneficial information between different patients (especially patients with similar diseases), improve the accuracy of the evaluation of the effectiveness of treatment plans for patients in clinical trials, and improve the efficiency of patient recovery.
[0219] In the product dynamic pricing application scenario:
[0220] Desired goal: Improve the pricing accuracy of released products in response to market demand, promote product sales, and improve the economic benefits of product launch manufacturers.
[0221] Input: Different pricing for different products and corresponding sales feedback, feature vector representation of different products.
[0222] Processing: By modeling the relationship between different products as a hierarchical Bayesian model, using the hierarchical Bayesian UCB algorithm to dynamically price different products, record the market feedback on the pricing of various products and update the statistical characteristics of the hierarchical Bayesian model (such as the mean and variance of the advanced prior distribution) in real time based on historical records.
[0223] Results: The hierarchical Bayesian model can realize the transfer of beneficial information between different products (especially similar products), improve the accuracy of product pricing, promote product sales, and improve the economic benefits of product release manufacturers.
[0224] See also Figure 8 The embodiment of the present application also provides an article recommendation device, which can implement the above-mentioned article recommendation method, and the device includes:
[0225] The article data acquisition module 801 is used to acquire an article data set and perform feature processing on the article data set to obtain article feature data; wherein the number of article feature data is multiple, and each article feature data corresponds to an article;
[0226] The user data acquisition module 802 is used to acquire a user data set and perform feature processing on the user data set to obtain user feature data; wherein the number of user feature data is multiple, and each user feature data corresponds to one user;
[0227] A recommendation model building module 803 is used to build an article recommendation model based on article feature data and user feature data;
[0228] A recommended article determination module 804 is used to determine a target recommended article from a plurality of article feature data for each user through an article recommendation model;
[0229] The article recommendation module 805 is used to recommend target recommended articles to users.
[0230] The specific implementation of the article recommendation device is basically the same as the specific implementation of the above-mentioned article recommendation method, and will not be repeated here.
[0231] The embodiment of the present application also provides an electronic device, the electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the above article recommendation method when executing the computer program. The electronic device can be any smart terminal including a tablet computer, a car computer, etc.
[0232] See also Fig. 9 , Fig. 9 The hardware structure of an electronic device of another embodiment is illustrated, and the electronic device includes:
[0233] The processor 901 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application;
[0234] The memory 902 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 902 can store an operating system and other application programs. When the technical solution provided in the embodiment of this specification is implemented by software or firmware, the relevant program code is stored in the memory 902, and the processor 901 calls and executes the article recommendation method of the embodiment of this application;
[0235] Input / output interface 903, used to implement information input and output;
[0236] Communication interface 904, used to realize communication interaction between the device and other devices, which can be realized by wired mode (such as USB, network cable, etc.) or wireless mode (such as mobile network, WIFI, Bluetooth, etc.);
[0237] A bus 905 that transmits information between various components of the device (e.g., the processor 901, the memory 902, the input / output interface 903, and the communication interface 904);
[0238] The processor 901 , the memory 902 , the input / output interface 903 and the communication interface 904 are connected to each other in communication within the device via a bus 905 .
[0239] An embodiment of the present application also provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the above-mentioned article recommendation method is implemented.
[0240] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0241] The article recommendation method, device, electronic device and storage medium provided in the embodiments of the present application obtain article data sets and perform feature processing on the article data sets to obtain article feature data; wherein the number of article feature data is multiple, and each article feature data corresponds to an article; obtain user data sets and perform feature processing on the user data sets to obtain user feature data; wherein the number of user feature data is multiple, and each user feature data corresponds to a user; construct an article recommendation model based on the article feature data and the user feature data, so as to establish a connection between multiple users and implement article recommendation according to the correlation between users; for each user, determine a target recommended article from multiple article feature data through the article recommendation model; recommend the target recommended article to the user, thereby improving the accuracy and relevance of the article recommendation.
[0242] The embodiments described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Those skilled in the art will appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
[0243] Those skilled in the art will appreciate that the technical solutions shown in the figures do not constitute a limitation on the embodiments of the present application, and may include more or fewer steps than shown in the figures, or a combination of certain steps, or different steps.
[0244] The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0245] Those skilled in the art will appreciate that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices may be implemented as software, firmware, hardware, or a suitable combination thereof.
[0246] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0247] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.
[0248] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the above units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. The mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0249] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0250] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0251] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including multiple instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store programs.
[0252] The preferred embodiments of the present invention are described above with reference to the accompanying drawings, but the scope of the rights of the present invention is not limited thereto. Any modification, equivalent substitution and improvement made by a person skilled in the art without departing from the scope and essence of the present invention should be within the scope of the rights of the present invention.
Claims
1. An article recommendation method, characterized in that: The method comprises: Acquire an article data set, and perform feature processing on the article data set to obtain article feature data; wherein the number of the article feature data is multiple, and each of the article feature data corresponds to an article; Acquire a user data set, and perform feature processing on the user data set to obtain user feature data; wherein the number of the user feature data is multiple, and each user feature data corresponds to one user; Building an article recommendation model based on the article feature data and the user feature data; For each of the users, determining a target recommended article from the plurality of article feature data by using the article recommendation model; The target recommended article is recommended to the user.
2. The method according to claim 1, characterized in that Determining a target recommended article from the plurality of article feature data by using the article recommendation model includes: Determine Gaussian distribution data of the article recommendation model; Sampling the Gaussian distribution data to obtain distribution characteristic data; Calculate the confidence upper bound of each of the article feature data according to the distribution feature data; The target recommended article is determined from the plurality of article feature data based on the confidence upper bound.
3. The method according to claim 2, characterized in that The distribution characteristic data includes distribution mean characteristic data and distribution variance characteristic data; the upper limit of the confidence level of each article characteristic data is calculated according to the distribution characteristic data, including: Perform a first feature calculation based on the article feature data and the distribution mean feature data to obtain first feature data; Performing a second feature calculation based on a preset confidence factor, the article feature data, and the distribution variance feature data to obtain second feature data; An aggregate calculation is performed based on the first feature data and the second feature data to obtain the upper limit of the confidence level.
4. The method according to claim 2, characterized in that: After recommending the target recommended article to the user, the method further includes: Acquiring feedback information from the user; wherein the feedback information is used to characterize the user's viewing behavior of the target recommended article; Constructing recommendation reward information according to the feedback information and the user characteristic data; The article recommendation record is updated based on the target recommended article and the recommendation reward information; wherein the article recommendation record includes each of the user's historically recommended articles and the recommendation reward information corresponding to the historically recommended articles, and the historically recommended articles are determined by the article recommendation model; The Gaussian distribution data is updated based on the updated article recommendation record to update the article recommendation model; wherein the updated article recommendation model is used for the next article recommendation.
5. The method according to claim 2, characterized in that: The determining the target recommended article from the plurality of article feature data based on the confidence upper bound comprises: Sorting the confidence upper bounds corresponding to the plurality of article feature data to obtain a first confidence sequence; Selecting the confidence upper bound with the largest value from the first confidence sequence, and determining it as the first target confidence data; The article feature data corresponding to the first target confidence data is obtained, and the article is determined to be recommended as the target.
6. The method according to claim 2, characterized in that The determining the target recommended article from the plurality of article feature data based on the confidence upper bound comprises: Grouping the plurality of article feature data to obtain at least one grouped article data; For each group of article data, the confidence upper bound of each article feature data in the group of article data is summed up to obtain confidence sum data; Sorting the confidence sum data corresponding to the plurality of grouped article data to obtain a second confidence sequence; Selecting the confidence sum data with the largest value from the second confidence sequence, and determining it as the second target confidence data; The grouped article data corresponding to the second target confidence data is obtained, and is determined to be the target recommended article.
7. The method according to any one of claims 1 to 6, characterized in that: The feature processing of the article data set to obtain article feature data includes: Performing data preprocessing on the article data set to obtain target article data; Feature extraction is performed on the target article data to obtain the article feature data.
8. An article recommendation device, characterized in that: The device comprises: An article data acquisition module is used to acquire an article data set, and perform feature processing on the article data set to obtain article feature data; wherein the number of the article feature data is multiple, and each article feature data corresponds to an article; A user data acquisition module is used to acquire a user data set and perform feature processing on the user data set to obtain user feature data; wherein the number of the user feature data is multiple, and each user feature data corresponds to one user; A recommendation model building module, used to build an article recommendation model based on the article feature data and the user feature data; A recommended article determination module, used for determining a target recommended article from a plurality of article feature data for each of the users through the article recommendation model; The article recommendation module is used to recommend the target recommended article to the user.
9. An electronic device, characterized in that: The electronic device comprises a memory and a processor, the memory stores a computer program, and the processor implements the method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Methods and systems for recommending network information and creating network resource index
CN102054003A
Recommendation processing method and processing system for related articles
CN103049440A
Dynamic label similarity article recommendation system and method based on NLP model
CN117743689A
Article Recommendation Method and Apparatus, Computer Device, and Storage Medium
US20200364506A1
