A method and apparatus for determining user preferences
By statistically analyzing the relationship between user and video viewing percentiles and corresponding durations, and combining this with preset threshold conditions, the problem of inaccurate user preference judgment on short video platforms has been solved, enabling more accurate user preference analysis and recommendations.
Patent Information
- Application Number
- CN202310713873.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-14
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2043-06-14
AI Technical Summary
Existing technologies on short video platforms cannot accurately determine users' preferences for different videos, ignoring individual differences among users and differences in video types, resulting in poor recommendation performance.
By statistically analyzing the relationship between user and video viewing percentiles and corresponding durations, and combining this with preset threshold conditions, user preferences for videos are determined, taking into account the personalized differences between users and videos.
This allows for more accurate assessment of user preferences for different videos, improving the accuracy of user profiles and recommendation effectiveness.
Smart Images

Figure CN116708882B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer technology, and more particularly to a method and apparatus for determining user preferences. Background Technology
[0002] In short video platforms, determining user preferences for different types of videos is crucial. Once user preferences are known, user profiles can be created, allowing for video recommendations based on these profiles.
[0003] Typically, user viewing history is used to calculate viewing time or viewing percentage (viewing time / total video duration). By setting thresholds, it's possible to distinguish whether a user likes a video. Users will quickly swipe away from videos they don't like, while a viewing percentage >80% is considered as a user liking the video.
[0004] However, the above approach has the following drawbacks: The viewing distribution varies greatly across different videos. For example, most people might watch a 5-second video to the end, but that doesn't mean many people will like it. On the other hand, very few users will watch a 10-minute video for more than 6 minutes, but for business contribution, watching 6 minutes is far more important than watching a 5-second video. Furthermore, user personalization is not considered. For instance, some users are patient and can watch most videos to the end, but that doesn't mean they like all videos. Summary of the Invention
[0005] To overcome the problems existing in related technologies, embodiments of the present invention provide a method and apparatus for determining user preferences. The technical solution is as follows:
[0006] According to a first aspect of an embodiment of the present invention, a method for determining user preferences is provided, comprising:
[0007] Based on historical video viewing data, the first correspondence between user viewing percentile and corresponding duration for each user and the second correspondence between video viewing percentile and corresponding duration for each video were statistically obtained.
[0008] Based on the target video watched by the target user and the corresponding duration, as well as the first and second correspondences, the user viewing percentile and video viewing percentile of the target user for the target video are determined.
[0009] Based on the determined user viewing percentile and video viewing percentile, the target user's preference for the target video is determined.
[0010] In one embodiment of this application, a first correspondence between the viewing percentile and the corresponding duration for each user is statistically obtained, including:
[0011] For each user, based on the number of times the user watched in historical viewing data and the duration of each viewing, the user's viewing percentile X and corresponding duration T1 for each type of video are calculated, where X is a percentage and T1 is a number greater than 0. The user's viewing percentile X and corresponding duration T1 indicate that when the user's viewing duration is T1, it exceeds the user's viewing behavior X.
[0012] The correspondence between the user's viewing percentiles and corresponding durations for each type of video is recorded as the first correspondence between the user and each type of video.
[0013] In one embodiment of this application, a second correspondence between the video viewing percentiles and corresponding durations of each video is statistically obtained, including:
[0014] For each video, based on the number of times the video was viewed and the duration of each viewing in the historical viewing data, the video viewing quantile Y and the corresponding duration T2 are calculated, where Y is a percentage and T2 is a number greater than 0. The video viewing quantile Y and the corresponding duration T2 indicate that when the video viewing duration is T2, the number of viewing behaviors exceeds the Y value of the video.
[0015] The correspondence between multiple video viewing percentiles and their corresponding durations is recorded as the second correspondence for the video.
[0016] In one embodiment of this application, determining the target user's preference for a target video based on the determined user viewing percentile and video viewing percentile includes:
[0017] The user viewing percentile and video viewing percentile are compared with the first preset threshold group to determine the first condition that is met;
[0018] The sum of the user viewing percentile and the video viewing percentile is compared with the second preset threshold group to determine the second condition that is met;
[0019] Based on the first and second conditions met, and the preset correspondence between the first and second conditions and preferences, the target user's preference for the target video is determined.
[0020] According to a second aspect of an embodiment of the present invention, an apparatus for determining user preferences is provided, comprising:
[0021] The statistics module is used to calculate the first correspondence between the user's viewing percentile and the corresponding duration, and the second correspondence between the video's viewing percentile and the corresponding duration, based on the historical viewing data of the video.
[0022] The first determining module is used to determine the user viewing percentile and video viewing percentile of the target user for the target video based on the target video watched by the target user and the corresponding duration, as well as the first correspondence and the second correspondence.
[0023] The second determining module is used to determine the target user's preference for the target video based on the determined user viewing percentile and video viewing percentile.
[0024] In one embodiment of this application, the statistics module includes:
[0025] The first statistical unit is used to calculate, for each user, the viewing percentile X and corresponding duration T1 for each type of video based on the number of viewing behaviors and the duration of each viewing in the historical viewing data. Here, X is a percentage and T1 is a number greater than 0. The user's viewing percentile X and corresponding duration T1 indicate that when the user's viewing duration is T1, it exceeds the user's viewing behavior X.
[0026] The first generation unit is used to record the correspondence between the user's multiple video viewing percentiles and corresponding durations for each type of video as the user's first correspondence for each type of video.
[0027] In one embodiment of this application, the statistics module includes:
[0028] The second statistical unit is used to calculate the video viewing percentile Y and the corresponding duration T2 for each video based on the number of video viewing behaviors and the duration of each viewing in historical viewing data. Y is a percentage, and T2 is a number greater than 0. The video viewing percentile Y and the corresponding duration T2 indicate that when the video viewing duration is T2, the viewing behavior of the video exceeds Y.
[0029] The second generation unit is used to record the correspondence between multiple video viewing percentiles and corresponding durations of the video as the second correspondence of the video.
[0030] In one embodiment of this application, the second determining module includes:
[0031] The first determining unit is used to compare the user viewing percentile and the video viewing percentile with the first preset threshold group respectively to determine the first condition that is met.
[0032] The second determining unit is used to compare the sum of the user viewing percentile and the video viewing percentile with the second preset threshold group to determine the second condition that is met.
[0033] The third determining unit is used to determine the target user's preference for the target video based on the first and second conditions satisfied, and the preset correspondence between the first and second conditions and preferences.
[0034] According to a third aspect of the present invention, an apparatus for determining user preferences is provided, comprising:
[0035] processor;
[0036] Memory used to store processor-executable instructions;
[0037] The processor is configured as follows:
[0038] Based on historical video viewing data, the first correspondence between user viewing percentile and corresponding duration for each user and the second correspondence between video viewing percentile and corresponding duration for each video were statistically obtained.
[0039] Based on the target video watched by the target user and the corresponding duration, as well as the first and second correspondences, the user viewing percentile and video viewing percentile of the target user for the target video are determined.
[0040] Based on the determined user viewing percentile and video viewing percentile, the target user's preference for the target video is determined.
[0041] According to a fourth aspect of an embodiment of the present invention, a computer-readable storage medium is provided having computer instructions stored thereon that, when executed by a processor, implement the steps of any of the methods in the first aspect of the embodiments of the present invention.
[0042] The technical solution provided by the embodiments of the present invention provides a scheme for calculating users' preferences for videos based on different distributions of user viewing quantiles and video viewing quantiles, taking into account the differences in different video types and user personalities. It can make full use of users' viewing time data for different videos and more accurately determine the degree of user preference for different videos.
[0043] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit the invention. Attached Figure Description
[0044] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0045] Figure 1 This is a flowchart illustrating a method for determining user preferences according to an exemplary embodiment.
[0046] Figure 2 This is a flowchart illustrating a method for determining user preferences according to an exemplary embodiment.
[0047] Figure 3 This is a block diagram illustrating an apparatus for determining user preferences according to an exemplary embodiment.
[0048] Figure 4 This is a block diagram illustrating an apparatus for determining user preferences according to an exemplary embodiment.
[0049] Figure 5 This is a block diagram illustrating an apparatus for determining user preferences according to an exemplary embodiment. Detailed Implementation
[0050] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatuses and methods consistent with some aspects of the invention as detailed in the appended claims.
[0051] Currently, methods typically use user viewing history to calculate viewing time or percentage (viewing time / total video length) to determine if a user likes a video. However, this approach has several drawbacks: Viewing distribution varies greatly across different videos. For example, most people might watch a 5-second video to the end, but that doesn't mean many people like it. A 10-minute video might only be watched for more than 6 minutes, but for business purposes, watching 6 minutes is far more important than watching 5 seconds. Furthermore, user individuality isn't considered. Some users are patient and watch most videos to the end, but that doesn't mean they like all videos.
[0052] Embodiments of the present invention provide a method for determining user preferences. This method can be applied to terminals such as servers and computers that determine user preferences or provide user profiles. Figure 1 As shown, the method includes the following steps S101 to S103:
[0053] In step S101, based on the historical viewing data of the video, the first correspondence between the user viewing percentile and the corresponding duration of each user, and the second correspondence between the video viewing percentile and the corresponding duration of each video are statistically obtained.
[0054] Among these, user viewing quantiles and video viewing quantiles can be, for example, percentiles. Percentiles provide information about how the data is distributed across the interval from the minimum to the maximum value. For example, for a dataset containing n viewing behaviors corresponding to n viewing durations, the p-th percentile divides the data into two parts: approximately p% of the viewing durations are smaller than the p-th percentile; while approximately (100-p)% of the viewing durations are larger than the p-th percentile.
[0055] In this application, the user viewing percentile and corresponding duration refer to: assuming user A's user viewing percentile X = 90% and the corresponding duration T1 = 10 seconds, it means that user A watches for 10 seconds, and the duration exceeds 90% of user A's historical viewing behavior.
[0056] In this application, the video viewing percentile and corresponding duration refer to the following: Assuming that the video viewing percentile Y of video B is 75% and the corresponding duration T2 is 20 seconds, it means that if video B is watched for 20 seconds, its duration exceeds 75% of the historical viewing behavior of video B.
[0057] It should be noted that when a video is viewed too infrequently, or when a user watches too few videos, the statistical data may lack confidence. In this case, the quantiles and mean duration of similar videos / users should be used as replacements. Only when the accumulated behavior is sufficient (e.g., more than 500 views) should its own historical data be used. That is, during the cold start phase, viewing data based on the most similar users / videos is used temporarily, and only after sufficient data and high confidence are available is its own historical data used.
[0058] Similar users can be categorized based on business requirements, such as age, gender, or occupation. For example, users whose age difference is within a preset range and who share the same gender and occupation can be grouped into a similar user category.
[0059] Similar videos can be categorized based on business requirements. For example, videos can be classified by duration (e.g., long videos, short videos); or by tags (e.g., basketball, beauty). Alternatively, videos with similar tags and lengths within a preset range can be grouped together as similar videos.
[0060] A user has a first correspondence with a class of similar videos. This first correspondence includes the user's multiple viewing percentiles for that class of videos and the corresponding duration for each viewing percentile: (X i T1 i ), where i represents the user's percentile for the i-th user in this type of video.
[0061] A video has a second correspondence, which includes multiple video viewing percentiles of the video and the corresponding duration (Y) for each video viewing percentile. i T2 i ), where i represents the quantile of the i-th video view.
[0062] In step S102, based on the target video watched by the target user and its corresponding duration, as well as the first and second correspondences, the user viewing percentile and video viewing percentile of the target user for the target video are determined.
[0063] For example, regarding the viewing behavior of target user A watching video B for 10 seconds, the viewing quantile X of the video category in which user A watched video B for 10 seconds can be determined according to the first correspondence; and the viewing quantile Y of video B for 10 seconds can be determined according to the second correspondence.
[0064] In step S103, the target user's preference for the target video is determined based on the determined user viewing percentile and video viewing percentile.
[0065] Please note that step S101 is not executed every time user preferences are determined. It can be executed pre-executed to obtain the first and second correspondences, or it can be executed at preset time intervals to obtain updated first and second correspondences, or it can be updated based on user instructions. When it is necessary to determine a target user's preference for a specific video, the first and second correspondences can be used directly.
[0066] The technical solution of this application provides a scheme that calculates users' preferences for videos by combining different distributions of user viewing quantiles and video viewing quantiles. It takes into account the differences in different video types and user personalities, and can make full use of users' viewing time data for different videos to more accurately determine the degree of user preference for different videos.
[0067] In one embodiment of this application, step 101 involves statistically obtaining the first correspondence between the user's viewing percentile and the corresponding duration, including the following steps A1-A2:
[0068] In step A1, for each user, based on the number of times the user watched in historical viewing data and the duration of each viewing, the user's viewing percentile X and corresponding duration T1 for each type of video are calculated, where X is a percentage and T1 is a natural number greater than or equal to 0. The user's viewing percentile X and corresponding duration T1 indicate that when the user's viewing duration is T1, it exceeds the user's viewing behavior X.
[0069] In step A2, the correspondence between the user's multiple video viewing percentiles and corresponding durations for each type of video is recorded as the first correspondence between the user and each type of video.
[0070] This embodiment provides a specific method for obtaining the first correspondence between the user's viewing percentile and the corresponding duration.
[0071] In one embodiment of this application, step 101 involves statistically obtaining a second correspondence between the video viewing percentiles and corresponding durations for each video, including the following steps: Steps B1-B3:
[0072] In step B1, for each video, based on the number of times the video was viewed and the duration of each viewing in the historical viewing data, the video viewing percentile Y and the corresponding duration T2 are calculated, where Y is a percentage and T2 is a natural number greater than or equal to 0. The video viewing percentile Y and the corresponding duration T2 indicate that when the video viewing duration is T2, the number of times the video was viewed exceeds the Y of the video viewing behavior.
[0073] In step B2, the correspondence between multiple video viewing percentiles and corresponding durations of the video is recorded as the second correspondence of the video.
[0074] In one embodiment of this application, step 103 includes the following steps: Steps C1-C3:
[0075] In step C1, the user viewing percentile and the video viewing percentile are compared with the first preset threshold group to determine the first condition that is met.
[0076] The first preset threshold group includes multiple thresholds used to compare user viewing percentiles and video viewing percentiles. For example, four thresholds are set from smallest to largest: the first threshold, the second threshold, the third threshold, and the fourth threshold. The user viewing percentile and video viewing percentile are compared with these thresholds to determine which range the user viewing percentile and video viewing percentile fall into, thereby determining the first condition that is met.
[0077] In step C2, the sum of the user viewing percentile and the video viewing percentile is compared with the second preset threshold group to determine the second condition that is met.
[0078] The second preset threshold group includes multiple thresholds used to compare the sum of user viewing quantiles and video viewing quantiles. For example, two thresholds, a fifth threshold and a sixth threshold, are set from smallest to largest. The sum of user viewing quantiles and video viewing quantiles is compared with these thresholds to determine the range in which the sum of user viewing quantiles and video viewing quantiles falls, thereby determining the second condition that is met.
[0079] In step C3, the target user's preference for the target video is determined based on the first and second conditions satisfied, as well as the preset correspondence between the first and second conditions and preferences.
[0080] This requires pre-setting the correspondence between the first and second conditions and the preferences. In one embodiment, the threshold value can be adjusted to change the first and second conditions, making the preference determination more in line with the requirements.
[0081] The implementation process will be described in detail below through examples.
[0082] Figure 2 This is an illustrative flowchart illustrating a method for determining user preferences according to an exemplary embodiment. This method can be executed by a server. Figure 2 As shown, it includes the following steps:
[0083] Step S201: Obtain historical viewing data for the video.
[0084] In one embodiment, the historical viewing data of a video can be the total historical viewing data of multiple videos on a website, or the historical viewing data within a certain period.
[0085] Step S202: For each user, based on the number of times the user watched various types of videos and the duration of each viewing in the historical viewing data, calculate the user's viewing percentile X and corresponding duration T1 for each type of video, where X is a percentage and T1 is a number greater than 0. The user viewing percentile X and corresponding duration T1 indicate that when the user's viewing duration is T1, it exceeds the user's viewing behavior X.
[0086] Step S203: Record the correspondence between the user's multiple video viewing percentiles and corresponding durations for each type of video as the first correspondence between the user and each type of video.
[0087] Step S204: For each video, based on the number of times the video was viewed and the duration of each viewing in the historical viewing data, the video viewing percentile Y and the corresponding duration T2 are calculated, where Y is a percentage and T2 is a number greater than 0. The video viewing percentile Y and the corresponding duration T2 indicate that when the video viewing duration is T2, the number of viewing behaviors exceeds the Y value of the video.
[0088] Step S205: Record the correspondence between multiple video viewing percentiles and corresponding durations of the video as the second correspondence of the video.
[0089] Based on the above steps, the first and second correspondences can be obtained. Based on the first and second correspondences, the user's preference for a certain video can be obtained.
[0090] The following describes the process of obtaining a user's preference for a particular video.
[0091] Step 206: Based on the target video watched by the target user and its corresponding duration, as well as the first and second correspondences, determine the user viewing percentile and video viewing percentile for the target user of the target video.
[0092] For a single viewing behavior of a target user, the user's preference for the viewed video can be determined based on the first and second correspondences mentioned above. For example, for the viewing behavior of target user A watching video B for 10 seconds, the viewing quantile X of the category of video B watched by user A for 10 seconds can be determined based on the first correspondence of target user A with the category of video B; and the viewing quantile Y of video B for 10 seconds can be determined based on the second correspondence.
[0093] Step 207: Compare the user viewing percentile and the video viewing percentile with the first preset threshold group respectively to determine the first condition that is met.
[0094] Step 208: Compare the sum of the user viewing percentile and the video viewing percentile with the second preset threshold group to determine the second condition that is met.
[0095] Step 209: Determine the target user's preference for the target video based on the satisfied first and second conditions, and the preset correspondence between the first and second conditions and preferences.
[0096] The correspondence between the preset first and second conditions and preferences is shown in Table 1. For example, the first preset threshold group includes four thresholds from smallest to largest: first threshold 10%, second threshold 30%, third threshold 70%, and fourth threshold 90%. The second preset threshold group includes: fifth threshold 40%, and sixth threshold 160%. Preferences can be simply categorized into three types: like / dislike / neutral.
[0097] Table 1
[0098]
[0099] The higher the user viewing quantile X or video viewing quantile Y, the higher the likelihood of preference. Based on the different distributions of X and Y, the following preset rules can be set:
[0100] Category 1: When X ≥ 90% or Y ≥ 90%, the user's attitude towards the video is "like". That is: X ≥ 90% refers to the user, meaning that the user's viewing time for this video exceeded 90% of all videos of the same type as video B. Y ≥ 90% refers to the video itself, meaning that the viewing time for this video exceeded 90% of the total viewing time of this particular video.
[0101] Category 2.1: When 90% > X ≥ 70% and 90% ≥ Y > 70%, if X + Y ≥ 160%, the sum of the two scores is high, indicating that the user likes the video.
[0102] Category 2.2: When 90% > X ≥ 70% and 90% ≥ Y > 70%, if X + Y < 160%, the user's attitude towards the video is neutral.
[0103] Category 3: When 10% ≥ X and 10% ≥ Y, the user's attitude towards the video is dislike.
[0104] Category 4.1: When 30% ≥ X > 10% and 30% ≥ Y ≥ 10%, if X + Y < 40%, the user's attitude towards the video is dislike.
[0105] Category 4.2: When 30% ≥ X > 10% and 30% ≥ Y ≥ 10%, if X + Y ≥ 40%, the user's attitude towards the video is neutral.
[0106] Category 5: Other cases are considered as users having a neutral attitude towards the video.
[0107] It should be noted that the above thresholds can be adjusted according to business needs, and can also be differentiated based on business segmentation and different videos. For example, in Category 2.1, recommendations based on X+Y≥160% are not very effective, so it can be modified to X+Y≥165%, with stricter filtering criteria increasing the probability of reaching users with similar preferences. Alternatively, for a new product category video that needs development, the user base filtered under Category 1 is too small; the criteria can be appropriately relaxed to X≥85% or Y≥85% to expand the audience and facilitate subsequent operations. Thresholds can also be differentiated based on different business segments; for example, the thresholds for e-commerce users on a micro-store and the thresholds for community users can be different.
[0108] It should be noted that the classification in Table 1 above is merely exemplary, and in reality, more intervals can be divided. In one embodiment, the attitudes / preferences corresponding to each interval can also be different scores, and user preferences for videos can be determined by setting thresholds for the scores.
[0109] For example, regarding the viewing behavior of target user A watching video B for 10 seconds, we can determine the viewing quantile X of user A's viewing of video B for 10 seconds as 80% based on the first correspondence between target user A and the category of video B; and based on the second correspondence, determine the viewing quantile Y of video B for 10 seconds as 80%. According to Table 1, the satisfied conditions are 1 (90% > X ≥ 70% and 90% ≥ Y > 70%) and 2 (X + Y ≥ 160%). Therefore, the target user's preference for video B is "like".
[0110] Step 210: Construct user profiles based on users' preferences for different videos.
[0111] This application does not limit the specific method for constructing user profiles. In one embodiment, a user profile can be constructed by calculating the ranking of video types that a user is interested in / uninterested in based on statistical data (number of preferred videos).
[0112] When determining user preferences for videos, this application takes into account the differences in different video types and user personalities. It can make full use of user viewing time data for different videos to more accurately judge the degree of user liking for different videos. Furthermore, the threshold adjustment is highly flexible and can be personalized according to business needs and different groups of people. Considering the differences in different video types and user personalities, it ultimately improves the accuracy of user profiles and recommendation effects.
[0113] The following are embodiments of the apparatus of the present invention, which can be used to execute embodiments of the method of the present invention.
[0114] Figure 3 This is a block diagram illustrating an apparatus for determining user preferences according to an exemplary embodiment. The apparatus for determining user preferences can be a server or part of a server, or a terminal or part of a terminal. The apparatus for determining user preferences can be implemented as part or all of an electronic device through software, hardware, or a combination of both. Figure 3 As shown, the device for determining user preferences includes:
[0115] The statistics module 301 is used to calculate the first correspondence between the user's viewing percentile and the corresponding duration, and the second correspondence between the video's viewing percentile and the corresponding duration, based on the historical viewing data of the video.
[0116] The first determining module 302 is used to determine the user viewing percentile and video viewing percentile of the target user for the target video based on the target video watched by the target user and the corresponding duration, as well as the first correspondence and the second correspondence.
[0117] The second determining module 303 is used to determine the target user's preference for the target video based on the determined user viewing percentile and video viewing percentile.
[0118] In one embodiment, the statistics module includes:
[0119] The first statistical unit is used to calculate, for each user, the viewing percentile X and corresponding duration T1 for each type of video based on the number of viewing behaviors and the duration of each viewing in the historical viewing data. Here, X is a percentage and T1 is a number greater than 0. The user's viewing percentile X and corresponding duration T1 indicate that when the user's viewing duration is T1, it exceeds the user's viewing behavior X.
[0120] The first generation unit is used to record the correspondence between the user's multiple video viewing percentiles and corresponding durations for each type of video as the user's first correspondence for each type of video.
[0121] In one embodiment, the statistics module includes:
[0122] The second statistical unit is used to calculate the video viewing percentile Y and the corresponding duration T2 for each video based on the number of video viewing behaviors and the duration of each viewing in historical viewing data. Y is a percentage and T2 is a number greater than 0. The video viewing percentile Y and the corresponding duration T2 indicate that when the video viewing duration is T2, the viewing behavior of the video exceeds Y.
[0123] The second generation unit is used to record the correspondence between multiple video viewing percentiles and corresponding durations of the video as the second correspondence of the video.
[0124] In one embodiment, the second processing module includes:
[0125] The second determining module includes:
[0126] The first determining unit is used to compare the user viewing percentile and the video viewing percentile with the first preset threshold group respectively to determine the first condition that is met.
[0127] The second determining unit is used to compare the sum of the user viewing percentile and the video viewing percentile with the second preset threshold group to determine the second condition that is met.
[0128] The third determining unit is used to determine the target user's preference for the target video based on the first and second conditions satisfied, and the preset correspondence between the first and second conditions and preferences.
[0129] Figure 4This is a block diagram illustrating an apparatus 40 for determining user preferences according to an exemplary embodiment. The apparatus for determining user preferences may be a server or part of a server, or a terminal or part of a terminal. The apparatus for determining user preferences includes:
[0130] Processor 4001;
[0131] Memory 4002 is used to store executable instructions of processor 4001;
[0132] The processor 4001 is configured as follows:
[0133] Based on historical video viewing data, the first correspondence between user viewing percentile and corresponding duration for each user and the second correspondence between video viewing percentile and corresponding duration for each video were statistically obtained.
[0134] Based on the target video watched by the target user and the corresponding duration, as well as the first and second correspondences, the user viewing percentile and video viewing percentile of the target user for the target video are determined.
[0135] Based on the determined user viewing percentile and video viewing percentile, the target user's preference for the target video is determined.
[0136] Figure 5 This is a block diagram illustrating an apparatus 800 for determining user preferences according to an exemplary embodiment. The apparatus may be a computer, server, etc.
[0137] The device may include one or more of the following components: processing component 802, memory 804, power supply component 806, multimedia component 808, audio component 810, input / output (I / O) interface 812, sensor component 814, and communication component 816.
[0138] Processing component 802 typically controls the overall operation of device 800, such as operations associated with display, telephone calls, data communication, camera operation, and recording operations. Processing component 802 may include one or more processors 820 to execute instructions to perform all or part of the steps of the methods described above. Furthermore, processing component 802 may include one or more modules to facilitate interaction between processing component 802 and other components. For example, processing component 802 may include a multimedia module to facilitate interaction between multimedia component 808 and processing component 802.
[0139] Memory 804 is configured to store various types of data to support the operation of device 800. Examples of such data include instructions for any application or method operating on device 800, contact data, phonebook data, messages, pictures, videos, etc. Memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.
[0140] Power supply component 806 provides power to various components of device 800. Power supply component 806 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power to device 800.
[0141] Multimedia component 808 includes a screen that provides an output interface between device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touchscreen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors may sense not only the boundaries of the touch or swipe action but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 808 includes a front-facing camera and / or a rear-facing camera. When device 800 is in an operating mode, such as a shooting mode or a video mode, the front-facing camera and / or the rear-facing camera may receive external multimedia data. Each front-facing camera and rear-facing camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
[0142] Audio component 810 is configured to output and / or input audio signals. For example, audio component 810 includes a microphone (MIC) configured to receive external audio signals when device 800 is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 804 or transmitted via communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
[0143] I / O interface 812 provides an interface between processing component 802 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to, home buttons, volume buttons, power buttons, and lock buttons.
[0144] Sensor assembly 814 includes one or more sensors for providing status assessments of various aspects of device 800. For example, sensor assembly 814 may detect the on / off state of device 800, the relative positioning of components such as the display and keypad of device 800, changes in the position of device 800 or a component of device 800, the presence or absence of user contact with device 800, the orientation or acceleration / deceleration of device 800, and temperature changes of device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, sensor assembly 814 may also include an accelerometer, a gyroscope, a magnetometer, a pressure sensor, or a temperature sensor.
[0145] Communication component 816 is configured to facilitate wired or wireless communication between device 800 and other devices. Device 800 can access wireless networks based on communication standards, such as walkie-talkie networks, WiFi, 2G, 3G, 4G, or 5G, or combinations thereof. In one exemplary embodiment, communication component 816 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 816 also includes a near-field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
[0146] In an exemplary embodiment, the apparatus 800 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the methods described above.
[0147] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including instructions, which can be executed by a processor 820 of the device 800 to perform the above-described method. For example, the non-transitory computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.
[0148] A non-transitory computer-readable storage medium, when instructions in the storage medium are executed by a processor of a device 800, enables the device 800 to perform the aforementioned method for determining user preferences, the method comprising:
[0149] Based on historical video viewing data, the first correspondence between user viewing percentile and corresponding duration for each user and the second correspondence between video viewing percentile and corresponding duration for each video were statistically obtained.
[0150] Based on the target video watched by the target user and the corresponding duration, as well as the first and second correspondences, the user viewing percentile and video viewing percentile of the target user for the target video are determined.
[0151] Based on the determined user viewing percentile and video viewing percentile, the target user's preference for the target video is determined.
[0152] Other embodiments of the invention will readily occur to those skilled in the art upon consideration of the specification and practice of the invention described herein. This application is intended to cover any variations, uses, or adaptations of the invention that follow the general principles of the invention and include common knowledge or customary techniques in the art not invented herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of the invention are indicated by the following claims.
[0153] It should be understood that the present invention is not limited to the precise structure described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of the invention is limited only by the appended claims.
Claims
1. A method for determining user preferences, characterized in that, include: Based on historical video viewing data, a first correspondence between user viewing percentiles and corresponding durations is statistically obtained, as well as a second correspondence between video viewing percentiles and corresponding durations. The first correspondence between user viewing percentiles and corresponding durations includes: for each user, based on the number of viewing behaviors and the duration of each viewing in historical viewing data, calculating the user's viewing percentile X and corresponding duration T1 for each type of video, where X is a percentage and T1 is a number greater than 0. The user viewing percentile X and corresponding duration T1 indicate that when the user's viewing duration is T1, it exceeds the user's viewing behavior X. The correspondence between multiple video viewing percentiles and corresponding durations for each type of video is recorded as the user's first correspondence for each type of video. A user has one correspondence for a class of similar videos, and each video has one second correspondence. The second correspondence includes multiple video viewing percentiles for the video and the corresponding duration for each video viewing percentile. Based on the target video watched by the target user and the corresponding duration, as well as the first and second correspondences, the user viewing percentile and video viewing percentile of the target user for the target video are determined. Determining the target user's preference for the target video based on the determined user viewing percentile and video viewing percentile includes: comparing the user viewing percentile and video viewing percentile with a first preset threshold group respectively to determine the first condition that is met; comparing the sum of the user viewing percentile and video viewing percentile with a second preset threshold group to determine the second condition that is met; and determining the target user's preference for the target video based on the met first and second conditions, as well as the preset correspondence between the first and second conditions and preferences.
2. The method according to claim 1, characterized in that, The second correspondence between the video view percentiles and corresponding video durations was statistically obtained, including: For each video, based on the number of times the video was viewed and the duration of each viewing in the historical viewing data, the video viewing quantile Y and the corresponding duration T2 are calculated, where Y is a percentage and T2 is a number greater than 0. The video viewing quantile Y and the corresponding duration T2 indicate that when the video viewing duration is T2, the number of viewing behaviors exceeds the Y value of the video. The correspondence between multiple video viewing percentiles and corresponding durations of the video is recorded as the second correspondence of the video.
3. A device for determining user preferences, characterized in that, include: The statistics module is used to calculate the first correspondence between the user's viewing percentile and the corresponding duration, and the second correspondence between the video's viewing percentile and the corresponding duration, based on the historical viewing data of the video. The statistics module includes: The first statistical unit is used to calculate, for each user, the viewing percentile X and corresponding duration T1 for each type of video based on the number of viewing behaviors and the duration of each viewing in the historical viewing data. Here, X is a percentage and T1 is a number greater than 0. The user's viewing percentile X and corresponding duration T1 indicate that when the user's viewing duration is T1, it exceeds the user's viewing behavior X. The first generation unit is used to record the correspondence between multiple video viewing percentiles and corresponding durations of the user for various types of videos as the first correspondence between the user and various types of videos. A user has one correspondence for a class of similar videos, and a video has a second correspondence. The second correspondence includes multiple video viewing percentiles of the video and the corresponding duration of each video viewing percentile. The first determining module is used to determine the user viewing percentile and video viewing percentile of the target user for the target video based on the target video watched by the target user and the corresponding duration, as well as the first correspondence and the second correspondence. The second determining module is used to determine the target user's preference for the target video based on the determined user viewing percentile and video viewing percentile; The second determining module includes: The first determining unit is used to compare the user viewing percentile and the video viewing percentile with the first preset threshold group respectively to determine the first condition that is met. The second determining unit is used to compare the sum of the user viewing percentile and the video viewing percentile with the second preset threshold group to determine the second condition that is met. The third determining unit is used to determine the target user's preference for the target video based on the first and second conditions satisfied, and the preset correspondence between the first and second conditions and preferences.
4. The apparatus according to claim 3, characterized in that, The statistics module includes: The second statistical unit is used to calculate the video viewing percentile Y and the corresponding duration T2 for each video based on the number of video viewing behaviors and the duration of each viewing in historical viewing data. Y is a percentage and T2 is a number greater than 0. The video viewing percentile Y and the corresponding duration T2 indicate that when the video viewing duration is T2, the viewing behavior of the video exceeds Y. The second generation unit is used to record the correspondence between multiple video viewing percentiles and corresponding durations of the video as the second correspondence of the video.
5. A device for determining user preferences, characterized in that, include: processor; Memory used to store processor-executable instructions; The processor is configured as follows: Based on historical video viewing data, the first correspondence between user viewing percentile and corresponding duration for each user, and the second correspondence between video viewing percentile and corresponding duration for each video were statistically obtained. Based on the target video watched by the target user and the corresponding duration, as well as the first and second correspondences, the user viewing percentile and video viewing percentile of the target user for the target video are determined. Preferences for target videos.
6. A computer-readable storage medium storing computer instructions thereon, characterized in that, When executed by the processor, this instruction implements the steps of the method according to any one of claims 1-2.
Citation Information
Patent Citations
Video recommendation method, model training method, electronic equipment and storage medium
CN115408559A
