Music recommendation method and apparatus
AssigneeHuawei Technologies Co., Ltd.
InventorsShu Fang, Libin Zhang
Life of this patent
Estimating the term…
Abstract
A music recommendation method and apparatus are provided, to determine an attention mode of a user in a complex environment by using viewpoint information of the user, thereby more precisely implementing music matching. According to a first aspect, a music recommendation method is provided. The method includes: receiving visual data of a user (S501); obtaining at least one attention unit and attention duration of the at least one attention unit based on the visual data (S502); determining an attention mode of the user based on the attention duration of the at least one attention unit (S503); and determining recommended music information based on the attention mode (S504).
Claims17
A music recommendation method comprising:
- receiving visual data of a user, wherein the visual data comprises picture information viewed by the user;
- obtaining at least one attention unit and attention duration of the at least one attention unit based on the visual data, wherein obtaining the at least one attention unit and the attention duration of the at least one attention unit comprises:
- obtaining the at least one attention unit based on the picture information, determining a similarity between a first attention unit of the at least one attention unit and a second attention unit of the at least one attention unit, and when the similarity is greater than or equal to a first threshold, determining that attention duration of the second attention unit is equal to a sum of attention duration of the first attention unit and the attention duration of the second attention unit, wherein the first attention unit and the second attention unit are attention units at different moments in time, and the attention duration of the at least one attention unit comprises the attention duration of the second attention unit;
- determining an attention mode of the user based on the attention duration of the at least one attention unit;
- and
- determining recommended music information based on the attention mode.
A music recommendation apparatus, comprising:
- a memory to store executable instructions thereon, and
- a processor coupled to the memory to execute the executable instructions to cause the music recommendation apparatus to perform operations comprising:
- receiving visual data of a user, wherein the visual data comprises picture information viewed by the user;
- obtaining at least one attention unit and attention duration of the at least one attention unit based on the visual data, wherein obtaining the at least one attention unit and the attention duration of the at least one attention unit comprises:
- obtaining the at least one attention unit based on the picture information, determining a similarity between a first attention unit of the at least one attention unit and a second attention unit of the at least one attention unit, and when the similarity is greater than or equal to a first threshold, determining that attention duration of the second attention unit is equal to a sum of attention duration of the first attention unit and the attention duration of the second attention unit, wherein the first attention unit and the second attention unit are attention units at different moments in time, and the attention duration of the at least one attention unit comprises the attention duration of the second attention unit;
- determining an attention mode of the user based on the attention duration of the at least one attention unit;
- and
- determining recommended music information based on the attention mode.
A non-transitory computer-readable storage medium storing executable instructions thereon, that when executed by a processor of an apparatus, cause the apparatus to perform operations comprising:
- receiving visual data of a user, wherein the visual data comprises picture information viewed by the user;
- obtaining at least one attention unit and attention duration of the at least one attention unit based on the visual data, wherein obtaining the at least one attention unit and the attention duration of the at least one attention unit comprises:
- obtaining the at least one attention unit based on the picture information, determining a similarity between a first attention unit of the at least one attention unit and a second attention unit of the at least one attention unit, and when the similarity is greater than or equal to a first threshold, determining that attention duration of the second attention unit is equal to a sum of attention duration of the first attention unit and the attention duration of the second attention unit, wherein the first attention unit and the second attention unit are attention units at different moments in time, and the attention duration of the at least one attention unit comprises the attention duration of the second attention unit;
- determining an attention mode of the user based on the attention duration of the at least one attention unit;
- and
- determining recommended music information based on the attention mode.
Dependencies are inferred from the claim text.