CN117093742A - Music data recommendation method and device - Google Patents
Music data recommendation method and device Download PDFInfo
- Publication number
- CN117093742A CN117093742A CN202311002558.9A CN202311002558A CN117093742A CN 117093742 A CN117093742 A CN 117093742A CN 202311002558 A CN202311002558 A CN 202311002558A CN 117093742 A CN117093742 A CN 117093742A
- Authority
- CN
- China
- Prior art keywords
- music data
- music
- data
- type
- recommended
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/60—Information retrieval; Database structures therefor; File system structures therefor of audio data
- G06F16/63—Querying
- G06F16/635—Filtering based on additional data, e.g. user or group profiles
- G06F16/637—Administration of user profiles, e.g. generation, initialization, adaptation or distribution
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/60—Information retrieval; Database structures therefor; File system structures therefor of audio data
- G06F16/63—Querying
- G06F16/638—Presentation of query results
- G06F16/639—Presentation of query results using playlists
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/60—Information retrieval; Database structures therefor; File system structures therefor of audio data
- G06F16/68—Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
- G06F16/687—Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using geographical or spatial information, e.g. location
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
本申请提供一种音乐数据推荐方法及装置,应用于车载等各种场景,该方法包括:获取设备的当前导航目的地信息和设备当前所在位置的环境信息,获取与所述当前导航目的地信息和所述环境信息相匹配的音乐数据;获取设备中的对象在所述设备中的音乐应用中的偏好音乐类型数据;根据所述偏好的音乐类型数据对所述音乐数据进行过滤,得到过滤后的音乐数据;获取与所述过滤后的音乐数据之间的相似度或关联程度满足预设条件的候选音乐数据;基于所述过滤后的音乐数据和所述候选音乐数据,生成推荐音乐数据列表,所述推荐音乐数据列表用于推荐给所述设备中的对象。采用本申请的方案,推荐的音乐数据能够更加符合当下的用户心情和环境状态,更贴合偏好。
This application provides a music data recommendation method and device, which can be used in various scenarios such as vehicles. The method includes: obtaining the current navigation destination information of the device and the environmental information of the current location of the device, and obtaining the current navigation destination information. Music data that matches the environmental information; obtains the preferred music type data of the object in the device in the music application of the device; filters the music data according to the preferred music type data to obtain the filtered music data; obtain candidate music data whose similarity or correlation with the filtered music data satisfies preset conditions; generate a recommended music data list based on the filtered music data and the candidate music data , the recommended music data list is used to recommend to objects in the device. Using the solution of this application, the recommended music data can be more in line with the current user's mood and environmental status, and more in line with preferences.
Description
技术领域Technical field
本申请属于音乐推荐技术领域,具体涉及一种音乐数据推荐方法及装置。This application belongs to the technical field of music recommendation, and specifically relates to a music data recommendation method and device.
背景技术Background technique
音乐应用能够为使用音乐应用的对象推荐音乐歌单,然而,现有技术中大多仅根据使用音乐应用的对象在音乐应用中的历史音乐数据进行分析,针对数据分析结果推荐与历史音乐数据相似的音乐,导致推荐给用户的音乐歌单中的音乐的音乐类型,大多与用户在音乐应用中多次播放的音乐的音乐类型相同,用户难以接触到其他类型的音乐,用户不知不觉受困于信息茧房,且现有技术未根据用户当前所处的环境做出推荐,无法满足用户在当前环境下、符合当前心情的收听音乐的偏好需求。Music applications can recommend music playlists for people who use the music application. However, most of the existing technologies only analyze the historical music data of the people who use the music application in the music application, and recommend based on the data analysis results similar to the historical music data. Music, the music types in the music playlists recommended to users are mostly the same as the music that users have played many times in music applications. It is difficult for users to access other types of music, and users are unknowingly trapped in Information cocoon room, and the existing technology does not make recommendations based on the user's current environment, and cannot meet the user's preference for listening to music in the current environment and in line with the current mood.
发明内容Contents of the invention
鉴于前述现有技术客观存在的缺陷,为了解决上述技术问题,本发明提供一种音乐数据推荐方法及装置,以解决推荐的音乐数据与用户的当前心情和当前场景情况不匹配,且音乐类型过度单一的问题,使推荐更加准确。In view of the objective defects of the aforementioned prior art, in order to solve the above technical problems, the present invention provides a music data recommendation method and device to solve the problem that the recommended music data does not match the user's current mood and the current scene situation, and the music type is excessive. A single question makes recommendations more accurate.
为实现上述目的及其他相关目的,本发明提供一种音乐数据推荐方法,所述方法包括:获取设备的当前导航目的地信息和设备当前所在位置的环境信息;获取与所述当前导航目的地信息和所述环境信息相匹配的音乐数据;获取设备中的对象在所述设备中的音乐应用中的偏好音乐类型数据;根据所述偏好音乐类型数据对所述音乐数据进行过滤,得到过滤后的音乐数据;获取与所述过滤后的音乐数据之间的相似度或关联程度满足预设条件的候选音乐数据;基于所述过滤后的音乐数据和所述候选音乐数据,生成推荐音乐数据列表,所述推荐音乐数据列表用于推荐给所述设备中的对象。In order to achieve the above objects and other related objects, the present invention provides a music data recommendation method. The method includes: obtaining the current navigation destination information of the device and the environmental information of the current location of the device; obtaining the current navigation destination information. Music data that matches the environmental information; obtains the preferred music type data of the object in the device in the music application of the device; filters the music data according to the preferred music type data to obtain the filtered music data; obtaining candidate music data whose similarity or degree of association with the filtered music data satisfies preset conditions; generating a recommended music data list based on the filtered music data and the candidate music data, The recommended music data list is used to recommend to objects in the device.
在本发明的一个实施例中,获取与所述当前导航目的地信息和所述环境信息相匹配的音乐数据,包括:基于所述当前导航目的地信息和所述环境信息,生成至少两个音乐类型标签;从音乐数据库或音乐流媒体平台获取与所述音乐类型标签相匹配的音乐数据。In one embodiment of the present invention, obtaining music data matching the current navigation destination information and the environmental information includes: generating at least two pieces of music data based on the current navigation destination information and the environmental information. Genre tag; obtain music data matching the music genre tag from a music database or music streaming platform.
在本发明的一个实施例中,所述获取设备中的对象在所述设备中的音乐应用中的偏好音乐类型数据,包括:获取所述设备中的对象在所述音乐应用中收藏的不同类型的音乐数据;所述不同类型为不同音乐风格类型、不同演唱者类型、不同语种类型、不同年代类型中的至少一种;将所述收藏的不同类型的音乐数据中的前预设数量首音乐数据,确定为偏好音乐类型数据。In one embodiment of the present invention, obtaining the preferred music type data of the object in the device in the music application in the device includes: obtaining the different types of music collected by the object in the device in the music application. music data; the different types are at least one of different music style types, different singer types, different language types, and different era types; the first preset number of pieces of music in the different types of music data collected The data is determined to be the preferred music type data.
在本发明的一个实施例中,所述获取设备中的对象在所述设备中的音乐应用中的偏好音乐类型数据,包括:获取所述设备中的对象在所述音乐应用中的预设时间段内播放的不同类型的音乐数据,所述不同类型为不同音乐风格类型、不同演唱者类型、不同语种类型、不同年代类型中的至少一种;将所述预设时间段内播放的不同类型的音乐数据中的前预设数量首音乐数据,确定为偏好音乐类型数据。In one embodiment of the present invention, obtaining the preferred music type data of the object in the device in the music application in the device includes: obtaining the preset time of the object in the device in the music application. Different types of music data played in the segment, the different types are at least one of different music styles, different singers, different languages, and different eras; the different types played in the preset time period The first preset number of pieces of music data in the music data is determined as the preferred music type data.
在本发明的一个实施例中,所述根据所述偏好音乐类型数据对所述音乐数据进行过滤,得到过滤后的音乐数据,包括:基于所述偏好音乐类型数据生成至少两个偏好音乐类型数据标签;从所述音乐数据中确定出与所述至少两个偏好音乐类型数据标签相匹配的目标音乐数据;将所述目标音乐数据作为过滤后的音乐数据。In one embodiment of the present invention, filtering the music data according to the preferred music type data to obtain filtered music data includes: generating at least two preferred music type data based on the preferred music type data. Tags; determining target music data matching the at least two preferred music type data tags from the music data; using the target music data as filtered music data.
在本发明的一个实施例中,所述获取与所述过滤后的音乐数据之间的相似度或关联程度满足预设条件的候选音乐数据,包括:从所述音乐数据中删除所述过滤后的音乐数据,得到删除后的音乐数据;从所述删除后的音乐数据中确定与所述过滤后的音乐数据之间相似度或者关联程度满足预设条件的音乐数据,得到候选音乐数据,所述预设条件为相似度大于预设相似度阈值或关联程度大于预设关联程度阈值。In one embodiment of the present invention, obtaining candidate music data whose similarity or correlation with the filtered music data meets preset conditions includes: deleting the filtered music data from the music data. music data to obtain deleted music data; determine from the deleted music data music data whose similarity or degree of association with the filtered music data satisfies preset conditions to obtain candidate music data, so The preset condition is that the similarity is greater than a preset similarity threshold or the degree of correlation is greater than a preset correlation threshold.
在本发明的一个实施例中,所述基于所述过滤后的音乐数据和所述候选音乐数据,生成推荐音乐数据列表,包括:根据不同音乐类型对所述过滤后的音乐数据和所述候选音乐数据进行排序,生成候选推荐音乐数据列表;连续数量首同一音乐类型的音乐数据的数量大于预设数量首时,在连续数量首同一音乐类型的音乐数据的目标位置处插入至少一首其他音乐类型的音乐数据,得到所述推荐音乐数据列表;所述目标位置位于第一位置和第二位置之间,第一位置为所述连续数量首同一音乐类型的音乐数据中的第一首音乐数据所在的位置,第二位置为所述连续数量首同一音乐类型的音乐数据中的第预设数量首音乐数据所在的位置。In one embodiment of the present invention, generating a recommended music data list based on the filtered music data and the candidate music data includes: comparing the filtered music data and the candidate music data according to different music types. The music data is sorted to generate a list of candidate recommended music data; when the number of consecutive pieces of music data of the same music type is greater than the preset number, at least one piece of other music is inserted at the target position of the consecutive number of pieces of music data of the same music type. type of music data to obtain the recommended music data list; the target position is located between the first position and the second position, and the first position is the first piece of music data among the consecutive pieces of music data of the same music type. The second position is the position where the preset number of pieces of music data among the consecutive pieces of music data of the same music type is located.
在本发明的一个实施例中,所述基于所述过滤后的音乐数据和所述候选音乐数据,生成推荐音乐数据列表之后,所述方法还包括:发送所述推荐音乐数据列表中的音乐数据至所述设备中的对象;获取所述设备中的对象基于所述推荐音乐数据列表中的音乐数据所发送的音乐反馈信息;基于所述音乐反馈信息的信息类型和所述音乐反馈信息的信息数量,对所述推荐音乐数据列表中的音乐数据进行调整。In one embodiment of the present invention, after generating a recommended music data list based on the filtered music data and the candidate music data, the method further includes: sending the music data in the recommended music data list to the object in the device; obtain music feedback information sent by the object in the device based on the music data in the recommended music data list; information based on the information type of the music feedback information and the music feedback information quantity to adjust the music data in the recommended music data list.
在本发明的一个实施例中,所述音乐反馈信息包括第一反馈信息和第二反馈信息,所述第一反馈信息用于表征所述设备中的对象喜欢所述音乐数据或者收藏所述音乐数据,所述第二反馈信息用于表征所述设备中的对象不喜欢所述音乐数据,所述基于所述音乐反馈信息的信息类型和音乐反馈信息的信息数量,对所述推荐音乐数据列表中的音乐数据进行调整,包括:当所述音乐反馈信息为所述第一反馈信息且所述音乐反馈信息的数量大于预设数量时,增加推荐音乐数据列表中的第一目标音乐数据,所述第一目标音乐数据为与所述第一反馈信息针对的音乐数据之间的相似度或关联程度满足预设条件的音乐数据;当所述音乐反馈信息为所述第二反馈信息时且所述音乐反馈信息的数量大于预设数量时,减少推荐音乐数据列表中的第二目标音乐数据,所述第二目标音乐数据为与所述第二音乐反馈信息针对的音乐数据之间的相似度或关联程度达到预设条件的音乐数据,所述预设条件为相似度达到预设相似度阈值或关联程度达到预设关联程度阈值。In one embodiment of the present invention, the music feedback information includes first feedback information and second feedback information. The first feedback information is used to represent that the object in the device likes the music data or collects the music. data, the second feedback information is used to represent that the object in the device does not like the music data, and the recommended music data list is based on the information type of the music feedback information and the information quantity of the music feedback information. Adjusting the music data in the music data includes: when the music feedback information is the first feedback information and the amount of the music feedback information is greater than a preset amount, adding the first target music data in the recommended music data list, so The first target music data is music data whose similarity or correlation with the music data for which the first feedback information is directed satisfies a preset condition; when the music feedback information is the second feedback information and the When the amount of music feedback information is greater than the preset amount, the second target music data in the recommended music data list is reduced, and the second target music data is the similarity with the music data targeted by the second music feedback information. Or music data whose correlation degree reaches a preset condition, and the preset condition is that the similarity reaches a preset similarity threshold or the correlation degree reaches a preset correlation threshold.
另一方面,本发明提供了一种音乐数据推荐装置,所述装置包括:获取模块,用于获取所述当前导航目的地信息和所述环境信息,获取与所述当前导航目的地信息和所述环境信息相匹配的音乐类型的音乐数据,获取所述设备中的对象在所述设备中的音乐应用中的偏好音乐类型数据,获取所述设备中的对象针对所述推荐音乐数据列表中的音乐数据所发送的音乐反馈信息;过滤模块,用于对所述音乐数据进行过滤,得到所述过滤后的音乐数据;计算模块,用于计算所述删除后的音乐数据与所述过滤后的音乐数据之间的相似度或者关联程度;排序模块,用于基于所述过滤后的音乐数据和所述候选音乐数据进行排序,生成推荐音乐数据列表;输出模块,用于输出所述推荐音乐数据列表并将所述推荐音乐数据列表发送至所述设备中的对象。On the other hand, the present invention provides a music data recommendation device. The device includes: an acquisition module, configured to acquire the current navigation destination information and the environment information, and acquire the information related to the current navigation destination information and the environment information. music data of the music type matching the environmental information, obtain the preferred music type data of the object in the device in the music application in the device, and obtain the preferred music type data of the object in the device in the recommended music data list Music feedback information sent by the music data; a filtering module for filtering the music data to obtain the filtered music data; a calculation module for calculating the difference between the deleted music data and the filtered music data. The degree of similarity or association between music data; a sorting module for sorting based on the filtered music data and the candidate music data, and generating a list of recommended music data; an output module for outputting the recommended music data List and send the list of recommended music data to the object in the device.
本发明提出的音乐数据推荐方法,利用导航目的地信息和环境信息筛选出一批符合用户当前的心情状态和当前具体场景概况的音乐数据,能够引入导航目的地信息和环境信息的客观因素以确定推荐音乐数据的范围,再根据设备中对象的偏好音乐类型数据对所述音乐数据的数量,从中过滤出符合设备对象偏好的音乐,能够更准确地推荐符合用户当下心情和环境状态的音乐数据,同时避免只推荐单一类型的音乐数据,突破了推荐音乐数据的信息茧房,丰富所推荐的音乐数据的类型。The music data recommendation method proposed by the present invention uses navigation destination information and environmental information to screen out a batch of music data that conforms to the user's current mood state and current specific scene profile, and can introduce objective factors of navigation destination information and environmental information to determine The range of recommended music data, and then based on the preferred music type data of the object in the device, the amount of the music data is filtered out to match the device object's preferences, which can more accurately recommend music data that matches the user's current mood and environmental state. At the same time, it avoids recommending only a single type of music data, breaks through the information cocoon of recommended music data, and enriches the types of recommended music data.
附图说明Description of the drawings
为了更清楚地说明本申请实施例或现有技术中的技术方案和优点,下面将对实施例或现有技术描述中所需要使用的附图作简单的介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它附图。In order to more clearly explain the technical solutions and advantages in the embodiments of the present application or the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings in the following description The drawings are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without exerting creative efforts.
图1是本发明提供的一种音乐数据推荐方法的流程示意图一。Figure 1 is a schematic flow chart 1 of a music data recommendation method provided by the present invention.
图2是本发明提供的一种音乐数据推荐方法的流程示意图二。Figure 2 is a schematic flow chart 2 of a music data recommendation method provided by the present invention.
图3是本发明提供的一种音乐数据推荐方法的流程示意图三。Figure 3 is a flow chart 3 of a music data recommendation method provided by the present invention.
图4是本发明提供的一种音乐数据推荐方法的流程示意图四。Figure 4 is a schematic flow chart 4 of a music data recommendation method provided by the present invention.
图5是本发明提供的一种音乐数据推荐方法的流程示意图五。Figure 5 is a schematic flow chart 5 of a music data recommendation method provided by the present invention.
图6是本发明提供的一种音乐数据推荐装置的框图。Figure 6 is a block diagram of a music data recommendation device provided by the present invention.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the scope of protection of this application.
需要说明的是,本申请实施例的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本申请实施例的实施例能够以除了在这里图示或描述的那些以外的顺序实施。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。在本实施例的描述中,除非另有说明,“多个”的含义是两个或两个以上。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或服务器不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be noted that the terms "first", "second", etc. in the description and claims of the embodiments of this application and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. order. It is to be understood that the data so used are interchangeable under appropriate circumstances so that the embodiments of the embodiments of the application described herein can be practiced in sequences other than those illustrated or described herein. Therefore, features defined as "first" and "second" may explicitly or implicitly include one or more of these features. In the description of this embodiment, unless otherwise specified, "plurality" means two or more. Furthermore, the terms "include" and "having" and any variations thereof are intended to cover non-exclusive inclusions, e.g., a process, method, system, product or server that encompasses a series of steps or units and need not be limited to those explicitly listed. Those steps or elements may instead include other steps or elements not expressly listed or inherent to the process, method, product or apparatus.
为了使本申请实施例公开的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请实施例进行进一步详细说明。应当理解,此处描述的具体实施例仅仅用以解释本申请实施例,并不用于限定本申请实施例。In order to make the purpose, technical solutions and advantages disclosed in the embodiments of the present application clearer, the embodiments of the present application will be further described in detail below in conjunction with the drawings and examples. It should be understood that the specific embodiments described here are only used to explain the embodiments of the present application and are not used to limit the embodiments of the present application.
图1是本发明提供的一种音乐数据推荐方法的流程示意图一,图2是本发明提供的一种音乐数据推荐方法的流程示意图二,图3是本发明提供的一种音乐数据推荐方法的流程示意图三,图4是本发明提供的一种音乐数据推荐方法的流程示意图四,图5是本发明提供的一种音乐数据推荐方法的流程示意图五,图6是本发明提供的一种音乐数据推荐装置的框图。Figure 1 is a schematic flowchart 1 of a music data recommendation method provided by the present invention. Figure 2 is a schematic flowchart 2 of a music data recommendation method provided by the present invention. Figure 3 is a schematic flowchart 2 of a music data recommendation method provided by the present invention. Flowchart 3. Figure 4 is a schematic flowchart 4 of a music data recommendation method provided by the present invention. Figure 5 is a schematic flowchart 5 of a music data recommendation method provided by the present invention. Figure 6 is a music data recommendation method provided by the present invention. Block diagram of the data recommendation device.
本说明书提供了如实施例或流程图上述的方法操作步骤,但基于常规或者无创造性的劳动可以包括更多或者更少的操作步骤。实施例中列举的步骤顺序仅仅为众多步骤执行顺序中的一种方式,不代表唯一的执行顺序。在实际中的系统或服务器产品执行时,可以按照实施例或者附图所示的方法顺序执行或者并行执行(例如并行处理器或者多线程处理的环境)。本发明提供了一种音乐数据推荐方法,如图1所示,至少包括以下步骤:This specification provides the above-mentioned method operation steps as examples or flow charts, but more or less operation steps may be included based on conventional or non-inventive efforts. The sequence of steps listed in the embodiment is only one way of executing the sequence of many steps, and does not represent the only execution sequence. When the actual system or server product is executed, it may be executed sequentially or in parallel (for example, in a parallel processor or multi-threaded processing environment) according to the methods shown in the embodiments or drawings. The present invention provides a music data recommendation method, as shown in Figure 1, which at least includes the following steps:
S102:获取设备的当前导航目的地信息和设备当前所在位置的环境信息;S102: Obtain the current navigation destination information of the device and the environmental information of the current location of the device;
可选地,设备当前导航目的地信息为从车载导航系统中获取的导航目的地信息。Optionally, the current navigation destination information of the device is the navigation destination information obtained from the vehicle navigation system.
可选地,环境信息可包括天气信息、导航目的地周围的地理信息、车辆行驶过程所处的时间段和所在位置的交通情况等。示例性地,天气信息可以包括天气类型、气温、空气质量状况等,如天气类型为晴朗、阴天、多云、大雨等,气温为30摄氏度或者25摄氏度,空气质量状况为优、良或轻度污染等。Optionally, the environmental information may include weather information, geographical information around the navigation destination, the time period during which the vehicle is traveling, traffic conditions at the location, etc. For example, weather information may include weather type, temperature, air quality conditions, etc. For example, the weather type is sunny, cloudy, cloudy, heavy rain, etc., the temperature is 30 degrees Celsius or 25 degrees Celsius, and the air quality conditions are excellent, good, or mild. pollution etc.
可选地,设备可包括车载智能系统、智能手机、智能电脑等。Optionally, the device may include a vehicle-mounted intelligent system, a smartphone, a smart computer, etc.
S104:获取与所述当前导航目的地信息和所述环境信息相匹配的音乐数据;S104: Obtain music data matching the current navigation destination information and the environment information;
可选地,可以从所述当前导航目的地信息和所述环境信息中提取音乐类型标签,示例性地,音乐类型标签可以为“公园”“广场”“阴天”“凉爽”等;所述音乐数据是与所述当前导航目的信息和所述环境信息所对应的标签相匹配的音乐数据,本申请不限制所述音乐数据的类型,示例性地,音乐数据可以是由“演唱者名”“年代”“风格”等标签组合起来表示的音乐。Optionally, music type tags can be extracted from the current navigation destination information and the environment information. For example, the music type tags can be "park", "square", "cloudy", "cool", etc.; The music data is music data that matches the tag corresponding to the current navigation purpose information and the environment information. This application does not limit the type of the music data. For example, the music data can be composed of "singer name" Music represented by a combination of tags such as "era" and "style".
S106:获取设备中的对象在所述设备中的音乐应用中的偏好音乐类型数据;S106: Obtain the preferred music type data of the object in the device in the music application in the device;
可选地,偏好音乐类型数据的来源可以为设备中的对象在所述设备中的音乐应用中的历史数据。示例性地,其可以包括设备中的对象在音乐应用中预设时间段内播放的前预设数量首音乐、在音乐应用中收藏的不同类型的音乐数据、在音乐应用中预设时间段内按照播放量从高到低排序的前预设数量首音乐等。Optionally, the source of the preferred music type data may be the historical data of the object in the device in the music application in the device. For example, it may include the first preset number of pieces of music played by the object in the device within the preset time period in the music application, different types of music data collected in the music application, and the preset time period in the music application. The first preset number of music, etc., sorted from high to low by playback volume.
设备中的对象指的是设备中的注册的用户的账号,可选地,设备中的注册的用户的账号可以为操作车辆的用户在车载智能系统中注册使用的账号、智能手机的用户在智能手机的音乐应用中注册使用的账号。The object in the device refers to the account of the registered user in the device. Optionally, the account of the registered user in the device can be the account registered in the vehicle-mounted intelligent system by the user operating the vehicle, or the account registered by the user of the smartphone in the smart phone. The account registered in the music app on your phone.
S108:根据所述偏好音乐类型数据对所述音乐数据进行过滤,得到过滤后的音乐数据;S108: Filter the music data according to the preferred music type data to obtain filtered music data;
可选地,基于偏好音乐类型生成两个以上偏好音乐类型数据标签,从所述音乐数据中确定出同时与所述至少两个偏好音乐类型数据标签相匹配的目标音乐数据,本申请不限制偏好音乐类型数据的类型,示例性地,偏好音乐类型数据是指从设备中的对象在音乐应用中的历史数据获取的,可以由“演唱者名”“年代”“风格”等标签组合起来表示的音乐数据。Optionally, two or more preferred music type data tags are generated based on the preferred music type, and target music data that simultaneously matches the at least two preferred music type data tags is determined from the music data. This application does not limit preferences. The type of music type data. For example, the preferred music type data is obtained from the historical data of the object in the device in the music application, and can be represented by a combination of tags such as "singer name", "age", and "style". music data.
S110:获取与所述过滤后的音乐数据之间的相似度或关联程度满足预设条件的候选音乐数据;S110: Obtain candidate music data whose similarity or correlation with the filtered music data satisfies preset conditions;
可选地,满足预设条件是指相似度达到预设相似度阈值或关联程度达到预设关联程度阈值。在符合当下用户的心情和环境信息的音乐数据中,召回与对象的偏好需求较为贴合的,即相似或者相关联,但不完全与对象的偏好相匹配的音乐数据,能够丰富推荐音乐数据的类型。Optionally, meeting the preset condition means that the similarity reaches the preset similarity threshold or the degree of correlation reaches the preset correlation threshold. Among the music data that conforms to the current user's mood and environmental information, recalling music data that is more in line with the subject's preference needs, that is, is similar or related, but does not completely match the subject's preferences, can enrich the recommended music data. type.
其中,相似度是指音乐数据之间的特征的相似程度,关联程度是指音乐数据的特征之间存在的关联性,所述预设条件为相似度大于预设相似度阈值或关联程度大于预设关联程度阈值。The similarity refers to the degree of similarity between the features of the music data, and the degree of correlation refers to the correlation between the features of the music data. The preset condition is that the similarity is greater than the preset similarity threshold or the degree of association is greater than the preset Set the correlation threshold.
S112:基于所述过滤后的音乐数据和所述候选音乐数据,生成推荐音乐数据列表,所述推荐音乐数据列表用于推荐给所述设备中的对象。S112: Based on the filtered music data and the candidate music data, generate a recommended music data list, where the recommended music data list is used to recommend to objects in the device.
可选地,可以将过滤后的音乐数据和候选音乐数据按照一定方式进行排序,经过排序后生成推荐音乐数据列表,如利用多样性增强进行排序。Optionally, the filtered music data and candidate music data can be sorted in a certain manner, and a recommended music data list is generated after sorting, for example, sorting using diversity enhancement.
本发明提出的音乐数据推荐方法,利用导航目的地信息和环境信息筛选出一批符合用户当前的心情状态和具体场景概况的音乐数据,能够引入导航目的地信息和环境信息的客观因素以确定推荐音乐数据的范围,再根据设备中对象的偏好音乐类型数据对所述音乐数据的数量,从中过滤出符合设备对象偏好的音乐,能够更准确地推荐符合用户当下心情和环境状态的音乐数据,突破了推荐音乐数据的信息茧房,同时也能丰富推荐音乐数据的类型。The music data recommendation method proposed by the present invention uses navigation destination information and environmental information to screen out a batch of music data that conforms to the user's current mood state and specific scene profile, and can introduce objective factors of navigation destination information and environmental information to determine recommendations. The range of music data, and then based on the preferred music type data of the object in the device, the amount of music data is filtered out to match the preferences of the device object, which can more accurately recommend music data that matches the user's current mood and environmental state, breaking through It not only provides information cocoon for recommended music data, but also enriches the types of recommended music data.
在本发明的一个实施例中,获取与所述当前导航目的地信息和所述环境信息相匹配的音乐数据,包括:基于所述当前导航目的地信息和所述环境信息,生成至少两个音乐类型标签;从音乐数据库或音乐流媒体平台获取与所述音乐类型标签相匹配的音乐数据。In one embodiment of the present invention, obtaining music data matching the current navigation destination information and the environmental information includes: generating at least two pieces of music data based on the current navigation destination information and the environmental information. Genre tag; obtain music data matching the music genre tag from a music database or music streaming platform.
该实施例通过对当前导航目的地信息和环境信息的获取,基于这两个外部环境因素选取由外部环境因素决定的音乐数据,能够突破音乐数据推荐的信息茧房。This embodiment can break through the information cocoon of music data recommendation by acquiring current navigation destination information and environmental information, and selecting music data determined by external environmental factors based on these two external environmental factors.
本申请不对音乐类型标签作具体限制,示例性地,音乐类型标签指的是与音乐数据匹配的音乐类型的标签,例如,“乡村”“抒情”“粤语”,音乐数据库或流媒体平台指的是存放有音乐数据、可供播放的平台或者数据库。例如,当前导航目的地信息为“某某西装定制店”,天气类型为晴朗,可以生成音乐类型标签为“西装”“晴朗”,可从音乐数据库中获得与“西装”“晴朗”两个音乐类型标签匹配的音乐数据。This application does not specifically limit the music type tag. For example, the music type tag refers to the tag of the music type that matches the music data, for example, "country", "lyrical", "Cantonese", and the music database or streaming media platform refers to It is a platform or database that stores music data and can be played. For example, if the current navigation destination information is "a certain suit customization shop" and the weather type is sunny, the music type tags can be generated as "suit" and "sunny", and the two music types "suit" and "sunny" can be obtained from the music database. Music data to which the genre tag matches.
如前所述,偏好音乐类型数据的来源可以包括设备中的对象在音乐应用中预设时间段内播放的前预设数量首音乐、在音乐应用中收藏的不同类型的音乐数据、在音乐应用中预设时间段内按照播放量从高到低排序的前预设数量首音乐等。在本发明提供的另外一种实施例中,具体地,图2提供了一种音乐数据推荐方法的流程示意图二,如图2所示,上述步骤106还可以包括:As mentioned above, the source of preferred music type data may include the first preset number of pieces of music played by the object in the device within a preset time period in the music application, different types of music data collected in the music application, The first preset number of songs sorted from high to low by playback volume within the preset time period, etc. In another embodiment provided by the present invention, specifically, Figure 2 provides a schematic flowchart 2 of a music data recommendation method. As shown in Figure 2, the above step 106 may also include:
S1061:获取所述设备中的对象在所述音乐应用中收藏的不同类型的音乐数据,将所述收藏的不同类型的音乐数据中的前预设数量首音乐数据,确定为偏好音乐类型数据。S1061: Obtain different types of music data collected by the object in the device in the music application, and determine the first preset number of pieces of music data among the different types of music data collected as preferred music type data.
本申请不对音乐的类型作具体限制,示例性地,可以为“摇滚”“牛仔”“乡村”,预设数量可以根据实际需求进行设置,在此不做具体限定,例如,将预设数量设定为50首或者100首,则S106步骤为获取设备中的对象在音乐应用中收藏的前50首音乐或者前100首音乐的偏好音乐类型数据。This application does not specifically limit the type of music. For example, it can be "rock", "cowboy" and "country". The preset number can be set according to actual needs. There is no specific limit here. For example, the preset number can be set according to actual needs. If the number is 50 or 100, then step S106 is to obtain the preferred music type data of the first 50 pieces of music or the first 100 pieces of music collected by the object in the device in the music application.
在本发明提供的另外一种实施例中,具体地,图3提供了一种音乐数据推荐方法的流程示意图三,如图3所示,上述步骤106还可以包括:In another embodiment provided by the present invention, specifically, Figure 3 provides a schematic flowchart 3 of a music data recommendation method. As shown in Figure 3, the above step 106 may also include:
S1062:获取所述设备中的对象在所述音乐应用中的预设时间段内播放的不同类型的音乐数据,将所述预设时间段内播放的不同类型的音乐数据中的前预设数量首音乐数据,确定为偏好音乐类型数据。S1062: Obtain different types of music data played by objects in the device within a preset time period in the music application, and add the previously preset number of different types of music data played within the preset time period. The piece of music data is determined to be the preferred music type data.
预设时间段可以根据实际需求进行设置,在此不做具体限定,示例性地,可以为自获取音乐数据之日起的前30天内。The preset time period can be set according to actual needs, and is not specifically limited here. For example, it can be within the first 30 days from the date of obtaining the music data.
在S1061和S1062中的所述不同类型为不同音乐风格类型、不同演唱者类型、不同语种类型、不同年代类型等不同类型中的至少一种。示例性地,音乐风格类型可以为流行风格、乡村风格、摇滚风格,演唱者类型可以为华语歌手、日韩歌手等,语种类型可以为华语、粤语、俄语、英语等。The different types in S1061 and S1062 are at least one of different types such as different music style types, different singer types, different language types, different era types, etc. For example, the music style type can be pop style, country style, rock style, the singer type can be Chinese singer, Japanese and Korean singer, etc., and the language type can be Chinese, Cantonese, Russian, English, etc.
此外,步骤S106获取的偏好音乐类型数据的来源,还可以为设备中的对象在音乐应用中预设时间段内按照播放量从高到低排序的前预设数量首音乐,例如,设备中的对象在音乐应用中预设时间段内按照播放量排序的前50首或者前100首音乐的偏好音乐类型数据。In addition, the source of the preferred music type data obtained in step S106 can also be the first preset number of pieces of music that are sorted from high to low by play volume within the preset time period in the music application by the object in the device, for example, Preferred music type data of the subject's top 50 or top 100 pieces of music sorted by play volume within the preset time period in the music application.
本发明的该实施例设置了能够获取偏好音乐类型数据的多种来源,能够兼顾不同对象在音乐应用中的使用情况,用不同来源获取对象的偏好音乐类型数据,能够更好地评估对象对音乐的偏好。This embodiment of the present invention sets up multiple sources that can obtain preferred music type data, can take into account the usage of different objects in music applications, use different sources to obtain the object's preferred music type data, and can better evaluate the object's interest in music. Preferences.
在本发明的一个实施例中,所述根据所述偏好音乐类型数据对所述音乐数据进行过滤,得到过滤后的音乐数据,包括:In one embodiment of the present invention, filtering the music data according to the preferred music type data to obtain filtered music data includes:
基于所述偏好音乐类型数据生成至少两个偏好音乐类型数据标签;从所述音乐数据中确定出与所述至少两个偏好音乐类型数据标签相匹配的目标音乐数据;将所述目标音乐数据作为过滤后的音乐数据。Generate at least two preferred music type data tags based on the preferred music type data; determine target music data matching the at least two preferred music type data tags from the music data; use the target music data as Filtered music data.
本发明的该实施例能够兼顾对象对音乐数据的偏好程度确定目标音乐数据,更符合对象的偏好需要。This embodiment of the present invention can determine the target music data taking into account the subject's preference for music data, and is more in line with the subject's preference needs.
在本发明的一个实施例中,所述获取与所述过滤后的音乐数据之间的相似度或关联程度满足预设条件的候选音乐数据,包括:In one embodiment of the present invention, the acquisition of candidate music data whose similarity or correlation with the filtered music data meets preset conditions includes:
从所述音乐数据中删除所述过滤后的音乐数据,得到删除后的音乐数据;从所述删除后的音乐数据中确定与所述过滤后的音乐数据之间相似度或者关联程度满足预设条件的音乐数据,得到候选音乐数据。Delete the filtered music data from the music data to obtain deleted music data; determine the degree of similarity or correlation between the deleted music data and the filtered music data to satisfy a preset Conditional music data to obtain candidate music data.
其中,相似度是指音乐数据之间的特征的相似程度,关联程度是指音乐数据的特征之间存在的关联性,所述预设条件为相似度大于预设相似度阈值或关联程度大于预设关联程度阈值。The similarity refers to the degree of similarity between the features of the music data, and the degree of correlation refers to the correlation between the features of the music data. The preset condition is that the similarity is greater than the preset similarity threshold or the degree of association is greater than the preset Set the correlation threshold.
本发明提供的该实施例能够针对删除后的音乐数据,召回与过滤后的音乐数据之间相似或者存在关联的音乐数据,避免音乐数据完全由对象的偏好所决定。The embodiment provided by the present invention can recall music data that is similar or related to the filtered music data for the deleted music data, thereby preventing the music data from being completely determined by the object's preferences.
在本发明提供的一个实施例中,图4是本发明提供的一种音乐数据推荐方法的流程示意图四,如图4所示,所述基于所述过滤后的音乐数据和所述候选音乐数据,生成推荐音乐数据列表,还包括:In one embodiment provided by the present invention, Figure 4 is a flow chart 4 of a music data recommendation method provided by the present invention. As shown in Figure 4, the method based on the filtered music data and the candidate music data , generate a recommended music data list, also including:
S402:根据不同音乐类型对所述过滤后的音乐数据和所述候选音乐数据进行排序,生成候选推荐音乐数据列表;S402: Sort the filtered music data and the candidate music data according to different music types, and generate a list of candidate recommended music data;
本申请不限制音乐类型,示例性地,不同音乐类型可以为“乡村”“摇滚”“抒情”等。所述候选推荐音乐数据列表为对所述过滤后的音乐数据和所述候选音乐数据进行初次排序生成的音乐数据列表,按照不同音乐类型进行排列,示例性地,在候选推荐音乐数据列表中,有8首连续排列的音乐类型为“抒情”的音乐数据。This application does not limit the music type. For example, different music types can be "country", "rock", "lyrical", etc. The candidate recommended music data list is a music data list generated by first sorting the filtered music data and the candidate music data, and is arranged according to different music types. For example, in the candidate recommended music data list, There are 8 consecutively arranged pieces of music data with the music type "lyrical".
S404:当连续数量首同一音乐类型的音乐数据的数量大于预设数量首时,在连续数量首同一音乐类型的音乐数据的目标位置处插入至少一首其他音乐类型的音乐数据,得到所述推荐音乐数据列表;所述目标位置位于第一位置和第二位置之间,第一位置为所述连续数量首同一音乐类型的音乐数据中的第一首音乐数据所在的位置,第二位置为所述连续数量首同一音乐类型的音乐数据中的第预设数量首音乐数据所在的位置。S404: When the number of consecutive pieces of music data of the same music type is greater than the preset number, insert at least one piece of music data of another music type at the target position of the consecutive pieces of music data of the same music type to obtain the recommendation. Music data list; the target position is located between the first position and the second position, the first position is the position of the first piece of music data in the continuous number of music data of the same music type, and the second position is the position of the first piece of music data of the same music type. The location of the preset number of pieces of music data among the consecutive pieces of music data of the same music type.
可选地,该实施例利用多样性增强排序对所述候选推荐音乐数据列表进再次排序,在同一音乐类型的音乐数据的数量超过预设数量时,插入其他类型的音乐数据,打乱候选推荐音乐数据列表的排序,示例性地,设置预设数量为6首,当候选推荐音乐列表中存在连续8首的音乐类型均为“爵士”的音乐数据,则在所述8首音乐类型为“爵士”的音乐数据中的第一首到第6首之间插入其他类型的音乐数据,如插入一首音乐风格为“抒情”的音乐数据。Optionally, this embodiment uses diversity-enhanced sorting to re-sort the candidate recommended music data list. When the number of music data of the same music type exceeds the preset number, other types of music data are inserted to disrupt the candidate recommendations. For the sorting of the music data list, for example, the preset number is set to 6. When there are 8 consecutive pieces of music data in the candidate recommended music list whose music type is "Jazz", then the 8 pieces of music type are "Jazz". Insert other types of music data between the first to sixth pieces of music data of "Jazz", such as inserting a piece of music data with a music style of "lyrical".
对所述候选推荐音乐数据列表进行打乱后,得到所述推荐音乐数据列表,其中每连续数量首同一音乐类型的音乐数据的数量均不超过预设数量,本申请对预设数量不做赘述,可以根据实际情况对预设数量进行设置,例如,设置预设数量为4首,则不能存在连续5首均为同一个演唱者的音乐数据,也不能存在连续5首均为同一语种的音乐数据,据此,当连续5首为中文语种的音乐数据时,则在该连续5首中文歌的第1首音乐数据所在的位置与第4首音乐数据所在的位置之间插入其他类型的音乐数据;又例如,设置预设数量为5首,则推荐音乐数据列表中每连续数量首的同一音乐类型的音乐数据数量可以为2首、3首、4首、5首,不存在连续数量首的同一音乐类型的音乐数据数量为6首以上的情形。After the candidate recommended music data list is scrambled, the recommended music data list is obtained, in which the number of music data of the same music type for each consecutive number does not exceed the preset number. This application will not elaborate on the preset number. , the preset number can be set according to the actual situation. For example, if the preset number is set to 4, then there cannot be music data of 5 consecutive pieces by the same singer, nor can there be 5 consecutive pieces of music of the same language. According to this, when the 5 consecutive Chinese songs are music data of the Chinese language, other types of music are inserted between the position of the first music data of the 5 consecutive Chinese songs and the position of the 4th music data. data; for another example, if the preset number is set to 5, then the number of music data of the same music type for each consecutive number of songs in the recommended music data list can be 2, 3, 4, or 5. There is no consecutive number of songs. The number of music data of the same music type is more than 6 pieces.
本发明提供的该实施例能够在保持个性化推荐的基础上,增加推荐结果的多样性,以避免过度推荐相似的歌曲,以增加用户的选择性和听歌体验,能够根据对象的反馈对推荐音乐数据列表进行优化,更加符合对象的偏好,增强最终生成的音乐数据列表的随机性,降低推荐的音乐数据列表中同类型音乐的重复性,避免用户听腻。The embodiment provided by the present invention can increase the diversity of recommendation results on the basis of maintaining personalized recommendations to avoid over-recommendation of similar songs, so as to increase the user's selectivity and listening experience, and can make recommendations based on the feedback of the object. The music data list is optimized to be more in line with the object's preferences, enhance the randomness of the final generated music data list, reduce the repetition of the same type of music in the recommended music data list, and prevent users from getting bored.
在本发明的一个实施例中,在所述基于所述过滤后的音乐数据和所述候选音乐数据,生成推荐音乐数据列表之后,所述方法还包括:In one embodiment of the present invention, after generating a recommended music data list based on the filtered music data and the candidate music data, the method further includes:
发送所述推荐音乐数据列表中的音乐数据至所述设备中的对象;获取所述设备中的对象基于所述推荐音乐数据列表中的音乐数据所发送的音乐反馈信息;基于所述音乐反馈信息的信息类型和所述音乐反馈信息的信息数量,对所述推荐音乐数据列表中的音乐数据进行调整。Send music data in the recommended music data list to an object in the device; obtain music feedback information sent by the object in the device based on the music data in the recommended music data list; based on the music feedback information The information type and the information quantity of the music feedback information are used to adjust the music data in the recommended music data list.
图5是本发明提供的一种音乐数据推荐方法的流程示意图五,如图5所示,在本发明的一个实施例中,所述基于所述音乐反馈信息的信息类型和音乐反馈信息的信息数量,对所述推荐音乐数据列表中的音乐数据进行调整,还包括:Figure 5 is a schematic flow chart 5 of a music data recommendation method provided by the present invention. As shown in Figure 5, in one embodiment of the present invention, the information type based on the music feedback information and the information of the music feedback information Quantity, adjusting the music data in the recommended music data list, also includes:
S502:获取所述设备中的对象基于所述推荐音乐数据列表中的音乐数据所发送的音乐反馈信息;S502: Obtain music feedback information sent by the object in the device based on the music data in the recommended music data list;
获取音乐反馈信息,可以用于对推荐音乐数据的准确性的评估,从而更新推荐音乐数据列表,优化推荐的音乐数据,其中,音乐反馈信息是用于表征设备中的对象对音乐数据的喜恶程度的信息。Obtaining music feedback information can be used to evaluate the accuracy of the recommended music data, thereby updating the recommended music data list and optimizing the recommended music data. The music feedback information is used to characterize the likes and dislikes of the objects in the device towards the music data. degree of information.
S504:当所述音乐反馈信息为所述第一反馈信息且所述音乐反馈信息的数量大于预设数量时,增加推荐音乐数据列表中的第一目标音乐数据;当所述音乐反馈信息为所述第二反馈信息时且所述音乐反馈信息的数量大于预设数量时,减少推荐音乐数据列表中的第二目标音乐数据。S504: When the music feedback information is the first feedback information and the quantity of the music feedback information is greater than the preset quantity, add the first target music data in the recommended music data list; when the music feedback information is the When the second feedback information is received and the amount of the music feedback information is greater than the preset amount, the second target music data in the recommended music data list is reduced.
第一反馈信息用于表征所述设备中的对象喜欢所述音乐数据或者收藏所述音乐数据,如设备中的对象对推荐音乐数据进行了收藏的操作,则形成第一反馈信息,第二反馈信息用于表征所述设备中的对象不喜欢所述音乐数据,如设备中的对象对推荐音乐数据进行了取消收藏、切歌等操作,则形成第二反馈信息。The first feedback information is used to represent that the object in the device likes the music data or collects the music data. If the object in the device collects the recommended music data, the first feedback information is formed, and the second feedback is The information is used to indicate that the object in the device does not like the music data. If the object in the device performs operations such as canceling favorites, switching songs, etc. on the recommended music data, the second feedback information is formed.
当第一反馈信息的数量或第二反馈信息的数量大于预设数量时,增加第一目标音乐数据或减少第二目标音乐数据,更新推荐音乐数据列表,第一目标音乐数据为与第一反馈信息针对的音乐数据之间的相似度或关联程度满足预设条件的音乐数据,第二目标音乐数据为与所述第二音乐反馈信息针对的音乐数据之间的相似度或关联程度达到预设条件的音乐数据。When the amount of first feedback information or the amount of second feedback information is greater than the preset amount, the first target music data is added or the second target music data is reduced, and the recommended music data list is updated. The first target music data is the same as the first feedback information. The similarity or correlation between the music data targeted by the information meets the preset conditions, and the second target music data is the music data whose similarity or correlation with the music data targeted by the second music feedback information meets the preset conditions. Conditional music data.
可选地,本申请中可以采用多种方式计算相似度和关联程度,对此不作具体限定,示例性地,可以利用相关性因子计算音乐数据之间的相似度和关联程度。满足预设条件是指相似度达到预设相似度阈值或关联程度达到预设关联程度阈值,又例如,可以采用余弦相似度计算音乐数据之间的相似度,将不同音乐数据按照特征项及权重形成多个向量,计算两个向量的夹角余弦值来评估它们的相似度,夹角越小,趋近于0度,余弦值越接近于1,它们的方向更加吻合,则越相似;当两个向量的方向完全相反夹角余弦取最小值-1。Optionally, in this application, a variety of methods can be used to calculate the similarity and degree of correlation, which are not specifically limited. For example, correlation factors can be used to calculate the similarity and degree of correlation between music data. Satisfying the preset conditions means that the similarity reaches the preset similarity threshold or the degree of correlation reaches the preset correlation threshold. For another example, cosine similarity can be used to calculate the similarity between music data, and different music data can be classified according to feature items and weights. Multiple vectors are formed, and the cosine value of the angle between the two vectors is calculated to evaluate their similarity. The smaller the angle is, it is closer to 0 degrees. The closer the cosine value is to 1, the more consistent their directions are, and the more similar they are; when The cosine of the angle between two vectors with completely opposite directions takes the minimum value -1.
具体地,如设置预设数量为20首,当第一反馈信息数量大于20首,则将与第一反馈信息数量对应的每一首音乐数据之间的相似度或者相关度满足预设条件的音乐数据作为第一目标音乐数据,减少对第一目标音乐数据的推荐。Specifically, if the preset number is set to 20 pieces, and when the number of first feedback information is greater than 20 pieces, the similarity or correlation between each piece of music data corresponding to the number of first feedback information will satisfy the preset condition. Music data is used as the first target music data to reduce recommendations for the first target music data.
优选地,当预设数量中至少一个音乐类型数据标签的数量达到预设阈值时,则将与第一反馈信息数量对应的每一首音乐数据之间的相似度或者相关度满足预设条件的音乐数据作为第一目标音乐数据,减少对第一目标音乐数据的推荐,如设置预设数量为20首,当第一反馈信息数量大于20首,其中有10首为与“粤语”“怀旧”“爱情”的音乐类型数据标签相匹配的音乐数据,则将与带有“粤语”“怀旧”“爱情”的音乐类型数据标签的音乐数据之间的相似度或者相关度满足预设条件的音乐数据作为第一目标音乐数据,减少对第一目标音乐数据的推荐。Preferably, when the number of at least one music type data tag in the preset number reaches the preset threshold, then the similarity or correlation between each piece of music data corresponding to the first number of feedback information satisfies the preset condition. Music data is used as the first target music data to reduce the recommendation of the first target music data. For example, the default number is set to 20. When the number of first feedback information is greater than 20, 10 of them are related to "Cantonese" and "Nostalgia" Music data that matches the music type data tag of "Love" will be music data whose similarity or correlation with the music data with the music type data tag of "Cantonese", "nostalgia" and "love" meets the preset conditions. The data is used as the first target music data to reduce recommendations for the first target music data.
本发明提供的该实施例能够对反馈信息进行分类识别,根据对象对音乐数据的接受程度对列表增加或减少目标音乐数据的推荐数量,更加符合对象的偏好,并设置预设数量,使得反馈信息所反映出的对象对音乐数据的接受程度更为准确,有更强的可参照性,实现更加个性化和准确的音乐推荐。The embodiment provided by the present invention can classify and identify feedback information, increase or decrease the recommended number of target music data in the list according to the subject's acceptance of music data, more in line with the subject's preferences, and set a preset number so that the feedback information The reflected object's acceptance of music data is more accurate and has stronger referentiality, enabling more personalized and accurate music recommendations.
除了音乐推荐技术领域外,本发明还可以应用于其他技术领域,获取与导航目的地和环境信息相应的标签后,在一些实施例中,可获取与标签相匹配的美食类型,形成美食类型标签后,通过与美食APP中的餐厅的美食类型进行匹配,同时获取设备中的对象在餐厅消费的美食类型的历史数据,推荐播放的美食广播节目、附近的餐厅,例如,当前环境信息中的天气类型为“小雪”,则匹配“火锅”“烤肉”等美食类型,可以推荐播放相关的美食广播节目,或者推荐导航目的地附近的火锅店、烤肉店等;在另一些实施例中,可以推荐适合的户外或室内活动,例如,当前环境信息中的天气类型为“晴”,气温为“28摄氏度”,可以推荐附近的公园或户外运动场所;在另一些实施例中,可以根据导航目的地和环境信息相应的标签获取相匹配的旅游景点或景区,例如,在冬季雪天中,可以推荐附近的滑雪场或温泉度假村;在另一些实施例中,可以获取与导航目的地和环境信息相应的标签相匹配的商店优惠活动,例如,在雨天下,系统可以推荐附近商店的雨伞促销活动;在另一些实施例中,可以根据导航目的地和环境信息相应的标签推荐适合的健康与运动活动。In addition to the technical field of music recommendation, the present invention can also be applied to other technical fields. After obtaining tags corresponding to navigation destinations and environmental information, in some embodiments, food types matching the tags can be obtained to form food type tags. Finally, by matching the food types of the restaurants in the food APP, and at the same time obtaining the historical data of the food types consumed by the objects in the device in the restaurants, recommended food radio programs, nearby restaurants, for example, the weather in the current environmental information If the type is "Xiao Xue", it matches food types such as "hot pot" and "barbecue", and can recommend playing related food radio programs, or recommend hot pot restaurants, barbecue restaurants, etc. near the navigation destination; in other embodiments, it can recommend Suitable outdoor or indoor activities, for example, the weather type in the current environmental information is "sunny" and the temperature is "28 degrees Celsius", nearby parks or outdoor sports venues can be recommended; in other embodiments, the navigation destination can be Tags corresponding to the environmental information can be used to obtain matching tourist attractions or scenic spots. For example, in winter snowy days, nearby ski resorts or hot spring resorts can be recommended; in other embodiments, labels corresponding to navigation destinations and environmental information can be obtained. Store promotions that match the tags. For example, on a rainy day, the system can recommend umbrella promotions in nearby stores; in other embodiments, the system can recommend suitable health and sports activities based on tags corresponding to navigation destinations and environmental information. .
本发明实施例还提供了一种音乐数据推荐装置,用于实现上述方法和各个步骤,图6是本发明提供的一种音乐数据推荐装置的框图,如图6所示,所述装置可以包括:An embodiment of the present invention also provides a music data recommendation device for implementing the above method and each step. Figure 6 is a block diagram of a music data recommendation device provided by the present invention. As shown in Figure 6, the device may include :
获取模块602,用于获取所述当前导航目的地信息和所述环境信息,获取与所述当前导航目的地信息和所述环境信息相匹配的音乐类型的音乐数据,获取所述设备中的对象在所述设备中的音乐应用中的偏好音乐类型数据,获取所述设备中的对象针对所述推荐音乐数据列表中的音乐数据所发送的音乐反馈信息;Acquisition module 602, configured to acquire the current navigation destination information and the environment information, acquire music data of a music type that matches the current navigation destination information and the environment information, and acquire objects in the device Prefer music type data in the music application in the device, and obtain music feedback information sent by the object in the device for the music data in the recommended music data list;
过滤模块604,用于对所述音乐数据进行过滤,得到所述过滤后的音乐数据;A filtering module 604 is used to filter the music data to obtain the filtered music data;
计算模块606,用于计算所述删除后的音乐数据与所述过滤后的音乐数据之间的相似度或者关联程度;Calculation module 606, used to calculate the degree of similarity or correlation between the deleted music data and the filtered music data;
排序模块608,用于基于所述过滤后的音乐数据和所述候选音乐数据进行排序,生成推荐音乐数据列表。A sorting module 608 is configured to sort based on the filtered music data and the candidate music data, and generate a recommended music data list.
在一种可选的实施例中,所述获取模块602,包括:In an optional embodiment, the acquisition module 602 includes:
音乐类型标签生成单元,用于基于所述当前导航目的地信息和所述环境信息,生成至少两个音乐类型标签;A music type tag generating unit, configured to generate at least two music type tags based on the current navigation destination information and the environmental information;
音乐数据获取单元,用于从音乐数据库或音乐流媒体平台获取与所述音乐类型标签相匹配的音乐数据。A music data acquisition unit is used to acquire music data matching the music type tag from a music database or a music streaming platform.
在另一种可选的实施例中,所述获取模块602,还包括:In another optional embodiment, the acquisition module 602 also includes:
不同类型音乐数据获取第一单元,用于获取所述设备中的对象在所述音乐应用中的预设时间段内播放的不同类型的音乐数据,所述不同类型为不同音乐风格类型、不同演唱者类型、不同语种类型、不同年代类型中的至少一种;The first unit for obtaining different types of music data is used to obtain different types of music data played by objects in the device within a preset time period in the music application. The different types are different music styles, different singing At least one of author type, different language type, and different era type;
偏好音乐类型数据获取第一单元,用于将所述预设时间段内播放的不同类型的音乐数据中的前预设数量首音乐数据,确定为偏好音乐类型数据。The first unit for obtaining preferred music type data is used to determine the first preset number of pieces of music data among the different types of music data played within the preset time period as the preferred music type data.
在另一种可选的实施例中,所述获取模块602,还包括:In another optional embodiment, the acquisition module 602 also includes:
不同音乐类型数据获取第二单元,用于获取所述设备中的对象在所述音乐应用中的预设时间段内播放的不同类型的音乐数据,所述不同类型为不同音乐风格类型、不同演唱者类型、不同语种类型、不同年代类型中的至少一种;The second unit for obtaining different music type data is used to obtain different types of music data played by objects in the device within a preset time period in the music application. The different types are different music styles, different singing At least one of author type, different language type, and different era type;
偏好音乐类型数据获取第二单元,用于将所述预设时间段内播放的不同类型的音乐数据中的前预设数量首音乐数据,确定为偏好音乐类型数据。The second unit for obtaining preferred music type data is used to determine the first preset number of pieces of music data among the different types of music data played within the preset time period as the preferred music type data.
在另一种可选的实施例中,所述过滤模块604,包括:In another optional embodiment, the filtering module 604 includes:
偏好音乐类型数据标签生成单元,用于基于所述偏好音乐类型数据生成至少两个偏好音乐类型数据标签;a preferred music type data label generating unit, configured to generate at least two preferred music type data labels based on the preferred music type data;
目标音乐数据确定单元,用于从所述音乐数据中确定出与所述至少两个偏好音乐类型数据标签相匹配的目标音乐数据;A target music data determining unit configured to determine, from the music data, target music data that matches the at least two preferred music type data tags;
过滤后的音乐数据确定单元,用于将所述目标音乐数据作为过滤后的音乐数据。A filtered music data determination unit is configured to use the target music data as filtered music data.
在另一种可选的实施例中,所述获取模块602,还包括:In another optional embodiment, the acquisition module 602 also includes:
删除后的音乐数据获取单元,用于从所述音乐数据中删除所述过滤后的音乐数据,得到删除后的音乐数据;a deleted music data acquisition unit, configured to delete the filtered music data from the music data to obtain deleted music data;
候选音乐数据获取单元,从所述删除后的音乐数据中确定与所述过滤后的音乐数据之间的相似度或者关联程度满足预设条件的音乐数据,得到候选音乐数据。The candidate music data acquisition unit determines, from the deleted music data, music data whose similarity or correlation with the filtered music data meets a preset condition, and obtains candidate music data.
在另一种可选的实施例中,所述计算模块606,包括:In another optional embodiment, the calculation module 606 includes:
相似度或者关联程度第一计算单元,用于计算删除后的音乐数据与过滤后的音乐数据之间的相似度或者关联程度;判断相似度或者关联程度是否大于预设相似度阈值或关联程度大于预设关联程度阈值。The first similarity or correlation calculation unit is used to calculate the similarity or correlation between the deleted music data and the filtered music data; determine whether the similarity or correlation is greater than the preset similarity threshold or the correlation is greater than Default correlation threshold.
在另一种可选的实施例中,所述排序模块608,包括:In another optional embodiment, the sorting module 608 includes:
候选推荐音乐数据列表生成单元,用于根据不同音乐类型对所述过滤后的音乐数据和所述候选音乐数据进行排序,生成候选推荐音乐数据列表;A candidate recommended music data list generating unit, configured to sort the filtered music data and the candidate music data according to different music types, and generate a candidate recommended music data list;
推荐音乐数据列表生成单元,用于当连续数量首同一音乐类型的音乐数据的数量大于预设数量首时,在连续数量首同一音乐类型的音乐数据的目标位置处插入至少一首其他音乐类型的音乐数据。The recommended music data list generating unit is configured to insert at least one piece of other music types at the target position of the consecutive pieces of music data of the same music type when the number of consecutive pieces of music data of the same music type is greater than the preset number. music data.
在另一种可选的实施例中,所述获取模块602,还包括:In another optional embodiment, the acquisition module 602 also includes:
音乐反馈信息获取单元,用于获取所述设备中的对象基于所述推荐音乐数据列表中的音乐数据所发送的音乐反馈信息。A music feedback information obtaining unit is configured to obtain music feedback information sent by an object in the device based on the music data in the recommended music data list.
在另一种可选的实施例中,所述计算模块606,还包括:In another optional embodiment, the calculation module 606 also includes:
音乐反馈信息数量计算单元,用于计算所述设备中的对象基于所述推荐音乐数据列表中的音乐数据所发送的音乐反馈信息中的第一音乐反馈信息和第二音乐反馈信息的信息数量;A music feedback information quantity calculation unit configured to calculate the number of first music feedback information and second music feedback information in the music feedback information sent by the object in the device based on the music data in the recommended music data list;
音乐反馈信息数量判断单元,用于判断音乐反馈信息数量是否大于预设数量;A music feedback information quantity judgment unit is used to determine whether the music feedback information quantity is greater than a preset quantity;
相似度或者关联程度第二计算单元,用于计算第一反馈信息针对的音乐数据和其他音乐数据之间的相似度或关联程度,以及计算第二反馈信息针对的音乐数据和其他音乐数据之间的相似度或关联程度。A second similarity or correlation calculation unit is used to calculate the similarity or correlation between the music data targeted by the first feedback information and other music data, and to calculate the similarity or correlation between the music data targeted by the second feedback information and other music data. degree of similarity or relatedness.
在另一种可选的实施例中,所述排序模块608,还包括:In another optional embodiment, the sorting module 608 also includes:
音乐数据列表调整模块:用于基于所述音乐反馈信息的信息类型和所述音乐反馈信息的信息数量,对所述推荐音乐数据列表中的音乐数据进行调整,增加推荐音乐数据列表中的第一目标音乐数据,或者减少推荐音乐数据列表中的第二目标音乐数据。Music data list adjustment module: used to adjust the music data in the recommended music data list based on the information type of the music feedback information and the information quantity of the music feedback information, and add the first music data in the recommended music data list. target music data, or reduce the second target music data in the recommended music data list.
需要说明的是,本申请实施例提供的装置实施例与上述方法实施例基于相同的发明构思。It should be noted that the device embodiments provided in the embodiments of this application are based on the same inventive concept as the above method embodiments.
本申请实施例提供的音乐数据推荐方法和装置,具有如下技术效果:The music data recommendation method and device provided by the embodiments of this application have the following technical effects:
1.本发明提出的音乐数据推荐方法,利用导航目的地信息和环境信息筛选出一批符合用户当前的心情状态和具体场景概况的音乐数据,能够引入导航目的地信息和环境信息的客观因素以确定推荐音乐数据的范围,再根据设备中对象的偏好音乐类型数据对所述音乐数据的数量,从中过滤出符合设备对象偏好的音乐,能够更准确地推荐符合用户当下心情和环境状态的音乐数据,突破了推荐音乐数据的信息茧房,同时也能丰富推荐音乐数据的类型;1. The music data recommendation method proposed by the present invention uses navigation destination information and environmental information to screen out a batch of music data that conforms to the user's current mood state and specific scene profile, and can introduce objective factors of navigation destination information and environmental information to Determine the scope of recommended music data, and then filter the music that matches the preferences of the device object according to the number of music data based on the preferred music type data of the object in the device, which can more accurately recommend music data that matches the user's current mood and environmental state. , breaking through the information cocoon of recommended music data, and at the same time enriching the types of recommended music data;
2.本发明提供的实施例通过对当前导航目的地信息和环境信息的获取,基于这两个外部环境因素选取由外部环境因素决定的音乐数据,突破音乐数据推荐的信息茧房;2. The embodiment provided by the present invention breaks through the information cocoon of music data recommendations by acquiring current navigation destination information and environmental information, and selecting music data determined by external environmental factors based on these two external environmental factors;
3.本发明提供的实施例设置了能够获取偏好音乐类型数据的多种来源,能够兼顾不同对象在音乐应用中的使用情况,用不同方法获取对象的偏好音乐类型数据,能够更好地评估对象对音乐的偏好;3. The embodiment provided by the present invention provides multiple sources for obtaining preferred music type data, can take into account the usage of different objects in music applications, obtain the object's preferred music type data using different methods, and can better evaluate the object. musical preference;
4.本发明提供的实施例能够兼顾对象对音乐数据的偏好程度确定目标音乐数据,更符合对象的偏好需要;4. The embodiment provided by the present invention can determine the target music data taking into account the subject's preference for music data, and is more in line with the subject's preference needs;
5.本发明提供的实施例能够针对删除后的音乐数据,召回与过滤后的音乐数据之间相似或者存在关联的音乐数据,避免音乐数据完全由对象的偏好所决定;5. The embodiments provided by the present invention can recall music data that is similar or related to the filtered music data for the deleted music data, preventing the music data from being completely determined by the object's preferences;
6.本发明提供的该实施例能够在保持个性化推荐的基础上,增加推荐结果的多样性,以避免过度推荐相似的歌曲,以增加用户的选择性和听歌体验,能够根据对象的反馈对推荐音乐数据列表进行优化,更加符合对象的偏好,增强最终生成的音乐数据列表的随机性,降低推荐的音乐数据列表中同类型音乐的重复性,避免用户听腻;6. The embodiment provided by the present invention can increase the diversity of recommendation results on the basis of maintaining personalized recommendations to avoid over-recommendation of similar songs, so as to increase the user's selectivity and listening experience, and can be based on the feedback of the object. Optimize the recommended music data list to be more in line with the object's preferences, enhance the randomness of the final generated music data list, reduce the repetition of the same type of music in the recommended music data list, and avoid users getting bored;
7.本发明提供的实施例能够对反馈信息进行分类识别,根据对象对音乐数据的接受程度对列表增加或减少目标音乐数据的推荐数量,更加符合对象的偏好,并设置预设数量,使得反馈信息所反映出的对象对音乐数据的接受程度更为准确,有更强的可参照性,实现更加个性化和准确的音乐推荐。7. The embodiments provided by the present invention can classify and identify feedback information, increase or decrease the recommended number of target music data in the list according to the subject's acceptance of the music data, which is more in line with the subject's preferences, and set a preset number to enable feedback The object's acceptance of music data reflected by the information is more accurate and has stronger referentiality, enabling more personalized and accurate music recommendations.
需要说明的是:上述本申请实施例先后顺序仅仅为了描述,不代表实施例的优劣。且上述对本说明书特定实施例进行了描述。其它实施例在所附权利要求书的范围内。在一些情况下,在权利要求书中记载的动作或步骤可以按照不同于实施例中的顺序来执行并且仍然可以实现期望的结果。另外,在附图中描绘的过程不一定要求示出的特定顺序或者连续顺序才能实现期望的结果。在某些实施方式中,多任务处理和并行处理也是可以的或者可能是有利的。It should be noted that the above-mentioned order of the embodiments of the present application is only for description and does not represent the advantages and disadvantages of the embodiments. Specific embodiments of this specification have been described above. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims can be performed in a different order than in the embodiments and still achieve desired results. Additionally, the processes depicted in the figures do not necessarily require the specific order shown, or sequential order, to achieve desirable results. Multitasking and parallel processing are also possible or may be advantageous in certain implementations.
本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于装置和服务器实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。Each embodiment in this specification is described in a progressive manner. The same and similar parts between the various embodiments can be referred to each other. Each embodiment focuses on its differences from other embodiments. In particular, for the device and server embodiments, since they are basically similar to the method embodiments, the descriptions are relatively simple. For relevant details, please refer to the partial description of the method embodiments.
以上仅为本申请的较佳实施例,并不用以限制本申请,凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above are only preferred embodiments of the present application and are not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application. Inside.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202311002558.9A CN117093742A (en) | 2023-08-09 | 2023-08-09 | Music data recommendation method and device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202311002558.9A CN117093742A (en) | 2023-08-09 | 2023-08-09 | Music data recommendation method and device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN117093742A true CN117093742A (en) | 2023-11-21 |
Family
ID=88774426
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202311002558.9A Pending CN117093742A (en) | 2023-08-09 | 2023-08-09 | Music data recommendation method and device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN117093742A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN119166799A (en) * | 2024-11-25 | 2024-12-20 | 中国神华能源股份有限公司 | Data determination method, storage medium, program product and processor |
-
2023
- 2023-08-09 CN CN202311002558.9A patent/CN117093742A/en active Pending
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN119166799A (en) * | 2024-11-25 | 2024-12-20 | 中国神华能源股份有限公司 | Data determination method, storage medium, program product and processor |
| CN119166799B (en) * | 2024-11-25 | 2025-03-07 | 中国神华能源股份有限公司 | Data determining method, storage medium, program product and processor |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US8407224B2 (en) | Apparatus and method for generating a collection profile and for communicating based on the collection profile | |
| US20060080356A1 (en) | System and method for inferring similarities between media objects | |
| CN106462609A (en) | Methods, systems, and media for presenting music items relating to media content | |
| CN107977373B (en) | Song recommendation method | |
| CN108255840B (en) | Song recommendation method and system | |
| CN105335414B (en) | Music recommendation method and device and terminal | |
| CN104008138A (en) | Music recommendation method based on social network | |
| CN111723289A (en) | Information recommendation method and device | |
| WO2009140828A1 (en) | Method for generating streaming media increment description file and method and system for cutting in multimedia in streaming media | |
| CN112131456A (en) | An information push method, device, device and storage medium | |
| US20220147558A1 (en) | Methods and systems for automatically matching audio content with visual input | |
| CN105975496A (en) | Music recommendation method and device based on context sensing | |
| US8019773B2 (en) | Presenting contents in accordance with user preferences | |
| JP2019216355A (en) | Information processing apparatus, information processing method, and information processing program | |
| CN117093742A (en) | Music data recommendation method and device | |
| CN108628886A (en) | A kind of audio file recommendation method and device | |
| US20180239819A1 (en) | Music Search System, Music Search Method, Server Device, and Program | |
| CN107980144A (en) | Unlimited radio station commending system and method | |
| KR20150004947A (en) | Music recommendation service apparatus and system for serendipity, and recommendation method thereof | |
| US11410706B2 (en) | Content pushing method for display device, pushing device and display device | |
| KR100781513B1 (en) | Apparatus and method for providing content according to preference | |
| CN113747233B (en) | Music replacement method and device, electronic equipment and storage medium | |
| KR20240074128A (en) | Contents curation service apparatus and method | |
| KR101624172B1 (en) | Appratus and method for management of contents information | |
| KR20200094812A (en) | Apparatus and method of recommending music contents based on music age |
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 |