Content recommendation method, device, server and storage medium
By obtaining content from the first recall pool and the second recall pool, the problem of insufficient recommended content for cold-start users is solved, the recall quality and popularity are improved, the process is simplified, and efficient recommendation effects are achieved.
Patent Information
- Application Number
- CN202110340317.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-03-30
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2041-03-30
AI Technical Summary
When the existing technology cold-starts users to recommend content, the recall content is insufficient, the popularity and real-time nature of the recommended content cannot be guaranteed, and the process is cumbersome.
By receiving the content recommendation request from the terminal, the full amount of recalled content is obtained from the first recall pool based on user information, and when the recall amount is less than the threshold, the content determined based on historical recall records is obtained from the second recall pool to ensure that sufficient and High quality recommended content.
It improves the quality of content recall and the probability of users using recalled content, ensures the popularity and real-time nature of recommended content, simplifies the process, and avoids the simplification of recommended content.
Smart Images

Figure CN113010790B
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of computer technology, and in particular to a content recommendation method, device, server, and storage medium. Background Art
[0002] Content recommendation refers to selecting content from a recommended content library and recommending it to users. When selecting recommended content, it is usually necessary to combine user characteristics and historical behavior data, and recall content that users may be interested in from the recommended content library based on user characteristics and historical behavior data.
[0003] In the prior art, when a recommendation system recommends content to a new user or a cold-start user, it generally collects and statistics the user behavior received online or offline in real time and recalls the recommended content from the recommendation library. However, cold-start users often do not have sufficient user behavior data, resulting in insufficient recalled recommended content. Summary of the invention
[0004] The embodiment of the present application provides a content recommendation method, device, server and storage medium. The technical solution is as follows:
[0005] On the one hand, an embodiment of the present application provides a content recommendation method, the method comprising:
[0006] Receiving a content recommendation request sent by a terminal, wherein the content recommendation request includes user information;
[0007] Acquire first recall content from a first recall pool based on the user information, where the first recall pool includes all recall content;
[0008] In response to the recall amount of the first recalled content being less than a recall amount threshold, obtaining second recalled content from a second recalled pool, where the recalled content in the second recalled pool is determined based on historical recall records of the recalled content in the first recalled pool;
[0009] Pushing target recalled content to the terminal based on the first recalled content and the second recalled content.
[0010] On the other hand, an embodiment of the present application provides a content recommendation device, the device comprising:
[0011] A receiving module, configured to receive a content recommendation request sent by a terminal, wherein the content recommendation request includes user information;
[0012] A first recall module, configured to obtain first recall content from a first recall pool based on the user information, wherein the first recall pool includes all recall content;
[0013] a second recall module, configured to obtain second recalled content from a second recall pool in response to a recall amount of the first recalled content being less than a recall amount threshold, wherein the recalled content in the second recall pool is determined based on historical recall records of the recalled content in the first recall pool;
[0014] A push module is used to push target recalled content to the terminal based on the first recalled content and the second recalled content.
[0015] On the other hand, an embodiment of the present application provides a server, the live broadcast server includes a processor and a memory, the memory stores at least one program, and the at least one program is loaded and executed by the processor to implement the content recommendation method described in the above aspect.
[0016] On the other hand, an embodiment of the present application provides a computer-readable storage medium, wherein the storage medium stores at least one instruction, and the at least one instruction is used to be executed by a processor to implement the content recommendation method as described in the above aspect.
[0017] On the other hand, an embodiment of the present application provides a computer program product or a computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the content recommendation method provided in the above aspect.
[0018] The beneficial effects brought by the technical solution provided by the embodiment of the present application include at least:
[0019] According to the method provided in the embodiment of the present application, the server obtains the user information contained in the content recommendation request based on the content recommendation request sent by the terminal, and then obtains the first recalled content from the first recall pool based on the user information; in addition, considering the cold start phase, it is not enough to recall sufficient content from the first recall pool based on the user information alone, the second recalled content is obtained from the second recall pool, and the first recalled content and the second recalled content are pushed to the terminal to ensure that sufficient recommended content is pushed to the user; and since the second recalled content is determined based on the historical recall records of the recalled content in the first recall pool, the solution provided in the embodiment of the present application can improve the content recall quality and increase the probability of subsequent users using the recalled content while ensuring that sufficient content is recalled. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 A schematic diagram showing an implementation environment of a content recommendation method provided by an exemplary embodiment of the present application;
[0021] Figure 2is a flow chart of a content recommendation method provided by an exemplary embodiment of the present application;
[0022] Figure 3 A system architecture diagram of a recommendation system provided by an exemplary embodiment of the present application is shown;
[0023] Figure 4 is a flowchart of a content recommendation method provided by another exemplary embodiment of the present application;
[0024] Figure 5 is a flowchart of a content recommendation method provided by another exemplary embodiment of the present application;
[0025] Figure 6 is a flow chart of a second recall pool update process provided by an exemplary embodiment of the present application;
[0026] Figure 7 A schematic diagram of an implementation of a content recommendation method shown in an exemplary embodiment of the present application is shown;
[0027] Figure 8 is a structural block diagram of a content recommendation device provided by an exemplary embodiment of the present application;
[0028] Fig. 9 This is a structural block diagram of a server provided by an embodiment of the present application. DETAILED DESCRIPTION
[0029] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below in conjunction with the accompanying drawings.
[0030] In the related art, when the recommended content recalled by cold-start users is insufficient, most recommendation platforms supplement it by supplementing it with content with current high click volume or by manually configuring the content through operations. However, the method based on the search volume or click volume of the content cannot guarantee the popularity of the recommended content. The manual configuration method has poor real-time performance and a cumbersome process.
[0031] In the solution provided by the embodiment of the present application, the recommendation system selects content based on the acquired user information and pushes it to the user. At the same time, the content is summarized and counted online in real time to obtain the popularity data of the recently recommended content, that is, the latest popular recommended data. This mainly solves the problem that users cannot get enough recommended content from the recommendation system and the recommendations of cold-start users, ensures that the content with high recent recall popularity is pushed to the user, improves the content recall quality, and increases the probability of subsequent users using the recalled content.
[0032] Please refer to Figure 1, which shows a schematic diagram of an implementation environment provided by an embodiment of the present application. The implementation environment may include: a terminal 110 and a server 120.
[0033] An application with a push function is installed in the terminal 110, and the terminal may be an electronic device such as a mobile phone, a desktop computer, a tablet computer, a multimedia player, and a laptop computer. The application may be a music application, a social application, a shopping application, a news application, a video application, and a food application. In this embodiment, the user logs in to the corresponding user account by using the terminal 110 and sends a recommendation request to the server 120 to obtain the corresponding push content.
[0034] The terminal 110 is connected to the server 120 via a wireless network or a wired network.
[0035] The server 120 includes at least one of a server, multiple servers, a cloud computing platform, and a virtualization center. The server 120 provides background services for the application in the terminal 110. For example, the server 120 can be the background server of the application mentioned above. In the embodiment of the present application, the server 120 runs a recommendation system 121, which is used to recall the content that needs to be recommended from the massive content according to the user's recommendation request. The server 120 can receive the recommendation request sent from the terminal 110, obtain the recommended content from the recommendation system 121 according to the push request, and send the recommended content to the terminal 110; optionally, the server 120 is also used to store the account information corresponding to each account. For example, for music software, the server 120 can store the historical listening records, historical recommendation records, historical collection records, music purchase records, user comments and like records of the corresponding account, and the server 120 recommends songs to the user based on the stored record information. In addition, the server 120 can also store the social relationships between user accounts, determine other user accounts associated with them according to the social relationships, and then use the information of other accounts as the basis for recommendation.
[0036] Figure 2 is a flowchart of a content recommendation method provided by an exemplary embodiment of the present application. In this embodiment, the method is used for Figure 1 The method is described by taking the server in as an example. The method includes the following steps.
[0037] Step 201: receiving a content recommendation request sent by a terminal, wherein the content recommendation request includes user information.
[0038] When a user starts an application to obtain recommended content, the terminal is triggered to send a content recommendation request to the server. The content recommendation request contains the user account corresponding to the terminal. When the server receives the content push request sent by the terminal, it obtains the user information contained in the content push request. The user information may be the user's account identifier. The server obtains the account information corresponding to the account according to the account identifier. The user's account information may include at least one of user feature information and user behavior data. User feature information may include the user's gender information, age information, occupation information, and preference information; user behavior data may include the user's click operations on the application and browsing content.
[0039] Taking the terminal launching a music application as an example, when the user launches the music software and needs to obtain recommended songs, the terminal is triggered to send a recommendation request to the server by clicking on the song recommendation control. The server obtains the user information corresponding to the terminal based on the recommendation request sent by the terminal, including the account information for logging into the music software, the user's listening history, the user's preferred music style and other information.
[0040] Step 202: Obtain first recall content from a first recall pool based on user information, where the first recall pool contains all recall content.
[0041] like Figure 3 As shown, a recommendation system 320 is running in the server. The recommendation system 320 is used to recommend content to users based on user information obtained by the server. The recommendation system 320 consists of a first recall pool 321 and a second recall pool 322. The first recall pool 321 contains all recalled content.
[0042] The recommendation system obtains the first recall content from the first recall pool based on the obtained user information. The first recall pool contains all the recalled content for recommending content to the user. For example, when the application is music software, the corresponding first recall pool stores the music library, and the first recall content is the songs to be recommended based on the user information; when the application is news software, the corresponding first recall pool stores the news information library, and the first recall content is the news to be recommended based on the user information. The user information can be the recall content obtained based on at least one of the user's account information, user feature information, and user behavior data.
[0043] In a possible implementation, when the server receives a recommendation request sent by a terminal, the recommendation system classifies the user based on the obtained user account information and the corresponding user's age information, gender information, and occupation information. For example, if the user is determined to be born in the 1970s based on the user's age information, the attributes of the recalled songs will be positioned as classic old songs or opera music. If the user is born in the 2000s, more rock music and disc jockey (DJ) songs will be recommended. For example, if songs are recommended based on the user's gender information, when the user is a female, more songs sung by male singers will be recommended.
[0044] In another possible implementation, recommendations can also be made based on the user's historical listening records, such as obtaining the user's historical listening records for the past month, classifying and ranking the songs in the historical records, and if the top song types in the user's listening records are light music and folk songs, a certain proportion or a certain number of light music and folk songs are selected from the first recall pool. In addition, the user's preferences can also be determined based on the user behavior data obtained for the application, such as obtaining songs that are similar to the songs played by the user from the first recall pool based on the content of the songs played by the user.
[0045] In addition, related songs and other songs of singers can be obtained from the first recall pool by obtaining songs collected by the user or singers followed, or the first recall content can be selected according to the platform's listening rankings or download rankings. The embodiment of the present application does not specifically limit the method of selecting the first recall content.
[0046] Step 203, in response to the recall amount of the first recalled content being less than the recall amount threshold, obtaining second recalled content from the second recalled pool, where the recalled content in the second recalled pool is determined based on the historical recall records of the recalled content in the first recalled pool.
[0047] In one possible scenario, if the user sending the content recommendation request is a cold start user, that is, a user with no historical behavior data, such as a newly registered user, the server cannot obtain the user information contained in the recommendation request sent by the terminal, or the registered user has a short usage time, the user information data obtained by the server is not sufficient to obtain enough first recall content from the first recall pool, that is, the recall amount of the first recall content does not reach the recall amount threshold, and the content cannot be recommended to the user.
[0048] like Figure 3As shown, when the recall amount of the first recall content obtained from the first recall pool 321 is less than the set threshold, the second recall content needs to be obtained from the second recall pool 322, so that the recall amount of the recall content reaches the recall amount threshold or exceeds the recall threshold, ensuring that the terminal receives a certain amount of recommended content, so that the recommended content is not too little, affecting the user's reading. Among them, the recall content in the second recall pool 322 is determined based on the historical recall records recalled in the first recall pool 321, that is, the recall content stored in the second recall pool 322 is the first recall content in the historical recall records that meets certain conditions.
[0049] Illustratively, the server obtains a certain number of songs to be recommended from the first recall pool multiple times based on user information, and stores some songs from the songs to be recommended that have been recalled multiple times in the second recall pool. Figuratively speaking, the songs stored in the second recall pool are popular songs that have been recalled multiple times from the first recall pool.
[0050] Step 204: Push target recalled content to the terminal based on the first recalled content and the second recalled content.
[0051] In a possible implementation, when the sum of the recall amounts of the first recalled content and the second recalled content reaches a recall amount threshold, it is determined that the recommendation condition is met, the first recalled content and the second recalled content are determined as target recalled content, and the target recalled content is pushed to the terminal.
[0052] In another possible implementation, if the recall amounts determined by the first recall content and the second recall content are large, but it is not actually necessary to push all the recall content to the terminal, the first recall content and the second recall content may be screened to obtain the screened target recall content, and then the target recall content may be pushed to the terminal.
[0053] According to the method provided in the embodiment of the present application, the server obtains the user information contained in the content recommendation request based on the content recommendation request sent by the terminal, and then obtains the first recalled content from the first recall pool based on the user information; in addition, considering the cold start phase, it is not enough to recall sufficient content from the first recall pool based on the user information alone, the second recalled content is obtained from the second recall pool, and the first recalled content and the second recalled content are pushed to the terminal to ensure that sufficient recommended content is pushed to the user; and since the second recalled content is determined based on the historical recall records of the recalled content in the first recall pool, the solution provided in the embodiment of the present application can improve the content recall quality and increase the probability of subsequent users using the recalled content while ensuring that sufficient content is recalled.
[0054] Figure 4 is a flowchart of a content recommendation method provided by another exemplary embodiment of the present application. In this embodiment, the method is used for Figure 1The method includes:
[0055] Step 401: receiving a content recommendation request sent by a terminal, wherein the content recommendation request includes user information.
[0056] The implementation of this step may refer to step 201, and this embodiment will not be described in detail here.
[0057] Step 402: Obtain first recall content from a first recall pool based on user information, where the first recall pool contains all recall content.
[0058] The implementation of this step may refer to step 202, and this embodiment will not be described in detail here.
[0059] Step 403, in response to the recall amount of the first recalled content being less than the recall amount threshold, obtaining second recalled content from the second recalled pool, where the recalled content in the second recalled pool is determined based on the historical recall records of the recalled content in the first recalled pool.
[0060] In a possible implementation, for a cold-start user, the user information data obtained by the server is not sufficient to recall a sufficient amount of first recall content from the first recall pool, that is, the recall amount of the first recall content is less than the recall amount threshold. At this time, it is necessary to obtain the second recall content from the second recall pool so that the recall amount of the recall content reaches the recall amount threshold or exceeds the recall threshold. Therefore, if Figure 5 As shown, step 403 may also include the following steps.
[0061] Step 403A, based on the first recall amount and the recall amount threshold, determine the second recall amount, and the second recall amount is negatively correlated with the first recall amount.
[0062] Since the first recall amount of the first recall content obtained by the recommendation system based on the user information is less than the recall amount threshold, the second recall amount of the second recall content that needs to be recalled from the second recall pool is determined based on the first recall amount of the first recall content obtained and the set recall amount threshold. Generally, the second recall amount is negatively correlated with the first recall amount, that is, the more the recall amount of the first recall content, the less the second recall content needs to be obtained. For example, the second recall amount of the second recall content is determined based on the difference between the recall amount threshold set by the recommendation system and the first recall amount corresponding to the first recall content.
[0063] Illustratively, taking the example of a recommendation system recommending songs to a terminal, the recommendation system recalls 21 songs from the first recall pool based on user information. However, taking into account the user's daily listening time and the length of each song, the recommendation system sets the number of songs recommended to the user to 30. Since the user information data is not sufficient to obtain a sufficient number of recommended songs, the recommendation system selects at least 9 songs from the second recall pool as supplementary songs so that the number of recommended songs reaches or exceeds 30, meeting the push conditions.
[0064] Step 403B: Obtain the second recall content of the second recall amount from the second recall pool.
[0065] The recall amount of the second recall content is determined according to the difference between the recall amount threshold and the recall amount corresponding to the first recall content, and the second recall content with the second recall amount is selected from the second recall pool.
[0066] Since the recall content in the second recall pool is determined based on the historical recall records of the recall content in the first recall pool, the second recall content selected from the second recall pool is not obtained based on user information, but is a popular recall content determined by the recommendation system based on the number of times the content was recalled when the content was recommended to other users in the past. Therefore, when the first recall amount does not exceed the recall threshold, the second recall content can be supplemented to provide users with content with higher recall popularity to meet users' demand for popular content.
[0067] In one possible implementation, the recall amount of the first recalled content obtained based on the user information is relatively close to the recall amount threshold, but the value of the second recall amount determined by the difference between the recall amount threshold and the corresponding recall amount of the first recalled content is relatively small. The content pushed to the user in this recommendation manner may all be of the same type or with the same tag attribute, which easily results in the uniformity of the pushed content and reduces the user experience. Therefore, on the basis of ensuring the second recall amount, the second recall amount is appropriately increased, such as setting the second recall amount to be an integer multiple of the difference between the recall threshold and the first recall amount. In this way, it can ensure that the recall amount of the recalled content reaches the recall threshold, and increase the probability of pushing the second recalled content to the user, avoiding the uniformity of the pushed content, and also avoiding the situation where the recall amount does not meet the recommendation conditions after further screening of the recalled content.
[0068] Step 404: determine the union of the first recalled content and the second recalled content as the third recalled content.
[0069] After obtaining the second recall content from the second recall pool, the second recall content is compared with the first recall content. If there is repeated recall content in the first recall content and the second recall content, the repeated recall content in the first recall content or the second recall content is removed to ensure that the sum of the first recall amount and the second recall amount reaches the recall amount threshold while avoiding the occurrence of repeated recall content, and determine the union of the first recall content and the second recall content as the third recall content, and the recall amount of the third recall content is not less than the recall amount threshold.
[0070] Step 405: Determine target recall content based on the third recall content and the historical recommendation record corresponding to the user information, where the target recall content does not include the recall content in the historical recommendation record.
[0071] After the recommendation system determines the third recall content, it obtains the historical recommendation records corresponding to the user information based on the obtained user information. The historical recommendation records include historical recommendation records recommended to users in a recent period of time, such as historical recommendation records pushed to users within the past month. According to the obtained historical recommendation records, the third recall content is filtered, and the recall content in the historical recommendations contained in the third recall content is filtered to obtain the target recall content.
[0072] Illustratively, taking song recommendations as an example, the server obtains the historical song recommendation records of the corresponding account within one month based on the obtained user account information, and filters the pushed songs from the obtained third recall content based on the historical song recommendation records. For example, the third recall content contains 40 recalled songs, and after comparing with the user's historical push records for nearly a month, 5 recommended songs are filtered out, and the obtained target recall content contains 35 target recalled songs.
[0073] In addition, the corresponding user's historical listening records can also be obtained based on user information. For example, if it is detected that the third recalled content contains songs in the user's historical listening records in the past month, the corresponding songs will be filtered. In addition, in order to further improve the user experience, the copyright information of the music in the third recalled content can also be obtained. If the corresponding music software platform does not have the copyright of the corresponding song, the corresponding song will be filtered to avoid pushing uncopyrighted songs to the user, which will reduce the user experience; in addition, it can be determined whether the user is a premium user (Very Important Person, VIP) based on the user information. If the user is not a VIP user, the corresponding VIP songs will be filtered.
[0074] Step 406: Update the historical recommendation record corresponding to the user information based on the target recalled content.
[0075] Based on the determined target recall content, the historical recommendation record corresponding to the user information is updated. That is, the determined target recall content needs to be recommended to the user, so the target recall content determined this time needs to be updated as a historical recommendation record to avoid repeated recommendation content when recommending to the user next time.
[0076] In another possible implementation, the user may not have used the content recommended by the recommendation system. If the recommendation record is updated at this time, the user may miss the recommended content. Therefore, the user's historical usage record can be obtained, the pushed and used content can be determined according to the user's historical usage record, and the update can be performed based on the historical usage record.
[0077] In addition, the user's historical listening records can also be used as the basis for updating. Before updating the records, the user's historical listening records within a certain period of time are obtained, and the corresponding historical listening records are updated.
[0078] Step 407 , determining a recommendation priority based on the source of each target recall content, wherein the recommendation priority of the target recall content from the first recall pool is higher than the recommendation priority of the target recall content from the second recall pool.
[0079] After determining the target recall content, it is also necessary to sort the display order of each target recall content on the terminal. Usually, when users browse recommended content, the probability of the top-ranked content being browsed or clicked by the user is greater than that of the bottom-ranked content. Therefore, it is also necessary to determine the recommendation priority of each target recall content.
[0080] In a possible implementation, since the first recall content obtained from the first recall pool is determined based on the user's user information, the first recall content is likely to be the content that the user is interested in, while the second recall content obtained from the second recall pool is not determined based on the user information, and the user may not be interested in it. Therefore, the recommendation priority of the target recall content from the first recall pool is set higher than the recommendation priority of the target recall content from the second recall pool, that is, the recommendation order of the first recall content is higher, and the recommendation order of the second recall content is lower.
[0081] Indicatively, the first recalled content is mostly folk songs and love songs that the user is interested in, while the second recalled content is mostly rock songs. In this case, folk songs and love songs are preferentially displayed at the front of the recommendation list, and rock songs are arranged at the back.
[0082] Step 408: Determine the recommendation priority based on the historical recall times of each target recall content.
[0083] In addition to sorting recommended content according to user preferences, in order to enrich the display method of recommended content, before recommending target recall content to users, the number of recalls of each target recall content within a certain period of time is obtained, and the recommendation priority is determined according to the number of recalls, that is, the recommendation priority of content with a high recall number is higher than that of content with a low recall number.
[0084] In addition, the priority can also be determined based on the source and recall times of each target recall content. For example, the recommendation priority of the first recall content is set higher than that of the second recall content, and the recommendation priority of each second recall content is determined according to the recall times.
[0085] In addition, in order to avoid users from viewing or clicking on a single content, the priority may be determined according to the alphabetical order of the target recall content or by random determination.
[0086] Step 409: sort the target recall contents based on the recommendation priority, and push the sorted target recall contents to the terminal.
[0087] After determining the recommendation priority of the target recall content, the target recall content is pushed to the corresponding terminal.
[0088] In the embodiment of the present application, when the server is insufficient to obtain sufficient first recall content from the first recall pool based on the acquired user information data, the server obtains the second recall content from the second recall pool and supplements it in parallel, and determines the union of the first recall content and the second recall content as the third recall content, so that the recall amount of the recall content reaches the recall amount threshold, and provides backup data in the case of insufficient recall content;
[0089] Furthermore, the third recalled content is screened according to the historical recommendation records and sorted according to the recommendation priority, that is, personalized target recalled content is recommended to the user, and the reduction of user experience due to the single recommended content is avoided.
[0090] In a possible application scenario, if the user who sends the content recommendation request is a cold start user, the server cannot obtain enough historical behavior data, so it cannot obtain enough first recall content from the first recall pool, and therefore needs to obtain second recall content from the second recall pool as backup data. In order to ensure that the latest popular recommended content with a large number of recalls is obtained from the second recall pool, it is also necessary to screen the data of the first recall content and update the recall content in the second recall pool in real time.
[0091] Figure 6 is a flowchart of a second recall pool update process provided by another exemplary embodiment of the present application. In this embodiment, the method is used for Figure 1 The method includes:
[0092] Step 601, obtaining the historical recall records of each recall content in the first recall pool.
[0093] After the recommendation system pushes the target recall content to the user according to the configuration information, the historical recall records of each recall content in the first recall pool within a certain period of time are obtained, wherein the historical recall records are obtained by counting the target recall content pushed to the user within the set time, and the historical records may include the recall time, the number of recalls and the name of the recalled content of the obtained target recall content.
[0094] Illustratively, taking the recall of songs by the recommendation system as an example, after the recommendation system recommends the recalled songs to the user, the historical recall records of the songs in the first recall pool are obtained. The historical recall records may be the historical recall records of songs recommended to the user in the past week or the past month, including the name of the song, the most recent recall time of each song, and the number of times the song has been recalled.
[0095] Step 602: Update the historical recall time and recall times of the target recall content in the first recall pool.
[0096] After determining the recall content in the second recall pool, it is also necessary to update the historical recall record, including updating the historical recall time and recall times corresponding to the target recall content. The historical recall time and recall times are the recall time and recall times corresponding to the most recent recall of the corresponding content.
[0097] For example, taking song recommendation as an example, after the target recall song is determined and recommended to the user, the historical recall record of the corresponding song within half an hour is obtained from the first recall pool according to the determined target recall song, including the recall time and the number of recalls of the song. For example, the historical recall record of song A is that the last recall time was three minutes ago, and the total number of recalls is one hundred times. Then, after the historical recall record is updated this time, the last recall time of song A is updated to the current time, and the total number of recalls is one hundred and one times.
[0098] Step 603: Based on the historical recall records, determine the candidate recall contents in the first recall pool whose recall times are greater than or equal to the minimum recall times within the recall period.
[0099] Since the first recall pool of the recommendation system contains a massive amount of recall content, its historical recall records contain more recall records. When the content in the second recall pool needs to be updated, obtaining historical recall records for a longer period of time will increase the load of the recommendation system in processing data, and the recall content in the second recall pool after the update will not be able to meet the timeliness and accuracy of the recall content.
[0100] Based on the historical recall records obtained, the recommendation system counts the recall time and recall frequency of each recall content in the first recall pool, determines the recall content whose recall frequency is greater than or equal to the minimum recall frequency within the preset recall time period according to the recall time and recall frequency, and determines the recalled content as the candidate recall content.
[0101] Illustratively, taking recommended songs as an example, based on the acquired historical recalled song records, the most recent recall time and recall times of each song in the historical recalled song records are acquired, and the historical recalled songs within the last 30 minutes and with more than 100 recall times are screened out, and the screened out songs are used as candidate recalled songs.
[0102] Step 604: sort the candidate recall contents based on the number of recalls.
[0103] In one possible implementation, the recommendation system determines a large number of candidate recall contents based on the recall time and the number of recalls, which may include a large number of contents with relatively early recall times and relatively few recall times. However, the second recall pool that needs to be updated stores recent popular recall contents. Therefore, it is necessary to further screen the candidate recall contents, determine the currently popular recall contents, and update them.
[0104] After the recommendation system determines the candidate recall content according to the recall time and the number of recalls, it sorts the candidate recall content according to the number of recalls, that is, obtains the number of recalls of each candidate recall content, and puts the candidate recall content with more recall times in the front position, and the candidate recall content with fewer recall times in the back position. When there are candidate recall contents with the same number of recalls, the most recent recall time of the corresponding candidate recall content is obtained, and the most recently recalled candidate content is placed in the front position to ensure the real-time recommendation popularity of the recalled content.
[0105] In schematic form, after the recommendation system recalls candidate songs, it determines the number of recalls for each song and sorts the songs according to the number of recalls. When there are at least two songs with the same number of recalls, such as detecting that song A and song B have both been recalled 365 times in the last thirty minutes, the recall time of the corresponding songs is obtained. If song A was last recalled three minutes ago, and song B was last recalled twenty minutes ago, song A is determined to be the currently more popular recommended song, and song A is ranked ahead of song B.
[0106] Step 605 , based on the recall ratio, filter out the recall content in the second recall pool from the sorted candidate recall content.
[0107] When the recall volume of the first recall content obtained by the recommendation system from the first recall pool is large, and there are many qualified candidate recall contents determined based on historical recall records, in order to ensure the timeliness and accuracy of the recall content in the second recall pool, it is necessary to further screen the sorted candidate recall contents, such as screening out the recall contents with high rankings among the candidate recall contents according to the recall ratio set by the recommendation system. For example, the recall ratio set by the recommendation system is 20% of the candidate recall contents to be used as the recall content in the second recall pool.
[0108] Taking recommended songs as an example, after the recommendation system sorts the candidate recall songs, the number of candidate songs reaches 1,000. In order to ensure the timeliness of the popularity of the recalled songs in the screened second recall pool, the top 20% of the 1,000 songs are selected as the recall content in the second recall pool, that is, the top 200 songs are selected as the recalled songs to be updated.
[0109] Step 606 , in response to satisfying the recall pool update condition, updating the second recall pool based on the screening configuration parameters and the updated historical recall records.
[0110] The content obtained after screening the candidate recall content is used as the recall content in the second recall pool, and the second recall pool is updated according to the screening configuration parameters and the updated historical recall records.
[0111] For example, if the configuration parameters are set to update the second recall pool at fixed intervals, and the second recall pool only stores recall content that meets the conditions within the last thirty minutes, that is, historical records older than thirty minutes are updated, and the recall content of the second recall pool is updated.
[0112] Step 607 : Based on the number of historical recalls and the most recent recall time, obtain the second recall content of the second recall amount from the front of the second recall pool.
[0113] After updating the second recall pool, ensure that the second recall pool stores the latest popular recall content, and the recall content in the second recall pool is sorted in descending order based on the number of historical recalls and the most recent recall time. When the recommendation system obtains the first recall content for the cold start user and does not exceed the recall volume threshold, the second recall volume is determined based on the difference between the recall volume threshold and the first recall volume corresponding to the first recall content, and the second recall content with the second recall volume is selected from the second recall pool in order from front to back.
[0114] In an embodiment of the present application, the server updates the corresponding historical recall records based on the target recall content recommended to the user, selects candidate recall content based on the updated historical recall records, and then sorts and filters the candidate recall content based on the set configuration parameters and the updated historical recall records, thereby realizing the update of the second recall pool.
[0115] For cold start users, when the recommendation system obtains the first recalled content for the cold start user and the amount does not exceed the recall quantity threshold, the second recalled content of the second recall quantity is selected from the second recall pool to supplement it, so as to meet the conditions for recommending content to the user, and provide backup data when the recalled content is insufficient. At the same time, the latest popular recalled content is pushed to the user, ensuring the timeliness of the recommended content while providing users with diversified recommended content.
[0116] Please refer to Figure 7 , which shows a schematic diagram of an implementation of a content recommendation method shown in an exemplary embodiment of the present application. In this embodiment, the method is used for Figure 1 The server shown in FIG.
[0117] like Figure 7 As shown, when the user needs to obtain recommended content, the terminal is triggered to send a content recommendation request 701 to the server. The server and the terminal are connected through a gateway device. When the server receives the content recommendation request 701 sent by the terminal, the server obtains the user information contained in the corresponding content recommendation request 701.
[0118] Furthermore, the server obtains the first recall content from the first recall pool 703 based on the obtained user information and the configuration information 702 of the recommendation system. For cold start users, the server cannot obtain enough user information and cannot obtain the first recall content of the recall threshold from the first recall pool 703. At this time, the recommendation system determines that the second recall content of the second recall amount needs to be obtained from the second recall pool 704 according to the difference between the set recall threshold and the first recall content, and the obtained second recall content is the latest popular recall content saved in the second recall pool 704. The union of the first recall content and the second recall content is determined as the third recall content, and the third recall content is filtered and screened according to the historical recommendation record 705 corresponding to the user to ensure that the filtered target recall content does not contain the content in the historical recommendation record, so as to ensure the novelty of the recommended content.
[0119] After the target recall content is determined, the target recall content is sorted, and the recommendation priority is determined by arranging the first recall content first and the second recall content last, and the content is pushed to the user, and then the user obtains the recommendation result 706.
[0120] Furthermore, the recommendation system updates the historical recommendation record 705 and the second recall pool 704 according to the determined target recall content, and the recall content of the second recall pool 704 is updated according to the screening configuration parameters and the updated historical recall records. The configuration process can be updated by setting the configuration parameters, such as updating the second recall pool 704 by setting the parameter percentage (P), the most recent recall time (M) and the minimum number of recalls (N). For example, if the parameters P=20, M=30, and N=100 set by the recommendation system, it means that the top 20% of the target recall content with a recall time greater than or equal to 100 times within 30 minutes can be used as the second recall pool 704, and the recall content in the second recall pool 704 is sorted according to the recall time and the most recent recall time, that is, the content with a larger recall time is arranged in front. When the recall content has the same recall time, the content with a closer most recent recall time is arranged in front. When the first recall content is insufficient, second recall content of the second recall amount is selected from the second recall pool 704 in a forward-to-backward order according to the determined second recall amount.
[0121] In addition, since the second recall pool 704 stores popular recall content that is updated and generated in real time, the generated second recall pool 704 can also be used as a multi-business shared recommendation platform, that is, when multiple businesses share a unified recommendation platform, music platform A has a corresponding second recall pool, and the second recall pool stores current popular recall songs. When the second recall pool is used as a shared recommendation platform, music platform B can also obtain popular recall music from the second recall pool 704 in music platform A as needed, and the second recall pool 704 can update the popular recall music in real time according to music platform B. By sharing the recommendation platform, the repeated calculation of big data is reduced, and data interaction between different platforms is realized.
[0122] Figure 8 : is a structural block diagram of a content recommendation device provided by an exemplary embodiment of the present application. The device is used in a server, and the device includes:
[0123] A receiving module 801 is used to receive a content recommendation request sent by a terminal, wherein the content recommendation request includes user information;
[0124] A first recall module 802, configured to obtain first recall content from a first recall pool based on the user information, wherein the first recall pool includes all recall content;
[0125] A second recall module 803 is configured to obtain second recalled content from a second recall pool in response to the recall amount of the first recalled content being less than a recall amount threshold, wherein the recalled content in the second recall pool is determined based on historical recall records of the recalled content in the first recall pool;
[0126] The push module 804 is configured to push target recalled content to the terminal based on the first recalled content and the second recalled content.
[0127] Optionally, the device further comprises:
[0128] An acquisition module, used for acquiring the historical recall record of each recall content in the first recall pool;
[0129] A screening module is used to screen out the recall content in the second recall pool from the first recall pool based on the historical recall records and screening configuration parameters.
[0130] Optionally, the screening configuration parameters include a recall period, a minimum number of recalls, and a recall ratio;
[0131] The screening module comprises:
[0132] A first determining unit, configured to determine, based on the historical recall records, candidate recall contents in the first recall pool whose recall times within the recall period are greater than or equal to the minimum recall times;
[0133] A sorting unit, used for sorting the candidate recall contents based on the recall times;
[0134] A screening unit is used to screen out the recalled contents in the second recalled pool from the sorted candidate recalled contents based on the recalled proportion.
[0135] Optionally, the device further comprises:
[0136] A first updating module, configured to update the historical recall time and the recall number of the target recall content in the first recall pool;
[0137] The second updating module is used to update the second recall pool based on the screening configuration parameters and the updated historical recall records in response to satisfying the recall pool update condition.
[0138] Optionally, the push module 804 includes:
[0139] a second determining unit, configured to determine a union of the first recalled content and the second recalled content as a third recalled content;
[0140] a third determining unit, configured to determine the target recalled content based on the third recalled content and the historical recommendation record corresponding to the user information, wherein the target recalled content does not include the recalled content in the historical recommendation record;
[0141] A pushing unit is used to push the target recalled content to the terminal.
[0142] Optionally, the pushing unit is used to:
[0143] Determine the recommended priority of the target recall content described in each item;
[0144] The target recalled contents are sorted based on the recommendation priority, and the sorted target recalled contents are pushed to the terminal.
[0145] Optionally, the pushing unit is further used for:
[0146] Determining the recommendation priority based on the source of each of the target recall contents, wherein the recommendation priority of the target recall contents from the first recall pool is higher than the recommendation priority of the target recall contents from the second recall pool;
[0147] and / or,
[0148] The recommendation priority is determined based on the historical recall times of each of the target recall contents.
[0149] Optionally, the device further comprises:
[0150] A third updating module is used to update the historical recommendation record corresponding to the user information based on the target recalled content.
[0151] Optionally, the second recall module 803 includes:
[0152] a fourth determining unit, configured to determine a second recall amount based on the first recall amount and the recall amount threshold, wherein the second recall amount is negatively correlated with the first recall amount;
[0153] The first acquisition unit is used to acquire the second recall content of the second recall amount from the second recall pool.
[0154] Optionally, the recalled contents in the second recall pool are sorted in descending order based on the number of historical recalls and the most recent recall time;
[0155] The first acquisition unit is further used for:
[0156] The second recall content of the second recall amount is obtained from the front of the second recall pool.
[0157] To summarize, in the method provided in the embodiment of the present application, the server obtains the user information contained in the content recommendation request based on the content recommendation request sent by the terminal, and then obtains the first recalled content from the first recall pool based on the user information; in addition, considering the cold start phase, it is not enough to recall sufficient content from the first recall pool based on the user information alone, and the second recalled content is obtained from the second recall pool, and the first recalled content and the second recalled content are pushed to the terminal to ensure that sufficient recommended content is pushed to the user; and, since the second recalled content is determined based on the historical recall records of the recalled content in the first recall pool, the scheme provided in the embodiment of the present application can improve the content recall quality and increase the probability of subsequent users using the recalled content while ensuring that sufficient content is recalled.
[0158] In the embodiment of the present application, when the server is insufficient to obtain sufficient first recall content from the first recall pool based on the acquired user information data, the server obtains the second recall content from the second recall pool and supplements it in parallel, and determines the union of the first recall content and the second recall content as the third recall content, so that the recall amount of the recall content reaches the recall amount threshold, which is the backup data provided in the case of insufficient recall content;
[0159] Furthermore, the third recalled content is screened according to the historical recommendation records and sorted according to the recommendation priority, that is, personalized target recalled content is recommended to the user, and the reduction of user experience due to the single recommended content is avoided.
[0160] In an embodiment of the present application, the server updates the corresponding historical recall records based on the target recall content recommended to the user, selects candidate recall content based on the updated historical recall records, and then sorts and filters the candidate recall content based on the set configuration parameters and the updated historical recall records, thereby realizing the update of the second recall pool.
[0161] For cold start users, when the recommendation system obtains the first recalled content for the cold start user and the amount does not exceed the recall quantity threshold, the second recalled content of the second recall quantity is selected from the second recall pool to supplement it, so as to meet the conditions for recommending content to the user, and provide backup data when the recalled content is insufficient. At the same time, the latest popular recalled content is pushed to the user, ensuring the timeliness of the recommended content while providing users with diversified recommended content.
[0162] Please refer to Fig. 9, which shows a structural block diagram of a server provided by an embodiment of the present application, which can be used to implement the content recommendation method performed by the server provided in the above embodiment. The server 900 includes a central processing unit (CPU) 901, a system memory 904 including a random access memory (RAM) 902 and a read-only memory (ROM) 903, and a system bus 905 connecting the system memory 904 and the central processing unit 901. The server 900 also includes a basic input / output system (I / O) 906 that helps transmit information between various devices in the computer, and a large-capacity storage device 907 for storing an operating system 913, an application program 914 and other program modules 915.
[0163] The basic input / output system 906 includes a display 908 for displaying information and an input device 909 such as a mouse and a keyboard for user inputting information. The display 908 and the input device 909 are connected to the central processing unit 901 through an input / output controller 910 connected to the system bus 905. The basic input / output system 906 may also include an input / output controller 910 for receiving and processing inputs from a plurality of other devices such as a keyboard, a mouse, or an electronic stylus. Similarly, the input / output controller 910 also provides output to a display screen, a printer, or other types of output devices.
[0164] The mass storage device 907 is connected to the central processing unit 901 via a mass storage controller (not shown) connected to the system bus 905. The mass storage device 907 and its associated computer-readable medium provide non-volatile storage for the server 900. That is, the mass storage device 907 may include a computer-readable medium (not shown) such as a hard disk or a CD-ROM (Compact Disc Read-Only Memory) drive.
[0165] Without loss of generality, the computer-readable medium may include computer storage media and communication media. Computer storage media include volatile and non-volatile, removable and non-removable media implemented by any method or technology for storing information such as computer-readable instructions, data structures, program modules or other data. Computer storage media include RAM, ROM, EPROM (Erasable Programmable Read-Only Memory), EEPROM (Electrically Erasable Programmable Read-Only Memory), flash memory or other solid-state storage devices, CD-ROM, DVD (Digital Video Disc) or other optical storage, cassettes, tapes, disk storage or other magnetic storage devices. Of course, those skilled in the art will appreciate that the computer storage media is not limited to the above. The above-mentioned system memory 904 and mass storage device 907 can be collectively referred to as memory.
[0166] According to various embodiments of the present application, the server 900 may also be connected to a remote computer on a network through a network such as the Internet. That is, the server 900 may be connected to a network 912 through a network interface unit 911 connected to the system bus 905, or the network interface unit 911 may be used to connect to other types of networks or remote computer systems (not shown).
[0167] The memory also includes one or more programs, which are stored in the memory and configured to be executed by one or more central processing units 901 .
[0168] The present application also provides a computer-readable storage medium, in which at least one instruction, at least one program, a code set or an instruction set is stored. The at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by a processor to implement the content recommendation method provided by any of the above exemplary embodiments.
[0169] The embodiment of the present application provides a computer program product or a computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the content recommendation method provided in the above optional implementation.
[0170] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.
[0171] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.
Claims
1. A content recommendation method, characterized in that: The method comprises: Receiving a content recommendation request sent by a terminal, wherein the content recommendation request includes user information; Acquire first recall content from a first recall pool based on the user information, where the first recall pool includes all recall content; In response to a first recall amount of the first recall content being less than a recall amount threshold, determining a second recall amount based on the first recall amount and the recall amount threshold, wherein the second recall amount is an integer multiple of a difference between the recall amount threshold and the first recall amount, wherein the first recall amount is close to the recall amount threshold, and a difference between the recall amount threshold and the first recall amount is small; Acquire second recalled content of the second recalled amount from the second recalled pool, so that the recalled amount of the recalled content exceeds the recalled amount threshold, the recalled content in the second recalled pool being determined based on historical recalled records of the recalled content in the first recalled pool; determining a union of the first recall content and the second recall content as a third recall content; Determining target recall content based on the third recall content and the historical recommendation record corresponding to the user information, wherein the target recall content does not include the recall content in the historical recommendation record; The target recall content is pushed to the terminal.
2. The method according to claim 1, characterized in that The method further comprises: Obtaining the historical recall record of each recall content in the first recall pool; Based on the historical recall records and the screening configuration parameters, screening out the recall contents in the second recall pool from the first recall pool; The screening configuration parameters include a recall period, a minimum number of recalls, and a recall ratio. Then, based on the historical recall records and the screening configuration parameters, the recall content in the second recall pool is screened out from the first recall pool, including: Based on the historical recall records, determining candidate recall contents in the first recall pool whose recall times within the recall period are greater than or equal to the minimum recall times; sorting the candidate recall contents based on the recall times; Based on the recall ratio, the recall contents in the second recall pool are screened out from the sorted candidate recall contents.
3. The method according to claim 2, characterized in that After pushing the target recall content to the terminal, the method further includes: Updating the historical recall time and the recall number of the target recall content in the first recall pool; In response to satisfying a recall pool update condition, the second recall pool is updated based on the screening configuration parameters and the updated historical recall records.
4. The method according to claim 1, characterized in that: The pushing the target recall content to the terminal includes: Determine the recommended priority of the target recall content described in each item; The target recalled contents are sorted based on the recommendation priority, and the sorted target recalled contents are pushed to the terminal.
5. The method according to claim 4, characterized in that Determining the recommendation priority of each of the target recall contents includes: Determining the recommendation priority based on the source of each of the target recall contents, wherein the recommendation priority of the target recall contents from the first recall pool is higher than the recommendation priority of the target recall contents from the second recall pool; and / or, The recommendation priority is determined based on the historical recall times of each of the target recall contents.
6. The method according to claim 1, characterized in that After pushing the target recall content to the terminal, the method further includes: The historical recommendation record corresponding to the user information is updated based on the target recalled content.
7. The method according to claim 1, characterized in that The recalled contents in the second recall pool are sorted in descending order based on the number of historical recalls and the most recent recall time; The second recall content of the second recall amount is obtained from the second recall pool.
8. A content recommendation device, comprising: A receiving module, configured to receive a content recommendation request sent by a terminal, wherein the content recommendation request includes user information; A first recall module, configured to obtain first recall content from a first recall pool based on the user information, wherein the first recall pool includes all recall content; a second recall module, configured to, in response to a first recall amount of the first recall content being less than a recall amount threshold, determine a second recall amount based on the first recall amount and the recall amount threshold, the second recall amount being an integer multiple of a difference between the recall amount threshold and the first recall amount, wherein the first recall amount is close to the recall amount threshold, and a difference between the recall amount threshold and the first recall amount is small; obtain second recall content of the second recall amount from a second recall pool, so that the recall amount of the recalled content exceeds the recall amount threshold, the recalled content in the second recall pool being determined based on historical recall records of the recalled content in the first recall pool; A push module is used to determine the union of the first recall content and the second recall content as the third recall content; determine the target recall content based on the third recall content and the historical recommendation record corresponding to the user information, and the target recall content does not include the recall content in the historical recommendation record; and push the target recall content to the terminal.
9. A server, characterized in that: The server includes a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the content recommendation method as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The readable storage medium stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the content recommendation method as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Propelling movement method, platform and system for recommending information of personalized ring back tone
CN101370055A
Method and system for recommending music
CN102402625A
Information recommendation method and device and terminal
CN110543598A
Recommended item determination method, device and apparatus, and storage medium
CN111859126A
Object recommendation method, object recommendation device and electronic equipment
CN111931055A
