[go: up one dir, main page]

CN113127674B - Song list recommendation method, device, electronic equipment and computer storage medium - Google Patents

Song list recommendation method, device, electronic equipment and computer storage medium Download PDF

Info

Publication number
CN113127674B
CN113127674B CN201911407361.7A CN201911407361A CN113127674B CN 113127674 B CN113127674 B CN 113127674B CN 201911407361 A CN201911407361 A CN 201911407361A CN 113127674 B CN113127674 B CN 113127674B
Authority
CN
China
Prior art keywords
song
user
period
behavior data
list
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911407361.7A
Other languages
Chinese (zh)
Other versions
CN113127674A (en
Inventor
张东浩
唐睿
魏远伦
马玉涛
张啸宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
China Mobile Chengdu ICT Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Chengdu ICT Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Mobile Communications Group Co Ltd, China Mobile Chengdu ICT Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201911407361.7A priority Critical patent/CN113127674B/en
Publication of CN113127674A publication Critical patent/CN113127674A/en
Application granted granted Critical
Publication of CN113127674B publication Critical patent/CN113127674B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/60Information retrieval; Database structures therefor; File system structures therefor of audio data
    • G06F16/63Querying
    • G06F16/638Presentation of query results
    • G06F16/639Presentation of query results using playlists
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/60Information retrieval; Database structures therefor; File system structures therefor of audio data
    • G06F16/63Querying
    • G06F16/635Filtering based on additional data, e.g. user or group profiles
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/60Information retrieval; Database structures therefor; File system structures therefor of audio data
    • G06F16/68Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/683Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Library & Information Science (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention discloses a song list recommending method, a song list recommending device, electronic equipment and a computer storage medium. The song list recommending method comprises the following steps: acquiring song behavior data of a user in a first period and song behavior data of the user in a second period; wherein, the first period of time to which the song behavior data of the first period of time of the user belongs is after the second period of time to which the song behavior data of the second period of time of the user belongs; determining a target song list by using the song behavior data of the first period of time of the user and the song behavior data of the second period of time of the user; and sending the target song list to the user terminal. According to the embodiment of the invention, the accuracy of song list recommendation can be improved.

Description

歌单推荐方法、装置、电子设备及计算机存储介质Song list recommendation method, device, electronic equipment and computer storage medium

技术领域technical field

本发明属于数据处理技术领域,尤其涉及一种歌单推荐方法、装置、电子设备及计算机存储介质。The invention belongs to the technical field of data processing, and in particular relates to a song list recommendation method, device, electronic equipment and computer storage medium.

背景技术Background technique

目前,移动终端除了具有通信功能之外,音乐播放功能已经成为一项必不可少的附加功能。然而,面对如今海量的歌曲资源库,用户面临着新的问题:如何快速地找到适合自己的歌曲。对此,传统的在线音乐推送方法将歌曲进行大致分类,诸如民谣、摇滚、爵士等,然后提供给用户以进行选择,如果用户选择其中的一种或多种分类,则推送选择的分类下的相应歌曲。通过分类而进行的传统在线音乐推送方法虽然可以免去用户自己搜索、选择和播放的过程,但是用户仍然很难听到自己想听的歌曲,这是由于:第一,歌曲的分类过于简单和笼统,因为随着歌曲创作的多样化,很难用某一单词完全描述其类型和风格;第二,仅提供歌曲的简单分类供用户选择,很难满足用户的多元化需求。At present, in addition to the communication function of the mobile terminal, the music playing function has become an indispensable additional function. However, in the face of today's massive song resource library, users are faced with a new problem: how to quickly find songs that suit them. In this regard, the traditional online music push method generally classifies songs, such as folk, rock, jazz, etc., and then provides them to the user for selection. If the user selects one or more classifications, the corresponding songs under the selected classification will be pushed. Although the traditional online music push method through classification can save users from the process of searching, selecting and playing, it is still difficult for users to hear the songs they want to listen to.

因此如何提高歌单推荐的准确性是本领域技术人员亟需解决的技术问题。Therefore, how to improve the accuracy of song list recommendation is a technical problem urgently needed to be solved by those skilled in the art.

发明内容Contents of the invention

本发明实施例提供一种歌单推荐方法、装置、设备及计算机存储介质,能够提高歌单推荐的准确性。Embodiments of the present invention provide a song list recommendation method, device, equipment and computer storage medium, which can improve the accuracy of song list recommendation.

第一方面,提供了一种歌单推荐方法,包括:In the first aspect, a song list recommendation method is provided, including:

获取用户第一时段歌曲行为数据和用户第二时段歌曲行为数据;其中,用户第一时段歌曲行为数据所属的第一时段在用户第二时段歌曲行为数据所属的第二时段之后;Acquiring the user's song behavior data in the first period and the user's song behavior data in the second period; wherein, the first period of the user's song behavior data in the first period is after the second period in which the user's song behavior data in the second period belongs;

利用用户第一时段歌曲行为数据和用户第二时段歌曲行为数据,确定目标歌单;Determine the target song list by using the song behavior data of the user in the first period and the song behavior data of the user in the second period;

向用户终端发送目标歌单。Send the target song list to the user terminal.

可选地,利用用户第一时段歌曲行为数据和用户第二时段歌曲行为数据,确定目标歌单,包括:Optionally, using the user's song behavior data in the first period and the user's song behavior data in the second period, determine the target song list, including:

基于权值打分算法,利用用户第一时段歌曲行为数据,确定第一歌单和每个第一歌单对应的第一评分;Based on the weight scoring algorithm, use the user's song behavior data in the first period to determine the first playlist and the first score corresponding to each first playlist;

基于余弦相似性算法,利用用户第二时段歌曲行为数据,确定第二歌单和第二歌单对应的第二评分;Based on the cosine similarity algorithm, using the user's song behavior data in the second period, determine the second playlist and the second score corresponding to the second playlist;

根据第一歌单的第一评分和第二歌单的第二评分确定目标歌单。The target playlist is determined according to the first score of the first playlist and the second score of the second playlist.

可选地,基于权值打分算法,利用用户第一时段歌曲行为数据,确定第一歌单和每个第一歌单对应的第一评分,包括:Optionally, based on the weight scoring algorithm, the first song list and the first score corresponding to each first song list are determined by using the user's song behavior data in the first period, including:

根据用户第一时段歌曲行为数据,确定用户第一时段歌曲行为数据对应的第一歌曲;其中,用户第一时段歌曲行为数据对应的用户第一时段歌曲行为类型包括:用户第一时段歌曲下载、用户第一时段歌曲收藏和用户第一时段歌曲试听;每个第一歌曲对应至少一种用户第一时段歌曲行为;According to the user's song behavior data in the first period, determine the first song corresponding to the user's first period song behavior data; wherein, the user's first period song behavior type corresponding to the user's first period song behavior data includes: user's first period song download, user's first period song collection and user's first period song trial listening; each first song corresponds to at least one user's first period song behavior;

确定包含第一歌曲的第一歌单;Determining the first playlist containing the first song;

根据第一歌单中第一歌曲的数量以及每个第一歌曲对应的用户第一时段歌曲行为,确定第一歌单的第一评分。Determine the first score of the first song list according to the number of first songs in the first song list and the song behavior of the user corresponding to each first song in the first time period.

可选地,基于余弦相似性算法,利用用户第二时段歌曲行为数据,确定第二歌单和第二歌单对应的第二评分,包括:Optionally, based on the cosine similarity algorithm, the second song list and the second score corresponding to the second song list are determined by using the user's song behavior data in the second period, including:

根据用户第二时段歌曲行为数据,确定用户第二时段歌曲行为数据对应的第二歌曲;According to the song behavior data of the user's second period, determine the second song corresponding to the song behavior data of the user's second period;

根据预设的歌曲标签信息确定第二歌曲的标签,并对第二歌曲的标签进行去重处理,将去重后的歌曲标签作为用户标签;Determine the label of the second song according to the preset song label information, and perform deduplication processing on the label of the second song, and use the deduplicated song label as the user label;

分别计算用户标签与各个第二歌曲的歌曲标签之间的余弦相似性,得到余弦相似性数值;Calculate the cosine similarity between the song tags of the user tag and each second song respectively to obtain the cosine similarity value;

依据各个余弦相似性数值从大到小的顺序,确定数值最大的预设数量个余弦相似性数值对应的第二歌曲;According to the order of each cosine similarity value from large to small, determine the second song corresponding to the preset number of cosine similarity values with the largest value;

基于数值最大的预设数量个余弦相似性数值对应的第二歌曲,确定第二歌单和第二评分。Based on the second song corresponding to the preset number of cosine similarity values with the largest value, the second song list and the second score are determined.

可选地,根据预设的歌曲标签信息确定第二歌曲的标签,并对第二歌曲的标签进行去重处理,将去重后的歌曲标签作为用户标签,包括:Optionally, the label of the second song is determined according to the preset song label information, and the label of the second song is deduplicated, and the deduplicated song label is used as the user label, including:

根据每个第二歌曲的歌曲标识号,确定第二歌曲对应的版权信息;According to the song identification number of each second song, determine the copyright information corresponding to the second song;

依据预设版权标签映射表,确定每个版权信息对应的歌曲标签;Determine the song tag corresponding to each copyright information according to the preset copyright tag mapping table;

对第二歌曲的标签进行去重处理,并将去重后的歌曲标签作为用户标签。The tags of the second song are deduplicated, and the deduplicated song tags are used as user tags.

可选地,获取用户第一时段歌曲行为数据和用户第二时段歌曲行为数据,包括:Optionally, acquiring the song behavior data of the user in the first period and the song behavior data of the user in the second period, including:

根据预设数据源表,确定用户第一时段歌曲行为数据和用户第二时段歌曲行为数据。According to the preset data source table, the song behavior data of the user in the first period and the song behavior data of the user in the second period are determined.

第二方面,提供了一种歌单推荐装置,包括:In the second aspect, a song list recommendation device is provided, including:

获取模块,用于获取用户第一时段歌曲行为数据和用户第二时段歌曲行为数据;其中,用户第一时段歌曲行为数据所属的第一时段在用户第二时段歌曲行为数据所属的第二时段之后;The acquisition module is used to obtain the song behavior data of the user in the first period and the song behavior data of the user in the second period; wherein, the first period of the song behavior data of the user in the first period is after the second period of the song behavior data of the user in the second period;

确定模块,用于利用用户第一时段歌曲行为数据和用户第二时段歌曲行为数据,确定目标歌单;Determining module, for utilizing user's song behavior data in the first period and the user's song behavior data in the second period to determine the target song list;

发送模块,用于向用户终端发送目标歌单。The sending module is used to send the target song list to the user terminal.

可选地,确定模块,包括:Optionally, identify modules, including:

第一歌单确定子模块,用于基于权值打分算法,利用用户第一时段歌曲行为数据,确定第一歌单和每个第一歌单对应的第一评分;The first song list determination sub-module is used to determine the first song list and the first score corresponding to each first song list by using the song behavior data of the user in the first period based on the weight scoring algorithm;

第二歌单确定子模块,用于基于余弦相似性算法,利用用户第二时段歌曲行为数据,确定第二歌单和第二歌单对应的第二评分;The second song list determination sub-module is used to determine the second song list and the second score corresponding to the second song list by using the user's song behavior data in the second period based on the cosine similarity algorithm;

目标歌单确定子模块,用于根据第一歌单的第一评分和第二歌单的第二评分确定目标歌单。The target playlist determination submodule is used to determine the target playlist according to the first score of the first playlist and the second score of the second playlist.

可选地,第一歌单确定子模块,包括:Optionally, the first song list determines submodules, including:

第一歌曲确定单元,用于根据用户第一时段歌曲行为数据,确定用户第一时段歌曲行为数据对应的第一歌曲;其中,用户第一时段歌曲行为数据对应的用户第一时段歌曲行为类型包括:用户第一时段歌曲下载、用户第一时段歌曲收藏和用户第一时段歌曲试听;每个第一歌曲对应至少一种用户第一时段歌曲行为;The first song determining unit is used to determine the first song corresponding to the user's first period song behavior data according to the user's first period song behavior data; wherein, the user's first period song behavior type corresponding to the user's first period song behavior data includes: user first period song download, user first period song collection and user first period song trial listening; each first song corresponds to at least one user's first period song behavior;

第一歌单确定单元,用于确定包含第一歌曲的第一歌单;The first song list determination unit is used to determine the first song list containing the first song;

第一评分确定单元,用于根据第一歌单中第一歌曲的数量以及每个第一歌曲对应的用户第一时段歌曲行为,确定第一歌单的第一评分。The first score determination unit is configured to determine the first score of the first song list according to the number of first songs in the first song list and the user's song behavior in the first period corresponding to each first song.

可选地,第二歌单确定子模块,包括:Optionally, the second song list determines submodules, including:

第二歌曲确定单元,用于根据用户第二时段歌曲行为数据,确定用户第二时段歌曲行为数据对应的第二歌曲;The second song determination unit is used to determine the second song corresponding to the user's second period song behavior data according to the user's second period song behavior data;

用户标签确定单元,用于根据预设的歌曲标签信息确定第二歌曲的标签,并对第二歌曲的标签进行去重处理,将去重后的歌曲标签作为用户标签;A user label determining unit is used to determine the label of the second song according to the preset song label information, and perform deduplication processing on the label of the second song, and use the deduplicated song label as the user label;

余弦相似性计算单元,用于分别计算用户标签与各个第二歌曲的歌曲标签之间的余弦相似性,得到余弦相似性数值;A cosine similarity calculation unit is used to calculate the cosine similarity between the user label and the song label of each second song respectively, to obtain the cosine similarity value;

第二歌曲确定单元,用于依据各个余弦相似性数值从大到小的顺序,确定数值最大的预设数量个余弦相似性数值对应的第二歌曲;The second song determination unit is used to determine the second song corresponding to the preset number of cosine similarity values with the largest value according to the order of each cosine similarity value from large to small;

第二歌单确定单元,用于基于数值最大的预设数量个余弦相似性数值对应的第二歌曲,确定第二歌单和第二评分。The second song list determination unit is configured to determine the second song list and the second score based on the second song corresponding to the preset number of cosine similarity values with the largest value.

可选地,用户标签确定单元,包括:Optionally, the user label determination unit includes:

版权信息确定子单元,用于根据每个第二歌曲的歌曲标识号,确定第二歌曲对应的版权信息;The copyright information determination subunit is used to determine the copyright information corresponding to the second song according to the song identification number of each second song;

歌曲标签确定子单元,用于依据预设版权标签映射表,确定每个版权信息对应的歌曲标签;The song label determination subunit is used to determine the song label corresponding to each copyright information according to the preset copyright label mapping table;

用户标签确定子单元,用于对第二歌曲的标签进行去重处理,并将去重后的歌曲标签作为用户标签。The user label determination subunit is configured to perform deduplication processing on the label of the second song, and use the deduplicated song label as the user label.

可选地,获取模块,包括:Optionally, get modules, including:

获取子模块,用于根据预设数据源表,确定用户第一时段歌曲行为数据和用户第二时段歌曲行为数据。The acquisition sub-module is used to determine the song behavior data of the user in the first period and the song behavior data of the user in the second period according to the preset data source table.

第三方面,提供了一种电子设备,电子设备包括:处理器以及存储有计算机程序指令的存储器;In a third aspect, an electronic device is provided, and the electronic device includes: a processor and a memory storing computer program instructions;

处理器执行计算机程序指令时实现第一方面或第一方面任一可选的实现方式中的歌单推荐方法。When the processor executes the computer program instructions, the play list recommendation method in the first aspect or any optional implementation manner of the first aspect is implemented.

第四方面,提供了一种计算机存储介质,计算机存储介质上存储有计算机程序指令,计算机程序指令被处理器执行时实现第一方面或第一方面任一可选的实现方式中的歌单推荐方法。In a fourth aspect, a computer storage medium is provided. Computer program instructions are stored on the computer storage medium. When the computer program instructions are executed by a processor, the method for recommending playlists in the first aspect or in any optional implementation manner of the first aspect is implemented.

本发明实施例的歌单推荐方法、装置、电子设备及计算机存储介质,能够提高歌单推荐的准确性。该歌单推荐方法先是获取用户第一时段歌曲行为数据和用户第二时段歌曲行为数据,由于用户第一时段歌曲行为数据和用户第二时段歌曲行为数据能够反映用户的歌曲偏爱属性特征,故利用用户第一时段歌曲行为数据和用户第二时段歌曲行为数据确定目标歌单,能够提高歌单推荐的准确性。The song list recommendation method, device, electronic equipment and computer storage medium of the embodiments of the present invention can improve the accuracy of song list recommendation. The song list recommendation method first obtains the user's song behavior data in the first period and the user's song behavior data in the second period. Since the user's song behavior data in the first period and the user's song behavior data in the second period can reflect the user's song preference attribute characteristics, using the user's song behavior data in the first period and the user's song behavior data in the second period to determine the target playlist can improve the accuracy of song list recommendation.

附图说明Description of drawings

为了更清楚地说明本发明实施例的技术方案,下面将对本发明实施例中所需要使用的附图作简单的介绍,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings used in the embodiments of the present invention will be briefly introduced below. For those of ordinary skill in the art, other drawings can also be obtained according to these drawings without creative work.

图1是本发明实施例提供的一种歌单推荐方法的流程示意图;Fig. 1 is a schematic flow chart of a song list recommendation method provided by an embodiment of the present invention;

图2是本发明实施例提供的另一种歌单推荐方法的流程示意图;Fig. 2 is a schematic flow chart of another song list recommendation method provided by an embodiment of the present invention;

图3是本发明实施例提供的一种歌单推荐装置的结构示意图;FIG. 3 is a schematic structural diagram of a song list recommendation device provided by an embodiment of the present invention;

图4是本发明实施例提供的一种电子设备的结构示意图。Fig. 4 is a schematic structural diagram of an electronic device provided by an embodiment of the present invention.

具体实施方式Detailed ways

下面将详细描述本发明的各个方面的特征和示例性实施例,为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及具体实施例,对本发明进行进一步详细描述。应理解,此处所描述的具体实施例仅被配置为解释本发明,并不被配置为限定本发明。对于本领域技术人员来说,本发明可以在不需要这些具体细节中的一些细节的情况下实施。下面对实施例的描述仅仅是为了通过示出本发明的示例来提供对本发明更好的理解。The characteristics and exemplary embodiments of various aspects of the present invention will be described in detail below. In order to make the purpose, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described here are only configured to explain the present invention, not to limit the present invention. It will be apparent to one skilled in the art that the present invention may be practiced without some of these specific details. The following description of the embodiments is only to provide a better understanding of the present invention by showing examples of the present invention.

需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that in this document, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements but also other elements not expressly listed or which are inherent to such process, method, article or apparatus. Without further limitations, an element defined by the statement "comprising..." does not exclude the presence of additional same elements in the process, method, article or device comprising said element.

目前,移动终端除了具有通信功能之外,音乐播放功能已经成为一项必不可少的附加功能。然而,面对如今海量的歌曲资源库,用户面临着新的问题:如何快速地找到适合自己的歌曲。对此,传统的在线音乐推送方法将歌曲进行大致分类,诸如民谣、摇滚、爵士等,然后提供给用户以进行选择,如果用户选择其中的一种或多种分类,则推送选择的分类下的相应歌曲。通过分类而进行的传统在线音乐推送方法虽然可以免去用户自己搜索、选择和播放的过程,但是用户仍然很难听到自己想听的歌曲,这是由于:第一,歌曲的分类过于简单和笼统,因为随着歌曲创作的多样化,很难用某一单词完全描述其类型和风格;第二,仅提供歌曲的简单分类供用户选择,很难满足用户的多元化需求。At present, in addition to the communication function of the mobile terminal, the music playing function has become an indispensable additional function. However, in the face of today's massive song resource library, users are faced with a new problem: how to quickly find songs that suit them. In this regard, the traditional online music push method generally classifies songs, such as folk, rock, jazz, etc., and then provides them to the user for selection. If the user selects one or more classifications, the corresponding songs under the selected classification will be pushed. Although the traditional online music push method through classification can save users from the process of searching, selecting and playing, it is still difficult for users to hear the songs they want to listen to.

为了解决现有技术问题,本发明实施例提供了一种歌单推荐方法、装置、电子设备及计算机存储介质。下面首先对本发明实施例所提供的歌单推荐方法进行介绍。In order to solve the problems in the prior art, embodiments of the present invention provide a playlist recommendation method, device, electronic equipment, and computer storage medium. The method for recommending a song list provided by the embodiment of the present invention is firstly introduced below.

图1是本发明实施例提供的一种歌单推荐方法的流程示意图。如图1所示,该歌单推荐方法包括:Fig. 1 is a schematic flowchart of a song list recommendation method provided by an embodiment of the present invention. As shown in Figure 1, the song list recommendation method includes:

S101、获取用户第一时段歌曲行为数据和用户第二时段歌曲行为数据;其中,用户第一时段歌曲行为数据所属的第一时段在用户第二时段歌曲行为数据所属的第二时段之后。S101. Obtain the song behavior data of the user in the first period and the song behavior data of the user in the second period; wherein, the first period to which the user's song behavior data belongs in the first period is after the second period to which the user's song behavior data in the second period belongs.

第一时段和第二时段的时长可以相同,也可以不相同,均不作具体限定。在一个实施例中,用户第一时段歌曲行为数据即为用户近期歌曲行为数据,用户第二时段歌曲行为数据即为用户远期歌曲行为数据。The duration of the first period and the second period may be the same or different, and are not specifically limited. In one embodiment, the song behavior data of the user in the first period is the user's recent song behavior data, and the user's song behavior data in the second period is the user's long-term song behavior data.

为了获取更加准确的用户第一时段歌曲行为数据和用户第二时段歌曲行为数据,在一个实施例中,获取用户第一时段歌曲行为数据和用户第二时段歌曲行为数据,通常可以包括:根据预设数据源表,确定用户第一时段歌曲行为数据和用户第二时段歌曲行为数据。In order to obtain more accurate song behavior data of the user in the first period and the song behavior data of the user in the second period, in one embodiment, obtaining the song behavior data of the user in the first period and the song behavior data of the user in the second period may generally include: determining the song behavior data of the user in the first period and the song behavior data of the user in the second period according to the preset data source table.

在一个实施例中,为了使推荐的歌单即符合用户近期的行为,又同时符合用户的长期偏好,分别获取用户近期歌曲行为数据和用户长期歌曲行为数据。用户近期歌曲行为数据即为用户近期下载的歌曲、用户收藏的歌曲、用户视听的歌曲,并寻找包含上述歌曲的歌单;用户长期歌曲行为数据包括从日志中获取的用户标签及歌曲标签;数据源表如表1所示,表头包括数据源名称和HIVE(数据仓库工具)表。In one embodiment, in order to make the recommended playlist not only conform to the user's recent behavior, but also conform to the user's long-term preference, the user's recent song behavior data and user's long-term song behavior data are respectively obtained. The user’s recent song behavior data is the user’s recently downloaded songs, user’s favorite songs, and user’s audiovisual songs, and search for playlists containing the above songs; the user’s long-term song behavior data includes user tags and song tags obtained from logs; the data source table is shown in Table 1, and the table header includes the data source name and the HIVE (data warehouse tool) table.

表1Table 1

根据数据源表,获取用户近期歌曲行为数据以确定歌单。其中,歌单筛选规则包括:According to the data source table, obtain the user's recent song behavior data to determine the song list. Among them, the song list screening rules include:

(1)筛选歌单播放列表,筛选条件:(1) Screen playlist playlists, filter conditions:

a)某日期以后创建的歌单,该日期距离当前日期不超过15天。a) For playlists created after a certain date, the date is no more than 15 days away from the current date.

