Music recommendation method, device, equipment and computer-readable storage medium

By adjusting the playlist according to the user's motion parameters and attribute information, the problem in the existing technology that the playlist is not suitable for the sports type and rhythm is solved, and music recommendations that are more suitable for the sports situation are realized and the user experience is improved.

CN113536027BActive Publication Date: 2024-10-22MIGU MUSIC CO LTD +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110854544.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-27
Publication Date
2024-10-22
Estimated Expiration
2041-07-27

AI Technical Summary

Technical Problem

In existing sports music services, users' playlists are not suitable for exercise types and rhythms, causing users to frequently switch songs during exercise.

Method used

According to the user's exercise parameters (such as exercise heart rate, duration, type, pace) and attribute information (such as age), the correction variables are obtained, the target recommendation variables are determined, and the appropriate relationship is obtained through the preset recommendation variables and playlist style tag relationships. playlist.

Benefits of technology

It avoids users from frequently switching songs during exercise, provides music recommendations that are more suitable for exercise situations, and improves users' listening experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113536027B_ABST
    Figure CN113536027B_ABST
Patent Text Reader

Abstract

The present invention discloses a music recommendation method, device, equipment and computer-readable storage medium, the method comprising: obtaining a correction variable according to a user's exercise parameters and the user's attribute information, the exercise parameters at least including exercise heart rate, exercise duration, exercise type and exercise pace, the attribute information at least including the user's age; determining a target recommendation variable according to the correction variable and a preset initial recommendation variable; obtaining a song list corresponding to the target recommendation variable according to the target recommendation variable and the correspondence between the preset target recommendation variable and the style label of the song list; playing the music in the song list. The present invention improves the user's listening experience when exercising.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of song recommendation, and in particular to a music recommendation method, device, equipment and computer-readable storage medium. Background Art

[0002] In the existing general sports music service solutions, when users are doing exercises such as running, they need to listen to music by selecting a song list provided in a sports APP installed on their mobile phone (such as Migu Shanpao, etc.). When users are exercising, due to different types of exercise, the rhythm of the users' exercise is different. In most cases, the user's playlist is not suitable for the current rhythm of the exercise, which forces the user to switch songs when listening. Summary of the invention

[0003] The main purpose of the present invention is to provide a music recommendation method, device, equipment and computer-readable storage medium, aiming to solve the problem that the playlist is not suitable for the user's current exercise.

[0004] To achieve the above object, the present invention provides a music recommendation method, which comprises the following steps:

[0005] Acquire a correction variable according to the user's exercise parameters and the user's attribute information, wherein the exercise parameters at least include exercise heart rate, exercise duration, exercise type and exercise pace, and the attribute information at least includes the user's age;

[0006] Determining target recommended variables according to the modified variables and preset initial recommended variables;

[0007] According to the target recommendation variable and the correspondence between the preset target recommendation variable and the style label of the playlist, obtaining the playlist corresponding to the target recommendation variable;

[0008] Play the music in the playlist.

[0009] In one embodiment, the step of obtaining the correction variable according to the user's motion parameters and the user's attribute information includes:

[0010] Determine a duration segment in which the user's exercise duration is located, where the duration segment is determined by a first duration threshold, a second duration threshold, and a third duration threshold, wherein the first duration threshold is the minimum duration that the user can last when performing the exercise of the exercise type, the second duration threshold is the maximum duration that the user can last when performing the exercise of the running type, and the third duration threshold is the ratio of the maximum duration to the intensity value corresponding to the exercise type;

[0011] Determine the duration coefficient of the user according to the duration segment in which the exercise duration is located;

[0012] Calculate the minimum and maximum values ​​of the exercise heart rate according to the duration coefficient;

[0013] The correction variable is determined according to the magnitude relationship between the user's exercise heart rate, the minimum value of the exercise heart rate, and the maximum value of the exercise heart rate.

[0014] In one embodiment, the step of determining the correction variable according to the magnitude relationship between the user's exercise heart rate and the minimum value of the exercise heart rate and the maximum value of the exercise heart rate comprises:

[0015] If the user's exercise heart rate is greater than or equal to the minimum value of the exercise heart rate, and the user's exercise heart rate is less than or equal to the maximum value of the exercise heart rate, determining the correction variable according to the user's current exercise pace;

[0016] If the user's exercise heart rate is less than the minimum value of the exercise heart rate, determining the correction variable to be a preset positive value;

