[go: up one dir, main page]

CN107301185A - Music commending system and method - Google Patents

Music commending system and method Download PDF

Info

Publication number
CN107301185A
CN107301185A CN201610235644.8A CN201610235644A CN107301185A CN 107301185 A CN107301185 A CN 107301185A CN 201610235644 A CN201610235644 A CN 201610235644A CN 107301185 A CN107301185 A CN 107301185A
Authority
CN
China
Prior art keywords
music
emotional value
client
user
database
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.)
Granted
Application number
CN201610235644.8A
Other languages
Chinese (zh)
Other versions
CN107301185B (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.)
Shenzhen Yuzhan Precision Technology Co ltd
Hon Hai Precision Industry Co Ltd
Original Assignee
Shenzhen Yuzhan Precision Technology Co ltd
Hon Hai Precision Industry 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 Shenzhen Yuzhan Precision Technology Co ltd, Hon Hai Precision Industry Co Ltd filed Critical Shenzhen Yuzhan Precision Technology Co ltd
Priority to CN201610235644.8A priority Critical patent/CN107301185B/en
Publication of CN107301185A publication Critical patent/CN107301185A/en
Application granted granted Critical
Publication of CN107301185B publication Critical patent/CN107301185B/en
Expired - Fee Related 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/635Filtering based on additional data, e.g. user or group profiles
    • G06F16/636Filtering based on additional data, e.g. user or group profiles by using biological or physiological data
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Molecular Biology (AREA)
  • Physiology (AREA)
  • Biomedical Technology (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Biophysics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Reverberation, Karaoke And Other Acoustics (AREA)

Abstract

The present invention provides a kind of music and recommends method, and applied in server, the server is connected with least one client and a musical database, and storage includes the music of emotion numerical information in the musical database, and this method includes:Receiving step, the selected emotion numerical value X of user for receiving the client from client;Recommendation step, picks out a first emotion numerical value closest to X music, and the information of the music is sent into the client according to default rule from the musical database.Present invention also offers a kind of music commending system.Music can be recommended to personalization to user by the present invention.

Description

音乐推荐系统及方法Music Recommendation System and Method

技术领域technical field

本发明涉及一种音乐推荐系统以及一种音乐推荐方法。The invention relates to a music recommendation system and a music recommendation method.

背景技术Background technique

现有的推荐音乐的方法会根据使用者选择的音乐风格或者音乐类型来向使用者推荐音乐,但并不会侦测使用者在听音乐后的情绪变化等,使得推荐的音乐并不能符合使用者的个性化需求。The existing music recommendation method will recommend music to the user according to the music style or music type selected by the user, but it will not detect the emotional changes of the user after listening to the music, so that the recommended music cannot meet the requirements of the user. the individual needs of the individual.

发明内容Contents of the invention

鉴于以上内容,有必要提供一种音乐推荐系统以及一种音乐推荐方法,可以根据使用者在听到推荐的音乐后的情绪变化来个性化的推荐音乐。In view of the above, it is necessary to provide a music recommendation system and a music recommendation method, which can recommend music personalizedly according to the user's emotional changes after hearing the recommended music.

一种音乐推荐系统,应用于服务器中,该服务器与至少一个客户端以及一个音乐数据库相连,所述音乐数据库中存储包含情感数值信息的音乐,该系统包括:接收模块,用于从客户端接收该客户端的使用者所选择的情感数值X;推荐模块,用于按照预设的规则从所述音乐数据库中挑选出一首情感数值最接近X的音乐,并将该音乐的信息发送给所述客户端。A music recommendation system, applied to a server, the server is connected to at least one client and a music database, the music database stores music containing emotional value information, the system includes: a receiving module, used to receive from the client The emotional value X selected by the user of the client; the recommendation module is used to select a piece of music whose emotional value is closest to X from the music database according to preset rules, and send information about the music to the client.

所述音乐推荐系统还进一步包括调整模块,用于从所述客户端接收所述客户端的使用者在聆听所述音乐后的生理数据,根据所述生理数据以及预设的算法计算出所述使用者当前的情感数值Z,并根据使用者当前的情感数值Z以及选择的情感数值X从所述音乐数据库中挑选出另一首音乐,并将该音乐的信息发送给所述客户端。The music recommendation system further includes an adjustment module, configured to receive the physiological data of the user of the client after listening to the music from the client, and calculate the usage according to the physiological data and a preset algorithm. The user's current emotional value Z, and select another piece of music from the music database according to the user's current emotional value Z and the selected emotional value X, and send the music information to the client.

一种音乐推荐方法,应用于服务器中,该服务器与至少一个客户端以及一个音乐数据库相连,所述音乐数据库中存储包含情感数值信息的音乐,该方法包括:接收步骤,从客户端接收该客户端的使用者所选择的情感数值X;推荐步骤,按照预设的规则从所述音乐数据库中挑选出一首情感数值最接近X的音乐,并将该音乐的信息发送给所述客户端。A method for recommending music, applied to a server, the server is connected to at least one client and a music database, the music database stores music containing emotional value information, the method includes: a receiving step, receiving the client from the client The emotional value X selected by the user at the terminal; the recommendation step is to select a piece of music whose emotional value is closest to X from the music database according to the preset rules, and send the information of the music to the client.

所述音乐推荐方法还进一步包括调整步骤,从所述客户端接收所述客户端的使用者在聆听所述音乐后的生理数据,根据所述生理数据以及预设的算法计算出所述使用者当前的情感数值Z,并根据使用者当前的情感数值Z以及选择的情感数值X从所述音乐数据库中挑选出另一首音乐,并将该音乐的信息发送给所述客户端。The music recommendation method further includes an adjustment step, receiving from the client the physiological data of the user of the client after listening to the music, and calculating the current state of the user according to the physiological data and a preset algorithm. According to the user's current emotional value Z and the selected emotional value X, another piece of music is selected from the music database, and the information of the music is sent to the client.

相较于现有技术,本发明的音乐推荐系统通过获取使用者在听到推荐的音乐后的情绪变化来个性化的调整推荐的音乐,提高了使用者的体验效果。Compared with the prior art, the music recommendation system of the present invention adjusts the recommended music individually by acquiring the emotional changes of the user after hearing the recommended music, thereby improving the experience effect of the user.

附图说明Description of drawings

图1是本发明音乐推荐系统的较佳实施例的运行环境示意图。FIG. 1 is a schematic diagram of the operating environment of a preferred embodiment of the music recommendation system of the present invention.

图2是本发明音乐推荐系统的较佳实施例的功能模块图。Fig. 2 is a functional block diagram of a preferred embodiment of the music recommendation system of the present invention.

图3是本发明音乐推荐方法的较佳实施例的流程图。Fig. 3 is a flowchart of a preferred embodiment of the music recommendation method of the present invention.

主要元件符号说明Description of main component symbols

如下具体实施方式将结合上述附图进一步说明本发明。The following specific embodiments will further illustrate the present invention in conjunction with the above-mentioned drawings.

具体实施方式detailed description

参阅图1所示,是本发明音乐推荐系统的较佳实施例的运行环境示意图。所述音乐推荐系统10安装于客户端1以及服务器2中。所述服务器2与至少一个客户端1(图中只画出一个)通信连接。所述客户端1还包括,但不限于,第一通信装置11、第一存储装置12、第一处理器13、输入装置14、播放装置15以及生理侦测装置16。所述服务器2还包括,但不限于,第二通信装置21、第二存储装置22、第二处理器23以及音乐数据库220。Referring to FIG. 1 , it is a schematic view of the operating environment of a preferred embodiment of the music recommendation system of the present invention. The music recommendation system 10 is installed in the client 1 and the server 2 . The server 2 communicates with at least one client 1 (only one is shown in the figure). The client 1 further includes, but not limited to, a first communication device 11 , a first storage device 12 , a first processor 13 , an input device 14 , a playback device 15 and a physiological detection device 16 . The server 2 also includes, but not limited to, a second communication device 21 , a second storage device 22 , a second processor 23 and a music database 220 .

所述客户端1与所述服务器2通过所述第一通信装置11以及第二通信装置21通信连接。所述第一通信装置11以及第二通信装置21可以是无线网卡、GPRS模块等能够实现无线通信的装置,也可以是网卡等能够实现有线通信的装置。The client 1 communicates with the server 2 through the first communication device 11 and the second communication device 21 . The first communication device 11 and the second communication device 21 may be devices capable of wireless communication such as a wireless network card and a GPRS module, or devices capable of wired communication such as a network card.

所述第一存储装置12以及第二存储装置22用于分别存储安装于客户端1与服务器2中的各个程序的程序指令段与数据资料,其可以是内存等内部存储设备,也可以是智能媒体卡(SmartMedia Card)、安全数字卡(Secure Digital Card)、快闪存储器卡(Flash Card)等外部存储设备。The first storage device 12 and the second storage device 22 are used to store the program instruction segment and data data of each program installed in the client 1 and the server 2 respectively, which can be internal storage devices such as memory, or intelligent External storage devices such as SmartMedia Card, Secure Digital Card, and Flash Card.

所述第一处理器13以及第二处理器23分别用于执行安装于客户端1与服务器2中的程序的程序指令段以及控制各个装置执行相应的操作。The first processor 13 and the second processor 23 are respectively used to execute the program instruction segment of the program installed in the client 1 and the server 2 and control each device to perform corresponding operations.

所述输入装置14用于接收所述客户端1的使用者的输入操作,例如输入情感数值、选择音乐等。所述输入装置14可以是触控屏,也可以是其他输入装置,例如键盘。所述播放装置15用于播放音乐。The input device 14 is used for receiving input operations of the user of the client 1 , such as inputting emotional values, selecting music, and so on. The input device 14 may be a touch screen, or other input devices, such as a keyboard. The playing device 15 is used for playing music.

所述生理侦测装置16用于侦测所述客户端1的使用者的生理数据。所述生理数据可以是心跳、脉搏、指温等数据中的一个或多个。在一实施例中,所述生理侦测装置16可以位于所述客户端1内,此时,所述生理侦测装置16可以是压力传感器、温度传感器等,所述客户端1可以是具有侦测使用者生理数据以及播放音乐的功能的穿戴式设备,例如智能手表、智能手环等。在另一实施例中,所述生理侦测装置16也可位于所述客户端1之外,例如所述生理侦测装置16与所述客户端1通过无线通信连接。此时,所述生理侦测装置16可以是具有侦测使用者生理数据功能的穿戴式设备,例如智能手表、智能手环等。所述客户端1可以是播放音乐功能的电子装置,例如智能手机、平板电脑等。The physiological detection device 16 is used for detecting the physiological data of the user of the client terminal 1 . The physiological data may be one or more of data such as heartbeat, pulse, and finger temperature. In one embodiment, the physiological detection device 16 may be located in the client 1, at this time, the physiological detection device 16 may be a pressure sensor, a temperature sensor, etc., and the client 1 may have a detection Wearable devices that measure user physiological data and play music, such as smart watches, smart bracelets, etc. In another embodiment, the physiological detection device 16 can also be located outside the client 1 , for example, the physiological detection device 16 is connected to the client 1 through wireless communication. At this time, the physiological detection device 16 may be a wearable device capable of detecting physiological data of a user, such as a smart watch, a smart bracelet, and the like. The client 1 may be an electronic device capable of playing music, such as a smart phone, a tablet computer, and the like.

所述音乐数据库220中存储有各个音乐的情感数值。所述音乐可以存储于所述客户端1的第一存储装置12中,也可以存储于所述服务器2的第二存储装置22中,也可以存储于一与所述服务端2或者客户端1相连的其他电子装置中。在本实施例中,所述音乐数据库220存储于所述服务器2的第二存储装置22中。在另一实施例中,所述音乐数据库220存储于所述客户端1的第一存储装置12中。在又一实施例中,所述音乐数据库220也可以存储于一与所述服务端2或者客户端1相连的其他电子装置中。The emotional value of each piece of music is stored in the music database 220 . The music can be stored in the first storage device 12 of the client 1, can also be stored in the second storage device 22 of the server 2, or can be stored in a other connected electronic devices. In this embodiment, the music database 220 is stored in the second storage device 22 of the server 2 . In another embodiment, the music database 220 is stored in the first storage device 12 of the client 1 . In yet another embodiment, the music database 220 may also be stored in another electronic device connected to the server 2 or the client 1 .

所述音乐数据库220通过如下步骤获取每个音乐的情感数值:从音乐中提取各种声音特征,根据现有的统计学方法确定各个声音特征所对应的模型参数,然后根据各个模型参数计算该音乐的情感数值。每个情感类型对应一个或多个情感数值范围。例如情感数值在X1至X2之间时,其对应的情感类型是开心。情感数值在X3至X4之间时,其对应的情感类型也可以是开心。The music database 220 obtains the emotional value of each music through the following steps: extract various sound features from the music, determine the model parameters corresponding to each sound feature according to existing statistical methods, and then calculate the music value according to each model parameter. emotional value. Each emotion type corresponds to one or more emotion value ranges. For example, when the emotion value is between X1 and X2, the corresponding emotion type is happy. When the emotion value is between X3 and X4, the corresponding emotion type can also be happy.

在客户端1中,所述音乐推荐系统10用于通过输入装置14接收所述客户端1的使用者所选择的情感数值X(本说明书中用X代表使用者所选择的情感数值),并将所选择的情感数值X发送到所述服务器2,并在接收到所述服务器2发送的音乐信息时,根据音乐信息获取并播放相应的音乐。所述音乐推荐系统10还用于通过生理侦测装置16侦测所述客户端1的使用者在聆听所述音乐后的生理数据,并将侦测到的生理数据发送给所述服务器2。在所述服务器2中,所述音乐推荐系统10用于在接收到客户端1的使用者所选择的情感数值X时,按照预设的规则从所述音乐数据库220中挑选出一首情感数值最接近X的音乐,并将所述音乐的信息发送给所述客户端1。所述音乐推荐系统10还用于在接收到客户端1的使用者的生理数据时,根据所述生理数据以及预设的算法计算出所述使用者当前的情感数值Z(本说明书中用Z代表所侦测的情感数值),并根据使用者当前的情感数值Z以及选择的情感数值X从所述音乐数据库220中挑选出另一首音乐,并将该音乐的信息发送给所述客户端1。In the client 1, the music recommendation system 10 is configured to receive the emotional value X selected by the user of the client 1 through the input device 14 (in this specification, X represents the emotional value selected by the user), and The selected emotional value X is sent to the server 2, and when the music information sent by the server 2 is received, the corresponding music is acquired and played according to the music information. The music recommendation system 10 is also used to detect the physiological data of the user of the client 1 after listening to the music through the physiological detection device 16 , and send the detected physiological data to the server 2 . In the server 2, the music recommendation system 10 is configured to select an emotional value X from the music database 220 according to preset rules when receiving the emotional value X selected by the user of the client 1 The music closest to X, and send the information of the music to the client 1. The music recommendation system 10 is also used to calculate the user's current emotional value Z (in this specification, Z represent the detected emotional value), and select another piece of music from the music database 220 according to the user's current emotional value Z and the selected emotional value X, and send the information of the music to the client 1.

参阅图2所示,是本发明音乐推荐系统的较佳实施例的功能模块图。所述音乐推荐系统10可以被分割成第一接收模块101、第二接收模块102、推荐模块103、播放模块104、侦测模块105以及调整模块106。在本实施例中,所述第一接收模块101、播放模块104以及侦测模块105应用于所述客户端1中。所述第二接收模块102、推荐模块103以及调整模块106应用于所述服务器2中。在另一实施例中,若所述音乐数据库220存储客户端1中,则所述第一接收模块101、第二接收模块102、推荐模块103、播放模块104、侦测模块105以及调整模块106均运行于客户端1中。本发明所称的模块是指能够完成特定功能的一系列计算机程序段,比程序更适合于描述所述音乐推荐系统10的执行过程,以下将结合图3的流程图来描述各个模块的具体功能。Referring to FIG. 2 , it is a functional block diagram of a preferred embodiment of the music recommendation system of the present invention. The music recommendation system 10 can be divided into a first receiving module 101 , a second receiving module 102 , a recommending module 103 , a playing module 104 , a detecting module 105 and an adjusting module 106 . In this embodiment, the first receiving module 101 , the playing module 104 and the detecting module 105 are applied in the client 1 . The second receiving module 102 , the recommending module 103 and the adjusting module 106 are applied in the server 2 . In another embodiment, if the music database 220 is stored in the client 1, the first receiving module 101, the second receiving module 102, the recommending module 103, the playing module 104, the detecting module 105 and the adjusting module 106 Both run on client 1. The modules referred to in the present invention refer to a series of computer program segments capable of completing specific functions, which are more suitable than programs for describing the execution process of the music recommendation system 10. The specific functions of each module will be described below in conjunction with the flowchart of FIG. 3 .

参阅图3所示,是本发明音乐推荐方法的较佳实施例的流程图。在本实施例中,根据不同的需求,图3所示的流程图中的步骤的执行顺序可以改变,某些步骤可以省略。Referring to FIG. 3 , it is a flowchart of a preferred embodiment of the music recommendation method of the present invention. In this embodiment, according to different requirements, the execution order of the steps in the flowchart shown in FIG. 3 may be changed, and some steps may be omitted.

步骤S31,第一接收模块101通过所述输入装置14接收所述客户端1的使用者所选择的情感数值X,并通过所述第一通信装置11将该情感数值X发送给所述服务器2。所述第一接收模块101由所述客户端1所执行。在本实施例中,所述输入装置14是触控屏。所述客户端1的使用者通过该输入装置14输入情感数值X。在其他实施例中,所述输入装置14也可以是麦克风。所述客户端1的使用者通过该输入装置14输入情感数值X,例如说出数字。Step S31, the first receiving module 101 receives the emotional value X selected by the user of the client 1 through the input device 14, and sends the emotional value X to the server 2 through the first communication device 11 . The first receiving module 101 is executed by the client 1 . In this embodiment, the input device 14 is a touch screen. The user of the client terminal 1 inputs the emotional value X through the input device 14 . In other embodiments, the input device 14 may also be a microphone. The user of the client terminal 1 inputs the emotional value X through the input device 14 , such as speaking a number.

步骤S32,第二接收模块102通过第二通信装置21接收所述客户端1发送的该客户端1的使用者所选择的情感数值X。所述第二接收模块102由所述服务器2所执行。Step S32 , the second receiving module 102 receives the emotional value X selected by the user of the client 1 sent by the client 1 through the second communication device 21 . The second receiving module 102 is executed by the server 2 .

步骤S33,推荐模块103按照预设的规则从所述音乐数据库220中挑选出一首情感数值最接近X的音乐,并将该音乐的信息通过所述第二通信装置21发送给所述客户端1。In step S33, the recommendation module 103 selects a piece of music whose emotional value is closest to X from the music database 220 according to preset rules, and sends information about the music to the client through the second communication device 21 1.

在本实施例中,所述预设的规则是先从所述音乐数据库220中挑选出情感数值与指定情感数值(例如X)之差在一定范围内的一首或多首音乐,再从该一首或多首音乐中随机挑选出一首音乐。In this embodiment, the preset rule is to first select one or more pieces of music whose difference between the emotional value and the specified emotional value (such as X) is within a certain range from the music database 220, and then select from the music database 220. A piece of music is randomly selected from one or more pieces of music.

在另一实施例中,所述预设的规则是先从所述音乐数据库220中挑选出情感数值与指定情感数值(例如X)之差在一定范围内的一首或多首音乐,再从该一首或多首音乐中挑选出播放次数最少的一首音乐。此时,所述音乐数据库220中还需要存储每个音乐被播放的总次数或者在预设时间(例如三天)内的总次数。In another embodiment, the preset rule is to first select from the music database 220 one or more pieces of music whose difference between the emotional value and the specified emotional value (such as X) is within a certain range, and then select A music with the least number of times of playing is selected from the one or more pieces of music. At this point, the music database 220 also needs to store the total number of times each piece of music is played or the total number of times within a preset time (for example, three days).

在又一实施例中,所述预设的规则是先从所述音乐数据库220中挑选出情感数值与指定情感数值(例如X)之差在一定范围内的一首或多首音乐,然后从该一首或者多首音乐中去除该使用者不喜欢的音乐,再从剩余的音乐中随机挑选出一首音乐。In yet another embodiment, the preset rule is to select one or more pieces of music whose difference between the emotional value and the specified emotional value (such as X) is within a certain range from the music database 220, and then select The music that the user does not like is removed from the one or more pieces of music, and then a piece of music is randomly selected from the remaining music.

在又一实施例中,所述预设的规则是从所述音乐数据库220中挑选出情感数值与指定情感数值(例如X)最接近一首音乐。In yet another embodiment, the preset rule is to select from the music database 220 a piece of music whose emotional value is closest to a specified emotional value (for example, X).

步骤S34,播放模块104通过所述第一通信装置11接收所述服务器2所发送的音乐的信息,并根据该音乐的信息获取该音乐,并通过所述播放装置15播放该音乐。所述音乐可以存储于所述客户端1的第一存储装置12中,也可以存储于所述服务器2的第二存储装置22中,也可以存储于一与所述服务端2或者客户端1相连的另一电子装置中。Step S34 , the playing module 104 receives the music information sent by the server 2 through the first communication device 11 , acquires the music according to the music information, and plays the music through the playing device 15 . The music can be stored in the first storage device 12 of the client 1, can also be stored in the second storage device 22 of the server 2, or can be stored in a connected to another electronic device.

步骤S35,侦测模块105通过所述生理侦测装置16侦测所述客户端1的使用者在聆听所述音乐后的生理数据,并将侦测到的生理数据通过所述第一通信装置11发送给所述服务器2。Step S35, the detection module 105 detects the physiological data of the user of the client 1 after listening to the music through the physiological detection device 16, and transmits the detected physiological data through the first communication device 11 to the server 2.

需要说明的是,所述侦测模块105是在所述客户端1的使用者在聆听所述音乐到达一定程度(例如音乐播放到三分之二、或者音乐播放完、或者音乐播放了2分钟)时,通过所述生理侦测装置16侦测所述客户端1的使用者的生理数据。所述生理数据可以是心跳、脉搏、指温等数据中的一个或多个。It should be noted that the detection module 105 is when the user of the client 1 is listening to the music to a certain extent (for example, the music is played to two-thirds, or the music is played, or the music is played for 2 minutes. ), the physiological data of the user of the client terminal 1 is detected by the physiological detection device 16 . The physiological data may be one or more of data such as heartbeat, pulse, and finger temperature.

步骤S36,调整模块106通过所述第二通信装置21接收所述客户端1发送的生理数据,并根据该生理数据以及预设的算法计算出所述客户端1的使用者的当前的情感数值Z。所述预设的算法可以是估算Arousal-Valence的算法。Step S36, the adjustment module 106 receives the physiological data sent by the client 1 through the second communication device 21, and calculates the current emotional value of the user of the client 1 according to the physiological data and a preset algorithm Z. The preset algorithm may be an algorithm for estimating Arousal-Valence.

步骤S37,调整模块106根据所述客户端1的使用者的当前的情感数值Z以及选择的情感数值X从所述音乐数据库220中挑选出另一首音乐,并将该音乐的信息通过所述第二通信装置21发送给所述客户端1。Step S37, the adjustment module 106 selects another piece of music from the music database 220 according to the current emotional value Z and the selected emotional value X of the user of the client 1, and passes the information of the music through the The second communication device 21 sends to the client 1 .

所述调整模块106通过如下步骤根据所述客户端1的使用者的当前的情感数值Z以及选择的情感数值X从所述音乐数据库220中挑选出另一首音乐:根据使用者当前的情感数值Z以及选择的情感数值X计算出补偿值Y,所述Y=X-Z;及按照预设的规则从所述音乐数据库220中挑选出一首情感数值最接近X+Y(也即2*X-Z)的音乐。The adjustment module 106 selects another piece of music from the music database 220 according to the user's current emotional value Z and the selected emotional value X through the following steps: According to the user's current emotional value Z and the selected emotional value X calculate the compensation value Y, said Y=X-Z; and select an emotional value closest to X+Y (that is, 2*X-Z) from the music database 220 according to preset rules music.

步骤S38,播放模块104通过所述第一通信装置11接收所述服务器2所发送的音乐的信息,并根据该音乐的信息获取该音乐,并通过所述播放装置15播放该音乐,流程结束。Step S38 , the playing module 104 receives the music information sent by the server 2 through the first communication device 11 , obtains the music according to the music information, and plays the music through the playing device 15 , and the process ends.

需要说明的是,在另一实施例中,若要进一步的推荐下一首音乐,则需要返回步骤S35。It should be noted that, in another embodiment, if the next music is to be further recommended, it is necessary to return to step S35.

最后所应说明的是,以上实施例仅用以说明本发明的技术方案而非限制,本领域的普通技术人员应当理解,可以对本发明的技术方案进行修改或等同替换,而不脱离本发明技术方案的精神和范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention without limitation. Those of ordinary skill in the art should understand that the technical solutions of the present invention can be modified or equivalently replaced without departing from the technical solutions of the present invention. The spirit and scope of the programme.

Claims (15)

1.一种音乐推荐系统,应用于服务器中,该服务器与至少一个客户端以及一个音乐数据库相连,所述音乐数据库中存储有各个音乐的情感数值信息,其特征在于,该系统包括:1. A music recommendation system, applied in a server, the server is connected with at least one client and a music database, the emotional value information of each music is stored in the music database, it is characterized in that the system includes: 接收模块,用于从客户端接收该客户端的使用者所选择的情感数值X;The receiving module is used to receive the emotional value X selected by the user of the client from the client; 推荐模块,用于按照预设的规则从所述音乐数据库中挑选出一首情感数值最接近X的音乐,并将该音乐的信息发送给所述客户端。The recommending module is configured to select a piece of music whose emotional value is closest to X from the music database according to preset rules, and send information about the music to the client. 2.如权利要求1所述的音乐推荐系统,其特征在于,该系统还包括:2. music recommendation system as claimed in claim 1, is characterized in that, this system also comprises: 调整模块,用于从所述客户端接收所述客户端的使用者在聆听所述音乐后的生理数据,根据所述生理数据以及预设的算法计算出所述使用者当前的情感数值Z,并根据使用者当前的情感数值Z以及选择的情感数值X从所述音乐数据库中挑选出另一首音乐,并将该音乐的信息发送给所述客户端。An adjustment module, configured to receive physiological data of the user of the client after listening to the music from the client, calculate the user's current emotional value Z according to the physiological data and a preset algorithm, and Select another piece of music from the music database according to the user's current emotion value Z and the selected emotion value X, and send information about the music to the client. 3.如权利要求2所述的音乐推荐系统,其特征在于,所述调整模块通过如下步骤根据使用者当前的情感数值Z以及选择的情感数值X从所述音乐数据库中挑选出另一首音乐:3. The music recommendation system according to claim 2, wherein the adjustment module selects another piece of music from the music database according to the user's current emotional value Z and the selected emotional value X through the following steps : 根据使用者当前的情感数值Z以及选择的情感数值X计算出补偿值Y,其中Y=X-Z;及Calculate the compensation value Y according to the user's current emotional value Z and the selected emotional value X, where Y=X-Z; and 按照预设的规则从所述音乐数据库中挑选出一首情感数值最接近X+Y=2*X-Z的音乐。Select a piece of music whose emotional value is closest to X+Y=2*X-Z from the music database according to preset rules. 4.如权利要求1至3所述的音乐推荐系统,其特征在于,所述预设的规则是从所述音乐数据库中挑选出情感数值与指定情感数值之差在一定范围内的一首或多首音乐,并从该一首或多首音乐中随机挑选出一首音乐。4. The music recommendation system according to claims 1 to 3, wherein the preset rule is to select from the music database a song or song whose difference between the emotional value and the specified emotional value is within a certain range. Multiple pieces of music, and a piece of music is randomly selected from the one or more pieces of music. 5.如权利要求1至3所述的音乐推荐系统,其特征在于,所述预设的规则是从所述音乐数据库中挑选出情感数值与指定情感数值之差在一定范围内的一首或多首音乐,再从该一首或多首音乐中挑选出播放次数最少的一首音乐。5. The music recommendation system according to claims 1 to 3, wherein the preset rule is to select from the music database a song or song whose difference between the emotional value and the specified emotional value is within a certain range. multiple pieces of music, and then select a piece of music with the least number of plays from the one or more pieces of music. 6.如权利要求1至3所述的音乐推荐系统,其特征在于,所述预设的规则是从所述音乐数据库中挑选出情感数值与指定情感数值之差在一定范围内的一首或多首音乐,然后从该一首或者多首音乐中去除该使用者不喜欢的音乐,再从剩余的音乐中随机挑选出一首音乐。6. The music recommendation system according to claims 1 to 3, wherein the preset rule is to select from the music database a song or song whose difference between the emotional value and the specified emotional value is within a certain range. A plurality of pieces of music, then remove the music that the user does not like from the one or more pieces of music, and then randomly select a piece of music from the remaining music. 7.一种音乐推荐方法,应用于服务器中,该服务器与至少一个客户端以及一个音乐数据库相连,所述音乐数据库中存储有各个音乐的情感数值信息,其特征在于,该方法包括:7. A music recommendation method, applied in a server, the server is connected with at least one client and a music database, the emotional value information of each music is stored in the music database, it is characterized in that the method comprises: 接收步骤,从客户端接收该客户端的使用者所选择的情感数值X;The receiving step is to receive the emotional value X selected by the user of the client from the client; 推荐步骤,按照预设的规则从所述音乐数据库中挑选出一首情感数值最接近X的音乐,并将该音乐的信息发送给所述客户端。In the recommending step, a piece of music whose emotional value is closest to X is selected from the music database according to preset rules, and the information of the music is sent to the client. 8.如权利要求7所述的音乐推荐方法,其特征在于,该方法还包括:8. The music recommendation method according to claim 7, further comprising: 调整步骤,从所述客户端接收所述客户端的使用者在聆听所述音乐后的生理数据,根据所述生理数据以及预设的算法计算出所述使用者当前的情感数值Z,并根据使用者当前的情感数值Z以及选择的情感数值X从所述音乐数据库中挑选出另一首音乐,并将该音乐的信息发送给所述客户端。The adjustment step is to receive the physiological data of the user of the client after listening to the music from the client, calculate the current emotional value Z of the user according to the physiological data and a preset algorithm, and calculate the user's current emotional value Z according to the usage Select another piece of music from the music database based on the user's current emotional value Z and the selected emotional value X, and send the music information to the client. 9.如权利要求8所述的音乐推荐方法,其特征在于,所述调整步骤通过如下步骤根据使用者当前的情感数值Z以及选择的情感数值X从所述音乐数据库中挑选出另一首音乐:9. The music recommendation method according to claim 8, wherein the adjustment step selects another piece of music from the music database according to the user's current emotional value Z and the selected emotional value X through the following steps : 根据使用者当前的情感数值Z以及选择的情感数值X计算出补偿值Y,其中Y=X-Z;及Calculate the compensation value Y according to the user's current emotional value Z and the selected emotional value X, where Y=X-Z; and 按照预设的规则从所述音乐数据库中挑选出一首情感数值最接近X+Y=2*X-Z的音乐。Select a piece of music whose emotional value is closest to X+Y=2*X-Z from the music database according to preset rules. 10.如权利要求7至9所述的音乐推荐方法,其特征在于,所述预设的规则是从所述音乐数据库中挑选出情感数值与指定情感数值之差在一定范围内的一首或多首音乐,并从该一首或多首音乐中随机挑选出一首音乐。10. The method for recommending music as claimed in claims 7 to 9, wherein the preset rule is to select from the music database a song or song whose difference between the emotional value and the specified emotional value is within a certain range. Multiple pieces of music, and a piece of music is randomly selected from the one or more pieces of music. 11.如权利要求7至9所述的音乐推荐方法,其特征在于,所述预设的规则是从所述音乐数据库中挑选出情感数值与指定情感数值之差在一定范围内的一首或多首音乐,再从该一首或多首音乐中挑选出播放次数最少的一首音乐。11. The method for recommending music as claimed in claims 7 to 9, wherein the preset rule is to select from the music database a song or song whose difference between the emotional value and the specified emotional value is within a certain range. multiple pieces of music, and then select a piece of music with the least number of plays from the one or more pieces of music. 12.如权利要求7至9所述的音乐推荐方法,其特征在于,所述预设的规则是从所述音乐数据库中挑选出情感数值与指定情感数值之差在一定范围内的一首或多首音乐,然后从该一首或者多首音乐中去除该使用者不喜欢的音乐,再从剩余的音乐中随机挑选出一首音乐。12. The method for recommending music as claimed in claims 7 to 9, wherein the preset rule is to select from the music database a song or song whose difference between the emotional value and the specified emotional value is within a certain range. A plurality of pieces of music, then remove the music that the user does not like from the one or more pieces of music, and then randomly select a piece of music from the remaining music. 13.一种音乐推荐方法,应用于客户端中,该客户端与一服务器相连,所述服务器与存储有各个音乐的情感数值信息的音乐数据库相连,所述客户端包括输入装置以及播放装置,其特征在于,该方法包括:13. A method for recommending music, which is applied to a client, the client is connected to a server, the server is connected to a music database storing emotional value information of each music, the client includes an input device and a playback device, It is characterized in that the method includes: 接收步骤,通过输入装置接收该客户端的使用者所选择的情感数值X,并将所述情感数值X发送到所述服务器;The receiving step is to receive the emotional value X selected by the user of the client through the input device, and send the emotional value X to the server; 播放步骤,从所述服务器接收所述服务器从所述音乐数据库中根据所述情感数值X所挑选的音乐的信息,根据该音乐的信息获取音乐,并通过所述播放装置播放该音乐。The playing step is to receive from the server the information of the music selected by the server from the music database according to the emotional value X, obtain the music according to the information of the music, and play the music through the playing device. 14.如权利要求13所述的音乐推荐方法,其特征在于,所述客户端还包括生理侦测装置,该方法还包括:14. The music recommendation method according to claim 13, wherein the client also includes a physiological detection device, and the method also includes: 侦测步骤,通过所述生理侦测装置侦测所述客户端的使用者在聆听所述音乐后的的生理数据,并将侦测到的生理数据发送到所述服务器。The detection step is to detect the physiological data of the user of the client after listening to the music through the physiological detection device, and send the detected physiological data to the server. 15.如权利要求14所述的音乐推荐方法,其特征在于,所述所述播放步骤还从所述服务器接收所述服务器从所述音乐数据库中根据所述情感数值X以及所述生理数据所挑选的音乐的信息,根据该音乐的信息获取音乐,并通过所述播放装置播放该音乐。15. The method for recommending music according to claim 14, wherein said playing step also receives from said server said server from said music database according to said emotional value X and said physiological data. information of the selected music, obtain the music according to the information of the music, and play the music through the playback device.
CN201610235644.8A 2016-04-15 2016-04-15 Music recommendation system and method Expired - Fee Related CN107301185B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610235644.8A CN107301185B (en) 2016-04-15 2016-04-15 Music recommendation system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610235644.8A CN107301185B (en) 2016-04-15 2016-04-15 Music recommendation system and method

Publications (2)

Publication Number Publication Date
CN107301185A true CN107301185A (en) 2017-10-27
CN107301185B CN107301185B (en) 2021-01-12

Family

ID=60137147

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610235644.8A Expired - Fee Related CN107301185B (en) 2016-04-15 2016-04-15 Music recommendation system and method

Country Status (1)

Country Link
CN (1) CN107301185B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110555128A (en) * 2018-05-31 2019-12-10 蔚来汽车有限公司 music recommendation playing method and vehicle-mounted infotainment system
CN111430006A (en) * 2020-03-18 2020-07-17 深圳市人工智能与机器人研究院 Emotion adjusting method and device, computer equipment and storage medium
CN114282042A (en) * 2021-12-20 2022-04-05 咪咕音乐有限公司 Background music recommendation method, device, device and storage medium
CN116013228A (en) * 2022-12-28 2023-04-25 深圳大学 A music generation method, device, electronic device and storage medium thereof

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20120133207A (en) * 2011-05-31 2012-12-10 전북대학교산학협력단 The System for searching musics based on an emotion and a condition and method thereof
CN103412646A (en) * 2013-08-07 2013-11-27 南京师范大学 Emotional music recommendation method based on brain-computer interaction
US20140278400A1 (en) * 2013-03-12 2014-09-18 Microsoft Corporation Search Results Using Intonation Nuances
CN105138530A (en) * 2015-06-18 2015-12-09 刘冬冬 Automatic music matching method and apparatus and electronic apparatus applying same

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20120133207A (en) * 2011-05-31 2012-12-10 전북대학교산학협력단 The System for searching musics based on an emotion and a condition and method thereof
US20140278400A1 (en) * 2013-03-12 2014-09-18 Microsoft Corporation Search Results Using Intonation Nuances
CN103412646A (en) * 2013-08-07 2013-11-27 南京师范大学 Emotional music recommendation method based on brain-computer interaction
CN105138530A (en) * 2015-06-18 2015-12-09 刘冬冬 Automatic music matching method and apparatus and electronic apparatus applying same

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
邢白夕: "情感驱动的音乐数据挖掘及检索", 《中国博士学位论文全文数据库》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110555128A (en) * 2018-05-31 2019-12-10 蔚来汽车有限公司 music recommendation playing method and vehicle-mounted infotainment system
CN111430006A (en) * 2020-03-18 2020-07-17 深圳市人工智能与机器人研究院 Emotion adjusting method and device, computer equipment and storage medium
CN111430006B (en) * 2020-03-18 2023-09-19 深圳市人工智能与机器人研究院 Emotion regulation methods, devices, computer equipment and storage media
CN114282042A (en) * 2021-12-20 2022-04-05 咪咕音乐有限公司 Background music recommendation method, device, device and storage medium
CN116013228A (en) * 2022-12-28 2023-04-25 深圳大学 A music generation method, device, electronic device and storage medium thereof

Also Published As

Publication number Publication date
CN107301185B (en) 2021-01-12

Similar Documents

Publication Publication Date Title
CN108197327B (en) Song recommendation method, device and storage medium
CN109147826B (en) Music emotion recognition method and device, computer equipment and computer storage medium
CN104731950B (en) A kind of video recommendation method and device
TW202036356A (en) Gradient boosting decision tree-based method and device for model training
CN102566740A (en) Electronic device with emotion recognition function, and output control method of such electronic device
CN107301185B (en) Music recommendation system and method
CN111047410B (en) Recommendation method, recommendation device, terminal equipment and storage medium
CN108174031A (en) A kind of volume adjusting method, terminal device and computer readable storage medium
CN101739384A (en) Multi-functional electronic device and application method thereof
CN107357764B (en) Data analysis method, electronic device, and computer storage medium
CN103034689A (en) Smoking number statistics method for electronic cigarette
CN105844523A (en) Method, apparatus and calculation equipment for simulated stock trading by using securities back traced data
JP5287639B2 (en) Product usage trend analysis method, product recommendation method, product usage trend analysis system, and product recommendation system
KR20190000246A (en) Emotion-based sound control device and control method
CN108563648B (en) Data display method and device, storage medium and electronic device
JP2024179813A (en) Music provision system
CN114367104B (en) Rendering distance adaptation method and device, game processing device and readable storage medium
CN118942357A (en) Brightness adjustment method, brightness adjustment device and storage medium
TW201737124A (en) System and method for recommending music
CN115114534A (en) Music recommendation method, server and storage medium
CN107077617B (en) Fingerprint extraction method and device
CN111683280B (en) Video processing method and device and electronic equipment
CN105893515B (en) Information processing method and server
CN109919740B (en) A method and device for generating clothes shopping advice
CN108540858A (en) Method, device and equipment for preventing user from indulging television program

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
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20210112