b)歌单名字设定。b) Playlist name setting.

c)歌单内的有效歌曲数量不能低于5首。c) The number of valid songs in the playlist cannot be less than 5.

(2)在每日收藏的歌单中,识别出编辑的歌单。(2) Identify the edited playlist among the playlists collected daily.

S102、利用用户第一时段歌曲行为数据和用户第二时段歌曲行为数据,确定目标歌单。S102. Using the song behavior data of the user in the first period and the song behavior data of the user in the second period, determine a target playlist.

S103、向用户终端发送目标歌单。S103. Send the target playlist to the user terminal.

为了给用户推荐更加准确的歌单,在一个实施例中,利用用户第一时段歌曲行为数据和用户第二时段歌曲行为数据,确定目标歌单,通常包括:基于权值打分算法,利用用户第一时段歌曲行为数据,确定第一歌单和每个第一歌单对应的第一评分;基于余弦相似性算法,利用用户第二时段歌曲行为数据,确定第二歌单和第二歌单对应的第二评分;根据第一歌单的第一评分和第二歌单的第二评分确定目标歌单。In order to recommend more accurate playlists to the user, in one embodiment, using the user’s song behavior data in the first period and the user’s song behavior data in the second period to determine the target playlist usually includes: based on a weight scoring algorithm, using the user’s song behavior data in the first period to determine the first song list and the first score corresponding to each first playlist;