[0017] If the user's exercise heart rate is greater than the maximum value of the exercise heart rate, the correction variable is determined to be a preset negative value.

[0018] In one embodiment, the step of determining the correction variable according to the current exercise pace of the user includes:

[0019] The correction variable is determined according to a preset formula and the exercise pace, the preset formula is a multi-order polynomial, and each coefficient of the multi-order polynomial is determined by the attribute information.

[0020] In one embodiment, the step of calculating the minimum and maximum values ​​of the exercise heart rate according to the duration coefficient includes:

[0021] The minimum value of the exercise heart rate is determined according to the duration coefficient, the age and a first formula, wherein the first formula is:

[0022]

[0023] Among them, a and b1 are constants, b1 is less than 1, age is age, t index is the duration coefficient;

[0024] The maximum value of the exercise heart rate is determined according to the duration coefficient, the age and a second formula, wherein the second formula is:

[0025]

[0026] Among them, a and b2 are constants, 1>b2>b1, age is age, t indexis the duration coefficient.

[0027] In one embodiment, before the step of determining the duration segment in which the user's exercise duration belongs, the method further includes:

[0028] Obtaining a preset intensity value of the user's exercise type;

[0029] If the exercise type is a preset exercise type preferred by the user, determining the intensity value according to a preset negative value and the preset intensity value;

[0030] If the exercise type is not a preset exercise type preferred by the user, the preset intensity value is used as the intensity value.

[0031] In one embodiment, before the step of obtaining the playlist corresponding to the target recommendation variable according to the target recommendation variable and the correspondence between the preset target recommendation variable and the style label of the playlist, the step further includes:

[0032] Obtaining the user's exercise pace;

[0033] Determining whether the exercise pace is within a preset pace range;

[0034] If the exercise pace is within the preset pace range, the step of obtaining the playlist corresponding to the target recommendation variable is performed based on the target recommendation variable and the correspondence between the preset target recommendation variable and the style label of the playlist.

[0035] To achieve the above object, the present invention further provides a music recommendation device, the music recommendation device comprising:

[0036] A calculation module, used for obtaining correction variables according to the user's exercise parameters and the user's attribute information, wherein the exercise parameters at least include exercise heart rate, exercise duration, exercise type and exercise pace, and the attribute information at least includes the user's age;

[0037] A determination module, used to determine a target recommended variable according to the correction variable and a preset initial recommended variable;

[0038] An acquisition module, used for acquiring a song list corresponding to the target recommendation variable according to the target recommendation variable and a correspondence between a preset target recommendation variable and a style label of the song list;

[0039] The playing module is used to play the music in the playlist.

[0040] To achieve the above objectives, the present invention also provides a music recommendation device, which includes a memory, a processor, and a music recommendation program stored in the memory and executable on the processor, and when the music recommendation program is executed by the processor, the various steps of the music recommendation method described above are implemented.

[0041] To achieve the above objectives, the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a music recommendation program, and when the music recommendation program is executed by a processor, the various steps of the music recommendation method described above are implemented.

[0042] The present invention provides a music recommendation method, device, equipment and computer-readable storage medium, which obtains correction variables according to the user's motion parameters and the user's attribute information, determines the target recommendation variable according to the correction variable and the preset initial recommendation variable, obtains the song list corresponding to the target recommendation variable according to the target recommendation variable and the correspondence between the preset target recommendation variable and the style label of the song list, and plays the music in the song list. The song list is adjusted according to the user's motion parameters and attribute information to avoid the user switching the song list during exercise, and the songs in the song list played are more suitable for the user's exercise situation, thereby improving the user's listening experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] Figure 1 A schematic diagram of the hardware structure of a music recommendation device according to an embodiment of the present invention;

[0044] Figure 2 A schematic diagram of a flow chart of a first embodiment of a music recommendation method of the present invention;

[0045] Figure 3 This is a detailed flowchart of step S10 of the second embodiment of the music recommendation method of the present invention;

[0046] Figure 4 This is a detailed flowchart of step S14 of the third embodiment of the music recommendation method of the present invention;

[0047] Figure 5 Schematic diagram of the logical structure of the music recommendation device of the present invention.

[0048] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0049] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0050] The main solution of the embodiment of the present invention is: obtaining correction variables according to the user's motion parameters and the user's attribute information, determining the target recommendation variables according to the correction variables and the preset initial recommendation variables, obtaining the playlist corresponding to the target recommendation variables according to the target recommendation variables and the correspondence between the preset target recommendation variables and the style labels of the playlist, and playing the music in the playlist.

