News recommendation method and system based on user reading time behavior
By analyzing user reading time behavior and news timeliness, combined with attention mechanism and spy algorithm, we solve the problems of timeliness, misleading titles and single content of the news recommendation system, achieve personalized and diversified news recommendations, and improve User experience and recommendation quality.
Patent Information
- Application Number
- CN202110258628.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-03-09
- Publication Date
- 2024-09-24
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing news recommendation systems are difficult to provide high-quality and diversified personalized recommendations when faced with the timeliness of news, misleading titles, and singleness of recommended content. In particular, the recommendation effect is not good for new users and unclicked news.
By analyzing users' reading time behavior, we abstract personalized reading speed, combine it with news timeliness, use attention mechanism and spy algorithm to measure users' interest in news, and distinguish between news that users are really not interested in and news that is potentially interesting. Optimize recommendation results.
It improves the accuracy and diversity of news recommendations, reduces information fatigue, ensures users' discovery of important news, and enhances the quality and user experience of the recommendation system.
Smart Images

Figure CN113065062B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of personalized news recommendation, and in particular to a recommendation system for performing personalized news recommendation based on user reading time. Background Art
[0002] With the continuous development of information technology and the Internet, people have gradually entered the era of information overload from the era of information scarcity. In this era, both information consumers and information producers face great challenges. For information consumers, it is very difficult to obtain valuable information from a large amount of information; for information producers, it is also very difficult to make their information stand out and present it to information consumers. In order to solve the problem of information overload, two major tools, search engines and recommendation systems, have been born. Nowadays, recommendation systems have gradually been applied in various fields of the Internet. They mainly analyze users' interests and hobbies through historical behavior records and make recommendations for users, including e-commerce recommendations, personalized advertising recommendations, and news recommendations. For example, recommendation systems are widely used in products such as Taobao, Toutiao, and Douyin short videos.
[0003] When the amount of recommended data and users grow on a large scale, the complexity of the recommendation system will also grow synchronously. At present, the mainstream recommendation algorithms include collaborative filtering recommendation algorithm, content-based recommendation algorithm, etc. Among them, collaborative filtering recommendation methods are mainly divided into two types: item-based collaborative filtering and user-based collaborative filtering. The basic idea of item-based collaborative filtering is to find the similarity between items based on the user's evaluation of the items, and then recommend similar items to the user based on the user's historical preference information. The basic idea of user-based collaborative filtering is to find neighbor users with similar interests to the target user, and recommend items that the neighbor users are interested in and the target user has not used to the target user. The collaborative filtering algorithm does not need to obtain the feature data of items or users in advance, and only relies on the user's historical behavior to recommend to the user. However, for new users, there will be a cold start problem due to the lack of historical data, which will have a certain impact on the recommendation effect. The content-based recommendation algorithm directly recommends items similar to the content that the user is interested in. For example, if the user likes sports, the system will recommend sports equipment. This process does not require the user's historical behavior data, so it can solve the cold start problem of recommendations. However, content-based recommendations require accurate description of the classification of items during the preprocessing process. The accuracy of this part of the work will have a great impact on the accuracy of the recommendation system. In addition, content-based recommendation algorithms often give similar recommendation results, and the popularity of the recommendation results is very low and lacks novelty.
[0004] This paper mainly studies the personalized recommendation system of news. Different from other recommendation systems such as e-commerce recommendation and advertising recommendation, news recommendation has the following challenges: (1) News is highly sensitive to time, has strong timeliness, and is updated quickly. Studies have shown that about 85% of news articles will no longer be displayed on the news homepage two days after their first appearance. Therefore, for news recommendation, the time when the news is generated is a very important influencing factor; (2) The title of the news is highly condensed, while the length of the text is relatively long. Statistical results show that the length of a news title is generally 5 to 15 words, while the length of the content is generally more than 200 words. In some cases, it is inaccurate to predict the user's interest in the news text through a highly condensed news title, especially for news with misleading titles, such as the more common clickbait. After clicking on such news, users may be disappointed with the content; (3) People are only interested in a few specific news categories when reading news. In the past, recommendation systems used user usage data or browsing history information on news clients for analysis and integration, and pushed news that met the user's information needs. This had a certain effect, but in the long run, users would experience information fatigue when receiving similar information, and important news would be ignored due to the precise distribution of algorithm recommendations. Users are prone to ignore other news that they may be interested in. Therefore, for news that users have not clicked on, certain algorithms are needed to recommend it. Summary of the invention
[0005] The main purpose of the present invention is to solve the above-mentioned problems existing in the existing news recommendation system to a certain extent. The present invention provides a personalized news recommendation method based on the user's reading time behavior. The method generates a "personalized reading speed" for each user by analyzing the time information when the user reads the news, and then makes recommendations based on the timeliness of the candidate news. For the news that has been exposed but not read, the method uses a "spy algorithm" to distinguish between news that the user is really not interested in and news that has potential interest, thereby ensuring the quality and diversity of the recommended news. The present invention is used to solve the problems of timeliness, misleading titles, and singleness of recommended content in personalized news recommendation systems.
[0006] The innovative features of the present invention are:
[0007] (1) The reading time behavior of each user is abstracted into "personalized reading speed", and based on this, an attention mechanism is introduced to measure the different degrees of influence of the user's historical click news on the candidate news.
[0008] (2) For news that has been exposed but not clicked by users, a "spy algorithm" is introduced to distinguish between news that users are truly not interested in and news that they are potentially interested in, thereby ensuring the quality and diversity of recommended news.
[0009] To achieve the above object, the present invention provides a news recommendation method based on user reading time behavior.
[0010] The specific steps are:
[0011] (1) Extract various information about the news read by the user from the user's behavior log, such as news title, reading time, news release time, etc.;
[0012] (2) For each extracted news item, a convolutional neural network is used to construct a personalized representation of the news item;
[0013] (3) Since users have different interests in each piece of news they browse, different news are given different weights through the attention mechanism;
[0014] (4) All the news that a user has read within a certain period of time is weighted and aggregated to represent the user's interests, which can be used as the user's feature representation;
[0015] (5) For news that has been exposed but not clicked by users, a "spy algorithm" is used to find news that users are potentially interested in, and these are added to the candidate news to be recommended together with the newly generated news that has not been recommended for processing;
[0016] (6) Calculate the similarity between candidate news to be recommended and user features, and recommend news with higher similarity.
[0017] This recommendation method mainly measures the user's interest in the news by reading the user's reading time information for each piece of news. It mainly includes three aspects: the first is the release time of the news. Since news has a strong timeliness, usually, the news with a recent release time is more suitable for recommendation to users; the second is the length of time the user spends reading a piece of news. This indicator can more accurately reflect the user's interest in the news. If the user clicks on the news because of the temptation of the title, but finds that he is not interested after browsing the content, the reading time will generally be very short. This is very common in some "clickbait" news. The longer the reading time, the more likely the news is to be recommended. The higher the accuracy, the more accurate the reading time is. However, since the reading time is also affected by the length of the news, the reading time per unit word should be used to measure the user's reading time to eliminate the influence of the length of the news on the reading time. However, further consideration is that the reading speed of each user is also different. The time required for different users to finish reading the same news is also different. Therefore, the present invention proposes a concept of "personalized reading speed". First, the number of words read per unit time of all the news read by the user is calculated as the average reading speed v through the user's historical reading behavior. For a specific news, the number of words read per unit time is calculated as the reading speed v ti , through vti The ratio of the reading speed v to the average reading speed can well describe the user's reading speed for the specific news. When the ratio is greater than 1, it means that the user's reading speed is faster than the average reading speed, and the user may have hurriedly skipped it and has general interest in it. When the ratio is less than 1, it means that the user's reading speed is slow, indicating that the user has a certain interest in it and is reading it carefully. Therefore, the present invention uses the user's reading speed v for a certain news as the reading speed v of the user. ti The ratio to the average reading speed v is defined as personalized reading speed, which can measure the user's interest in the news; the third part is news with a user reading time of 0, that is, news recommended to users but not clicked by users. For this part of news, it is inappropriate to directly classify it as users are not interested, because there are various reasons why users do not click, for example, there may be too many news displayed on the page and users do not have time to read all of them. On the other hand, this part of news is the news that the recommendation system has selected after calculation and is considered to be liked by users. If these news are directly listed as negative samples and similar news is no longer recommended, it will cause contradictions. In subsequent recommendations, the system will be more inclined to recommend news with higher popularity and will not recommend news with relatively fewer clicks. This will cause the recommendation system to fail to meet the recommendation diversity problem. To resolve this contradiction, the present invention proposes a spy algorithm. The specific operation is to take the news that the user has clicked and carefully browsed as the positive sample set P, randomly select a subset S from the positive sample set P, add S to the unclicked news set as the negative sample set N, and then train an SVN classification model, use the trained classifier to score the samples in the set N, and after scoring, calculate the average score of the spy set S, classify the samples with scores lower than the score in the negative sample set N as negative samples, and do not classify the samples with scores higher than the score into negative samples. In this way, the news that the user is really not interested in can be effectively distinguished.
[0018] The present invention mainly solves two problems. The first is to filter out the interest embedding deviation caused by user's misclicks through personalized reading speed and other indicators, and give a lower weight to the news that is obviously read faster and hastily skipped, so as to correct the user's interest model; the second is to use the spy algorithm to reclassify the news that is exposed by the recommendation system but not clicked by the user, instead of classifying it as negative samples. This method can increase the recommendation probability of such news in the future, which is conducive to improving the diversity of the recommendation system. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 A flowchart of a news recommendation system based on user reading time behavior provided by the present invention.
[0020] Figure 2Schematic diagram of users' different reading time behaviors. DETAILED DESCRIPTION
[0021] The present invention relates to a recommendation system for personalized news recommendation based on user reading time. In order to more clearly demonstrate the technical solution of the present invention, the technical solution of the present invention is further described in detail below in conjunction with the accompanying drawings.
[0022] like Figure 1 As shown, the news recommendation method includes the following steps:
[0023] In step (1), the information about the news read by the user is extracted from the user's behavior log to obtain the click history of user i. Each log mainly contains information such as timestamp, user ID, news title, etc. The user's click history is represented as in is the jth news title clicked by user i, N is the total number of news clicked by user i, t = [w1, w2, w3, ...] represents the title of the news, w i is a word in the news title. This step extracts the news information preliminarily and performs corresponding preprocessing.
[0024] In step (2), the news title t in step (1) is converted into an embedding matrix W through the word vector model, and the submatrix W of W is i,i+l-1 Perform convolution operation to obtain features After performing convolution operation on each sub-matrix, the feature map can be obtained:
[0025]
[0026] Where h is the convolution kernel, l is the size of the convolution kernel, and f is a nonlinear function. By using multiple convolution kernels of different sizes, multiple features can be obtained. Finally, these features are concatenated together to form the final news representation vector:
[0027] e(t)=[C h1 C h2 ......C hm ] (2)
[0028] In step (3), since users have different interests in different news, it is necessary to calculate the weight of different news in the user's preferences. The present invention uses the attention mechanism to calculate. As input, with the current candidate news t j The representation vector e(t j ) Calculate the normalized influence weight:
[0029]
[0030] This indicator can describe the degree of influence of the historical news read by the user on the news to be recommended.
[0031] In step (4), personalized reading speed is introduced to indicate the user's interest in different news:
[0032]
[0033] in, Indicates the number of words read per unit time by user i when reading news j. This indicator describes the reading speed of user i when reading news j. Indicates the number of words read in all historical news read by user i in a unit of time. This indicator describes the average reading speed of user i. Figure 2 As shown, the user's reading speed can reflect the user's interest in the current news, and the personalized reading speed It can measure the comparison between user i’s reading speed of news j and his average reading speed. When the ratio is greater than 1, it means that the user’s reading speed is faster than the average reading speed, and the user may have hurriedly skipped it, and the user is generally interested in it. When the ratio is less than 1, it means that the user’s reading speed is slow, indicating that the user has a certain interest in it. As one of the weights of the user's interest in news, the embedding representation of the current user can be obtained:
[0034]
[0035] Given the embedding representation e(i) of user i and the embedding representation e(t j ), after similarity calculation, the matching probability between candidate news j and user i can be calculated as: D(e(i), e(t j )), and because news has a strong timeliness, the release time of news should also be used as an important criterion for recommendation. Select the news timeliness coefficient α, 0≤α≤1, then the predicted probability of user i clicking on news j is:
[0036]
[0037] Since 85% of news articles will no longer be displayed on the news homepage two days after their first appearance, the value range of the news timeliness coefficient α is:
[0038] α 发布时间<2天 =1;α 2天<发布时间<5天 =0.15; α 发布时间>5天 =0 (7)
[0039] In step (5), for news with a reading time of 0, that is, news recommended to users but not clicked, the spy algorithm is used. The news that user i has clicked and carefully browsed is taken as the positive sample set P. A subset S is randomly selected from the positive sample set P and added to the unclicked news set as the negative sample set N. Then, an SVN classification model is trained and the trained classifier is used to score the samples in the negative sample set N. After scoring, the average score of the spy set S is calculated. Since the set S is the news that the user has clicked, it can represent the user's interest score. Therefore, the samples with scores lower than score in the negative sample set N are classified as negative samples, and the samples with scores higher than score are not classified as negative samples. This step can improve the diversity of the recommendation system.
[0040] The invention is based on the time information feature when users read news. Firstly, the recommendation weight of news with too short reading time is reduced, and some news that users clicked by mistake are filtered out, so that the user preference model is more accurate; secondly, the value of the news timeliness coefficient is determined by the release time of the news, and the recommendation weight of outdated news is reduced. Finally, for news that users have not clicked, a spy algorithm is used to judge the user's interest in it, so as to prevent the recommendation system from classifying it as a negative sample, and preventing the single phenomenon of only recommending some hot spots in subsequent recommendations. This process can improve the diversity of the recommendation system.
[0041] The above-mentioned implementation is only a preferred implementation of the present invention and cannot be used to limit the protection scope of the present invention. Any non-substantial changes and substitutions made by technicians in this field on the basis of the present invention belong to the scope of protection required by the present invention.
Claims
1. A news recommendation method based on user reading time behavior, characterized in that: The method comprises the following steps: Step (1) extracting various information of the news read by the user from the user's behavior log, including the news title, reading time, and news release time; Step (2) uses a convolutional neural network to construct a personalized representation of each extracted news item; Step (3) assigns different weights to different news through the attention mechanism; Step (4) weights and aggregates all the news that the user has read within a certain period of time to represent the user's interest direction, which is used as the feature representation of the user; Step (5) For news that has been exposed but not clicked by the user, a spy algorithm is used to find out news that the user is potentially interested in, and the news is added to the candidate news to be recommended together with the newly generated news that has not been recommended for processing; Step (6) calculating the similarity between the candidate news to be recommended and the user features, and recommending the news with the highest similarity; In step (4), personalized reading speed is introduced to indicate the user's interest in different news: in, It represents the number of words read per unit time by user i when reading news j, and describes the reading speed of user i when reading news j. Indicates the number of words read in all historical news read by user i in a unit of time, describing the average reading speed of user i; user reading speed reflects the user's interest in the current news, and personalized reading speed Measure the speed of user i reading news j compared with the average reading speed; personalize the reading speed As one of the weights of the user's interest in the news, the embedding representation of the current user is obtained: For a given user i, the embedding representation e(i) and candidate news t j The embedding representation e(t j ), after similarity calculation, the matching probability between candidate news j and user i is calculated as: D(e(i),e(t j )), and because news has a strong timeliness, the release time of news is also an important criterion for recommendation. Select the news timeliness coefficient α, 0≤α≤1, and then predict the probability of user i clicking on news j: p i,tj =α*D(e(i),e(t j )) (6) The value range of the news timeliness coefficient α is: when the release time is <2 days, α=1; when 2 days < When the release time is <5 days, α=0.15; when the release time is >5 days, α=0; In step (5), for news with a reading time of 0, that is, news recommended to users but not clicked, the spy algorithm is used. The news that user i has clicked and carefully browsed is taken as the positive sample set P. A subset S is randomly selected from the positive sample set P and added to the unclicked news set as the negative sample set N. Then, an SVN classification model is trained and the trained classifier is used to score the samples in the negative sample set N. After scoring, the average score of the spy set S is calculated. Since the set S is the news that the user has clicked, it represents the user's interest score. The samples with scores lower than the score in the negative sample set N are classified as negative samples, and the samples with scores higher than the score are not classified as negative samples.
2. A news recommendation method based on user reading time behavior according to claim 1, characterized in that: In step (1), the information of the news read by the user is extracted from the user's behavior log to obtain the click history of user i; each log contains a timestamp, user ID, and news title. The user's click history is expressed as in is the jth news title clicked by user i, N is the total number of news clicked by user i, t=[w1,w2,w3,…,w i ,…] indicates the title of the news, w i For a word in a news title, various information of the news is initially extracted and preprocessed accordingly.
3. The news recommendation method based on user reading time behavior according to claim 1, characterized in that: In step (2), the news title t in step (1) is converted into an embedding matrix W through the word vector model, and the submatrix W of W is i,i+l-1 Perform convolution operation to obtain features After performing convolution operation on each sub-matrix, the feature map is obtained: Where h is the convolution kernel, l is the size of the convolution kernel, and f is a nonlinear function. By using multiple convolution kernels of different sizes, multiple features are obtained, and finally these features are concatenated together to form the final news representation vector:
4. The news recommendation method based on user reading time behavior according to claim 1, characterized in that: In step (3), the weights of different news in the user's preferences are calculated using the attention mechanism; the historical news representation vector As input, with the current candidate news t j The representation vector e(t j ) Calculate the normalized influence weight: The normalized influence weight is used to describe the influence of the historical news read by the user on the news to be recommended.