为了确定更加准确的第一歌单和第一评分,在一个实施例中,基于权值打分算法,利用用户第一时段歌曲行为数据,确定第一歌单和每个第一歌单对应的第一评分,通常包括:根据用户第一时段歌曲行为数据,确定用户第一时段歌曲行为数据对应的第一歌曲;其中,用户第一时段歌曲行为数据对应的用户第一时段歌曲行为类型包括:用户第一时段歌曲下载、用户第一时段歌曲收藏和用户第一时段歌曲试听;每个第一歌曲对应至少一种用户第一时段歌曲行为;确定包含第一歌曲的第一歌单;根据第一歌单中第一歌曲的数量以及每个第一歌曲对应的用户第一时段歌曲行为,确定第一歌单的第一评分。In order to determine a more accurate first song list and the first score, in one embodiment, based on the weight scoring algorithm, using the user’s song behavior data in the first period, determine the first song list and the first score corresponding to each first song list, usually including: According to the user’s song behavior data in the first period, determine the first song corresponding to the user’s song behavior data in the first period; wherein, the user’s song behavior type corresponding to the user’s song behavior data in the first period includes: song downloading in the user’s first period, song collection in the user’s first period, and song trial listening in the user’s first period; each first song corresponds to at least one song behavior in the user’s first period; The first song list of the song; according to the quantity of the first song in the first song list and the user's song behavior in the first period corresponding to each first song, determine the first score of the first song list.