[0051] Adjust the playlist according to the user's exercise parameters and attribute information to avoid the user switching playlists during exercise, and make the songs in the playlist played more suitable for the user's exercise conditions, thereby improving the user's listening experience.

[0052] As an implementation scheme, the music recommendation device can be Figure 1 shown.

[0053] The embodiment of the present invention relates to a music recommendation device, which includes: a processor 101, such as a CPU, a memory 102, and a communication bus 103. The communication bus 103 is used to realize connection and communication between these components.

[0054] The memory 102 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. Figure 1 As shown, the memory 102 as a computer-readable storage medium may include a music recommendation program; and the processor 101 may be used to call the music recommendation program stored in the memory 102 and perform the following operations:

[0055] Acquire a correction variable according to the user's exercise parameters and the user's attribute information, wherein the exercise parameters at least include exercise heart rate, exercise duration, exercise type and exercise pace, and the attribute information at least includes the user's age;

[0056] Determining target recommended variables according to the modified variables and preset initial recommended variables;

[0057] According to the target recommendation variable and the correspondence between the preset target recommendation variable and the style label of the playlist, obtaining the playlist corresponding to the target recommendation variable;

[0058] Play the music in the playlist.

[0059] In one embodiment, the processor 101 may be used to call the music recommendation program stored in the memory 102 and perform the following operations:

[0060] Determine a duration segment in which the user's exercise duration is located, where the duration segment is determined by a first duration threshold, a second duration threshold, and a third duration threshold, wherein the first duration threshold is the minimum duration that the user can last when performing the exercise of the exercise type, the second duration threshold is the maximum duration that the user can last when performing the exercise of the running type, and the third duration threshold is the ratio of the maximum duration to the intensity value corresponding to the exercise type;

[0061] Determine the duration coefficient of the user according to the duration segment in which the exercise duration is located;

[0062] Calculate the minimum and maximum values ​​of the exercise heart rate according to the duration coefficient;

[0063] The correction variable is determined according to the magnitude relationship between the user's exercise heart rate, the minimum value of the exercise heart rate, and the maximum value of the exercise heart rate.

[0064] In one embodiment, the processor 101 may be used to call the music recommendation program stored in the memory 102 and perform the following operations:

[0065] If the user's exercise heart rate is greater than or equal to the minimum value of the exercise heart rate, and the user's exercise heart rate is less than or equal to the maximum value of the exercise heart rate, determining the correction variable according to the user's current exercise pace;

[0066] If the user's exercise heart rate is less than the minimum value of the exercise heart rate, determining the correction variable to be a preset positive value;

[0067] If the user's exercise heart rate is greater than the maximum value of the exercise heart rate, the correction variable is determined to be a preset negative value.

[0068] In one embodiment, the processor 101 may be used to call the music recommendation program stored in the memory 102 and perform the following operations:

[0069] The correction variable is determined according to a preset formula and the exercise pace, the preset formula is a multi-order polynomial, and each coefficient of the multi-order polynomial is determined by the attribute information.

[0070] In one embodiment, the processor 101 may be used to call the music recommendation program stored in the memory 102 and perform the following operations:

[0071] The minimum value of the exercise heart rate is determined according to the duration coefficient, the age and a first formula, wherein the first formula is:

[0072]

[0073] Among them, a and b1 are constants, b1 is less than 1, age is age, t index is the duration coefficient;

[0074] The maximum value of the exercise heart rate is determined according to the duration coefficient, the age and a second formula, wherein the second formula is:

[0075]

[0076] Among them, a and b2 are constants, 1>b2>b1, age is age, t index is the duration coefficient.

[0077] In one embodiment, the processor 101 may be used to call the music recommendation program stored in the memory 102 and perform the following operations:

[0078] Obtaining a preset intensity value of the user's exercise type;

[0079] If the exercise type is a preset exercise type preferred by the user, determining the intensity value according to a preset negative value and the preset intensity value;

[0080] If the exercise type is not a preset exercise type preferred by the user, the preset intensity value is used as the intensity value.

[0081] In one embodiment, the processor 101 may be used to call the music recommendation program stored in the memory 102 and perform the following operations:

[0082] Obtaining the user's exercise pace;

[0083] Determining whether the exercise pace is within a preset pace range;

[0084] If the exercise pace is within the preset pace range, the step of obtaining the playlist corresponding to the target recommendation variable is performed based on the target recommendation variable and the correspondence between the preset target recommendation variable and the style label of the playlist.

[0085] Based on the hardware architecture of the above-mentioned music recommendation device, an embodiment of the music recommendation method of the present invention is proposed.

[0086] Reference Figure 2 , Figure 2 This is a first embodiment of the music recommendation method of the present invention, and the music recommendation method comprises the following steps:

[0087] Step S10, obtaining correction variables according to the user's exercise parameters and the user's attribute information, wherein the exercise parameters at least include exercise heart rate, exercise duration, exercise type and exercise pace, and the attribute information at least includes the user's age.

[0088] Specifically, the user's sports parameters are the real-time sports data of the user during exercise, and the sports parameters may include the user's exercise heart rate, exercise duration, exercise type, exercise pace and other data. The user's attribute information may include the user's age, gender, height, weight, running age, exercise habits and other data. The correction variable may be obtained according to the user's sports parameters and attribute information, where the correction variable may be a value, for example, the correction variable is -2.

[0089] Step S20: determining target recommended variables according to the modified variables and preset initial recommended variables.

[0090] Specifically, the initial recommendation variable is an estimate of the user's sports preference playlist. The initial recommendation variable can be set by the user, can be determined in advance based on the user's historical sports parameters and the user's attribute information, or can directly obtain the average value of the target recommendation variable corresponding to the user's historical sports parameters.

[0091] Since the user's exercise parameters are constantly changing during exercise, the correction variables are determined based on the user's current exercise parameters and the user's attribute information. The correction variables are used to adjust the user's initial recommendation variables so that the recommended playlist is more suitable for the user's exercise situation.

[0092] The target recommended variable is determined according to the user's initial recommended variable and the modified variable. For example, the user's initial recommended variable is 4, the modified variable is -1, and the user's current corresponding target recommended variable is 3.

[0093] Step S30, obtaining a song list corresponding to the target recommendation variable according to the target recommendation variable and the correspondence between the preset target recommendation variable and the style label of the song list;

[0094] Specifically, obtain the playlist corresponding to the target recommendation variable, wherein the target recommendation variable can correspond one-to-one to the playlist, and the target recommendation variable can also correspond one-to-one to the style label of the playlist. For example, the style label can be soothing, intense, or intense, etc. When the target recommendation variable is 4, it can correspond to a soothing music label, when the target recommendation variable is 6, it can correspond to an intense music label, and when the target recommendation variable is 8, it can correspond to an intense music label.

[0095] According to the target recommendation variable and the correspondence between the preset target recommendation variable and the style label of the playlist, before obtaining the playlist corresponding to the target recommendation variable, the user's exercise pace can also be obtained; determine whether the exercise pace is within the preset pace range; if the exercise pace is within the preset pace range, execute the step of obtaining the playlist corresponding to the target recommendation variable according to the target recommendation variable and the correspondence between the preset target recommendation variable and the style label of the playlist.

[0096] Step S40, playing the music in the playlist.

[0097] Specifically, after determining the playlist corresponding to the target recommendation value, play the music in the playlist.

[0098] In the technical solution of this embodiment, a correction variable is obtained according to the user's motion parameters and the user's attribute information, a target recommendation variable is determined according to the correction variable and the preset initial recommendation variable, a song list corresponding to the target recommendation variable is obtained according to the correspondence between the preset target recommendation variable and the style label of the song list, and the music in the song list is played. The song list is adjusted according to the user's motion parameters and attribute information to avoid the user switching the song list during exercise, and the songs in the song list played are more suitable for the user's exercise situation, thereby improving the user's listening experience.

[0099] Reference Figure 3 , Figure 3 This is a second embodiment of the music recommendation method of the present invention, based on the first embodiment, step S10 includes:

[0100] Step S11, determining the duration segment of the user's exercise duration, wherein the duration segment is determined by a first duration threshold, a second duration threshold, and a third duration threshold, wherein the first duration threshold is the minimum duration that the user can last when performing the exercise of the exercise type, the second duration threshold is the maximum duration that the user can last when performing the exercise of the running type, and the third duration threshold is the ratio of the maximum duration to the intensity value corresponding to the exercise type;

[0101] Step S12, determining the duration coefficient of the user according to the duration segment to which the exercise duration belongs;

[0102] Step S13, calculating the minimum and maximum values ​​of the exercise heart rate according to the duration coefficient;

[0103] Step S14, determining the correction variable according to the magnitude relationship between the user's exercise heart rate, the minimum value of the exercise heart rate, and the maximum value of the exercise heart rate.