在一个实施例中,对用户近期歌曲行为数据使用权值打分的方法处理,利用数据源表及权值评分表确定所有第一歌单和每个第一歌单的第一评分,权值评分表如表2所示。In one embodiment, the user's recent song behavior data is processed using a weight scoring method, and the data source table and the weight scoring table are used to determine all the first playlists and the first score of each first playlist. The weight scoring table is shown in Table 2.

表2权值评分表Table 2 Weight scoring table

在一个实施例中,依据权值评分表确定每个第一歌单的第一评分,具体包括依据以下行为确定歌单的评分:In one embodiment, determining the first score of each first playlist according to the weight scoring table specifically includes determining the score of the playlist according to the following behaviors:

(1)针对用户下载行为:(1) For user download behavior:

在推荐周期内,根据用户下载的歌曲,寻找包含该歌曲的歌单,每有1首歌在其中,则该歌单得4分,按不同歌曲累计求和。During the recommendation period, according to the songs downloaded by the user, search for a playlist containing the song. For every song in it, the playlist will get 4 points, and the sum will be accumulated according to different songs.

(2)用户收藏行为:(2) User collection behavior:

在推荐周期内,根据用户收藏的歌曲,寻找包含该歌曲的歌单,每有1首歌在其中,则该歌单得3分,按不同歌曲累计求和。During the recommendation cycle, search for a playlist containing the song based on the user's favorite songs. For each song in it, the playlist will get 3 points, and the sum will be accumulated for different songs.

(3)针对用户试听行为:(3) Audition behavior for users:

在推荐周期内,根据用户试听(试听时间大于180s)的歌曲,寻找包含该歌曲的歌单,每有1首歌在其中,则该歌单得1分,按不同歌曲累计求和。During the recommendation period, according to the songs that the user auditioned (the audition time is greater than 180s), search for the playlist containing the song. For each song in it, the playlist will get 1 point, and the sum will be accumulated according to different songs.

为了确定更加准确的第二歌单和第二评分,在一个实施例中,基于余弦相似性算法,利用用户第二时段歌曲行为数据,确定第二歌单和第二歌单对应的第二评分,通常可以包括:根据用户第二时段歌曲行为数据,确定用户第二时段歌曲行为数据对应的第二歌曲;根据预设的歌曲标签信息确定第二歌曲的标签,并对第二歌曲的标签进行去重处理,将去重后的歌曲标签作为用户标签;分别计算用户标签与各个第二歌曲的歌曲标签之间的余弦相似性,得到余弦相似性数值;依据各个余弦相似性数值从大到小的顺序,确定数值最大的预设数量个余弦相似性数值对应的第二歌曲;基于数值最大的预设数量个余弦相似性数值对应的第二歌曲,确定第二歌单和第二评分。In order to determine a more accurate second song list and second score, in one embodiment, based on the cosine similarity algorithm, using the user's second period song behavior data to determine the second song list and the second score corresponding to the second song list, usually can include: According to the user's second period song behavior data, determine the second song corresponding to the user's second period song behavior data; determine the label of the second song according to the preset song label information, and perform deduplication processing on the label of the second song, and use the deduplicated song label as the user label; respectively calculate the cosine similarity between the user label and the song labels of each second song, Obtain the cosine similarity value; according to the order of each cosine similarity value from large to small, determine the second song corresponding to the preset number of cosine similarity values with the largest value; determine the second song list and the second score based on the second song corresponding to the preset number of cosine similarity values with the largest value.

为了确定更加准确的用户标签,在一个实施例中,根据预设的歌曲标签信息确定第二歌曲的标签,并对第二歌曲的标签进行去重处理,将去重后的歌曲标签作为用户标签,通常可以包括:根据每个第二歌曲的歌曲标识号,确定第二歌曲对应的版权信息;依据预设版权标签映射表,确定每个版权信息对应的歌曲标签;对第二歌曲的标签进行去重处理,并将去重后的歌曲标签作为用户标签。In order to determine a more accurate user label, in one embodiment, determine the label of the second song according to the preset song label information, and perform deduplication processing on the label of the second song, and use the song label after deduplication as the user label, which may generally include: determining the copyright information corresponding to the second song according to the song identification number of each second song;

在一个实施例中,对用户远期歌曲行为数据使用余弦相似性算法处理,具体包括:In one embodiment, the cosine similarity algorithm is used to process the user's long-term song behavior data, which specifically includes:

用户标签与歌单标签的相似性计算,采用余弦相似性的计算方法,余弦相似性计算公式如下:The calculation method of cosine similarity is used to calculate the similarity between user tags and song list tags. The formula for calculating cosine similarity is as follows:

对于二维空间,根据向量点积公式,显然可以得知:For two-dimensional space, according to the vector dot product formula, it is obvious that:

其中,公式(1)中a、b表示两个向量,θ为来两者之间的夹角。Among them, a and b in formula (1) represent two vectors, and θ is the angle between them.

假设向量a,b的坐标表示分别为(x1,y1)、(x2,y2)。则:Assume that the coordinate representations of vectors a and b are (x 1 , y 1 ), (x 2 , y 2 ) respectively. but:

推广到多维,设向量A=(A1,A2,…An),B=(B1,B2,…Bn),则有:Extended to multi-dimensional, let the vector A=(A 1 ,A 2 ,…A n ),B=(B 1 ,B 2 ,…B n ), then:

其中,n表示向量A的维度,Ai表示第i个A向量,Bi表示第i个B向量。Among them, n represents the dimension of vector A, A i represents the i-th A vector, and B i represents the i-th B vector.

一个计算示例如下:An example calculation is as follows:

用户标签集合为{0,1,0,…,1},歌曲标签集合为{1,1,0,…,1},将向量带入公式可计算相似性分值。其中,标签的总维度,每日根据数据预处理的情况动态生成,取值为用户标签和歌单标签的并集。The set of user tags is {0,1,0,…,1}, and the set of song tags is {1,1,0,…,1}. Putting the vector into the formula can calculate the similarity score. Among them, the total dimension of tags is dynamically generated every day according to the data preprocessing, and the value is the union of user tags and song list tags.

用户长期歌曲行为数据的处理逻辑,根据版权-标签(copyright_tag)关系表找出歌曲的标签,然后将歌曲标签去重后作为用户标签。最后利用用户标签与歌曲标签计算余弦相似性,取出TOP50的歌曲作为一个歌单,并将该歌单的评分记为8分。The processing logic of the user's long-term song behavior data is to find out the tag of the song according to the copyright-tag (copyright_tag) relationship table, and then deduplicate the song tag as the user tag. Finally, the user tags and song tags are used to calculate the cosine similarity, and the TOP50 songs are taken as a playlist, and the score of the playlist is recorded as 8 points.

结合两种方法(权值打分算法和余弦相似性算法)汇总评分进行歌单推荐,具体包括:Combining two methods (weight scoring algorithm and cosine similarity algorithm) to summarize scores for song list recommendation, including:

(1)按用户及不同的评分来源,汇总计算出歌单的最终评分,按分值降序排列。(1) Calculate the final score of the playlist according to users and different scoring sources, and arrange them in descending order of score.

(2)5天推荐的歌单不重复,生成歌单推荐历史表。(2) The playlists recommended for 5 days are not repeated, and a playlist recommendation history table is generated.

(3)将每日歌单评分TOP1的歌曲同时插入历史表和推荐表。(3) Insert the songs with the TOP1 score in the daily playlist into the history table and the recommendation table at the same time.

下面以一个具体实施例对上述内容进行说明,如图2所示,先是进行用户歌曲数据收集,获取用户近期歌曲行为数据和用户长期歌曲行为数据。然后,一方面针对用户近期歌曲行为数据,根据用户的下载、收藏、试听行为进行筛选加权求和,确定至少一个第一歌单和每个第一歌单对应的第一评分;另一方面针对用户近期歌曲行为数据,利用用户标签和歌曲标签进行标签余弦相似性的计算并进行筛选操作,确定一个第二歌单及对应的第二评分。最后,基于每个第一歌单对应的第一评分和第二歌单的第二评分,进行汇总评分推荐操作,确定目标歌单。该实施例具有如下有益效果:The above content is described below with a specific embodiment. As shown in FIG. 2 , the user song data is first collected to obtain the user's recent song behavior data and the user's long-term song behavior data. Then, on the one hand, based on the user’s recent song behavior data, perform screening and weighted summation according to the user’s downloading, collection, and audition behaviors, and determine at least one first playlist and the first score corresponding to each first playlist; Finally, based on the first score corresponding to each first playlist and the second score of the second playlist, a summary score recommendation operation is performed to determine a target playlist. This embodiment has the following beneficial effects:

1、对用户近期行为数据使用权值打分的方法处理,对用户长期行为数据使用余弦相似性算法处理,两种算法相结合的方式进行数据处理,对比单一权重打分的处理方法,数据处理更为准确完善。1. Use the weight scoring method to process the user's recent behavior data, and use the cosine similarity algorithm to process the user's long-term behavior data. The combination of the two algorithms is used for data processing. Compared with the processing method of single weight scoring, the data processing is more accurate and perfect.

2、余弦相似性算法处理用户长期行为数据时,根据每日数据情况动态生成标签的总维度,取值为用户标签和歌曲标签的并集,数据匹配更为准确。2. When the cosine similarity algorithm processes user long-term behavior data, the total dimension of tags is dynamically generated according to the daily data situation, and the value is the union of user tags and song tags, which makes data matching more accurate.

3、使用的用户行为数据包括用户近期歌曲行为数据和用户长期的歌曲行为数据,数据收集更精准、更全面。3. The user behavior data used includes the user's recent song behavior data and the user's long-term song behavior data, and the data collection is more accurate and comprehensive.

下面对本发明实施例提供的一种歌单推荐装置、电子设备及计算机存储介质进行介绍,下文描述的歌单推荐装置、电子设备及计算机存储介质与上文描述的歌单推荐方法可相互对应参照。A playlist recommending device, electronic equipment, and computer storage medium provided in the embodiments of the present invention are introduced below. The playlist recommending device, electronic equipment, and computer storage medium described below and the playlist recommending method described above can be referred to in correspondence.

图3是本发明实施例提供的一种歌单推荐装置的结构示意图,如图3所示,该歌单推荐装置可以包括:Fig. 3 is a schematic structural diagram of a song list recommending device provided by an embodiment of the present invention. As shown in Fig. 3, the song list recommending device may include:

获取模块301,用于获取用户第一时段歌曲行为数据和用户第二时段歌曲行为数据;其中,用户第一时段歌曲行为数据所属的第一时段在用户第二时段歌曲行为数据所属的第二时段之后;Obtaining module 301, is used for acquiring user's song behavior data in the first period and user's song behavior data in the second period; wherein, the first period to which the user's first period song behavior data belongs is after the second period to which the user's second period song behavior data belongs;

确定模块302,用于利用用户第一时段歌曲行为数据和用户第二时段歌曲行为数据,确定目标歌单;A determining module 302, configured to determine the target song list by utilizing the song behavior data of the user in the first period and the song behavior data of the user in the second period;

发送模块303,用于向用户终端发送目标歌单。The sending module 303 is configured to send the target playlist to the user terminal.

可选地,在一个实施例中,确定模块302,包括:Optionally, in one embodiment, the determining module 302 includes:

第一歌单确定子模块,用于基于权值打分算法,利用用户第一时段歌曲行为数据,确定第一歌单和每个第一歌单对应的第一评分;The first song list determination sub-module is used to determine the first song list and the first score corresponding to each first song list by using the song behavior data of the user in the first period based on the weight scoring algorithm;

第二歌单确定子模块,用于基于余弦相似性算法,利用用户第二时段歌曲行为数据,确定第二歌单和第二歌单对应的第二评分;The second song list determination sub-module is used to determine the second song list and the second score corresponding to the second song list by using the user's song behavior data in the second period based on the cosine similarity algorithm;

目标歌单确定子模块,用于根据第一歌单的第一评分和第二歌单的第二评分确定目标歌单。The target playlist determination submodule is used to determine the target playlist according to the first score of the first playlist and the second score of the second playlist.

可选地,在一个实施例中,第一歌单确定子模块,包括:Optionally, in one embodiment, the first playlist determination submodule includes:

第一歌曲确定单元,用于根据用户第一时段歌曲行为数据,确定用户第一时段歌曲行为数据对应的第一歌曲;其中,用户第一时段歌曲行为数据对应的用户第一时段歌曲行为类型包括:用户第一时段歌曲下载、用户第一时段歌曲收藏和用户第一时段歌曲试听;每个第一歌曲对应至少一种用户第一时段歌曲行为;The first song determining unit is used to determine the first song corresponding to the user's first period song behavior data according to the user's first period song behavior data; wherein, the user's first period song behavior type corresponding to the user's first period song behavior data includes: user first period song download, user first period song collection and user first period song trial listening; each first song corresponds to at least one user's first period song behavior;