[0104] Specifically, the user's exercise duration and exercise type are obtained, and the exercise duration coefficient is determined according to the exercise duration and exercise type. For example, a variable duration coefficient t can be defined according to the user's exercise duration t index , exemplary, are as follows:

[0105]

[0106] Where t1 is {t max ,t min,t max / w}, t2 is the maximum value of {t max ,t min ,t max / w}, t3 is the middle value of {t max ,t min ,t max / w}. Among them, t min is the first duration threshold, t max is the second duration threshold, t max / w is the third duration threshold. w is the intensity value of the exercise type.

[0107] Get the preset intensity value of the user's exercise type; if the exercise type is the preset user-preferred exercise type, determine the intensity value based on the preset negative value and the preset intensity value, for example, w = preset intensity value - 0.5. If the exercise type is not the preset user-preferred exercise type, use the preset intensity value as the intensity value, for example, w = preset intensity value. The preset intensity value is set by the user through the sports APP. The smaller the intensity value of the exercise, the greater the user's exercise intensity. For example: running is more intense than slow walking. If the intensity value of running is set to 1, the intensity value of slow walking is 1.5 or 2.

[0108] According to the duration coefficient, the minimum and maximum exercise heart rate can be calculated; for example, the larger the duration coefficient, the smaller the exercise heart rate, and the smaller the duration coefficient, the larger the exercise heart rate. The inverse of the largest duration coefficient is taken as the minimum exercise heart rate, and the inverse of the smallest duration coefficient is taken as the maximum exercise heart rate.

[0109] According to the duration coefficient, the minimum and maximum values ​​of the exercise heart rate can be calculated. For example, the minimum value of the exercise heart rate is determined according to the duration coefficient, age and the first formula. The first formula is as follows:

[0110]

[0111] Among them, a and b1 are constants, b1 is less than 1, age is age, t index is the exercise duration coefficient; for example, a is specifically 220, and b1 is specifically 60%;

[0112] The maximum value of the exercise heart rate is determined according to the duration coefficient, age and the second formula. The second formula is as follows:

[0113]

[0114] Among them, a and b2 are constants, 1>b2>b1, age is age, t index is the exercise duration coefficient. For example, a is specifically 220, and b2 is specifically 80%.

[0115] The correction variable is determined according to the size relationship between the user's exercise heart rate and the minimum value of the exercise heart rate and the maximum value of the exercise heart rate. When the user's exercise heart rate is between the minimum value and the maximum value of the exercise heart rate, the correction variable is determined according to the user's exercise parameter, for example, the exercise parameter is the exercise duration, and the longer the exercise duration, the smaller the correction variable value. When the user's exercise heart rate is less than the minimum value, the correction variable is determined to be a preset positive value, and when the user's exercise heart rate is greater than the maximum value, the correction variable is determined to be a preset negative value.

[0116] In the technical solution of this embodiment, the duration segment of the user's exercise duration is determined, and the user's duration coefficient is determined according to the duration segment of the exercise duration; the minimum and maximum values ​​of the exercise heart rate are calculated according to the duration coefficient; and the correction variable is determined according to the size relationship between the user's exercise heart rate and the minimum and maximum values ​​of the exercise heart rate. The user's duration coefficient is determined by the user's exercise duration, and the range of the exercise heart rate is determined by the duration coefficient. The correction variable is determined according to whether the user's exercise heart rate is within the range, so that the obtained correction variable fits the user's exercise situation and improves the user's listening experience.

[0117] Reference Figure 4 , Figure 4 This is a third embodiment of the music recommendation method of the present invention, based on the second embodiment, step S14 includes:

[0118] Step S141, if the user's exercise heart rate is greater than or equal to the minimum value of the exercise heart rate, and the user's exercise heart rate is less than or equal to the maximum value of the exercise heart rate, determining the correction variable according to the user's current exercise pace;

[0119] Step S142, if the user's exercise heart rate is less than the minimum value of the exercise heart rate, determining the correction variable to be a preset positive value;

[0120] Step S143: if the user's exercise heart rate is greater than the maximum value of the exercise heart rate, determine that the correction variable is a preset negative value.

[0121] When the user's exercise heart rate is greater than or equal to the minimum value of the exercise heart rate, and the user's exercise heart rate is less than or equal to the maximum value of the exercise heart rate, the correction variable is determined according to the user's current exercise pace. The user's exercise pace is calculated from the user's exercise speed. For example, when the user's exercise speed is 15km / h, the user's corresponding exercise pace is 4, when the user's exercise speed is 12km / h, the user's corresponding exercise pace is 5, and when the user's exercise speed is 10km / h, the user's corresponding exercise pace is 6.