第一歌单确定单元,用于确定包含第一歌曲的第一歌单;The first song list determination unit is used to determine the first song list containing the first song;

第一评分确定单元,用于根据第一歌单中第一歌曲的数量以及每个第一歌曲对应的用户第一时段歌曲行为,确定第一歌单的第一评分。The first score determination unit is configured to determine the first score of the first song list according to the number of first songs in the first song list and the user's song behavior in the first period corresponding to each first song.

可选地,在一个实施例中,第二歌单确定子模块,包括:Optionally, in one embodiment, the second playlist determination submodule includes:

第二歌曲确定单元,用于根据用户第二时段歌曲行为数据,确定用户第二时段歌曲行为数据对应的第二歌曲;The second song determination unit is used to determine the second song corresponding to the user's second period song behavior data according to the user's second period song behavior data;

用户标签确定单元,用于根据预设的歌曲标签信息确定第二歌曲的标签,并对第二歌曲的标签进行去重处理,将去重后的歌曲标签作为用户标签;A user label determining unit is used to determine the label of the second song according to the preset song label information, and perform deduplication processing on the label of the second song, and use the deduplicated song label as the user label;

余弦相似性计算单元,用于分别计算用户标签与各个第二歌曲的歌曲标签之间的余弦相似性,得到余弦相似性数值;A cosine similarity calculation unit is used to calculate the cosine similarity between the user label and the song label of each second song respectively, to obtain the cosine similarity value;

第二歌曲确定单元,用于依据各个余弦相似性数值从大到小的顺序,确定数值最大的预设数量个余弦相似性数值对应的第二歌曲;The second song determination unit is used to determine the second song corresponding to the preset number of cosine similarity values with the largest value according to the order of each cosine similarity value from large to small;

第二歌单确定单元,用于基于数值最大的预设数量个余弦相似性数值对应的第二歌曲,确定第二歌单和第二评分。The second song list determination unit is configured to determine the second song list and the second score based on the second song corresponding to the preset number of cosine similarity values with the largest value.

可选地,在一个实施例中,用户标签确定单元,包括:Optionally, in one embodiment, the user label determining unit includes:

版权信息确定子单元,用于根据每个第二歌曲的歌曲标识号,确定第二歌曲对应的版权信息;The copyright information determination subunit is used to determine the copyright information corresponding to the second song according to the song identification number of each second song;

歌曲标签确定子单元,用于依据预设版权标签映射表,确定每个版权信息对应的歌曲标签;The song label determination subunit is used to determine the song label corresponding to each copyright information according to the preset copyright label mapping table;

用户标签确定子单元,用于对第二歌曲的标签进行去重处理,并将去重后的歌曲标签作为用户标签。The user label determination subunit is configured to perform deduplication processing on the label of the second song, and use the deduplicated song label as the user label.

可选地,在一个实施例中,获取模块,包括:Optionally, in one embodiment, the acquisition module includes:

获取子模块,用于根据预设数据源表,确定用户第一时段歌曲行为数据和用户第二时段歌曲行为数据。The acquisition sub-module is used to determine the song behavior data of the user in the first period and the song behavior data of the user in the second period according to the preset data source table.

图3提供的歌单推荐装置中的各个模块具有实现图1所示实例中各个步骤的功能,并达到与图1所示歌单推荐方法相同的技术效果,为简洁描述,在此不再赘述。Each module in the song list recommending device provided in FIG. 3 has the function of realizing each step in the example shown in FIG. 1 , and achieves the same technical effect as the song list recommendation method shown in FIG. 1 .

图4是本发明一个实施例提供的一种电子设备的结构示意图。Fig. 4 is a schematic structural diagram of an electronic device provided by an embodiment of the present invention.

电子设备可以包括处理器401以及存储有计算机程序指令的存储器402。The electronic device may include a processor 401 and a memory 402 storing computer program instructions.

具体地,上述处理器401可以包括中央处理器(CPU),或者特定集成电路(Application Specific Integrated Circuit,ASIC),或者可以被配置成实施本发明实施例的一个或多个集成电路。Specifically, the above-mentioned processor 401 may include a central processing unit (CPU), or an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), or may be configured to implement one or more integrated circuits in the embodiments of the present invention.

存储器402可以包括用于数据或指令的大容量存储器。举例来说而非限制,存储器402可包括硬盘驱动器(Hard Disk Drive,HDD)、软盘驱动器、闪存、光盘、磁光盘、磁带或通用串行总线(Universal Serial Bus,USB)驱动器或者两个或更多个以上这些的组合。在合适的情况下,存储器402可包括可移除或不可移除(或固定)的介质。在合适的情况下,存储器402可在综合网关容灾设备的内部或外部。在特定实施例中,存储器402是非易失性固态存储器。在特定实施例中,存储器402包括只读存储器(ROM)。在合适的情况下,该ROM可以是掩模编程的ROM、可编程ROM(PROM)、可擦除PROM(EPROM)、电可擦除PROM(EEPROM)、电可改写ROM(EAROM)或闪存或者两个或更多个以上这些的组合。Memory 402 may include mass storage for data or instructions. By way of example and not limitation, memory 402 may include a Hard Disk Drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a Universal Serial Bus (USB) drive, or a combination of two or more of these. Storage 402 may include removable or non-removable (or fixed) media, where appropriate. Under appropriate circumstances, the storage 402 can be inside or outside the comprehensive gateway disaster recovery device. In a particular embodiment, memory 402 is a non-volatile solid-state memory. In particular embodiments, memory 402 includes read-only memory (ROM). Where appropriate, the ROM may be mask programmed ROM, programmable ROM (PROM), erasable PROM (EPROM), electrically erasable PROM (EEPROM), electrically rewritable ROM (EAROM) or flash memory or a combination of two or more of these.

处理器401通过读取并执行存储器402中存储的计算机程序指令,以实现上述实施例中的任意一种歌单推荐方法。The processor 401 reads and executes the computer program instructions stored in the memory 402 to implement any one of the song list recommendation methods in the above-mentioned embodiments.

在一个示例中,电子设备还可包括通信接口403和总线410。其中,如图4所示,处理器401、存储器402、通信接口403通过总线410连接并完成相互间的通信。In one example, the electronic device may further include a communication interface 403 and a bus 410 . Wherein, as shown in FIG. 4 , the processor 401 , the memory 402 , and the communication interface 403 are connected through a bus 410 to complete mutual communication.

通信接口403,主要用于实现本发明实施例中各模块、装置、单元和/或设备之间的通信。The communication interface 403 is mainly used to realize the communication between various modules, devices, units and/or devices in the embodiments of the present invention.

总线410包括硬件、软件或两者,将在线数据流量计费设备的部件彼此耦接在一起。举例来说而非限制,总线可包括加速图形端口(AGP)或其他图形总线、增强工业标准架构(EISA)总线、前端总线(FSB)、超传输(HT)互连、工业标准架构(ISA)总线、无限带宽互连、低引脚数(LPC)总线、存储器总线、微信道架构(MCA)总线、外围组件互连(PCI)总线、PCI-Express(PCI-X)总线、串行高级技术附件(SATA)总线、视频电子标准协会局部(VLB)总线或其他合适的总线或者两个或更多个以上这些的组合。在合适的情况下,总线410可包括一个或多个总线。尽管本发明实施例描述和示出了特定的总线,但本发明考虑任何合适的总线或互连。The bus 410 includes hardware, software or both, and couples the components of the online data traffic charging device to each other. By way of example and not limitation, a bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a HyperTransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an Infiniband Interconnect, a Low Pin Count (LPC) bus, a memory bus, a Micro Channel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local (VLB) bus or other suitable bus or a combination of two or more of the above. Bus 410 may comprise one or more buses, where appropriate. Although embodiments of the invention describe and illustrate a particular bus, the invention contemplates any suitable bus or interconnect.

另外,结合上述实施例中的歌单推荐方法,本发明实施例可提供一种计算机存储介质来实现。该计算机存储介质上存储有计算机程序指令;该计算机程序指令被处理器执行时实现图1所示实施例中的歌单推荐方法。In addition, in combination with the song list recommendation method in the foregoing embodiments, the embodiment of the present invention may provide a computer storage medium for implementation. Computer program instructions are stored on the computer storage medium; when the computer program instructions are executed by a processor, the method for recommending playlists in the embodiment shown in FIG. 1 is realized.

需要明确的是,本发明并不局限于上文所描述并在图中示出的特定配置和处理。为了简明起见,这里省略了对已知方法的详细描述。在上述实施例中,描述和示出了若干具体的步骤作为示例。但是,本发明的方法过程并不限于所描述和示出的具体步骤,本领域的技术人员可以在领会本发明的精神后,作出各种改变、修改和添加,或者改变步骤之间的顺序。It is to be understood that the invention is not limited to the specific arrangements and processes described above and shown in the drawings. For conciseness, detailed descriptions of known methods are omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present invention is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the sequence of steps after understanding the spirit of the present invention.

以上所述的结构框图中所示的功能块可以实现为硬件、软件、固件或者它们的组合。当以硬件方式实现时,其可以例如是电子电路、专用集成电路(ASIC)、适当的固件、插件、功能卡等等。当以软件方式实现时,本发明的元素是被用于执行所需任务的程序或者代码段。程序或者代码段可以存储在机器可读介质中,或者通过载波中携带的数据信号在传输介质或者通信链路上传送。“机器可读介质”可以包括能够存储或传输信息的任何介质。机器可读介质的例子包括电子电路、半导体存储器设备、ROM、闪存、可擦除ROM(EROM)、软盘、CD-ROM、光盘、硬盘、光纤介质、射频(RF)链路,等等。代码段可以经由诸如因特网、内联网等的计算机网络被下载。The functional blocks shown in the structural block diagrams described above may be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, it may be, for example, an electronic circuit, an application specific integrated circuit (ASIC), suitable firmware, a plug-in, a function card, or the like. When implemented in software, the elements of the invention are the programs or code segments employed to perform the required tasks. Programs or code segments can be stored in machine-readable media, or transmitted over transmission media or communication links by data signals carried in carrier waves. "Machine-readable medium" may include any medium that can store or transmit information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, radio frequency (RF) links, and the like. Code segments may be downloaded via a computer network such as the Internet, an Intranet, or the like.

还需要说明的是,本发明中提及的示例性实施例,基于一系列的步骤或者装置描述一些方法或系统。但是,本发明不局限于上述步骤的顺序,也就是说,可以按照实施例中提及的顺序执行步骤,也可以不同于实施例中的顺序,或者若干步骤同时执行。It should also be noted that the exemplary embodiments mentioned in the present invention describe some methods or systems based on a series of steps or devices. However, the present invention is not limited to the order of the above steps, that is, the steps may be performed in the order mentioned in the embodiment, or may be different from the order in the embodiment, or several steps may be performed simultaneously.

以上所述,仅为本发明的具体实施方式,所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,上述描述的系统、模块和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。应理解,本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到各种等效的修改或替换,这些修改或替换都应涵盖在本发明的保护范围之内。The above is only a specific implementation of the present invention, and those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the above-described system, module and unit can refer to the corresponding process in the foregoing method embodiment, and will not be repeated here. It should be understood that the protection scope of the present invention is not limited thereto, and any person skilled in the art can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present invention, and these modifications or replacements should all be covered within the protection scope of the present invention.

Claims (9)

1. A song list recommendation method, comprising:
acquiring song behavior data of a user in a first period and song behavior data of the user in a second period; wherein, the first period of time to which the song behavior data of the first period of time of the user belongs is after the second period of time to which the song behavior data of the second period of time of the user belongs;
determining a target song list by using the song behavior data of the first period of time of the user and the song behavior data of the second period of time of the user;
sending the target song list to a user terminal;
the determining the target song list by using the song behavior data of the first period of time of the user and the song behavior data of the second period of time of the user comprises the following steps:
determining a first song list and a first score corresponding to each first song list by using song behavior data of the user in a first period based on a weight scoring algorithm;
based on a cosine similarity algorithm, determining a second song list and a second score corresponding to the second song list by using song behavior data of the user in a second period;
determining the target song list according to the first score of the first song list and the second score of the second song list;
the weight-based scoring algorithm, using the song behavior data of the user in the first period, determines a first song list and a first score corresponding to each first song list, including:
determining a first song corresponding to the song behavior data of the user in the first period according to the song behavior data of the user in the first period; the user first period song behavior type corresponding to the user first period song behavior data comprises: downloading songs in a first time period of a user, collecting songs in the first time period of the user and listening to the songs in the first time period of the user; each first song corresponds to at least one song behavior of a user in a first period;
determining the first song list including the first song;
and determining the first score of the first song list according to the number of the first songs in the first song list and the song behaviors of the user at the first time period corresponding to each first song.
2. The song list recommendation method according to claim 1, wherein the determining, based on the cosine similarity algorithm, a second song list and a second score corresponding to the second song list using the user second period song behavior data comprises:
determining a second song corresponding to the song behavior data of the user in the second period according to the song behavior data of the user in the second period;
determining a label of the second song according to preset song label information, performing duplication removal processing on the label of the second song, and taking the duplicated song label as a user label;
respectively calculating cosine similarity between the user tag and the song tags of the second songs to obtain cosine similarity values;
determining second songs corresponding to a preset number of cosine similarity values with the largest values according to the sequence of the cosine similarity values from large to small;
and determining the second song list and the second score based on the second songs corresponding to the maximum number of cosine similarity values.
3. The song list recommendation method according to claim 2, wherein determining the label of the second song according to the preset song label information, performing a duplication removal process on the label of the second song, and taking the duplication-removed song label as a user label, includes:
determining copyright information corresponding to each second song according to the song identification number of each second song;
determining song labels corresponding to each piece of copyright information according to a preset copyright label mapping table;
and performing de-duplication processing on the label of the second song, and taking the de-duplicated song label as the user label.
4. A song list recommendation method according to any one of claims 1 to 3, wherein said obtaining song behaviour data of a user in a first period of time and song behaviour data of a user in a second period of time comprises:
and determining the song behavior data of the first period of time of the user and the song behavior data of the second period of time of the user according to a preset data source table.
5. A song list recommendation apparatus, comprising:
the acquisition module is used for acquiring song behavior data of a first period of time of a user and song behavior data of a second period of time of the user; wherein, the first period of time to which the song behavior data of the first period of time of the user belongs is after the second period of time to which the song behavior data of the second period of time of the user belongs;
the determining module is used for determining a target song list by utilizing the song behavior data of the first period of the user and the song behavior data of the second period of the user;
the sending module is used for sending the target song list to the user terminal;
the determining module includes:
the first song list determining sub-module is used for determining a first song list and a first score corresponding to each first song list by utilizing the song behavior data of the user in a first period based on a weight scoring algorithm;
a second song list determining sub-module, configured to determine a second song list and a second score corresponding to the second song list by using the song behavior data of the user in a second period based on a cosine similarity algorithm;
a target song list determining submodule, configured to determine the target song list according to the first score of the first song list and the second score of the second song list;
the first song list determination submodule includes:
the first song determining unit is used for determining a first song corresponding to the song behavior data of the first period of the user according to the song behavior data of the first period of the user; the user first period song behavior type corresponding to the user first period song behavior data comprises: downloading songs in a first time period of a user, collecting songs in the first time period of the user and listening to the songs in the first time period of the user; each first song corresponds to at least one song behavior of a user in a first period;
a first song list determining unit configured to determine the first song list including the first song;
and the first score determining unit is used for determining the first score of the first song list according to the number of the first songs in the first song list and the song behaviors of the user at the first time period corresponding to each first song.
6. The song order recommendation apparatus of claim 5, wherein said second song order determination sub-module comprises:
a second song determining unit, configured to determine a second song corresponding to the second period song behavior data of the user according to the second period song behavior data of the user;
the user tag determining unit is used for determining the tag of the second song according to preset song tag information, performing duplication removal processing on the tag of the second song, and taking the duplication-removed song tag as a user tag;
the cosine similarity calculation unit is used for calculating cosine similarity between the user tag and the song tags of the second songs respectively to obtain cosine similarity values;
the second song determining unit is used for determining a second song corresponding to a preset number of cosine similarity values with the largest value according to the sequence from the high value to the low value of each cosine similarity value;
and the second song list determining unit is used for determining the second song list and the second score based on the second songs corresponding to the cosine similarity values with the largest preset number.
7. The song order recommendation apparatus according to claim 6, wherein said user tag determination unit comprises:
a copyright information determining subunit, configured to determine copyright information corresponding to each second song according to a song identifier of the second song;
a song label determining subunit, configured to determine a song label corresponding to each piece of copyright information according to a preset copyright label mapping table;
and the user tag determination subunit is used for carrying out duplication removal processing on the tags of the second songs and taking the duplication-removed song tags as the user tags.
8. An electronic device, the electronic device comprising: a processor and a memory storing computer program instructions;
the instructions of the computer program when executed by the processor implement a song recommendation method as claimed in any one of claims 1 to 4.
9. A computer storage medium having stored thereon computer program instructions which, when executed by a processor, implement the song recommendation method of any one of claims 1-4.
CN201911407361.7A 2019-12-31 2019-12-31 Song list recommendation method, device, electronic equipment and computer storage medium Active CN113127674B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911407361.7A CN113127674B (en) 2019-12-31 2019-12-31 Song list recommendation method, device, electronic equipment and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911407361.7A CN113127674B (en) 2019-12-31 2019-12-31 Song list recommendation method, device, electronic equipment and computer storage medium