[0122] The correction variable is determined according to the user's current exercise pace. Different correction variables can be set manually according to the size of the exercise pace. The larger the exercise pace, the larger the correction variable, and the smaller the exercise pace, the smaller the correction variable. The correction variable can also be determined according to a preset formula and exercise pace. The preset formula is a multi-order polynomial, and each coefficient of the multi-order polynomial is determined by attribute information. Among them, the correction variable can be as follows:

[0123] G(x)=c1x 4 -c2x 3 +c3x 2 -c4x-c5;

[0124] Wherein, G(x) is the correction variable, x is the exercise pace, c1, c2, c3, c4, c5 are correction coefficients. Exemplarily, the correction coefficients are obtained by linearly fitting the correction formula according to the user attributes, c1=0.0013, c2=0.0428, c3=0.4351, c4=1.0548, c5=1.7022.

[0125] According to the above formula, the correction variables at different paces are: when the exercise pace is 2'00", the correction variable is -2; when the exercise pace is 3'30", the correction variable is -2; when the exercise pace is 4'00", the correction variable is -2; when the exercise pace is 5'00", the correction variable is -1; when the exercise pace is 6'00", the correction variable is 0; when the exercise pace is 7'00", the correction variable is +1; when the exercise pace is 8'00", the correction variable is +2; when the exercise pace is 8'30", the correction variable is +1.

[0126] When the user's exercise heart rate is less than the minimum exercise heart rate, it means that the user's current exercise heart rate is too low, and a preset positive value is determined as a correction variable to increase the user's recommendation variable to recommend a more intense playlist. When the user's exercise heart rate is greater than the maximum exercise heart rate, it means that the user's current exercise heart rate is too high, and a preset negative value is determined as a correction variable to reduce the recommendation variable to recommend a more moderate playlist.

[0127] In the technical solution of this embodiment, if the user's exercise heart rate is greater than or equal to the minimum value of the exercise heart rate, and the user's exercise heart rate is less than or equal to the maximum value of the exercise heart rate, the correction variable is determined according to the user's current exercise pace; if the user's exercise heart rate is less than the minimum value of the exercise heart rate, the correction variable is determined to be a preset positive value; if the user's exercise heart rate is greater than the maximum value of the exercise heart rate, the correction variable is determined to be a preset negative value. The user's correction variable is determined by the user's exercise heart rate, the maximum value and the minimum value of the exercise heart rate. The correction variable is used to determine the recommended variable that fits the user's current exercise, and then recommend a song list that fits the current exercise, thereby improving the user's listening experience.

[0128] Reference Figure 5 , a music recommendation device, the music recommendation device comprising:

[0129] The calculation module 100 is used to obtain the correction variable according to the user's exercise parameters and the user's attribute information, wherein the exercise parameters at least include exercise heart rate, exercise duration, exercise type and exercise pace, and the attribute information at least includes the user's age;

[0130] A determination module 200, configured to determine a target recommended variable according to the modified variable and a preset initial recommended variable;

[0131] The acquisition module 300 is used to acquire the song list corresponding to the target recommendation variable according to the target recommendation variable and the correspondence between the preset target recommendation variable and the style label of the song list;

[0132] The playing module 400 is used to play the music in the playlist.

[0133] In one embodiment, in terms of obtaining the correction variable according to the user's motion parameters and the user's attribute information, the calculation module 100 is specifically used to:

[0134] Determine a duration segment in which the user's exercise duration is located, where the duration segment is determined by a first duration threshold, a second duration threshold, and a third duration threshold, wherein the first duration threshold is the minimum duration that the user can last when performing the exercise of the exercise type, the second duration threshold is the maximum duration that the user can last when performing the exercise of the running type, and the third duration threshold is the ratio of the maximum duration to the intensity value corresponding to the exercise type;

[0135] Determine the duration coefficient of the user according to the duration segment in which the exercise duration is located;

[0136] Calculate the minimum and maximum values ​​of the exercise heart rate according to the duration coefficient;

[0137] The correction variable is determined according to the magnitude relationship between the user's exercise heart rate, the minimum value of the exercise heart rate, and the maximum value of the exercise heart rate.

[0138] In one embodiment, in determining the correction variable according to the magnitude relationship between the user's exercise heart rate and the minimum value of the exercise heart rate and the maximum value of the exercise heart rate, the calculation module 100 is specifically used to:

[0139] If the user's exercise heart rate is greater than or equal to the minimum value of the exercise heart rate, and the user's exercise heart rate is less than or equal to the maximum value of the exercise heart rate, determining the correction variable according to the user's current exercise pace;

[0140] If the user's exercise heart rate is less than the minimum value of the exercise heart rate, determining the correction variable to be a preset positive value;

[0141] If the user's exercise heart rate is greater than the maximum value of the exercise heart rate, the correction variable is determined to be a preset negative value.

[0142] In one embodiment, in determining the correction variable according to the current exercise pace of the user, the calculation module 100 is specifically used to:

[0143] The correction variable is determined according to a preset formula and the exercise pace, the preset formula is a multi-order polynomial, and each coefficient of the multi-order polynomial is determined by the attribute information.

[0144] In one embodiment, in calculating the minimum value and the maximum value of the exercise heart rate according to the duration coefficient, the calculation module 100 is specifically used to:

[0145] The minimum value of the exercise heart rate is determined according to the duration coefficient, the age and a first formula, wherein the first formula is:

[0146]

[0147] Among them, a and b1 are constants, b1 is less than 1, age is age, t index is the duration coefficient;

[0148] The maximum value of the exercise heart rate is determined according to the duration coefficient, the age and a second formula, wherein the second formula is:

[0149]

[0150] Among them, a and b2 are constants, 1>b2>b1, age is age, t index is the duration coefficient.

[0151] In one embodiment, before determining the duration segment to which the user's exercise duration belongs, the calculation module 100 is specifically configured to:

[0152] Obtaining a preset intensity value of the user's exercise type;

[0153] If the exercise type is a preset exercise type preferred by the user, determining the intensity value according to a preset negative value and the preset intensity value;

[0154] If the exercise type is not a preset exercise type preferred by the user, the preset intensity value is used as the intensity value.

[0155] In one embodiment, before obtaining the playlist corresponding to the target recommendation variable according to the target recommendation variable and the correspondence between the preset target recommendation variable and the style label of the playlist, the obtaining module 300 is specifically used to:

[0156] Obtaining the user's exercise pace;

[0157] Determining whether the exercise pace is within a preset pace range;

[0158] If the exercise pace is within the preset pace range, the step of obtaining the playlist corresponding to the target recommendation variable is performed based on the target recommendation variable and the correspondence between the preset target recommendation variable and the style label of the playlist.

[0159] The present invention also provides a music recommendation device, which includes a memory, a processor, and a music recommendation program stored in the memory and executable on the processor. When the music recommendation program is executed by the processor, the various steps of the music recommendation method described in the above embodiment are implemented.

[0160] The present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a music recommendation program, and when the music recommendation program is executed by a processor, the steps of the music recommendation method described in the above embodiment are implemented.

[0161] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0162] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, system, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, system, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, system, article or device including the element.

[0163] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment system can be implemented by means of software plus a necessary general hardware platform, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a computer-readable storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a parking management device, an air conditioner, or a network device, etc.) to execute the system described in each embodiment of the present invention.

[0164] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A music recommendation method, characterized in that: The music recommendation method comprises: Acquire correction variables according to the user's exercise parameters and the user's attribute information, wherein the exercise parameters at least include exercise heart rate, exercise duration, exercise type and exercise pace, and the attribute information at least includes the user's age, and the correction variables are used to adjust the user's initial recommendation variables so that the recommended playlist is more suitable for the user's exercise situation; Wherein, obtaining the correction variable according to the user's motion parameters and the user's attribute information includes: determining the duration segment in which the user's motion duration is located, the duration segment is determined by a first duration threshold, a second duration threshold and a third duration threshold, the first duration threshold being the minimum duration that the user can last when performing the motion of the motion type, the second duration threshold being the maximum duration that the user can last when performing the motion of the motion type, and the third duration threshold being the ratio of the maximum duration to the intensity value corresponding to the motion type; determining the user's duration coefficient according to the duration segment in which the motion duration is located; calculating the minimum value and the maximum value of the motion heart rate according to the duration coefficient; determining the correction variable according to the relationship between the user's motion heart rate and the minimum value and the maximum value of the motion heart rate; Determining a target recommendation variable according to the correction variable and a preset initial recommendation variable, wherein the initial recommendation variable is an estimate of a song list of the user's sports preference; According to the target recommendation variable and the correspondence between the preset target recommendation variable and the style label of the playlist, obtaining the playlist corresponding to the target recommendation variable; Play the music in the playlist.

2. The music recommendation method according to claim 1, characterized in that: The step of determining the correction variable according to the magnitude relationship between the user's exercise heart rate and the minimum value of the exercise heart rate and the maximum value of the exercise heart rate comprises: If the user's exercise heart rate is greater than or equal to the minimum value of the exercise heart rate, and the user's exercise heart rate is less than or equal to the maximum value of the exercise heart rate, determining the correction variable according to the user's current exercise pace; If the user's exercise heart rate is less than the minimum value of the exercise heart rate, determining the correction variable to be a preset positive value; If the user's exercise heart rate is greater than the maximum value of the exercise heart rate, the correction variable is determined to be a preset negative value.

3. The music recommendation method according to claim 2, characterized in that: The step of determining the correction variable according to the current exercise pace of the user comprises: The correction variable is determined according to a preset formula and the exercise pace, the preset formula is a multi-order polynomial, and each coefficient of the multi-order polynomial is determined by the attribute information.

4. The music recommendation method according to claim 1, characterized in that: The step of calculating the minimum and maximum values ​​of the exercise heart rate according to the duration coefficient comprises: The minimum value of the exercise heart rate is determined according to the duration coefficient, the age and a first formula, wherein the first formula is: Among them, a and b1 are constants, b1 is less than 1, age is age, t index is the duration coefficient; The maximum value of the exercise heart rate is determined according to the duration coefficient, the age and a second formula, wherein the second formula is: Among them, a and b2 are constants, 1>b2>b1, age is age, t index is the duration coefficient.

5. The music recommendation method according to claim 1, characterized in that: Before the step of determining the duration segment in which the user's exercise duration belongs, the method further includes: Obtaining a preset intensity value of the user's exercise type; If the exercise type is a preset exercise type preferred by the user, determining the intensity value according to a preset negative value and the preset intensity value; If the exercise type is not a preset exercise type preferred by the user, the preset intensity value is used as the intensity value.

6. The music recommendation method according to claim 1, wherein: Before the step of obtaining the playlist corresponding to the target recommendation variable according to the target recommendation variable and the correspondence between the preset target recommendation variable and the style label of the playlist, the method further includes: Obtaining the user's exercise pace; Determining whether the exercise pace is within a preset pace range; If the exercise pace is within the preset pace range, the step of obtaining the playlist corresponding to the target recommendation variable is performed based on the target recommendation variable and the correspondence between the preset target recommendation variable and the style label of the playlist.

7. A music recommendation device, characterized in that: The music recommendation device comprises: A calculation module is used to obtain correction variables according to the user's exercise parameters and the user's attribute information, wherein the exercise parameters at least include exercise heart rate, exercise duration, exercise type and exercise pace, and the attribute information at least includes the user's age. The correction variables are used to adjust the user's initial recommendation variables so that the recommended playlist is more suitable for the user's exercise situation; wherein obtaining the correction variables according to the user's exercise parameters and the user's attribute information includes: determining the duration segment of the user's exercise duration, the duration segment is determined by a first duration threshold, a second duration threshold and a third duration threshold, and the first duration threshold is The long threshold is the minimum duration that the user can last when performing the exercise of the exercise type, the second duration threshold is the maximum duration that the user can last when performing the exercise of the exercise type, and the third duration threshold is the ratio of the maximum duration to the intensity value corresponding to the exercise type; the duration coefficient of the user is determined according to the duration segment in which the exercise duration is located; the minimum value and the maximum value of the exercise heart rate are calculated according to the duration coefficient; the correction variable is determined according to the relationship between the exercise heart rate of the user and the minimum value and the maximum value of the exercise heart rate; A determination module, configured to determine a target recommendation variable according to the correction variable and a preset initial recommendation variable, wherein the initial recommendation variable is an estimate of a song list of a user's sports preference; An acquisition module, used for acquiring a song list corresponding to the target recommendation variable according to the target recommendation variable and a correspondence between a preset target recommendation variable and a style label of the song list; The playing module is used to play the music in the playlist.

8. A music recommendation device, characterized in that: The music recommendation device includes a memory, a processor, and a music recommendation program stored in the memory and executable on the processor. When the music recommendation program is executed by the processor, the steps of the music recommendation method according to any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a music recommendation program, and when the music recommendation program is executed by a processor, the steps of the music recommendation method according to any one of claims 1 to 6 are implemented.