Publications (2)

Publication Number Publication Date
CN113127674A CN113127674A (en) 2021-07-16
CN113127674B true CN113127674B (en) 2023-07-21

Family

ID=76769398

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911407361.7A Active CN113127674B (en) 2019-12-31 2019-12-31 Song list recommendation method, device, electronic equipment and computer storage medium

Country Status (1)

Country Link
CN (1) CN113127674B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012118572A (en) * 2010-11-29 2012-06-21 Nec Corp Content recommendation system, content recommendation device, recommendation mode control method, and recommendation mode control program
CN104021162A (en) * 2014-05-28 2014-09-03 小米科技有限责任公司 Method and device for grading multimedia resource
CN104166696A (en) * 2014-08-01 2014-11-26 小米科技有限责任公司 Method and device for pushing application programs
CN105718510A (en) * 2016-01-12 2016-06-29 海信集团有限公司 Multimedia data recommendation method and device
CN109189951A (en) * 2018-07-03 2019-01-11 上海掌门科技有限公司 A kind of multimedia resource recommended method, equipment and storage medium
CN109408665A (en) * 2018-12-29 2019-03-01 咪咕音乐有限公司 Information recommendation method and device and storage medium
CN109543111A (en) * 2018-11-28 2019-03-29 广州虎牙信息科技有限公司 Recommendation information screening technique, device, storage medium and server
CN109857935A (en) * 2019-01-24 2019-06-07 腾讯科技(深圳)有限公司 A kind of information recommendation method and device
CN109885719A (en) * 2019-01-24 2019-06-14 广州小鹏汽车科技有限公司 A kind of song recommendations method, system, terminal and storage medium
CN110413837A (en) * 2019-05-30 2019-11-05 腾讯科技(深圳)有限公司 Video recommendation method and device
CN110532479A (en) * 2019-09-05 2019-12-03 北京思维造物信息科技股份有限公司 A kind of information recommendation method, device and equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090138457A1 (en) * 2007-11-26 2009-05-28 Concert Technology Corporation Grouping and weighting media categories with time periods
US20180357548A1 (en) * 2015-04-30 2018-12-13 Google Inc. Recommending Media Containing Song Lyrics

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012118572A (en) * 2010-11-29 2012-06-21 Nec Corp Content recommendation system, content recommendation device, recommendation mode control method, and recommendation mode control program
CN104021162A (en) * 2014-05-28 2014-09-03 小米科技有限责任公司 Method and device for grading multimedia resource
CN104166696A (en) * 2014-08-01 2014-11-26 小米科技有限责任公司 Method and device for pushing application programs
CN105718510A (en) * 2016-01-12 2016-06-29 海信集团有限公司 Multimedia data recommendation method and device
CN109189951A (en) * 2018-07-03 2019-01-11 上海掌门科技有限公司 A kind of multimedia resource recommended method, equipment and storage medium
CN109543111A (en) * 2018-11-28 2019-03-29 广州虎牙信息科技有限公司 Recommendation information screening technique, device, storage medium and server
CN109408665A (en) * 2018-12-29 2019-03-01 咪咕音乐有限公司 Information recommendation method and device and storage medium
CN109857935A (en) * 2019-01-24 2019-06-07 腾讯科技(深圳)有限公司 A kind of information recommendation method and device
CN109885719A (en) * 2019-01-24 2019-06-14 广州小鹏汽车科技有限公司 A kind of song recommendations method, system, terminal and storage medium
CN110413837A (en) * 2019-05-30 2019-11-05 腾讯科技(深圳)有限公司 Video recommendation method and device
CN110532479A (en) * 2019-09-05 2019-12-03 北京思维造物信息科技股份有限公司 A kind of information recommendation method, device and equipment

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
Incorporating time dynamics and implicit feedback into music recommender systems;Sánchez-Moreno D 等;《2018 IEEE/WIC/ACM International Conference on Web Intelligence (WI)》;20190113;580-585 *
基于特征值嵌入的音乐播放列表推荐模型;何丽 等;《计算机技术与发展》;20190627;第29卷(第11期);144-148 *
基于用户行为分析和混合推荐策略的个性化推荐方法研究;赵伟明;《中国优秀硕士学位论文全文数据库信息科技辑》;20150315(第3期);I138-2800 *
基于用户行为时间特征的音乐推荐算法设计与实现;李梦娴;《中国优秀硕士学位论文全文数据库信息科技辑》;20180715(第7期);I138-1979 *

Also Published As

Publication number Publication date
CN113127674A (en) 2021-07-16

Similar Documents

Publication Publication Date Title
CN107967357B (en) Friend pushing method and system and terminal equipment
JP5575902B2 (en) Information retrieval based on query semantic patterns
CN109657213B (en) Text similarity detection method and device and electronic equipment
CN109408665A (en) Information recommendation method and device and storage medium
CN111723289B (en) Information recommendation method and device
CN113327146B (en) Information tracking method and device
CN104168433A (en) Media content processing method and system
CN112488557A (en) Automatic calculation method, device and terminal based on grading standard objective scores
CN106599047B (en) Method and device for pushing information
CN104750839A (en) Data recommendation method, terminal and server
CN110110035A (en) Data processing method and device and computer readable storage medium
CN113992944A (en) Video cataloging method, device, equipment, system and medium
CN106649276A (en) Identification method and device for core product word in title
CN105447205A (en) Retrieved result sorting method and device
US20190130034A1 (en) Fingerprint clustering for content-based audio recognition
CN112733006B (en) User portrait generation method, device, equipment and storage medium
CN110147487B (en) Method and system for determining object heat and processing equipment
CN111046285B (en) Method, device, server and storage medium for determining recommendation ranking
CN111625619B (en) Query omission methods, devices, computer-readable media and electronic equipment
CN113127674B (en) Song list recommendation method, device, electronic equipment and computer storage medium
CN109857859B (en) News information processing method, device, equipment and storage medium
CN105653540B (en) Method and device for processing file attribute information
CN109508390B (en) Input prediction method, device and electronic device based on knowledge graph
CN115687756B (en) Search recommendation method and device
CN111160975A (en) Target user determination method, device, equipment and computer storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant