WO2020151189A1 - Song recommendation method and system, terminal and storage medium - Google Patents

Song recommendation method and system, terminal and storage medium Download PDF

Info

Publication number
WO2020151189A1
WO2020151189A1 PCT/CN2019/093464 CN2019093464W WO2020151189A1 WO 2020151189 A1 WO2020151189 A1 WO 2020151189A1 CN 2019093464 W CN2019093464 W CN 2019093464W WO 2020151189 A1 WO2020151189 A1 WO 2020151189A1
Authority
WO
WIPO (PCT)
Prior art keywords
song
preference
recommendation
playlist
degree
Prior art date
Application number
PCT/CN2019/093464
Other languages
French (fr)
Chinese (zh)
Inventor
刘畅
邓俊松
Original Assignee
广州小鹏汽车科技有限公司
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 广州小鹏汽车科技有限公司 filed Critical 广州小鹏汽车科技有限公司
Publication of WO2020151189A1 publication Critical patent/WO2020151189A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/60Information retrieval; Database structures therefor; File system structures therefor of audio data
    • G06F16/63Querying
    • G06F16/635Filtering based on additional data, e.g. user or group profiles
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/60Information retrieval; Database structures therefor; File system structures therefor of audio data
    • G06F16/63Querying
    • G06F16/638Presentation of query results

Definitions

  • the present invention relates to data processing technology, in particular to a song recommendation method, system, terminal and storage medium.
  • car owners In order to understand lack, relieve the dull atmosphere in the car or satisfy personal hobbies, car owners often play music while driving. Usually, car owners will pre-download and store the songs they want to listen to on the in-vehicle system or mobile device. When music needs to be played, the downloaded song files will be looped and/or randomly played to ensure that the played songs can be played. It meets the personal preferences of the car owner, but the number of songs to be played is limited, and it needs to be downloaded and stored in advance, and the operation convenience is low. Therefore, in order to solve this problem, a song recommendation algorithm is designed to recommend the corresponding song to the owner according to the song that the owner listens to.
  • the purpose of the embodiments of the present invention is to provide a song recommendation method, system, terminal, and storage medium to implement fast and accurate song recommendation.
  • an embodiment of the present invention provides a song recommendation method, including the following steps:
  • the attribute parameters include at least one of song collection parameters, song search parameters, and song playback parameters;
  • the user’s preference for different song characteristics is calculated, and the second song is calculated according to the user’s preference for different song characteristics and the weight of different song characteristics on the second song Preference
  • the song recommendation result is output.
  • an embodiment of the present invention provides a song recommendation system, including:
  • the first obtaining unit is configured to obtain attribute parameters of the first song; the attribute parameters include at least one of song collection parameters, song search parameters, and song playback parameters;
  • the first calculation unit is configured to calculate the preference degree of the first song according to the attribute parameter
  • the second calculation unit is used to calculate the user’s preference for different song characteristics according to the preference of the first song, and according to the user’s preference for different song characteristics and the preference of different song characteristics for the second song Weight, calculate the preference of the second song;
  • the recommendation unit is configured to output song recommendation results according to the preference degree of the first song and/or the preference degree of the second song.
  • an embodiment of the present invention provides a terminal, and the device includes:
  • At least one processor At least one processor
  • At least one memory for storing at least one program
  • the at least one processor When the at least one program is executed by the at least one processor, the at least one processor implements the song recommendation method.
  • an embodiment of the present invention provides a storage medium in which instructions executable by a processor are stored, and the instructions executable by the processor are used to execute the song recommendation method when executed by the processor.
  • the embodiment of the present invention calculates the preference of the first song by using the attribute parameters of the first song, and the attribute parameters include song collection behavior parameters, song At least one of search behavior parameters and song playing behavior parameters, and then calculate the user’s preference for different song characteristics according to the preference of the first song, and according to the user’s preference for different song characteristics and different
  • the weight of the song characteristic to the second song is calculated, the preference of the second song is calculated, and then the song recommendation result is output according to the preference of the first song and/or the preference of the second song.
  • the song recommendation method of the embodiment of the present invention combines the user's operating behavior on the song, the user's preference for the song characteristics, and the weight of the song characteristics on the song to achieve song recommendation, wherein the user's operating behavior on the song includes There are song collection, search and/or playing behaviors. Therefore, compared with traditional recommendation techniques, the embodiment of the present invention can greatly improve the fit between the final output recommendation result and the user's favorite song, and at the same time, the preference for the second song It does not need to construct a similarity relationship matrix between songs or playlists, which can greatly improve the processing efficiency on the basis of the accuracy of the song recommendation.
  • FIG. 1 is a schematic diagram of the steps of a specific embodiment of a song recommendation method according to an embodiment of the present invention
  • FIG. 2 is a schematic flowchart of steps in another specific embodiment of a song recommendation method according to an embodiment of the present invention
  • Figure 3 is a structural block diagram of a song recommendation system according to an embodiment of the present invention.
  • Fig. 4 is a structural block diagram of a terminal according to an embodiment of the present invention.
  • an embodiment of the present invention provides a song recommendation method, which includes the following steps.
  • attribute parameters of the first song include at least one user behavior parameter among song collection parameters, song search parameters, and song playback parameters.
  • the attribute parameter of the first song may include at least one user behavior parameter among song collection parameters, song search parameters, and song playback parameters.
  • the number of song collection times is recorded by clicking the number of times the song collection button is clicked. For example, if the song collection button is clicked once, the number of song collection times is increased by 1; the song collection time is measured by the song collection button Click the time to record. For example, the time when the song collection button is clicked is the song collection time; the song collection frequency is obtained by counting the number of song collections within a preset time period. The higher the number of collections of songs in a time period, the higher the frequency of collection of songs. Among them, for the preset time period, it is a time period that can be manually selected and set. You can also press from a number of song collection times Two song collection times need to be selected, and the time period between the two song collection times is the preset time period.
  • the song search parameter it may include but is not limited to the number of song searches, song search frequency, song search time, etc.
  • the more song searches and/or the higher the search frequency the more the user likes the song.
  • the number of search times of the song is counted by the number of search records of the song. For example, if the searched record of song A is 1, then the number of search times of the song is increased by 1, and the search record of the song is usually Triggered by the user entering the song name into the search box and clicking the search button; the song search time is recorded by the click time of the song search button, such as the time when the song search button is clicked is the song search time;
  • the song search frequency is obtained by counting the number of song searches within a preset time period.
  • the preset time period can be a time period set by manual selection, or two song search times selected from a number of song search times as needed, and the time period between the two song search times That is the preset time period.
  • the song playback parameters may include, but is not limited to, total song playback time, song playback frequency, song playback times, etc. Generally, the longer the total song playback time, the higher the song playback frequency and/or the more song playback times. , It means that the user likes the song more.
  • the total playing time of the song can be calculated from the number of times the song is played and the duration of the song. For example, if the song has a duration of 4 minutes and a total of 10 times have been played completely, the playing time of the song will be 40 minutes. If the song is not played completely, it will be superimposed according to the duration of the i-th play. For example, the duration of the song is 4 minutes, and it has been completely played 9 times.
  • the song only played 2 minutes.
  • the playing time of the song is 38 minutes.
  • the statistical methods of the number of times of song playback may include: when song A is played for more than a preset time period, it means that the number of times of song A is played plus 1; when song A is played repeatedly once, then the number of times of song A is played plus 1; During the playback of song A, the playback progress bar of song A is pulled back to the starting point or other preset playback points to restart the playback of the song audio segment, and the playback exceeds the preset duration or the playback reaches the end of the single. At this time, song A The number of plays is also increased by 1.
  • the song playing frequency is obtained by counting the number of times the song is played in a preset time period.
  • the preset time period (usually in units of days), which can be a time period set manually, or from the number of song playbacks, the i-th song and the j-th song can be selected as needed.
  • the starting time point corresponding to the i-th song playing and the starting time point corresponding to the j-th song playing, the time period between the two is the preset time period.
  • the song playback buttons such as the song start button, the song end playback button, the song progress bar pull button, and the song loop playback button are usually monitored. The required song playback parameters.
  • song collection button for the above song collection button, song search button and/or song play button, it can be a virtual button displayed in the client program, or a physical button (ie, physical button) set in the terminal device, which can be based on actual conditions. Need to design, here is not too limited.
  • the attribute parameters include song collection parameters, song search parameters, and/or song playback parameters, all of which reflect the user’s preference for the song
  • the song collection parameters, song search parameters, and/or song playback parameters all of which reflect the user’s preference for the song
  • the song collection parameters, song search parameters, and/or song playback The preference degree of the first song obtained after the parameter calculation process can accurately fit the user's preference for the first song.
  • the calculation methods that can be used may include, but are not limited to: directly performing calculations on the song collection parameters, song search parameters, and/or song playback parameters to obtain the first song.
  • Song preference degree or, after the song collection parameters, song search parameters and/or song playback parameters are converted into corresponding values according to the preset unit, the calculation process is performed to obtain the preference degree of the first song; or, After the song collection parameters, song search parameters, and/or song playback parameters are weighted, arithmetic processing is performed.
  • arithmetic processing is performed.
  • it may include but is not limited to addition, subtraction, multiplication, division, exponent, logarithmic, etc. Therefore, when calculating the preference of the first song, it can be based on actual needs. To select the calculation method, there is no excessive limitation in this embodiment.
  • S103 Calculate the user's preference for different song characteristics according to the preference of the first song, and calculate the second song based on the user's preference for different song characteristics and the weight of different song characteristics on the second song.
  • the preference of the song For the second song, it refers to all songs except the first song, that is, the second song is a song without song collection behavior, song search behavior, and song playback behavior.
  • the song characteristics it may include sentimental, Chinese, English, girl group and other characteristics.
  • the preference of the first song is calculated according to the above-mentioned user behavior parameter, and the user behavior parameter reflects the user’s preference for the song
  • the preference of several first songs is used , Can calculate the user's preference for different song characteristics.
  • the method of calculating the user’s preference for different song characteristics may include: taking the preference of the first song as the weight coefficient of the song characteristics of the first song.
  • the song characteristics of the first song A include characteristics 1, characteristics 2. And feature 3, and then multiply the preference of song A as the weighting coefficient by the three feature values of feature 1, feature 2, and feature 3. Then do the same for each song feature of the first song, and then Perform numerical statistics on the characteristics of each type of song.
  • the user's preference for different song characteristics can be obtained.
  • the greater the numerical value corresponding to the song characteristic the user's preference for the song characteristic The higher the degree of preference, the greater the value of the degree of preference.
  • the user can be calculated The degree of preference for the second song, that is, the degree of preference for the second song.
  • the weights of several song characteristics of the second song may be pre-stored in a server or other devices as attributes of the second song, or calculated according to the audio characteristics or song tags of the second song.
  • S104 Output a song recommendation result according to the preference degree of the first song and/or the preference degree of the second song.
  • the song recommendation result is output according to the recommendation rule, where the recommendation rule may be Contains: sort all songs from largest to smallest according to the value of preference, and then select the top n songs as the song recommendation result.
  • the plurality of songs include the first song and/or The second song; or, according to the preference value, sort the second songs from largest to smallest, and then select all the second songs from the top n songs as the song recommendation results.
  • the first song is selected from the top n songs, so that the number of songs included in the song recommendation result is The preset number; or, for the first song whose play, search, and/or collection behavior has been generated more than a preset time period (such as 1 month), such as the play, search, and /Or the collection behavior was generated 1 month ago, then only the first songs can be sorted according to their preference, and then several first songs ranked in the top n are selected as the song recommendation result. It can be seen that the recommended rules can be selected according to actual needs, and are not too limited in this embodiment.
  • the embodiment of the present invention uses the song collection behavior parameter, the song search behavior parameter and/or the song playback behavior parameter of the first song to calculate the preference of the first song, and then the preference of the first song is used to calculate the preference of the first song.
  • the embodiment of the present invention combines the user's operation behavior on the song (including song collection behavior, search behavior, and playback behavior) to achieve the preference degree calculation of the first song, and uses the first song Calculate the user’s preference for song characteristics and combine the weights of different song characteristics on the second song to calculate the second song’s preference.
  • the results recommended by the solution of the embodiment of the present invention are more closely related to the user’s favorite songs, that is to say, the accuracy of the recommended results is higher, and there is no need to construct songs or songs during the calculation of song recommendations.
  • the similarity relationship matrix between the singles can greatly improve the processing efficiency on the basis of the matching accuracy of the song recommendation.
  • the step of outputting a song recommendation result according to the preference degree of the first song and/or the preference degree of the second song preferably includes:
  • the second song sort a number of second songs from largest to smallest, and then select a number of second songs in the top n as the song recommendation result. It can be seen that by selecting such a recommendation rule, not only can the user's favorite demand for songs be well satisfied, but also the freshness of the user's listening to songs can be improved. Further, if the number of the selected second songs is less than the preset number threshold, sort a number of first songs from largest to smallest, and then select a number of first songs in the top n1 to make the selection The number of songs out is equal to the preset number threshold.
  • the user’s preference for different song characteristics is calculated according to the preference of the first song, and the preference value of the user for different song characteristics and the pairs of different song characteristics
  • the weight of the second song, the step S103 of calculating the preference of the second song includes:
  • the number of users is used as the number of rows and the number of songs is used as the number of columns to construct a song preference matrix, and then the calculated first preferences of different users for different first songs are put into the song preference.
  • the corresponding element position of the matrix For the preference matrix, it can be as shown in Table 1 below:
  • song i is the first song for user u
  • user u's user behavior parameters for song i are used to calculate song i’s preference
  • the calculated preference is placed in the position (u, i).
  • song 3 is the first song for user 1
  • user behavior parameters for song 3 are used to calculate the preference, it will be calculated
  • the number of rows represents the number of users
  • the number of columns represents the number of song characteristics
  • q uf represents the characteristics of the uth user for the fth song
  • Table 2 The form of the matrix Q can be as shown in Table 2 below:
  • the weight matrix P T of different song characteristics for different songs the number of columns indicates the number of songs, and the number of rows indicates the number of song characteristics, so p T fi indicates that the f-th song characteristic is in the i-th song The weight occupied.
  • the form of the matrix P T is shown in Table 3 below:
  • f 1, 2, 3; and the weight matrix P T of different song characteristics to the song is the transposed matrix of the matrix P, that is, the number of rows of the matrix P represents the song The number of columns represents the number of song characteristics, that is, the element value contained in the matrix P is P if .
  • the song rating matrix R includes all users' preferences for all songs, that is, the song rating matrix R includes the preference of the first song and the preference of the second song, so , The preference of the second song can be obtained from the song score matrix R.
  • the song preference matrix R′ and the song rating matrix R have the same matrix form, except that the matrix R′ only contains the preferences of different users for different first songs calculated in step S102, and the matrix R In contains the preferences of different users for the first song and the second song obtained by multiplying Q and P T.
  • the preference in matrix R is essentially the predicted value
  • R′ contains The preference of the first song is the actual value.
  • the step S104 of outputting a song recommendation result according to the preference degree of the first song and/or the preference degree of the second song includes:
  • the vehicle-mounted perception information includes, but is not limited to, temperature parameters in and/or in the car, humidity parameters in the car, vehicle speed, special weather, festivals, and the state of the user (such as the fatigue state of driving).
  • step S10412 is to determine the current vehicle environment or vehicle condition based on the acquired vehicle perception information, and then obtain the corresponding song tag according to the determined vehicle environment or vehicle condition.
  • S10414 Output a song recommendation result according to the preference degree of the first song and/or the preference degree of the second song. It can be seen that by using vehicle-mounted perception information to increase the preference of songs, the output song recommendation results can not only fit the user's favorite direction, but also fit the current vehicle environment, which greatly improves the user's listening experience , And can also remind users of the vehicle environment and/or conditions by way of music playback.
  • the step S104 of outputting a song recommendation result according to the preference degree of the first song and/or the preference degree of the second song includes:
  • the song preference degree included in the song list is used to obtain the song list recommendation degree, and then the song list is output as the recommendation result, so that the recommendation is performed in the way of song batch recommendation, which can further speed up the processing.
  • Efficiency and the user can get multiple song recommendations through the selection of the playlist, which not only increases the user’s operational interaction experience, but also reduces the user’s operation and improves the operational convenience. This is especially suitable for users who are difficult to communicate with the client frequently. Car scene of interactive operation.
  • the step S10422 of outputting the song recommendation result according to the recommendation degree of the playlist includes:
  • the vehicle-mounted perception information includes, but is not limited to, temperature parameters in and/or in the car, humidity parameters in the car, vehicle speed, special weather, festivals, and the state of the user (such as the fatigue state of driving).
  • step S104222 is to determine the current vehicle environment or vehicle condition based on the acquired vehicle perception information, and then obtain the corresponding playlist tag according to the determined vehicle environment or vehicle condition.
  • S104224 Output a song recommendation result according to the recommendation degree of the playlist.
  • the output song recommendation results can not only fit the user's favorite direction, but also fit the current vehicle environment, which greatly improves the user's listening experience It can also remind users of the vehicle environment and/or conditions in the form of music playback.
  • the time period since the update of the playlist refers to the time period between the update time of the playlist and the current time.
  • the number of hits of the interest tag it refers to the hits of the playlist tag of the playlist.
  • the number of preset user interest tags selected by the user for example, the playlist tags have A, B, C, D, and the preset user interest tags selected by the user are A, C, E, F, at this time interest
  • the tags hit two, A and C, that is to say, the number of hits of the interest tag is 2
  • the popularity of the playlist is in a positive relationship with the recommendation degree of the playlist
  • the time period since the update of the playlist is in an inverse proportional relationship with the recommendation degree of the playlist
  • the number of hits of the interest tag is proportional to the song recommendation.
  • the recommendation degree of a single is proportional. It can be seen that in this embodiment, the influence factors such as the popularity of the playlist, the time since the update of the playlist, and/or the number of times of interest tag hits are added to adjust the recommendation degree of the playlist, which can further make the recommended songs more suitable for users. At the same time as the song likeness, it can also recommend newer, more popular songs that are more in line with the user's likeness to users, further improving the user's sense of listening experience.
  • the song collection parameter includes the time period of the song collection, wherein the time period of the song collection is in inverse proportion to the preference of the first song;
  • the song search parameter includes the time span of the song search, wherein the time span of the song search is in inverse proportion to the preference of the first song;
  • the song playback parameter includes the song playback duration and/or the song playback duration, wherein the song playback duration is proportional to the preference of the first song, and the song playback duration is proportional to The preference of the first song is in an inverse proportional relationship.
  • the time length of the song collection refers to the time length from the time point of the song collection to the current time point.
  • the collection time point of the song A is 10 a.m today, and the song A is performed.
  • the calculation time point of preference is today’s 8p.m.
  • the collection of song A’s song collection is 10 hours (at this time, the collection of song A is in hours).
  • the time point is January 1st, and the calculation time point for the preference degree of Song A is January 2nd.
  • the time span of the song collection of Song A is 1 day (at this time, the time span is less than The number of days is in units).
  • the time point of the song collection is the time point of the most recent song collection. It can be seen that the longer the time of the song collection is, the lower the user's preference for the song, and the preference for the song needs to be lowered.
  • the time period since the song search it refers to the time period from the time point of the song search to the current time point.
  • the search time point of song A is 10 a.m today, and the preference of song A is performed
  • the calculation time point of is today’s 8p.m.
  • the search time of song A’s song is 10 hours (at this time, the time since the present is in hours), if the search time of song A is On January 1st, and the calculation time point for the preference degree of Song A is January 2nd, at this time, the time span of the song search for Song A is 1 day (at this time, the time span from the present is in days as the unit ).
  • the time point of the song search is the time point of the most recent song search. It can be seen that the longer the song search time is, the longer the user's preference for the song is reduced, and at this time, the preference for the song needs to be lowered.
  • the playing time of the song it can refer to the total playing time of the song, or the playing time of the song at a certain time. For example, the i-th song A continues to be played for 3 minutes, then the i-th song A has a playing time of 3. minute. Generally, the longer the playing time of the song is, the higher the user's preference for the song is. At this time, the preference for the song needs to be increased.
  • the duration of the song playback it refers to the duration between the song playback time point and the current time point. For example, under the premise that all other conditions are the same, song A was played 1 day ago, and Song B was played 10 days ago. At this time, the preference of song A should be greater than the preference of song B. It can be seen that the longer the time since the song is played, the lower the user's preference for the song. At this time, the preference for the song needs to be lowered.
  • the song collection parameters, song search parameters, and/or song playback parameters used above can be used to more accurately calculate the song recommendation results that meet the user's favorite needs.
  • the priority corresponding to the song collection parameter the priority corresponding to the song search parameter, the priority corresponding to the song playback parameter, and the priority corresponding to the in-vehicle perception information, output the song collection parameters and the priority
  • the priority refers to the output priority of the song recommendation reason information corresponding to the parameter or information.
  • the preference of the currently recommended song relates to vehicle perception information, that is, the preference of the song has been numerically adjusted due to the vehicle perception information, and the song recommendation reason information corresponding to the vehicle perception information is output at this time: Recommend for you according to the current vehicle perception information; if the preference of the currently recommended song involves song collection parameters, the reason for outputting the song recommendation corresponding to the song collection parameter at this time is: According to your favorite single "X" And recommendation; if the preference of the currently recommended song involves song search parameters, the reason for outputting the song recommendation corresponding to the song search parameter at this time is: recommend based on the single "X" you searched for; if the currently recommended song The preference degree of is related to the song playing parameters.
  • the reason for outputting the song recommendation corresponding to the song playing parameters is: recommend according to the single "X" you have heard. If the preference of the currently recommended song does not involve song collection parameters, song search parameters, song playback parameters, and vehicle perception information, the reason for the song recommendation output at this time is: recommendation according to your preferences. Among them, the output priority of the song recommendation reason information corresponding to the vehicle perception information>the output priority of the song recommendation reason corresponding to the song collection parameter>the output priority of the song recommendation reason corresponding to the song search parameter>the song The output priority of the song recommendation reason corresponding to the playback parameter. Generally, the preference for the first song involves song collection parameters, song search parameters, song playback parameters, and/or the vehicle perception information, while the preference for the second song involves vehicle perception information.
  • the song recommendation reason information is output as the playlist recommendation reason information, that is, the recommendation is currently performed in the form of playlist recommendation, then for the playlist recommendation reason information, it is preferable to start from the playlist.
  • the song with the highest preference is selected, and then output according to the above-mentioned song recommendation reason information output rule according to the preference of the selected song.
  • the embodiment of the present invention also provides a song recommendation method, which preferably includes the following steps.
  • the constructed song database and/or playlist database it is mainly used to store the play volume, collection volume, release time, update time, tags and other attribute information of the song and/or playlist, and these attribute information Data can be provided for recommendation of songs and/or playlists.
  • the user behavior parameters include song collection parameters, song search parameters, and/or song playback parameters.
  • S203 Calculate the preference of the first song according to the user behavior parameter.
  • the song collection parameter includes the time period of the song collection, wherein the time period of the song collection is inversely proportional to the preference of the first song;
  • the song search parameter includes song search The time elapsed since the song search is inversely proportional to the preference of the first song;
  • the song playback parameters include the time elapsed since the song is played and/or the time elapsed when the song is played.
  • the playing time of the song is in a positive proportional relationship with the preference of the first song, and the playing time of the song is in an inverse proportion to the preference of the first song.
  • the following first formula is preferably used for calculation in this embodiment:
  • X 'a represents the degree of preference for the song in a first header; j1 the BT is expressed as a head of a first length in the first j1 song plays, that is, of a first section of the first song j1
  • the total number of playback records of the song; BD j1 is expressed as the length of time between the j1th playback time point of the ath first song and the current time point, which is in days.
  • BD j1 belongs to the distance of song playback The current time parameter; R indicates whether the user has collected this song (the first song of the a), if there is one, it is 1, otherwise, it is 0; RP indicates the weight of the song collection behavior, in this embodiment, The value of RP is 20 minutes, so it can be understood that under the same time attenuation, the collection behavior is equivalent to the playing duration of BT j1 20 minutes; RD represents the time since the user’s song collection behavior occurred, that is, the distance between the song collection The current time is in days.
  • the time since the collection record occurred is taken as the value of RD
  • the time of the most recent song collection record should be taken as the value of RD
  • S indicates whether the user has searched for this Song (the first song of the ath), if there is one, it is 1, otherwise, it is 0;
  • SP represents the weight of the song search behavior, in this embodiment, the value of SP is 10 minutes, so it can be understood as the same Under the time attenuation of, the search behavior is equivalent to the playing time of BT j1 10 minutes;
  • SD j2 represents the time since the user performed the j2th search behavior on the first song a, that is, SD j2 belongs to the song search distance
  • the first song it may preferably be calculated using the following second formula:
  • the step S204 includes:
  • the recommendation of the playlist is preferably calculated using the following third calculation formula:
  • Y j3 is the recommendation degree of the j3th playlist
  • X j4 is the preference degree of the j4th song in the j3th playlist.
  • L j3 represents the audition volume of the j3th playlist, that is, the popularity of the playlist;
  • E represents the vehicle perception factor;
  • G j3 represents the number of hits of the interest tag;
  • T j3 It is expressed as the time since the j3th playlist update, that is, the time from the update time point to the current time point; T3 is expressed as the time attenuation coefficient, which may be the same as or different from T1 or T2,
  • the songlist After finding the recommendation degree of the playlist based on the preference of the first song and/or the preference of the second song, the songlist’s popularity, the updated duration of the playlist, and / Or the value of the number of hits of the interest tag to adjust the recommendation degree of the playlist, wherein the popularity of the playlist is in a proportional relationship with the recommendation degree of the playlist, and the time since the update of the playlist It is in an inverse proportional relationship with the recommendation degree of the playlist, and the number of hits of the interest tag is in a positive proportional relationship with the recommendation degree of the playlist, so that the recommended songs are not only more in line with the user’s taste, but also recommended updates are more popular
  • the songs are given to users to improve the user experience of music listening.
  • the vehicle perception factor E in the above formula is also used for real-time vehicle perception information (temperature, special weather and/or vehicle speed, etc.) obtained through vehicle perception, so as to adjust the recommendation degree of the song list, and the specific adjustment
  • the methods include: 1. When the on-board sensor detects that the temperature parameter inside and/or outside the car is higher than the preset temperature threshold, the song list label has "burn", “hot”, “fire” and other labels in the song list. The recommendation degree will have an extra on-board perception factor E added, that is, E is a non-zero positive number at this time; 2. When the vehicle speed is continuously lower than the preset speed threshold for a preset time period, it means that the vehicle continues to drive at a low speed.
  • the recommendation degree of playlists with "light music”, "quiet” and other tags in the single label will have an extra car perception factor E added, that is, E is a non-zero positive number at this time. That is to say, after obtaining the recommendation degree of the playlist according to the preference of the first song and/or the preference of the second song, the vehicle perception information will be acquired, and then the playlist tag matching the vehicle perception information will be obtained When it is judged that the playlist has the playlist tag, use E to increase the recommendation degree of the playlist, which not only enables the recommended playlist to meet the user’s taste, but also through recommended Songs to remind users of the current car environment, which is especially suitable for car scenes.
  • the preference calculation in the embodiment of the present invention takes into account the user’s song playing, favorites, search behavior, and user interest factors (ie song characteristics), and the song list recommendation calculation also takes into account the popularity and update of the song list. Influencing factors such as time and vehicle factors, and the time factor T is also used to attenuate the effective degree of behavior, and the time attenuation of different behaviors can be different, and it also considers the behavior-based recommendation and the interest-based recommendation.
  • the recommendation output result of the embodiment of the present invention is biased to prefer the behavior-based recommendation result.
  • the preference algorithm of the embodiment of the present invention can support behavior superposition. When the behavior superimposes, the preference degree of songs and/or the recommendation degree of the playlist will be strengthened.
  • the degree of recommendation will accelerate the enlargement; and also the popularity and update time of the playlist. Under the same behavioral preference, the hotter the playlist, the higher the recommendation, and the newer the playlist, the higher the recommendation.
  • the priority corresponding to the song collection parameter the priority corresponding to the song search parameter, the priority corresponding to the song playback parameter, and the priority corresponding to the vehicle-mounted perception information, output the song collection parameter , The song search parameter, the song playing parameter and/or the song recommendation reason information corresponding to the vehicle-mounted perception information.
  • the song recommendation reason information of any playlist it is based on the song collection parameters, the song search parameters, the song playback parameters, and the currently acquired vehicle perception information related to the song with the highest preference in the playlist.
  • the corresponding output is performed according to the recommended configuration rules, where the recommended configuration rules include:
  • Priority 1 When the preference calculation of the most preferred song in the playlist or the recommendation calculation of the playlist contains E and it is a non-zero positive number, then the song recommendation reason information for the playlist at this time is: Recommend to you based on current vehicle perception information;
  • Priority 3 When the song search parameter is stored in the preference calculation of the song with the highest preference in the playlist, then the song recommendation reason information for the song list at this time is: recommend based on the single "X" you search;
  • Priority 4 When the song playback parameters are stored in the preference calculation of the song with the highest preference in the playlist, then the reason information for the song recommendation of the playlist at this time is: Recommend based on the single "X" you have listened to ;
  • Priority 5 Others, that is, when the preference calculation of the song with the highest preference in the playlist does not contain song collection parameters, song search parameters, song playback parameters, and vehicle perception information, then the song recommendation of the playlist
  • the reason information is: Recommend according to your preferences.
  • the above five priority levels are arranged in descending order: the first priority, the second priority, the third priority, the fourth priority, and the fifth priority.
  • the recommendation degree of each playlist is calculated, and then according to the value of the playlist recommendation degree, the playlists are sorted from large to small, and then the sorted songs are sorted. After selecting several playlists that meet the recommendation rules, output the selected playlists to achieve song recommendation. For example, if you need to recommend 20 playlists at a time, then according to the number of playlist recommendation, from large to small Sort several playlists, and then select 20 playlists from the sorted playlists and output them.
  • the recommended rules include:
  • Rule 1 From high to low, the first priority, the second priority, the third priority and the fourth priority playlists are selected based on the recommended reasons. If the number of individual songs selected is less than 20, that is, the number of selected songs does not meet the required number, then select from the playlist with the fifth priority as the reason for recommendation, according to the recommendation degree of the playlist, from large to small. In order to make the final single number of selected songs 20.
  • Rule 4 Recommended playlists that have been exposed in the past month cannot be recommended again; and recommended playlists that have not been exposed in the past month can be recommended again. And for this rule 4, if it is recommended for songs, then it is: according to the preference of the songs, sort the songs from largest to smallest, where the songs include the second song and the first song, and here In an embodiment, the first song requires that the generation time of its song playback, search and/or collection behavior has exceeded a preset time period (such as 1 month), otherwise, the first song is not recommended by the song. Select the range.
  • the embodiment of the present invention can greatly improve the fit between the final output recommendation result and the user’s favorite song, and greatly reduce The algorithm error (RMSE); at the same time, there is no need to establish a similarity relationship matrix between songs or playlists, which greatly improves computing efficiency.
  • RMSE The algorithm error
  • the recommendation scheme implemented by the embodiment of the present invention is particularly suitable for application in vehicle-mounted scenarios.
  • the calculation of preference and/or recommendation degree in the embodiment of the present invention also adds the influencing factor of vehicle-mounted perception information.
  • the result of song recommendation is very suitable for in-vehicle scenarios.
  • an embodiment of the present invention also provides a song recommendation system, including:
  • the first obtaining unit is configured to obtain attribute parameters of the first song; the attribute parameters include at least one of song collection parameters, song search parameters, and song playback parameters;
  • the first calculation unit is configured to calculate the preference degree of the first song according to the attribute parameter
  • the second calculation unit is used to calculate the user’s preference for different song characteristics according to the preference of the first song, and according to the user’s preference for different song characteristics and the preference of different song characteristics for the second song Weight, calculate the preference of the second song;
  • the recommendation unit is configured to output song recommendation results according to the preference degree of the first song and/or the preference degree of the second song.
  • the embodiment of the present invention uses the song collection behavior parameter, the song search behavior parameter and/or the song playback behavior parameter of the first song to calculate the preference of the first song, and then the preference of the first song is used to calculate The user’s preference for the song characteristics is calculated based on the user’s preference for the song characteristics and the weight of the song characteristics on the second song, so as to calculate the preference for the second song based on the preference of the first song and/or the second song It can be seen that the embodiment of the present invention combines the user's operating behaviors on the songs (including song collection behavior, search behavior, and playback behavior) to achieve the preference degree calculation of the first song, and uses the preference of the first song After calculating the user’s preference for the song characteristics, the second song’s preference is calculated.
  • the result recommended by the embodiment of the present invention is It has a higher degree of fit with the user’s favorite song, that is, the recommendation result is more accurate, and there is no need to construct a similarity relationship matrix between songs or playlists in the calculation process of song recommendation. On the basis of the accuracy of the song recommendation, the processing efficiency can be greatly improved.
  • the second calculation unit includes:
  • the first processing module is used to place different users’ preferences for different first songs into a song preference matrix, wherein the number of rows in the song preference matrix represents the number of users, and the number of columns in the song preference matrix Indicates the number of songs;
  • the second processing module is used to decompose the song preference matrix to obtain the preference matrix of different users for different song characteristics and the weight matrix of different song characteristics to different songs, wherein the different song characteristics have different pairs.
  • the weight matrix of the song contains the weight of different song characteristics for different second songs;
  • the third processing module is configured to multiply the favorite degree matrix and the weight matrix to obtain a song score matrix
  • the fourth processing module is used to obtain the preference degree of the second song from the song score matrix.
  • the recommendation unit includes:
  • the first acquisition module is used to acquire vehicle-mounted perception information
  • the second acquisition module is used to acquire a song tag matching the vehicle-mounted perception information
  • the first adjustment module is used to increase the preference of the first song when it is determined that the first song has the song tag, and/or when it is determined that the second song has the song tag, Increase the preference of the second song;
  • the first recommendation module is configured to output song recommendation results according to the preference of the first song and/or the preference of the second song.
  • the recommendation unit includes:
  • the first calculation module is used to sum up the preferences of several first songs included in the playlist and/or the preferences of several second songs included in the playlist to obtain the Recommendation
  • the second recommendation module is used to output song recommendation results according to the recommendation degree of the playlist.
  • the second recommendation module includes:
  • the first acquisition sub-module is used to acquire vehicle sensing information
  • the second acquisition sub-module is used to acquire a playlist tag matching the vehicle-mounted perception information
  • the first adjustment submodule is configured to increase the recommendation degree of the playlist when it is determined that the playlist has the playlist tag;
  • the first recommendation submodule is used to output song recommendation results according to the recommendation degree of the playlist.
  • the second acquiring unit is used to acquire the popularity of the playlist, the time since the update of the playlist, and/or the number of hits of interest tags;
  • the first adjustment unit is configured to adjust the recommendation degree of the playlist according to the popularity of the playlist, the time period since the update of the playlist, and/or the number of hits of the interest tag;
  • the popularity of the playlist is in a positive relationship with the recommendation degree of the playlist
  • the time period since the update of the playlist is in an inverse proportional relationship with the recommendation degree of the playlist
  • the number of hits of the interest tag is proportional to the song recommendation.
  • the recommendation degree of a single is proportional.
  • the song collection parameter includes the time period of the song collection, wherein the time period of the song collection is in inverse proportion to the preference of the first song;
  • the song search parameter includes the time span of the song search, wherein the time span of the song search is in inverse proportion to the preference of the first song;
  • the song playback parameter includes the song playback duration and/or the song playback duration, wherein the song playback duration is proportional to the preference of the first song, and the song playback duration is proportional to The preference of the first song is in an inverse proportional relationship.
  • the reason output unit is configured to output the priority corresponding to the song collection parameter, the priority corresponding to the song search parameter, the priority corresponding to the song playback parameter, and the priority corresponding to the in-vehicle perception information.
  • an embodiment of the present invention also provides a terminal, and the device includes:
  • At least one processor At least one processor
  • At least one memory for storing at least one program
  • the at least one processor When the at least one program is executed by the at least one processor, the at least one processor implements the song recommendation method.
  • the terminal may be a client and/or server constituted by software and/or hardware.
  • an embodiment of the present invention also provides a storage medium in which instructions executable by a processor are stored, and the instructions executable by the processor are used to execute the song recommendation method when executed by the processor.
  • the content in the above method embodiment is applicable to this storage medium embodiment, and the specific function implemented by this storage medium embodiment is the same as the above method embodiment, and the beneficial effects achieved are the same as those achieved by the above method embodiment. The beneficial effects are also the same.

Abstract

A song recommendation method and system, a terminal and a storage medium. The method comprises: acquiring attribute parameters of a first song (S101), wherein the attribute parameters comprise at least one of a song collection parameter, a song search parameter and a song playing parameter; calculating a preference degree of the first song according to the attribute parameters (S102); calculating, according to the preference degree of the first song, values of favorability of a user for different song characteristics, and calculating a preference degree of a second song according to the values of favorability of the user for different song characteristics and weights of the different song characteristics for the second song (S103); and outputting a song recommendation result according to the preference degree of the first song and/or the preference degree of the second song (S104). The method can greatly improve the processing efficiency on the basis of providing the fitting accuracy of song recommendation, is particularly suitable in a vehicle scenario, and can be widely applied to the field of recommendations.

Description

一种歌曲推荐方法、系统、终端及存储介质Song recommendation method, system, terminal and storage medium 技术领域Technical field
本发明涉及数据处理技术,尤其涉及一种歌曲推荐方法、系统、终端及存储介质。The present invention relates to data processing technology, in particular to a song recommendation method, system, terminal and storage medium.
背景技术Background technique
为了解乏、舒缓车内沉闷的气氛或者满足个人爱好,车主常常会在开车的路途中播放音乐。通常,车主会将想要听的歌曲预先下载存储在车载系统或移动设备上,当需要播放音乐时,则对已下载的歌曲文件进行循环和/或随机播放,这样能够保证所播放的歌曲可满足车主的个人喜好,但是播放的歌曲数量有限,并且需要预先下载存储,操作便利性低下。因此为了解决这一问题,设计了歌曲推荐算法,根据车主所听的歌曲,从而推荐相应的歌曲给车主,这样能够满足车主个人喜好的同时,无需预先下载并且增加了歌曲数量,从而提高了操作便利性和可播放的歌曲数量。但是,目前常用的主流歌曲推荐算法,如协同过滤、纯粹的规则堆叠推荐度打分机制排序等,其推荐结果与用户喜爱的歌曲之间的契合度较低,而通过建立歌曲或歌单之间的相似度关系矩阵来实现歌曲推荐,又会存在计算复杂而降低处理效率的问题。In order to understand lack, relieve the dull atmosphere in the car or satisfy personal hobbies, car owners often play music while driving. Usually, car owners will pre-download and store the songs they want to listen to on the in-vehicle system or mobile device. When music needs to be played, the downloaded song files will be looped and/or randomly played to ensure that the played songs can be played. It meets the personal preferences of the car owner, but the number of songs to be played is limited, and it needs to be downloaded and stored in advance, and the operation convenience is low. Therefore, in order to solve this problem, a song recommendation algorithm is designed to recommend the corresponding song to the owner according to the song that the owner listens to. This can meet the owner's personal preference, without pre-downloading and increasing the number of songs, thereby improving the operation Convenience and number of songs that can be played. However, currently commonly used mainstream song recommendation algorithms, such as collaborative filtering, purely regular stack recommendation scoring mechanism sorting, etc., have a low degree of fit between the recommendation results and the songs that users love, and through the establishment of songs or playlists To realize song recommendation based on the similarity relationship matrix, there will be a problem of complicated calculation and lower processing efficiency.
发明内容Summary of the invention
有鉴于此,本发明实施例的目的是提供一种歌曲推荐方法、系统、终端及存储介质,以实现快速且准确的歌曲推荐。In view of this, the purpose of the embodiments of the present invention is to provide a song recommendation method, system, terminal, and storage medium to implement fast and accurate song recommendation.
第一方面,本发明实施例提供了一种歌曲推荐方法,包括以下步骤:In the first aspect, an embodiment of the present invention provides a song recommendation method, including the following steps:
获取第一歌曲的属性参数;所述属性参数包括歌曲收藏参数、歌曲搜索参数、歌曲播放参数中至少一种;Acquiring attribute parameters of the first song; the attribute parameters include at least one of song collection parameters, song search parameters, and song playback parameters;
根据所述属性参数,计算出第一歌曲的偏好度;Calculate the preference of the first song according to the attribute parameter;
根据所述第一歌曲的偏好度,计算出用户对不同歌曲特性的喜爱程度值,根据所述用户对不同歌曲特性的喜爱程度值以及不同歌曲特性对第二歌曲的权重,计算出第二歌曲的偏好度;According to the preference of the first song, the user’s preference for different song characteristics is calculated, and the second song is calculated according to the user’s preference for different song characteristics and the weight of different song characteristics on the second song Preference
根据所述第一歌曲的偏好度和/或所述第二歌曲的偏好度,输出歌曲推荐结果。According to the preference degree of the first song and/or the preference degree of the second song, the song recommendation result is output.
第二方面,本发明实施例提供了一种歌曲推荐系统,包括:In the second aspect, an embodiment of the present invention provides a song recommendation system, including:
第一获取单元,用于获取第一歌曲的属性参数;所述属性参数包括歌曲收藏参数、歌曲搜索参数、歌曲播放参数中至少一种;The first obtaining unit is configured to obtain attribute parameters of the first song; the attribute parameters include at least one of song collection parameters, song search parameters, and song playback parameters;
第一计算单元,用于根据所述属性参数,计算出第一歌曲的偏好度;The first calculation unit is configured to calculate the preference degree of the first song according to the attribute parameter;
第二计算单元,用于根据所述第一歌曲的偏好度,计算出用户对不同歌曲特性的喜爱程度值,根据所述用户对不同歌曲特性的喜爱程度值以及不同歌曲特性对第二歌曲的权重,计算出第二歌曲的偏好度;The second calculation unit is used to calculate the user’s preference for different song characteristics according to the preference of the first song, and according to the user’s preference for different song characteristics and the preference of different song characteristics for the second song Weight, calculate the preference of the second song;
推荐单元,用于根据所述第一歌曲的偏好度和/或所述第二歌曲的偏好度,输出歌曲推荐结果。The recommendation unit is configured to output song recommendation results according to the preference degree of the first song and/or the preference degree of the second song.
第三方面,本发明实施例提供了一种终端,该装置包括:In a third aspect, an embodiment of the present invention provides a terminal, and the device includes:
至少一个处理器;At least one processor;
至少一个存储器,用于存储至少一个程序;At least one memory for storing at least one program;
当所述至少一个程序被所述至少一个处理器执行,使得所述至少一个处理器实现所述一种歌曲推荐方法。When the at least one program is executed by the at least one processor, the at least one processor implements the song recommendation method.
第四方面,本发明实施例提供了一种存储介质,其中存储有处理器可执行的指令,所述处理器可执行的指令在由处理器执行时用于执行所述一种歌曲推荐方法。In a fourth aspect, an embodiment of the present invention provides a storage medium in which instructions executable by a processor are stored, and the instructions executable by the processor are used to execute the song recommendation method when executed by the processor.
上述本发明实施例中的一个或多个技术方案具有如下优点:本发明实施例通过利用第一歌曲的属性参数来计算出第一歌曲的偏好度,所述属性参数包括歌曲收藏行为参数、歌曲搜索行为参数、歌曲播放行为参数中至少一种,然后根据所述第一歌曲的偏好度,计算出用户对不同歌曲特性的喜爱程度值,根据所述用户对不同歌曲特性的喜爱程度值以及不同歌曲特性对第二歌曲的权重,计算出第二歌曲的偏好度,接着根据所述第一歌曲的偏好度和/或所述第二歌曲的偏好度,输出歌曲推荐结果。由此可见,本发明实施例的歌曲推荐方法结合了用户对歌曲的操作行为、用户对歌曲特性的喜爱程度以及歌曲特性对歌曲的权重来实现歌曲推荐,其中所述用户对歌曲的操作行为包括有歌曲收藏、搜索和/或播放行为,因此相较于传统推荐技术,本发明实施例可大大提高了最终输出的推荐结果与用户喜爱的歌曲之间的契合度,同时对于第二歌曲的偏好度计算,其无需构建歌曲或歌单之间的相似度关系矩阵,这样在提供歌曲推荐的契合准确度的基础上,还能极大地提高处理效率。One or more technical solutions in the above embodiments of the present invention have the following advantages: the embodiment of the present invention calculates the preference of the first song by using the attribute parameters of the first song, and the attribute parameters include song collection behavior parameters, song At least one of search behavior parameters and song playing behavior parameters, and then calculate the user’s preference for different song characteristics according to the preference of the first song, and according to the user’s preference for different song characteristics and different The weight of the song characteristic to the second song is calculated, the preference of the second song is calculated, and then the song recommendation result is output according to the preference of the first song and/or the preference of the second song. It can be seen that the song recommendation method of the embodiment of the present invention combines the user's operating behavior on the song, the user's preference for the song characteristics, and the weight of the song characteristics on the song to achieve song recommendation, wherein the user's operating behavior on the song includes There are song collection, search and/or playing behaviors. Therefore, compared with traditional recommendation techniques, the embodiment of the present invention can greatly improve the fit between the final output recommendation result and the user's favorite song, and at the same time, the preference for the second song It does not need to construct a similarity relationship matrix between songs or playlists, which can greatly improve the processing efficiency on the basis of the accuracy of the song recommendation.
附图说明Description of the drawings
图1是本发明实施例一种歌曲推荐方法的一具体实施例步骤流程示意图;FIG. 1 is a schematic diagram of the steps of a specific embodiment of a song recommendation method according to an embodiment of the present invention;
图2是本发明实施例一种歌曲推荐方法的另一具体实施例步骤流程示意图;FIG. 2 is a schematic flowchart of steps in another specific embodiment of a song recommendation method according to an embodiment of the present invention;
图3是本发明实施例一种歌曲推荐系统的结构框图;Figure 3 is a structural block diagram of a song recommendation system according to an embodiment of the present invention;
图4是本发明实施例一种终端的结构框图。Fig. 4 is a structural block diagram of a terminal according to an embodiment of the present invention.
具体实施方式detailed description
下面结合附图和具体实施例对本发明做进一步的详细说明。对于以下实施例中的步骤编号,其仅为了便于阐述说明而设置,对步骤之间的顺序不做任何限定,实施例中的各步骤的执行顺序均可根据本领域技术人员的理解来进行适应性调整。The present invention will be further described in detail below in conjunction with the drawings and specific embodiments. For the step numbers in the following embodiments, they are set only for the convenience of elaboration, and there is no limitation on the order between the steps. The execution order of the steps in the embodiments can be adapted according to the understanding of those skilled in the art. Sexual adjustment.
如图1所示,本发明实施例提供了一种歌曲推荐方法,其包括的步骤如下所示。As shown in FIG. 1, an embodiment of the present invention provides a song recommendation method, which includes the following steps.
S101、获取第一歌曲的属性参数;所述属性参数包括歌曲收藏参数、歌曲搜索参数、歌曲播放参数中至少一种用户行为参数。S101. Obtain attribute parameters of the first song; the attribute parameters include at least one user behavior parameter among song collection parameters, song search parameters, and song playback parameters.
具体地,对于所述第一歌曲,其指的是具有收藏、搜索、播放中任一行为的歌曲,也就是说,被用户收藏过、搜索过和/或播放过的歌曲为本发明实施例中所述的第一歌曲,因此,所述第一歌曲的属性参数会包含有歌曲收藏参数、歌曲搜索参数、歌曲播放参数中至少一种用户行为参数。Specifically, for the first song, it refers to a song that has any behavior of collecting, searching, and playing, that is, the song that has been collected, searched, and/or played by the user is an embodiment of the present invention Therefore, the attribute parameter of the first song may include at least one user behavior parameter among song collection parameters, song search parameters, and song playback parameters.
对于歌曲收藏参数,其可包含但不限于有歌曲收藏次数、歌曲收藏时间、歌曲收藏频率等,通常,歌曲收藏次数越多和/或收藏频率越高,则表示用户越容易对该歌曲产生喜爱情绪。其中,所述歌曲收藏次数是通过对歌曲收藏按钮的点击次数来进行记录的,如歌曲收藏按钮被点击1次,歌曲收藏次数则增加1次;所述歌曲收藏时间是通过对歌曲收藏按钮的点击时间来进行记录的,如歌曲收藏按钮被点击的时间则为歌曲收藏时间;所述歌曲收藏频率是通过在预设的时间段内对歌曲收藏次数进行统计而得出的,在预设的时间段内歌曲收藏次数越高,所述歌曲收藏频率则越高,其中,对于所述预设的时间段,其为可人为选择设定的时间段,也可从若干个歌曲收藏时间中按需选取两个歌曲收藏时间,而这两个歌曲收藏时间之间的时间段便为所述预设的时间段。For song collection parameters, it may include but is not limited to the number of song collections, song collection time, song collection frequency, etc. Generally, the more song collections and/or the higher the collection frequency, the easier it is for users to like the song mood. Wherein, the number of song collection times is recorded by clicking the number of times the song collection button is clicked. For example, if the song collection button is clicked once, the number of song collection times is increased by 1; the song collection time is measured by the song collection button Click the time to record. For example, the time when the song collection button is clicked is the song collection time; the song collection frequency is obtained by counting the number of song collections within a preset time period. The higher the number of collections of songs in a time period, the higher the frequency of collection of songs. Among them, for the preset time period, it is a time period that can be manually selected and set. You can also press from a number of song collection times Two song collection times need to be selected, and the time period between the two song collection times is the preset time period.
对于所述歌曲搜索参数,其可包含但不限于有歌曲搜索次数、歌曲搜索频率、歌曲搜索时间等,通常,歌曲搜索次数越多和/或搜索频率越高,则表示用户越喜爱该歌曲。其中,所述歌曲搜索次数是通过对歌曲搜索记录的条数来进行统计的,例如,歌曲A被搜索的记录为1,那么歌曲的搜索次数则增加1次,而所述歌曲搜索记录通常是由用户将歌曲名称输入搜索框后点击搜索按钮而触发产生的;所述歌曲搜索时间是通过对歌曲搜索按钮的点击时间来进行记录的,如歌曲搜索按钮被点击的时间则为歌曲搜索时间;所述歌曲搜索频率是通过在预设的时间段内对歌曲搜索次数进行统计而得出的,在预设的时间段内歌曲搜索次数越高,所述歌曲搜索频率则越高,其中,对于所述预设的时间段,其可为人为选择设定的时间段,也可为从若干个歌曲搜索时间中按需选取两个歌曲搜索时间,而这两个歌曲搜索时间之间的时间段便为所述预设的时间段。For the song search parameter, it may include but is not limited to the number of song searches, song search frequency, song search time, etc. Generally, the more song searches and/or the higher the search frequency, the more the user likes the song. Wherein, the number of search times of the song is counted by the number of search records of the song. For example, if the searched record of song A is 1, then the number of search times of the song is increased by 1, and the search record of the song is usually Triggered by the user entering the song name into the search box and clicking the search button; the song search time is recorded by the click time of the song search button, such as the time when the song search button is clicked is the song search time; The song search frequency is obtained by counting the number of song searches within a preset time period. The higher the number of song searches in the preset time period, the higher the song search frequency. The preset time period can be a time period set by manual selection, or two song search times selected from a number of song search times as needed, and the time period between the two song search times That is the preset time period.
对于所述歌曲播放参数,其可包含但不限于有歌曲播放总时长、歌曲播放频率、歌曲播放次数等,通常,歌曲播放总时长越长、歌曲播放频率越高和/或歌曲播放次数越多,则表示用户越喜爱该歌曲。其中,所述歌曲播放总时长可通过歌曲播放次数与歌曲时长来计算得到,例如,歌曲时长为4分钟,共完整播放了10次,那么歌曲播放时长则为40分钟,而若第i次并没有完整播放该歌曲,则按照第i次所播放的时长来进行叠加,如,歌曲时长为4分钟,共完整播放了9次,而第10次的时候,该歌曲只播放了2分钟,此时该歌曲的播放时长为38分钟。所述歌曲播放次数的统计方式可包括有:当歌曲A播放超过预设时长时,则表示歌曲A的播放次数加1;当歌曲A循环播放1次,那么歌曲A的播放次数加1;当歌曲A在播放过程中,歌曲A的播放进度条被拉回起点或者其他预设的播放点重新进行歌曲音频段的播放,并播放超过预设时长或者播放到单曲结束,此时,歌曲A的播放次数也加1。所述歌曲播放频率是通过在预设的时间段内对歌曲播放次数进行统计而得出的,在预设的时间段内歌曲播放次数越高,所述歌曲播放频率越高,其中,对于所述预设的时间段(通常以天为单位),其可为人为选择设定的时间段,也可从歌曲播放次数中,按需选择第i次的歌曲播放与第j次的歌曲播放,所述第i次的歌曲播放所对应的开始播放时间点与第j次的歌曲播放所对应的开始播放时间点,两者之间的时间段为所述预设的时间段。其中,在歌曲播放参数的采集获取过程中通常会对歌曲开始播放按钮、歌曲结束播放按钮、歌曲进度条的拉动按钮、歌曲循环 播放按钮等歌曲播放按钮进行监听,然后根据监听结果来确定出所需的歌曲播放参数。For the song playback parameters, it may include, but is not limited to, total song playback time, song playback frequency, song playback times, etc. Generally, the longer the total song playback time, the higher the song playback frequency and/or the more song playback times. , It means that the user likes the song more. Wherein, the total playing time of the song can be calculated from the number of times the song is played and the duration of the song. For example, if the song has a duration of 4 minutes and a total of 10 times have been played completely, the playing time of the song will be 40 minutes. If the song is not played completely, it will be superimposed according to the duration of the i-th play. For example, the duration of the song is 4 minutes, and it has been completely played 9 times. At the 10th time, the song only played 2 minutes. The playing time of the song is 38 minutes. The statistical methods of the number of times of song playback may include: when song A is played for more than a preset time period, it means that the number of times of song A is played plus 1; when song A is played repeatedly once, then the number of times of song A is played plus 1; During the playback of song A, the playback progress bar of song A is pulled back to the starting point or other preset playback points to restart the playback of the song audio segment, and the playback exceeds the preset duration or the playback reaches the end of the single. At this time, song A The number of plays is also increased by 1. The song playing frequency is obtained by counting the number of times the song is played in a preset time period. The higher the song playing times in the preset time period, the higher the song playing frequency. The preset time period (usually in units of days), which can be a time period set manually, or from the number of song playbacks, the i-th song and the j-th song can be selected as needed. The starting time point corresponding to the i-th song playing and the starting time point corresponding to the j-th song playing, the time period between the two is the preset time period. Among them, in the process of collecting and acquiring song playback parameters, the song playback buttons such as the song start button, the song end playback button, the song progress bar pull button, and the song loop playback button are usually monitored. The required song playback parameters.
对于上述歌曲收藏按钮、歌曲搜索按钮和/或歌曲播放按钮,其可为客户端程序中所显示的虚拟按钮,亦可为终端设备中所设置的物理按钮(即实体按钮),这可根据实际需求进行设计,此处并不做过多限定。For the above song collection button, song search button and/or song play button, it can be a virtual button displayed in the client program, or a physical button (ie, physical button) set in the terminal device, which can be based on actual conditions. Need to design, here is not too limited.
S102、根据所述属性参数,计算出第一歌曲的偏好度。S102. Calculate the preference of the first song according to the attribute parameter.
具体地,由于所述属性参数包含有歌曲收藏参数、歌曲搜索参数和/或歌曲播放参数,均体现了用户对歌曲的喜爱程度,因此,通过对歌曲收藏参数、歌曲搜索参数和/或歌曲播放参数进行运算处理后所得到的第一歌曲的偏好度,可准确贴合用户对第一歌曲喜爱程度。其中,对于所述第一歌曲的偏好度,其可采用的计算方式可包含但不限于有:对歌曲收藏参数、歌曲搜索参数和/或歌曲播放参数的数值直接进行运算处理后,得到第一歌曲的偏好度;或者,将歌曲收藏参数、歌曲搜索参数和/或歌曲播放参数按照预设的单位转换成对应的数值后,再进行运算处理,从而得到第一歌曲的偏好度;又或者,将将歌曲收藏参数、歌曲搜索参数和/或歌曲播放参数进行权重分配后,在进行运算处理等。对于所述的运算,其可包含但不限于有加法运算、减法运算、乘法运算、除法运算、指数运算、对数运算等,因此在对第一歌曲的偏好度进行计算时,可根据实际需要来选择运算方式,在本实施例中暂不做过多的限定。Specifically, since the attribute parameters include song collection parameters, song search parameters, and/or song playback parameters, all of which reflect the user’s preference for the song, the song collection parameters, song search parameters, and/or song playback The preference degree of the first song obtained after the parameter calculation process can accurately fit the user's preference for the first song. Among them, for the preference of the first song, the calculation methods that can be used may include, but are not limited to: directly performing calculations on the song collection parameters, song search parameters, and/or song playback parameters to obtain the first song. Song preference degree; or, after the song collection parameters, song search parameters and/or song playback parameters are converted into corresponding values according to the preset unit, the calculation process is performed to obtain the preference degree of the first song; or, After the song collection parameters, song search parameters, and/or song playback parameters are weighted, arithmetic processing is performed. For the calculations described, it may include but is not limited to addition, subtraction, multiplication, division, exponent, logarithmic, etc. Therefore, when calculating the preference of the first song, it can be based on actual needs. To select the calculation method, there is no excessive limitation in this embodiment.
S103、根据所述第一歌曲的偏好度,计算出用户对不同歌曲特性的喜爱程度值,根据所述用户对不同歌曲特性的喜爱程度值以及不同歌曲特性对第二歌曲的权重,计算出第二歌曲的偏好度。对于所述第二歌曲,其是指所有歌曲中除第一歌曲以外的歌曲,也就是说,所述第二歌曲是不存有歌曲收藏行为、歌曲搜索行为以及歌曲播放行为的歌曲。而对于所述的歌曲特性,其可包括有伤感、华语、英语、女子组合等特性。S103. Calculate the user's preference for different song characteristics according to the preference of the first song, and calculate the second song based on the user's preference for different song characteristics and the weight of different song characteristics on the second song. 2. The preference of the song. For the second song, it refers to all songs except the first song, that is, the second song is a song without song collection behavior, song search behavior, and song playback behavior. As for the song characteristics, it may include sentimental, Chinese, English, girl group and other characteristics.
具体地,由于所述第一歌曲的偏好度是根据上述用户行为参数来计算得出的,而该用户行为参数则体现了用户对歌曲的喜爱程度,因此,利用若干个第一歌曲的偏好度,可统计得出用户对不同歌曲特性的喜爱程度。其中,计算用户对不同歌曲特性的喜爱程度的方式可包括有:将第一歌曲的偏好度作为第一歌曲的歌曲特性的权重系数,例如,第一歌曲A的歌曲特性包含特性1、特性2和特性3,然后将作为权重系数的歌曲A的偏好度分别与特性1、特性2和特性3这三个特性值相乘,然后对于每一个第一歌曲的歌曲特性均做如此处理,接着再对每一类型的歌曲特性进行数值统计,这样按照歌曲特性所对应的数值大小,便能得到用户对不同歌曲特性的喜爱程度,通常,歌曲特性所对应的数值越大,用户对该歌曲特性的喜爱程度越高,即该喜爱程度值越大。Specifically, since the preference of the first song is calculated according to the above-mentioned user behavior parameter, and the user behavior parameter reflects the user’s preference for the song, the preference of several first songs is used , Can calculate the user's preference for different song characteristics. Among them, the method of calculating the user’s preference for different song characteristics may include: taking the preference of the first song as the weight coefficient of the song characteristics of the first song. For example, the song characteristics of the first song A include characteristics 1, characteristics 2. And feature 3, and then multiply the preference of song A as the weighting coefficient by the three feature values of feature 1, feature 2, and feature 3. Then do the same for each song feature of the first song, and then Perform numerical statistics on the characteristics of each type of song. In this way, according to the numerical value corresponding to the song characteristic, the user's preference for different song characteristics can be obtained. Generally, the greater the numerical value corresponding to the song characteristic, the user's preference for the song characteristic The higher the degree of preference, the greater the value of the degree of preference.
然后,结合用户对不同歌曲特性的喜爱程度值以及第二歌曲所包含的若干个歌曲特性在第二歌曲中所占的权重(即不同歌曲特性对第二歌曲的权重),便可计算出用户对该第二歌曲的喜爱度,即第二歌曲的偏好度。其中,对于所述第二歌曲的若干个歌曲特性的权重,其可以作为第二歌曲的属性预存于服务器中或者其他设备中,或者,按照第二歌曲的音频特征或者歌曲标签从而计算得出。Then, combining the user’s preference for different song characteristics and the weight of several song characteristics contained in the second song in the second song (that is, the weight of different song characteristics on the second song), the user can be calculated The degree of preference for the second song, that is, the degree of preference for the second song. Wherein, the weights of several song characteristics of the second song may be pre-stored in a server or other devices as attributes of the second song, or calculated according to the audio characteristics or song tags of the second song.
S104、根据所述第一歌曲的偏好度和/或所述第二歌曲的偏好度,输出歌曲推荐结果。S104: Output a song recommendation result according to the preference degree of the first song and/or the preference degree of the second song.
具体地,根据所述第一歌曲的偏好度和/或所述第二歌曲的偏好度,即所有歌曲的偏好度,按照推荐规则来输出歌曲推荐结果,其中,对于所述推荐规则,其可包含有:按照偏好度的数值,从大到小对所有歌曲进行排序,然后选取排在前n位的若干首歌曲作为歌曲推荐结果,此时所述若干首歌曲包含有第一歌曲和/或第二歌曲;或者,按照偏好度的数值,从大到小对第二歌曲进行排序,然后从排名前n位的若干首歌曲中选取出所有第二歌曲作为歌曲推荐结果,进一步地,若选取出的所有第二歌曲的个数不满足预设个数,如20个,那么则从排名前n位的若干首歌曲中选取出第一歌曲,以令歌曲推荐结果中包含的歌曲个数为预设个数;又或者,对于歌曲播放、搜索和/或收藏行为的产生时间已距今超过预设时间段(如1个月)的第一歌曲,如第一歌曲A的播放、搜索和/或收藏行为是产生于1个月前,那么可以只对这些第一歌曲按照其偏好度的大小进行排序,然后选取排在前n位的若干首第一歌曲作为歌曲推荐结果。可见,所述推荐规则可根据实际需求进行选择,在本实施例中不做过多限定。Specifically, according to the preference degree of the first song and/or the preference degree of the second song, that is, the preference degree of all songs, the song recommendation result is output according to the recommendation rule, where the recommendation rule may be Contains: sort all songs from largest to smallest according to the value of preference, and then select the top n songs as the song recommendation result. At this time, the plurality of songs include the first song and/or The second song; or, according to the preference value, sort the second songs from largest to smallest, and then select all the second songs from the top n songs as the song recommendation results. Further, if you select The number of all second songs out does not meet the preset number, such as 20, then the first song is selected from the top n songs, so that the number of songs included in the song recommendation result is The preset number; or, for the first song whose play, search, and/or collection behavior has been generated more than a preset time period (such as 1 month), such as the play, search, and /Or the collection behavior was generated 1 month ago, then only the first songs can be sorted according to their preference, and then several first songs ranked in the top n are selected as the song recommendation result. It can be seen that the recommended rules can be selected according to actual needs, and are not too limited in this embodiment.
由上述可见,本发明实施例利用第一歌曲的歌曲收藏行为参数、歌曲搜索行为参数和/或歌曲播放行为参数来计算得出第一歌曲的偏好度,然后再利用第一歌曲的偏好度来计算出用户对歌曲特性的喜爱程度值,根据用户对歌曲特性的喜爱程度值以及歌曲特性对第二歌曲的权重来计算出第二歌曲的偏好度,从而根据第一歌曲和/或第二歌曲的偏好度来实现歌曲推荐,可见,由于本发明实施例结合用户对歌曲的操作行为(包括有歌曲收藏行为、搜索行为、播放行为)来实现第一歌曲的偏好度计算,并且利用第一歌曲的偏好度来计算出用户对歌曲特性的喜爱程度值并结合不同歌曲特性对第二歌曲的权重,从而计算出第二歌曲的偏好度,因此,相较于传统的协同过滤、纯粹的规则堆叠推荐,本发明实施例的方案所推荐的结果与用户喜爱的歌曲的贴合度更高,也就是说,推荐结果的准确度更高,同时在实现歌曲推荐的计算过程中无需构建歌曲或歌单之间的相似度关系矩阵,这样在提供歌曲推荐的契合准确度的基础上,还能极大地提高处理效率。It can be seen from the above that the embodiment of the present invention uses the song collection behavior parameter, the song search behavior parameter and/or the song playback behavior parameter of the first song to calculate the preference of the first song, and then the preference of the first song is used to calculate the preference of the first song. Calculate the user’s preference for the song characteristic, and calculate the preference of the second song according to the user’s preference for the song characteristic and the weight of the song characteristic on the second song, so as to calculate the preference of the second song according to the first song and/or the second song It can be seen that the embodiment of the present invention combines the user's operation behavior on the song (including song collection behavior, search behavior, and playback behavior) to achieve the preference degree calculation of the first song, and uses the first song Calculate the user’s preference for song characteristics and combine the weights of different song characteristics on the second song to calculate the second song’s preference. Therefore, compared to traditional collaborative filtering and pure rule stacking Recommendation, the results recommended by the solution of the embodiment of the present invention are more closely related to the user’s favorite songs, that is to say, the accuracy of the recommended results is higher, and there is no need to construct songs or songs during the calculation of song recommendations. The similarity relationship matrix between the singles can greatly improve the processing efficiency on the basis of the matching accuracy of the song recommendation.
进一步作为本方法的优选实施例,所述根据所述第一歌曲的偏好度和/或所述第二歌曲的偏好度,输出歌曲推荐结果这一步骤,其优选包括:Further as a preferred embodiment of the method, the step of outputting a song recommendation result according to the preference degree of the first song and/or the preference degree of the second song preferably includes:
根据第二歌曲的偏好度的数值,从大到小对若干首第二歌曲进行排序,然后选取排在前n位的若干首第二歌曲作为歌曲推荐结果。可见通过选择这样的推荐规则,不仅可很好地满足用户对歌曲的喜爱需求,而且还能提高用户听歌的新鲜感。进一步,若选取出的第二歌曲的个数小于预设个数阈值,则从大到小对若干首第一歌曲进行排序,然后选取排在前n1位的若干个第一歌曲,以令选取出的歌曲个数等于预设个数阈值。According to the preference value of the second song, sort a number of second songs from largest to smallest, and then select a number of second songs in the top n as the song recommendation result. It can be seen that by selecting such a recommendation rule, not only can the user's favorite demand for songs be well satisfied, but also the freshness of the user's listening to songs can be improved. Further, if the number of the selected second songs is less than the preset number threshold, sort a number of first songs from largest to smallest, and then select a number of first songs in the top n1 to make the selection The number of songs out is equal to the preset number threshold.
进一步作为本方法的优选实施例,所述根据所述第一歌曲的偏好度,计算出用户对不同歌曲特性的喜爱程度值,根据所述用户对不同歌曲特性的喜爱程度值以及不同歌曲特性对第二歌曲的权重,计算出第二歌曲的偏好度这一步骤S103,其包括:Further as a preferred embodiment of the method, the user’s preference for different song characteristics is calculated according to the preference of the first song, and the preference value of the user for different song characteristics and the pairs of different song characteristics The weight of the second song, the step S103 of calculating the preference of the second song, includes:
S1031、将不同用户对不同第一歌曲的偏好度置入歌曲偏好度矩阵中,其中,所述歌曲偏好度矩阵的行数表示用户数,所述歌曲偏好度矩阵的列数表示歌曲数。S1031. Put the preferences of different users for different first songs into a song preference matrix, where the number of rows in the song preference matrix represents the number of users, and the number of columns in the song preference matrix represents the number of songs.
具体地,首先以用户数作为行数、以歌曲数作为列数来构建得到歌曲偏好度矩阵,然后将已经计算出的不同用户对不同第一歌曲的第一偏好度置入所述歌曲偏好度矩阵的相应元素位置中。对于所述的偏好度矩阵,其可如以下表1所示:Specifically, first, the number of users is used as the number of rows and the number of songs is used as the number of columns to construct a song preference matrix, and then the calculated first preferences of different users for different first songs are put into the song preference. The corresponding element position of the matrix. For the preference matrix, it can be as shown in Table 1 below:
表1Table 1
歌曲偏好度Song preference 歌曲1Song 1 歌曲2Song 2 歌曲3Song 3 歌曲4Song 4 歌曲5Song 5 歌曲6Song 6 歌曲7Song 7 歌曲8Song 8
用户1User 1  To  To 33  To  To  To 55  To
用户2User 2  To  To  To 22 22  To  To  To
用户3User 3 44  To  To  To  To  To  To 44
用户4User 4 33 11  To 22  To 33  To  To
用户5User 5  To  To  To  To 55  To  To 44
用户6User 6  To  To 55 66  To  To 11  To
可见,上述表1包含了6个不同用户对8首不同歌曲的偏好度,即所述歌曲偏好度矩阵R′ ui,u=1、2、3、……、m1,i=1、2、3、……、n1,m1表示为歌曲偏好度矩阵的总行数,n1表示为歌曲偏好度矩阵的总列数,也就是说,m1表示为用户总数,n1表示为歌曲总数,而在本实施例中,用户总数为6,歌曲总数为8。因此,歌曲偏好矩阵r′ ui即表示了第u个用户对i首歌曲的偏好度,如r′ 41即表示了第4个用户对第1首歌曲的偏好度。其中,若歌曲i于用户u而言为第一歌曲,那么则利用用户u对歌曲i的用户行为参数(歌曲收藏参数、搜索参数、播放参数),来计算出歌曲i的偏好度,然后将计算出的偏好度置入(u,i)位置上,如,歌曲3于用户1而言为第一歌曲,那么利用用户1对歌曲3的用户行为参数来进行偏好度计算后,便将计算出的偏好度3置入(1,3)位置上,此时r′ 13=3;若歌曲i于用户u而言为第二歌曲,那么此时(u,i)位置上的元素则为空,或者将该位置上的元素值置为0。 It can be seen that the above table 1 contains the preferences of 6 different users for 8 different songs, that is, the song preference matrix R′ ui , u=1, 2, 3,..., m1, i=1, 2, 3...., n1, m1 is the total number of rows in the song preference matrix, n1 is the total number of columns in the song preference matrix, that is to say, m1 is the total number of users, n1 is the total number of songs, and in this implementation In the example, the total number of users is 6, and the total number of songs is 8. Therefore, the song preference matrix r′ ui represents the preference of the u-th user for the i song, for example, r′ 41 represents the preference of the fourth user for the first song. Among them, if song i is the first song for user u, then user u's user behavior parameters for song i (song collection parameters, search parameters, playback parameters) are used to calculate song i’s preference, and then The calculated preference is placed in the position (u, i). For example, song 3 is the first song for user 1, then after user 1’s user behavior parameters for song 3 are used to calculate the preference, it will be calculated The preference degree 3 out is placed in the position (1, 3), at this time r′ 13 = 3; if the song i is the second song for the user u, then the element at the position (u, i) is Empty, or set the value of the element at this position to 0.
S1032、对所述歌曲偏好度矩阵进行矩阵分解后,得到不同用户对不同歌曲特性的喜爱程度矩阵以及不同歌曲特性对不同歌曲的权重矩阵,其中,所述不同歌曲特性对不同歌曲的权重矩阵中包含有不同歌曲特性对不同第二歌曲的权重。S1032. After matrix decomposition is performed on the song preference matrix, the preference matrix for different song characteristics of different users and the weight matrix of different song characteristics for different songs are obtained, wherein the weight matrix of different song characteristics for different songs is Contains the weights of different song characteristics to different second songs.
具体地,对于所述不同用户对不同歌曲特性的喜爱程度矩阵Q,其行数表示了用户数,列数表示了歌曲特性个数,这样q uf即表示了第u用户对第f个歌曲特性的喜爱程度值。所述矩阵Q的形式可如以下表2所示: Specifically, for the different users’ preference matrix Q for different song characteristics, the number of rows represents the number of users, and the number of columns represents the number of song characteristics, so q uf represents the characteristics of the uth user for the fth song Like the value of. The form of the matrix Q can be as shown in Table 2 below:
表2Table 2
 To 歌曲特性1Song Features 1 歌曲特性2Song Features 2 歌曲特性3Song Features 3
用户1User 1 q 11 q 11 q 12 q 12 q 13 q 13
用户2User 2 q 21 q 21 q 22 q 22 q 23 q 23
用户3User 3 q 31 q 31 q 32 q 32 q 33 q 33
用户4User 4 q 41 q 41 q 42 q 42 q 34 q 34
用户5User 5 q 51 q 51 q 52 q 52 q 35 q 35
用户6User 6 q 61 q 61 q 62 q 62 q 36 q 36
而对于所述不同歌曲特性对不同歌曲的权重矩阵P T,其列数表示了歌曲数,行数表示了歌曲特性个数,这样p T fi表示了第f个歌曲特性在第i首歌曲中所占的权重。所述矩阵P T的形式如以下表3所示: As for the weight matrix P T of different song characteristics for different songs, the number of columns indicates the number of songs, and the number of rows indicates the number of song characteristics, so p T fi indicates that the f-th song characteristic is in the i-th song The weight occupied. The form of the matrix P T is shown in Table 3 below:
表3table 3
 To 歌曲1Song 1 歌曲2Song 2 歌曲3Song 3 歌曲4Song 4 歌曲5Song 5 歌曲6Song 6 歌曲7Song 7 歌曲8Song 8
歌曲特性1Song Features 1 p T 11 p T 11 p T 12 p T 12 p T 13 p T 13 p T 14 p T 14 p T 15 p T 15 p T 16 p T 16 p T 17 p T 17 p T 18 p T 18
歌曲特性2Song Features 2 p T 21 p T 21 p T 22 p T 22 p T 23 p T 23 p T 24 p T 24 p T 25 p T 25 p T 26 p T 26 p T 27 p T 27 p T 28 p T 28
歌曲特性3Song Features 3 p T 31 p T 31 p T 32 p T 32 p T 33 p T 33 p T 34 p T 34 p T 35 p T 35 p T 36 p T 36 p T 37 p T 37 p T 38 p T 38
可见,在本实施例中,f=1、2、3;而不同歌曲特性对歌曲的权重矩阵P T则为矩阵P的转置矩阵,也就是说,所述矩阵P的行数表示了歌曲数,列数表示了歌曲特性个数,即矩阵P所包含的元素值为P ifIt can be seen that in this embodiment, f=1, 2, 3; and the weight matrix P T of different song characteristics to the song is the transposed matrix of the matrix P, that is, the number of rows of the matrix P represents the song The number of columns represents the number of song characteristics, that is, the element value contained in the matrix P is P if .
S1033、将所述喜爱程度矩阵Q与所述权重矩阵P T相乘后,得到歌曲评分矩阵R。此时所述的歌曲评分矩阵R中则包含了所有用户对所有歌曲的偏好度,也就是说,所述歌曲评分矩阵R中包含了第一歌曲的偏好度和第二歌曲的偏好度,因此,从所述歌曲评分矩阵R中便能得到第二歌曲的偏好度。实际上,歌曲偏好度矩阵R′与歌曲评分矩阵R的矩阵形式是相同的,只是矩阵R′中只包含了由步骤S102计算得出的不同用户对不同第一歌曲的偏好度,而矩阵R中则包含了通过Q和P T相乘后得到的不同用户对第一歌曲的偏好度和第二歌曲的偏好度,其中,矩阵R中偏好度实质为预测值,而R′中所包含的第一歌曲的偏好度为实际值。 S1033. After multiplying the favorite degree matrix Q and the weight matrix P T to obtain a song score matrix R. At this time, the song rating matrix R includes all users' preferences for all songs, that is, the song rating matrix R includes the preference of the first song and the preference of the second song, so , The preference of the second song can be obtained from the song score matrix R. In fact, the song preference matrix R′ and the song rating matrix R have the same matrix form, except that the matrix R′ only contains the preferences of different users for different first songs calculated in step S102, and the matrix R In contains the preferences of different users for the first song and the second song obtained by multiplying Q and P T. Among them, the preference in matrix R is essentially the predicted value, and R′ contains The preference of the first song is the actual value.
S1034、从所述歌曲评分矩阵中获取得到所述第二歌曲的偏好度。S1034. Obtain the preference degree of the second song from the song score matrix.
可见,本实施例的目的是为了算出不同用户对不同歌曲的歌曲评分矩阵R(R=QP T),因此利用矩阵的UV分解来对矩阵R′进行矩阵分解,可分解得到两个低维度的矩阵Q和P T,然后再用P T和Q两个矩阵的乘积去估计实际的评分矩阵,即先求解下面的目标函数: It can be seen that the purpose of this embodiment is to calculate the song rating matrix R (R=QP T ) for different songs by different users. Therefore, the UV decomposition of the matrix is used to decompose the matrix R′ to obtain two low-dimensional Matrix Q and P T , and then use the product of the two matrices P T and Q to estimate the actual score matrix, that is, first solve the following objective function:
Figure PCTCN2019093464-appb-000001
Figure PCTCN2019093464-appb-000001
令∑(R′-QP T) 2为最小值,并利用梯度下降法便能得到这矩阵Q和P所包含的元素的估计值,接着利用P、Q的估计值便能计算得出矩阵R的所有值。可见通过使用LFM(latent factor model,隐语义模型)的原理来实现由用户行为对歌曲的自动聚类,通过矩阵P和Q所包含的元素数值得出用户对第二歌曲的偏好度,计算快速且准确,而且通过LFM原理来实现此步骤,无需考虑分类的角度,第二歌曲的偏好度结果都是基于用户行为的统计自动聚类而得到;同时无需考虑分类粒度的问题,因为通过设置LFM的 最终分类数(即用户数、歌曲数、歌曲特性数)就可控制粒度,分类数越大,粒度越细;并且对于每一个歌曲,并不是明确地将其划分到某一类(歌曲特性),而是计算其属于每一类的概率,属于软分类。由此可得,利用此步骤来实现第二歌曲的偏好度,不仅可进一步快速地进行计算处理,而且可以降低误差RMSE,提高偏好度计算的准确度。 Let ∑(R′-QP T ) 2 be the minimum value, and use the gradient descent method to get the estimated values of the elements contained in the matrix Q and P, and then use the estimated values of P and Q to calculate the matrix R All values. It can be seen that the automatic clustering of songs by user behavior is realized by using the principle of LFM (latent factor model, implicit semantic model), and the user’s preference for the second song is obtained through the element values contained in the matrix P and Q, and the calculation is fast And it is accurate, and this step is achieved through the LFM principle, without considering the angle of classification, the second song’s preference results are all based on the statistical automatic clustering of user behavior; at the same time, there is no need to consider the classification granularity, because the LFM is set The final classification number (that is, the number of users, the number of songs, the number of song characteristics) can control the granularity. The larger the classification number, the finer the granularity; and for each song, it is not clearly classified into a certain category (song characteristics ), but to calculate the probability that it belongs to each category, which belongs to soft classification. It can be seen that using this step to realize the preference degree of the second song can not only further perform the calculation process more quickly, but also reduce the error RMSE and improve the accuracy of preference degree calculation.
进一步作为本发明的优选实施例,所述根据所述第一歌曲的偏好度和/或所述第二歌曲的偏好度,输出歌曲推荐结果这一步骤S104,其包括:Further as a preferred embodiment of the present invention, the step S104 of outputting a song recommendation result according to the preference degree of the first song and/or the preference degree of the second song includes:
S10411、获取车载感知信息。其中,所述车载感知信息包括但不限于有汽车内和/或汽车内的温度参数、汽车内的湿度参数、车速、特殊天气、节日以及用户的状态(如驾车的疲惫状态)等。S10411. Acquire vehicle-mounted perception information. Wherein, the vehicle-mounted perception information includes, but is not limited to, temperature parameters in and/or in the car, humidity parameters in the car, vehicle speed, special weather, festivals, and the state of the user (such as the fatigue state of driving).
S10412、获取与所述车载感知信息匹配的歌曲标签。S10412. Obtain a song tag matching the vehicle-mounted perception information.
具体地,当汽车内和/或外的温度参数高于预设温度阈值时,则表示此时温度较高,那么则获取与此时车载感知信息匹配的歌曲标签,如“燃”、“热”、“火”等;或者,当车速在预设时间段内持续低于预设车速阈值时,则表示车辆持续低速行驶,那么则获取与此时车载感知信息匹配的歌曲标签,如“轻音乐”、“安静”等。可见,对于所述步骤S10412,其实质为,根据获取得到的车载感知信息确定出当前的车载环境或车载条件,然后根据确定出的车载环境或车载条件,从而获取得到对应的歌曲标签。Specifically, when the temperature parameters inside and/or outside the car are higher than the preset temperature threshold, it means that the temperature is higher at this time, and then the song tags that match the car’s perception information at this time are obtained, such as "burning" and "heating". ", "fire", etc.; or, when the vehicle speed is continuously lower than the preset speed threshold for a preset period of time, it means that the vehicle continues to drive at a low speed, then the song tag that matches the vehicle perception information at this time is obtained, such as "light music ", "Quiet", etc. It can be seen that the essence of step S10412 is to determine the current vehicle environment or vehicle condition based on the acquired vehicle perception information, and then obtain the corresponding song tag according to the determined vehicle environment or vehicle condition.
S10413、当判断出所述第一歌曲具有所述歌曲标签,则增大所述第一歌曲的偏好度,和/或当判断出所述第二歌曲具有所述歌曲标签,则增大所述第二歌曲的偏好度。也就是说,当第一歌曲和/或第二歌曲所具有的歌曲标签包含有“燃”、“热”、“火”或“轻音乐”、“安静”等时,增大第一歌曲和/或第二歌曲的偏好度。S10413. When it is determined that the first song has the song tag, increase the preference of the first song, and/or when it is determined that the second song has the song tag, increase the The preference of the second song. That is, when the song tag of the first song and/or the second song contains "burn", "hot", "fire" or "light music", "quiet", etc., increase the first song and/or Or the preference of the second song.
S10414、根据所述第一歌曲的偏好度和/或所述第二歌曲的偏好度,输出歌曲推荐结果。可见,通过利用车载感知信息来增加歌曲的偏好度,这样能令输出的歌曲推荐结果不仅可贴合用户的喜爱方向,还能贴合当前的车载环境,极大地提高了用户的听歌体验感,而且还能以音乐播放的方式向用户进行车载环境和/或条件的提醒。S10414: Output a song recommendation result according to the preference degree of the first song and/or the preference degree of the second song. It can be seen that by using vehicle-mounted perception information to increase the preference of songs, the output song recommendation results can not only fit the user's favorite direction, but also fit the current vehicle environment, which greatly improves the user's listening experience , And can also remind users of the vehicle environment and/or conditions by way of music playback.
或者,进一步作为本方法的优选实施例,所述根据所述第一歌曲的偏好度和/或所述第二歌曲的偏好度,输出歌曲推荐结果这一步骤S104,其包括:Alternatively, as a further preferred embodiment of the method, the step S104 of outputting a song recommendation result according to the preference degree of the first song and/or the preference degree of the second song includes:
S10421、将歌单所包含的若干个第一歌曲的偏好度和/或歌单所包含的若干个第二歌曲的偏好度进行求和处理后,得出所述歌单的推荐度;S10421: After summing the preferences of several first songs included in the playlist and/or the preferences of several second songs included in the playlist, the recommendation degree of the playlist is obtained;
S10422、根据歌单的推荐度,输出歌曲推荐结果。S10422: Output song recommendation results according to the recommendation degree of the playlist.
可见在本实施例中,以歌单中所包含的歌曲偏好度来得出歌单推荐度,然后以歌单作为推荐结果输出,这样以歌曲批量的推荐方式来进行推荐,能够进一步地加快处理的效率,并且用户通过歌单的选择便能得到多首歌曲的推荐,不仅增大了用户操作交互体验感,并且减少了用户的操作,提高了操作便利性,这样尤其适合用户难以频繁与客户端交互操作的车载场景。It can be seen that in this embodiment, the song preference degree included in the song list is used to obtain the song list recommendation degree, and then the song list is output as the recommendation result, so that the recommendation is performed in the way of song batch recommendation, which can further speed up the processing. Efficiency, and the user can get multiple song recommendations through the selection of the playlist, which not only increases the user’s operational interaction experience, but also reduces the user’s operation and improves the operational convenience. This is especially suitable for users who are difficult to communicate with the client frequently. Car scene of interactive operation.
进一步作为本方法的优选实施例,所述根据歌单的推荐度,输出歌曲推荐结果这一步骤S10422,其包括:Further as a preferred embodiment of the method, the step S10422 of outputting the song recommendation result according to the recommendation degree of the playlist includes:
S104221、获取车载感知信息。其中,所述车载感知信息包括但不限于有汽车内和/或汽车内的温度参数、汽车内的湿度参数、车速、特殊天气、节日以及用户的状态(如驾车的疲惫状态)等。S104221. Acquire vehicle-mounted perception information. Wherein, the vehicle-mounted perception information includes, but is not limited to, temperature parameters in and/or in the car, humidity parameters in the car, vehicle speed, special weather, festivals, and the state of the user (such as the fatigue state of driving).
S104222、获取与所述车载感知信息匹配的歌单标签。S104222. Acquire a playlist tag matching the vehicle-mounted perception information.
具体地,当汽车内和/或外的温度参数高于预设温度阈值时,则表示此时温度较高,那么则获取与此时车载感知信息匹配的歌单标签,如“燃”、“热”、“火”等;或者,当车速在预设时间段内持续低于预设车速阈值时,则表示车辆持续低速行驶,那么则获取与此时车载感知信息匹配的歌单标签,如“轻音乐”、“安静”等。可见,对于所述步骤S104222,其实质为,根据获取得到的车载感知信息确定出当前的车载环境或车载条件,然后根据确定出的车载环境或车载条件,从而获取得到对应的歌单标签。Specifically, when the temperature parameters inside and/or outside the car are higher than the preset temperature threshold, it means that the temperature is higher at this time, and then the playlist tags that match the vehicle perception information at this time are obtained, such as "burn", " "Hot", "Fire", etc.; or, when the vehicle speed is continuously lower than the preset speed threshold for a preset period of time, it means that the vehicle continues to drive at a low speed, then the playlist tag that matches the vehicle perception information at this time is obtained, such as "Light music", "Quiet", etc. It can be seen that the essence of step S104222 is to determine the current vehicle environment or vehicle condition based on the acquired vehicle perception information, and then obtain the corresponding playlist tag according to the determined vehicle environment or vehicle condition.
S104223、当判断出所述歌单具有所述歌单标签,则增大所述歌单的推荐度。也就是说,当所述歌单所具有的歌单标签包含有“燃”、“热”、“火”或“轻音乐”、“安静”等时,则增大所述歌单的推荐度。而对于歌单中所包含的第一歌曲和/或第二歌曲的偏好度,它们基于车载感知信息的调整,则可采用上述步骤S10411~S10413来实现。S104223: When it is determined that the playlist has the playlist tag, increase the recommendation degree of the playlist. That is, when the playlist tags of the playlist include "burn", "hot", "fire", "light music", "quiet", etc., the recommendation degree of the playlist is increased. As for the preference of the first song and/or the second song included in the playlist, they are adjusted based on the vehicle-mounted perception information, which can be implemented by using the above steps S10411 to S10413.
S104224、根据所述歌单的推荐度,输出歌曲推荐结果。S104224: Output a song recommendation result according to the recommendation degree of the playlist.
可见,通过利用车载感知信息来增加歌单的推荐度,这样能令输出的歌曲推荐结果不仅可贴合用户的喜爱方向,还能贴合当前的车载环境,极大地提高了用户的听歌体验感,而且还能以音乐播放的方式向用户进行车载环境和/或条件的提醒。It can be seen that by using vehicle-mounted perception information to increase the recommendation of the playlist, the output song recommendation results can not only fit the user's favorite direction, but also fit the current vehicle environment, which greatly improves the user's listening experience It can also remind users of the vehicle environment and/or conditions in the form of music playback.
进一步作为本发明的优选实施例,还包括以下步骤:Further as a preferred embodiment of the present invention, it also includes the following steps:
S10423、获取歌单热度、歌单更新的距今时长和/或兴趣标签命中次数;对于所述歌单热度,其可通过歌单的播放量和/或试听量来进行统计得出,对于所述歌单更新的距今时长,其指的是,歌单更新的时间到当前时间之间的时间段,对于所述兴趣标签命中次数,其指的是,歌单所具有的歌单标签命中由用户选择预设的用户兴趣标签的个数,例如,歌单标签有A、B、C、D,而由用户选择预设的用户兴趣标签则有A、C、E、F,此时兴趣标签命中了2个,A和C,也就是说,此时兴趣标签命中次数为2;S10423. Obtain the popularity of the playlist, the time period since the update of the playlist, and/or the number of times of interest tag hits; for the popularity of the playlist, it can be obtained through statistics of the playlist and/or the amount of audition. The time period since the update of the playlist refers to the time period between the update time of the playlist and the current time. For the number of hits of the interest tag, it refers to the hits of the playlist tag of the playlist. The number of preset user interest tags selected by the user, for example, the playlist tags have A, B, C, D, and the preset user interest tags selected by the user are A, C, E, F, at this time interest The tags hit two, A and C, that is to say, the number of hits of the interest tag is 2
S10424、根据所述歌单热度、所述歌单更新的距今时长和/或所述兴趣标签命中次数来调整所述歌单的推荐度;对于所述步骤S10423和S10424,它们是设置在步骤S10422之前的;S10424. Adjust the recommendation degree of the playlist according to the popularity of the playlist, the time period since the update of the playlist and/or the number of hits of the interest tag; for the steps S10423 and S10424, they are set in step Before S10422;
其中,所述歌单热度与所述歌单的推荐度呈正比例关系,所述歌单更新的距今时长与所述歌单的推荐度呈反比例关系,所述兴趣标签命中次数与所述歌单的推荐度呈正比例关系。可见在本实施例中,增加了歌单热度、歌单更新的距今时长和/或兴趣标签命中次数这些影响因子来对歌单推荐度的调整,这样能够进一步令推荐的歌曲更贴合用户歌曲喜爱度的同时,还能将更新、更流行、更符合用户喜爱度的歌曲推荐给用户,进一步地提高用户听歌的体验感。Wherein, the popularity of the playlist is in a positive relationship with the recommendation degree of the playlist, the time period since the update of the playlist is in an inverse proportional relationship with the recommendation degree of the playlist, and the number of hits of the interest tag is proportional to the song recommendation. The recommendation degree of a single is proportional. It can be seen that in this embodiment, the influence factors such as the popularity of the playlist, the time since the update of the playlist, and/or the number of times of interest tag hits are added to adjust the recommendation degree of the playlist, which can further make the recommended songs more suitable for users. At the same time as the song likeness, it can also recommend newer, more popular songs that are more in line with the user's likeness to users, further improving the user's sense of listening experience.
进一步作为本方法的优选实施例,所述歌曲收藏参数包括歌曲收藏的距今时长,其中,所述歌曲收藏的距今时长与所述第一歌曲的偏好度呈反比例关系;Further as a preferred embodiment of the method, the song collection parameter includes the time period of the song collection, wherein the time period of the song collection is in inverse proportion to the preference of the first song;
或,所述歌曲搜索参数包括歌曲搜索的距今时长,其中,所述歌曲搜索的距今时长与所述第一歌曲的偏好度呈反比例关系;Or, the song search parameter includes the time span of the song search, wherein the time span of the song search is in inverse proportion to the preference of the first song;
或,所述歌曲播放参数包括歌曲播放时长和/或歌曲播放的距今时长,其中,所述歌曲播放时长与所述第一歌曲的偏好度呈正比例关系,所述歌曲播放的距今时长与所述第一歌曲的偏好度呈反比例关系。Or, the song playback parameter includes the song playback duration and/or the song playback duration, wherein the song playback duration is proportional to the preference of the first song, and the song playback duration is proportional to The preference of the first song is in an inverse proportional relationship.
具体地,对于所述歌曲收藏的距今时长,其指的是歌曲收藏的时间点到当前时间点之间的时长,例如,歌曲A的收藏时间点为今天的10a.m,而进行歌曲A的偏好度的计算时间点为今天的8p.m,此时,歌曲A的歌曲收藏的距今时长为10小时(此时,所述距今时长以小时为时间单位),若歌曲A的收藏时间点为1月1日,而进行歌曲A的偏好度的计算时间点为1月2日,此时,歌曲A的歌曲收藏的距今时长为1天(此时,所述距今时长以天数为单位)。其中,若歌曲收藏的次数为多次,那么所述歌曲收藏的时间点则选择最近一次歌曲收藏的时间点。可见,歌曲收藏的距今时长越长,则表示用户对该歌曲的喜爱度降低,此时则需要降低该歌曲的偏好度。Specifically, for the time length of the song collection, it refers to the time length from the time point of the song collection to the current time point. For example, the collection time point of the song A is 10 a.m today, and the song A is performed. The calculation time point of preference is today’s 8p.m. At this time, the collection of song A’s song collection is 10 hours (at this time, the collection of song A is in hours). The time point is January 1st, and the calculation time point for the preference degree of Song A is January 2nd. At this time, the time span of the song collection of Song A is 1 day (at this time, the time span is less than The number of days is in units). Wherein, if the number of times of song collection is multiple, then the time point of the song collection is the time point of the most recent song collection. It can be seen that the longer the time of the song collection is, the lower the user's preference for the song, and the preference for the song needs to be lowered.
对于所述歌曲搜索的距今时长,其指的是歌曲搜索的时间点到当前时间点之间的时长,例如,歌曲A的搜索时间点为今天的10a.m,而进行歌曲A的偏好度的计算时间点为今天的8p.m,此时,歌曲A的歌曲搜索的距今时长为10小时(此时,所述距今时长以小时为时间单位),若歌曲A的搜索时间点为1月1日,而进行歌曲A的偏好度的计算时间点为1月2日,此时,歌曲A的歌曲搜索的距今时长为1天(此时,所述距今时长以天数为单位)。其中,若歌曲搜索的次数为多次,那么所述歌曲搜索的时间点则选择最近一次歌曲搜索的时间点。可见,歌曲搜索的距今时长越长,则表示用户对该歌曲的喜爱度降低,此时则需要降低该歌曲的偏好度。For the time period since the song search, it refers to the time period from the time point of the song search to the current time point. For example, the search time point of song A is 10 a.m today, and the preference of song A is performed The calculation time point of is today’s 8p.m. At this time, the search time of song A’s song is 10 hours (at this time, the time since the present is in hours), if the search time of song A is On January 1st, and the calculation time point for the preference degree of Song A is January 2nd, at this time, the time span of the song search for Song A is 1 day (at this time, the time span from the present is in days as the unit ). Wherein, if the number of times of song search is multiple, then the time point of the song search is the time point of the most recent song search. It can be seen that the longer the song search time is, the longer the user's preference for the song is reduced, and at this time, the preference for the song needs to be lowered.
对于所述歌曲播放时长,其可以指的是歌曲播放总时长,又或者是歌曲某一次播放的时长,如第i次歌曲A持续播放了3分钟,那么第i次歌曲A的播放时长为3分钟。通常歌曲播放时长越长,则表示用户对该歌曲的喜爱度越高,此时则需要提高该歌曲的偏好度。For the playing time of the song, it can refer to the total playing time of the song, or the playing time of the song at a certain time. For example, the i-th song A continues to be played for 3 minutes, then the i-th song A has a playing time of 3. minute. Generally, the longer the playing time of the song is, the higher the user's preference for the song is. At this time, the preference for the song needs to be increased.
对于所述歌曲播放的距今时长,其指的是歌曲播放时间点到当前时间点之间的时长,例如,在其它所有条件都相同的前提下,歌曲A是在1天前播放的,而歌曲B则是在10天前播放的,此时歌曲A的偏好度应大于歌曲B的偏好度。可见,歌曲播放的距今时长越长,则表示用户对该歌曲的喜爱度降低,此时则需要降低该歌曲的偏好度。For the duration of the song playback, it refers to the duration between the song playback time point and the current time point. For example, under the premise that all other conditions are the same, song A was played 1 day ago, and Song B was played 10 days ago. At this time, the preference of song A should be greater than the preference of song B. It can be seen that the longer the time since the song is played, the lower the user's preference for the song. At this time, the preference for the song needs to be lowered.
因此,通过上述所采用的歌曲收藏参数、歌曲搜索参数和/或歌曲播放参数,能够更精准计算出满足用户喜爱需求的歌曲推荐结果。Therefore, the song collection parameters, song search parameters, and/or song playback parameters used above can be used to more accurately calculate the song recommendation results that meet the user's favorite needs.
进一步作为本发明的优选实施例,还包括以下步骤:Further as a preferred embodiment of the present invention, it also includes the following steps:
按照所述歌曲收藏参数对应的优先级、所述歌曲搜索参数对应的优先级、所述歌曲播放参数对应的优 先级和所述车载感知信息对应的优先级,输出与所述歌曲收藏参数、所述歌曲搜索参数、所述歌曲播放参数和/或所述车载感知信息相对应的歌曲推荐理由信息。所述优先级指的是与参数或信息对应的歌曲推荐理由信息的输出优先级。According to the priority corresponding to the song collection parameter, the priority corresponding to the song search parameter, the priority corresponding to the song playback parameter, and the priority corresponding to the in-vehicle perception information, output the song collection parameters and the priority The song search parameter, the song playback parameter and/or the song recommendation reason information corresponding to the vehicle-mounted perception information. The priority refers to the output priority of the song recommendation reason information corresponding to the parameter or information.
具体地,若当前推荐的歌曲的偏好度涉及车载感知信息,即歌曲的偏好度有因为车载感知信息而进行了数值调整,此时输出与所述车载感知信息相对应的歌曲推荐理由信息为:根据当前的车载感知信息而为您推荐;若当前推荐的歌曲的偏好度涉及歌曲收藏参数,此时输出与所述歌曲收藏参数相对应的歌曲推荐理由为:根据您收藏的单曲《X》而推荐;若当前推荐的歌曲的偏好度涉及歌曲搜索参数,此时输出与所述歌曲搜索参数相对应的歌曲推荐理由为:根据您搜索的单曲《X》而推荐;若当前推荐的歌曲的偏好度涉及歌曲播放参数,此时输出与所述歌曲播放参数相对应的歌曲推荐理由为:根据您听过的单曲《X》而推荐。而若当前推荐的歌曲的偏好度不涉及歌曲收藏参数、歌曲搜索参数、歌曲播放参数和车载感知信息,此时输出的歌曲推荐理由则为:根据您的喜好推荐。其中,与车载感知信息相对应的歌曲推荐理由信息的输出优先级>与歌曲收藏参数相对应的歌曲推荐理由的输出优先级>与歌曲搜索参数相对应的歌曲推荐理由的输出优先级>与歌曲播放参数相对应的歌曲推荐理由的输出优先级。通常对于第一歌曲的偏好度,其会涉及有歌曲收藏参数、歌曲搜索参数、歌曲播放参数和/或所述车载感知信息,而第二歌曲的偏好度,其则会涉及有车载感知信息。Specifically, if the preference of the currently recommended song relates to vehicle perception information, that is, the preference of the song has been numerically adjusted due to the vehicle perception information, and the song recommendation reason information corresponding to the vehicle perception information is output at this time: Recommend for you according to the current vehicle perception information; if the preference of the currently recommended song involves song collection parameters, the reason for outputting the song recommendation corresponding to the song collection parameter at this time is: According to your favorite single "X" And recommendation; if the preference of the currently recommended song involves song search parameters, the reason for outputting the song recommendation corresponding to the song search parameter at this time is: recommend based on the single "X" you searched for; if the currently recommended song The preference degree of is related to the song playing parameters. At this time, the reason for outputting the song recommendation corresponding to the song playing parameters is: recommend according to the single "X" you have heard. If the preference of the currently recommended song does not involve song collection parameters, song search parameters, song playback parameters, and vehicle perception information, the reason for the song recommendation output at this time is: recommendation according to your preferences. Among them, the output priority of the song recommendation reason information corresponding to the vehicle perception information>the output priority of the song recommendation reason corresponding to the song collection parameter>the output priority of the song recommendation reason corresponding to the song search parameter>the song The output priority of the song recommendation reason corresponding to the playback parameter. Generally, the preference for the first song involves song collection parameters, song search parameters, song playback parameters, and/or the vehicle perception information, while the preference for the second song involves vehicle perception information.
此外,若所述歌曲推荐理由信息是作为歌单推荐理由信息输出,也就是说,当前是以歌单推荐的方式进行推荐,那么对于所述歌单推荐理由信息,其优选先从歌单中选取偏好度最高的歌曲,然后根据选取的歌曲的偏好度按照上述歌曲推荐理由信息输出的规则来进行输出。In addition, if the song recommendation reason information is output as the playlist recommendation reason information, that is, the recommendation is currently performed in the form of playlist recommendation, then for the playlist recommendation reason information, it is preferable to start from the playlist. The song with the highest preference is selected, and then output according to the above-mentioned song recommendation reason information output rule according to the preference of the selected song.
如图2所示,本发明实施例还提供了一种歌曲推荐方法,其优选包括的步骤如下所示。As shown in FIG. 2, the embodiment of the present invention also provides a song recommendation method, which preferably includes the following steps.
S201、构建歌曲数据库和/或歌单数据库。S201. Construct a song database and/or a playlist database.
具体地,对于所述构建的歌曲数据库和/或歌单数据库,其主要用于存储歌曲和/或歌单的播放量、收藏量、发布时间、更新时间、标签等属性信息,而这些属性信息可为歌曲和/或歌单的推荐提供数据。Specifically, for the constructed song database and/or playlist database, it is mainly used to store the play volume, collection volume, release time, update time, tags and other attribute information of the song and/or playlist, and these attribute information Data can be provided for recommendation of songs and/or playlists.
S202、获取第一歌曲的用户行为参数。在本实施例中,所述用户行为参数包括歌曲收藏参数、歌曲搜索参数和/或歌曲播放参数。S202: Acquire user behavior parameters of the first song. In this embodiment, the user behavior parameters include song collection parameters, song search parameters, and/or song playback parameters.
S203、根据所述用户行为参数,计算出第一歌曲的偏好度。S203: Calculate the preference of the first song according to the user behavior parameter.
在本实施例中,所述歌曲收藏参数包括歌曲收藏的距今时长,其中,所述歌曲收藏的距今时长与所述第一歌曲的偏好度呈反比例关系;所述歌曲搜索参数包括歌曲搜索的距今时长,其中,所述歌曲搜索的距今时长与所述第一歌曲的偏好度呈反比例关系;所述歌曲播放参数包括歌曲播放时长和/或歌曲播放的距今时长,其中,所述歌曲播放时长与所述第一歌曲的偏好度呈正比例关系,所述歌曲播放的距今时长与所述第一歌曲的偏好度呈反比例关系。In this embodiment, the song collection parameter includes the time period of the song collection, wherein the time period of the song collection is inversely proportional to the preference of the first song; the song search parameter includes song search The time elapsed since the song search is inversely proportional to the preference of the first song; the song playback parameters include the time elapsed since the song is played and/or the time elapsed when the song is played. The playing time of the song is in a positive proportional relationship with the preference of the first song, and the playing time of the song is in an inverse proportion to the preference of the first song.
而为了能够进一步精准地基于所述用户行为参数来计算出所述第一歌曲的偏好度,在本实施例中优选 采用以下第一公式来进行计算:In order to calculate the preference of the first song based on the user behavior parameters more accurately, the following first formula is preferably used for calculation in this embodiment:
Figure PCTCN2019093464-appb-000002
Figure PCTCN2019093464-appb-000002
上式中,X′ a表示为第a首第一歌曲的偏好度;BT j1表示为第a首第一歌曲在第j1次播放的时长,也就是说,第a首第一歌曲在第j1次播放记录中所记录的播放时长,其以分钟为单位,可见,BT j1属于歌曲播放时长这一参数,而j1=1、2、3、……、B,B表示为第a首第一歌曲的播放记录总个数;BD j1表示为第a首第一歌曲在第j1次播放的时间点到当前时间点之间的时长,其以天数为单位,可见,BD j1属于歌曲播放的距今时长这一参数;R表示为用户是否收藏过此歌曲(第a首第一歌),若有则为1,反之则为0;RP表示为歌曲收藏行为的权重,在本实施例中,RP取值为20分钟,这样则可理解为在相同的时间衰减下,收藏行为相当于播放时长BT j120分钟;RD表示为用户的歌曲收藏行为发生的时间距今时长,即歌曲收藏的距今时长,其以天数为单位,进一步地,若第a首第一歌曲的收藏行为仅存有1条歌曲收藏记录,那么则以该收藏记录的发生时间的距今时长来作为RD的数值,若第a首第一歌曲的收藏行为存有至少2条歌曲收藏记录,那么则应以最近发生的歌曲收藏记录的发生时间的距今时长来作为RD的数值;S表示为用户是否搜索过此歌曲(第a首第一歌),若有则为1,反之则为0;SP表示为歌曲搜索行为的权重,在本实施例中,SP取值为10分钟,这样则可理解为在相同的时间衰减下,搜索行为相当于播放时长BT j110分钟;SD j2表示为用户在对第a首第一歌曲进行第j2次搜索行为发生的时间距今时长,即SD j2属于歌曲搜索的距今时长,其中j2=1、2、3、……、S1,S1表示为第a首第一歌曲的搜索总次数;T1和T2均表示为时间衰减系数,它们可以相同或不相同,而在本实施例中,它们是相同的且均取值为1/3,这样则可理解为用户行为发生当天权重不衰减,用户行为发生第8天权重衰减为原来的1/2,第27天权重衰减为原来的1/3,第81天权重衰减为原来的1/4。 In the above formulas, X 'a represents the degree of preference for the song in a first header; j1 the BT is expressed as a head of a first length in the first j1 song plays, that is, of a first section of the first song j1 The playback duration recorded in the second playback record is in minutes. It can be seen that BT j1 belongs to the parameter of the song playback duration, and j1=1, 2, 3,..., B, and B is the first one. The total number of playback records of the song; BD j1 is expressed as the length of time between the j1th playback time point of the ath first song and the current time point, which is in days. It can be seen that BD j1 belongs to the distance of song playback The current time parameter; R indicates whether the user has collected this song (the first song of the a), if there is one, it is 1, otherwise, it is 0; RP indicates the weight of the song collection behavior, in this embodiment, The value of RP is 20 minutes, so it can be understood that under the same time attenuation, the collection behavior is equivalent to the playing duration of BT j1 20 minutes; RD represents the time since the user’s song collection behavior occurred, that is, the distance between the song collection The current time is in days. Further, if there is only one song collection record in the collection behavior of the a-th first song, then the time since the collection record occurred is taken as the value of RD, If there are at least 2 song collection records in the collection behavior of the first song, then the time of the most recent song collection record should be taken as the value of RD; S indicates whether the user has searched for this Song (the first song of the ath), if there is one, it is 1, otherwise, it is 0; SP represents the weight of the song search behavior, in this embodiment, the value of SP is 10 minutes, so it can be understood as the same Under the time attenuation of, the search behavior is equivalent to the playing time of BT j1 10 minutes; SD j2 represents the time since the user performed the j2th search behavior on the first song a, that is, SD j2 belongs to the song search distance The current time, where j2=1, 2, 3,..., S1, S1 is the total number of searches for the a-th first song; T1 and T2 are both time attenuation coefficients, they can be the same or different, and In this embodiment, they are the same and both take a value of 1/3, so it can be understood that the weight does not decay on the day the user behavior occurs, the weight decays to 1/2 of the original on the 8th day of the user behavior, and the weight on the 27th day The attenuation is 1/3 of the original, and the weight at the 81st day is attenuated to 1/4 of the original.
又或者,对于所述第一歌曲的偏好度,其可优选采用以下第二公式来进行计算:Or, for the preference of the first song, it may preferably be calculated using the following second formula:
Figure PCTCN2019093464-appb-000003
Figure PCTCN2019093464-appb-000003
对于第二公式中的各符号,其意思与上述第一公式中的符号所表达的意思相同。The meanings of the symbols in the second formula are the same as those in the first formula.
S204、根据所述第一歌曲的偏好度,计算出用户对不同歌曲特性的喜爱程度值,根据所述用户对不同歌曲特性的喜爱程度值以及不同歌曲特性对第二歌曲的权重,计算出第二歌曲的偏好度。S204. Calculate the user’s preference for different song characteristics according to the preference of the first song, and calculate the second song according to the user’s preference for different song characteristics and the weight of different song characteristics on the second song. 2. The preference of the song.
具体地,在本实施例中,所述步骤S204包括:Specifically, in this embodiment, the step S204 includes:
S2041、将不同用户对不同第一歌曲的偏好度置入歌曲偏好度矩阵中,其中,所述歌曲偏好度矩阵的行数表示用户数,所述歌曲偏好度矩阵的列数表示歌曲数;S2041, placing preferences of different users for different first songs into a song preference matrix, where the number of rows in the song preference matrix represents the number of users, and the number of columns in the song preference matrix represents the number of songs;
S2042、对所述歌曲偏好度矩阵进行矩阵分解后,得到不同用户对不同歌曲特性的喜爱程度矩阵以及不同歌曲特性对不同歌曲的权重矩阵,其中,所述不同歌曲特性对不同歌曲的权重矩阵中包含有不同歌曲 特性对不同第二歌曲的权重;S2042. After matrix decomposition is performed on the song preference matrix, the preference matrix for different song characteristics by different users and the weight matrix of different song characteristics for different songs are obtained, wherein the weight matrix of different song characteristics for different songs is Contains the weights of different song characteristics to different second songs;
S2043、将所述喜爱程度矩阵与所述权重矩阵相乘后,得到歌曲评分矩阵;S2043: After multiplying the favorite degree matrix and the weight matrix to obtain a song score matrix;
S2044、从所述歌曲评分矩阵中获取得到所述第二歌曲的偏好度。S2044. Obtain the preference degree of the second song from the song score matrix.
S205、将歌单所包含的若干个第一歌曲的偏好度和/或歌单所包含的若干个第二歌曲的偏好度进行求和处理后,得出所述歌单的推荐度。S205. After summing the preference degrees of several first songs included in the playlist and/or the preference degrees of several second songs included in the playlist, a recommendation degree of the playlist is obtained.
具体地在本实施例中,所述歌单的推荐优选采用以下第三计算公式来计算::Specifically, in this embodiment, the recommendation of the playlist is preferably calculated using the following third calculation formula:
Figure PCTCN2019093464-appb-000004
Figure PCTCN2019093464-appb-000004
或者,采用以下第四计算公式来计算:Or, use the following fourth calculation formula to calculate:
Figure PCTCN2019093464-appb-000005
Figure PCTCN2019093464-appb-000005
式中,Y j3表示为第j3个歌单的推荐度;X j4表示为第j3个歌单中第j4首歌曲的偏好度,其中,若第j4首歌曲为第一歌曲,那么则采用步骤S203所计算好的偏好度,若第j4首歌曲为第二歌曲,那么则采用步骤S2044中所述歌曲评分矩阵中获取相应的偏好度,j4=1、2、3、……、c,c表示为第j3个歌单中所包含的歌曲总数;L j3表示为第j3个歌单的试听量,即歌单热度;E表示为车载感知因子;G j3表示为兴趣标签命中次数;T j3表示为第j3个歌单更新的距今时长,即其更新的时间点到当前时间点的时长;T3表示为时间衰减系数,其可与T1或T2相同或不相同,而在本实施例中,T3与T1相同。 In the formula, Y j3 is the recommendation degree of the j3th playlist; X j4 is the preference degree of the j4th song in the j3th playlist. Among them, if the j4th song is the first song, then the steps The preference calculated in S203, if the j4th song is the second song, then the corresponding preference is obtained from the song score matrix in step S2044, j4=1, 2, 3,..., c, c Expressed as the total number of songs contained in the j3th playlist ; L j3 represents the audition volume of the j3th playlist, that is, the popularity of the playlist; E represents the vehicle perception factor; G j3 represents the number of hits of the interest tag; T j3 It is expressed as the time since the j3th playlist update, that is, the time from the update time point to the current time point; T3 is expressed as the time attenuation coefficient, which may be the same as or different from T1 or T2, and in this embodiment , T3 is the same as T1.
基于上述公式可得到,在根据第一歌曲的偏好度和/或第二歌曲的偏好度求出歌单的推荐度后,会根据所述歌单热度、所述歌单更新的距今时长和/或所述兴趣标签命中次数这些参数的数值来对歌单的推荐度进行调整,其中,所述歌单热度与所述歌单的推荐度呈正比例关系,所述歌单更新的距今时长与所述歌单的推荐度呈反比例关系,所述兴趣标签命中次数与所述歌单的推荐度呈正比例关系,以令推荐的歌曲不仅更符合用户的口味,而且还能推荐更新更有热度的歌曲给用户,提高用户音乐收听的体验感。Based on the above formula, after finding the recommendation degree of the playlist based on the preference of the first song and/or the preference of the second song, the songlist’s popularity, the updated duration of the playlist, and / Or the value of the number of hits of the interest tag to adjust the recommendation degree of the playlist, wherein the popularity of the playlist is in a proportional relationship with the recommendation degree of the playlist, and the time since the update of the playlist It is in an inverse proportional relationship with the recommendation degree of the playlist, and the number of hits of the interest tag is in a positive proportional relationship with the recommendation degree of the playlist, so that the recommended songs are not only more in line with the user’s taste, but also recommended updates are more popular The songs are given to users to improve the user experience of music listening.
而对于上述公式中的车载感知因子E,其也是用于通过车载感知获取的实时车载感知信息(温度、特殊天气和/或车速等),从而对歌单的推荐度进行调整,而具体的调整方式包括有:1、当车载传感器检测汽车内和/或外的温度参数高于预设温度阈值时,歌单的标签中有“燃”、“热”、“火”等标签的歌单的推荐度会有额外车载感知因子E加成,即此时E为非0的正数;2、当车速在预设时间段内持续低于预设车速阈值时,则表示车辆持续低速行驶,歌单的标签中有“轻音乐”、“安静”等标签的歌单的推荐度会有额外车载感知因子E加成,即此时E为非0的正数。也就是说,在根据第一歌曲的偏好度和/或第二歌曲的偏好度求出歌单的推荐度后,会通过获取车载感知信息,然后获取与所述车载感知信息匹配的歌单标签,当判断出所述歌单具有所述歌单标签,则利用E来增大所述歌单的推荐度,不仅能够使推荐的歌单在符合用户的口味的基础上,还能通过推荐的歌曲来提示用户当前的车载环境,这尤其适用于车载场景中。For the vehicle perception factor E in the above formula, it is also used for real-time vehicle perception information (temperature, special weather and/or vehicle speed, etc.) obtained through vehicle perception, so as to adjust the recommendation degree of the song list, and the specific adjustment The methods include: 1. When the on-board sensor detects that the temperature parameter inside and/or outside the car is higher than the preset temperature threshold, the song list label has "burn", "hot", "fire" and other labels in the song list. The recommendation degree will have an extra on-board perception factor E added, that is, E is a non-zero positive number at this time; 2. When the vehicle speed is continuously lower than the preset speed threshold for a preset time period, it means that the vehicle continues to drive at a low speed. The recommendation degree of playlists with "light music", "quiet" and other tags in the single label will have an extra car perception factor E added, that is, E is a non-zero positive number at this time. That is to say, after obtaining the recommendation degree of the playlist according to the preference of the first song and/or the preference of the second song, the vehicle perception information will be acquired, and then the playlist tag matching the vehicle perception information will be obtained When it is judged that the playlist has the playlist tag, use E to increase the recommendation degree of the playlist, which not only enables the recommended playlist to meet the user’s taste, but also through recommended Songs to remind users of the current car environment, which is especially suitable for car scenes.
由上述可得,本发明实施例的偏好度计算考虑了用户的歌曲播放、收藏、搜索行为、用户兴趣因子(即歌曲特性),而歌单的推荐度计算更还考虑了歌单热度、更新时间、车载因子等影响因素,并且还采用的时间因子T来对行为进行有效度衰减,并且不同行为的时间衰减度可不一样,还有还兼顾考虑了基于行为的推荐与基于兴趣因子的推荐之间的差异,而本发明实施例的推荐输出结果则是偏向于优先取基于行为的推荐结果。此外,本发明实施例的偏好度算法可支持行为叠加,当行为叠加时,歌曲的偏好度和/或歌单的推荐度会加强,例如一个歌单既命中播放行为、又命中兴趣标签时,推荐度将加速放大;而且还歌单的热度和更新时间,在同等行为偏好下,越热的歌单推荐度越高,越新的歌单推荐度越高。From the foregoing, the preference calculation in the embodiment of the present invention takes into account the user’s song playing, favorites, search behavior, and user interest factors (ie song characteristics), and the song list recommendation calculation also takes into account the popularity and update of the song list. Influencing factors such as time and vehicle factors, and the time factor T is also used to attenuate the effective degree of behavior, and the time attenuation of different behaviors can be different, and it also considers the behavior-based recommendation and the interest-based recommendation. However, the recommendation output result of the embodiment of the present invention is biased to prefer the behavior-based recommendation result. In addition, the preference algorithm of the embodiment of the present invention can support behavior superposition. When the behavior superimposes, the preference degree of songs and/or the recommendation degree of the playlist will be strengthened. For example, when a playlist hits both the playing behavior and the interest tag, The degree of recommendation will accelerate the enlargement; and also the popularity and update time of the playlist. Under the same behavioral preference, the hotter the playlist, the higher the recommendation, and the newer the playlist, the higher the recommendation.
S206、按照所述歌曲收藏参数对应的优先级、所述歌曲搜索参数对应的优先级、所述歌曲播放参数对应的优先级和所述车载感知信息对应的优先级,输出与所述歌曲收藏参数、所述歌曲搜索参数、所述歌曲播放参数和/或所述车载感知信息相对应的歌曲推荐理由信息。S206. According to the priority corresponding to the song collection parameter, the priority corresponding to the song search parameter, the priority corresponding to the song playback parameter, and the priority corresponding to the vehicle-mounted perception information, output the song collection parameter , The song search parameter, the song playing parameter and/or the song recommendation reason information corresponding to the vehicle-mounted perception information.
具体地,对于任一歌单的歌曲推荐理由信息,其是通过对该歌单中偏好度最高的歌曲所涉及的歌曲收藏参数、歌曲搜索参数、歌曲播放参数,以及当前获取得到的车载感知信息按照推荐配置规则来进行相应的输出的,其中,所述推荐配置规则包括有:Specifically, for the song recommendation reason information of any playlist, it is based on the song collection parameters, the song search parameters, the song playback parameters, and the currently acquired vehicle perception information related to the song with the highest preference in the playlist. The corresponding output is performed according to the recommended configuration rules, where the recommended configuration rules include:
第1优先级:当歌单中偏好度最高的歌曲的偏好度计算或者歌单的推荐度计算中存有E且其为非0正数,那么此时该歌单的歌曲推荐理由信息为:根据当前的车载感知信息而为您推荐;Priority 1: When the preference calculation of the most preferred song in the playlist or the recommendation calculation of the playlist contains E and it is a non-zero positive number, then the song recommendation reason information for the playlist at this time is: Recommend to you based on current vehicle perception information;
第2优先级:当歌单中偏好度最高的歌曲的偏好度计算中存有歌曲收藏参数,那么此时该歌单的歌曲推荐理由信息为:根据您收藏的单曲《X》而推荐;Priority 2: When the song collection parameter is stored in the preference calculation of the song with the highest preference in the playlist, then the song recommendation reason information for the song list at this time is: Recommend according to your favorite single "X";
第3优先级:当歌单中偏好度最高的歌曲的偏好度计算中存有歌曲搜索参数,那么此时该歌单的歌曲推荐理由信息为:根据您搜索的单曲《X》而推荐;Priority 3: When the song search parameter is stored in the preference calculation of the song with the highest preference in the playlist, then the song recommendation reason information for the song list at this time is: recommend based on the single "X" you search;
第4优先级:当歌单中偏好度最高的歌曲的偏好度计算中存有歌曲播放参数,那么此时该歌单的歌曲推荐理由信息为:根据您听过的单曲《X》而推荐;Priority 4: When the song playback parameters are stored in the preference calculation of the song with the highest preference in the playlist, then the reason information for the song recommendation of the playlist at this time is: Recommend based on the single "X" you have listened to ;
第5优先级:其它,即当歌单中偏好度最高的歌曲的偏好度计算中不存有歌曲收藏参数、歌曲搜索参数、歌曲播放参数和车载感知信息,那么此时该歌单的歌曲推荐理由信息为:根据您的喜好推荐。其中,上述5个优先级从大到小排列为:第1优先级、第2优先级、第3优先级、第4优先级、第5优先级。Priority 5: Others, that is, when the preference calculation of the song with the highest preference in the playlist does not contain song collection parameters, song search parameters, song playback parameters, and vehicle perception information, then the song recommendation of the playlist The reason information is: Recommend according to your preferences. Among them, the above five priority levels are arranged in descending order: the first priority, the second priority, the third priority, the fourth priority, and the fifth priority.
S207、根据歌单的推荐度,输出歌曲推荐结果。S207. Output song recommendation results according to the recommendation degree of the playlist.
具体地,在推荐的若干个歌单中,计算出每一个歌单的推荐度,然后按照歌单推荐度的数值,从大到小对若干个歌单进行排序,然后对排序的若干个歌单选取若干个符合推荐规则的歌单后,将选取出的歌单输出,以实现歌曲推荐,例如,若需要一次推荐20个歌单,那么则按照歌单推荐度的数值,从大到小对若干个歌单进行排序,然后对排序的若干个歌单选取20个歌单后输出。其中,而对于所述推荐规则,其包括有:Specifically, among the recommended playlists, the recommendation degree of each playlist is calculated, and then according to the value of the playlist recommendation degree, the playlists are sorted from large to small, and then the sorted songs are sorted. After selecting several playlists that meet the recommendation rules, output the selected playlists to achieve song recommendation. For example, if you need to recommend 20 playlists at a time, then according to the number of playlist recommendation, from large to small Sort several playlists, and then select 20 playlists from the sorted playlists and output them. Among them, for the recommended rules, they include:
规则1:从高到低,优先按推荐理由为第1优先级、第2优先级、第3优先级、第4优先级的歌单进 行选取。若选取出的歌单个数不足20个,即选取出的歌曲单数不符合所需个数,则从推荐理由为第5优先级的歌单中,按照歌单推荐度从大到小进行选取,以令最终选取出的歌单个数为20个。Rule 1: From high to low, the first priority, the second priority, the third priority and the fourth priority playlists are selected based on the recommended reasons. If the number of individual songs selected is less than 20, that is, the number of selected songs does not meet the required number, then select from the playlist with the fifth priority as the reason for recommendation, according to the recommendation degree of the playlist, from large to small. In order to make the final single number of selected songs 20.
规则2:在同一批(20个)选取出的歌单结果中,不能所有歌单的推荐理由不能完全相同,不过第5优先级的理由除外。Rule 2: In the same batch (20) of the selected playlist results, the recommended reasons for all playlists cannot be exactly the same, except for the reason for the fifth priority.
规则3:在同一批(20个)选取出的歌单结果中,歌单不能重复出现。Rule 3: In the same batch (20) selected playlist results, the playlist cannot be repeated.
规则4:近1个月已曝光过的推荐歌单不能再次推荐;而近1个月未曝光过的推荐歌单,则可以再次推荐。而对于此规则4,若其是针对歌曲推荐的,那么则是:按照歌曲的偏好度,从大到小对歌曲进行排序,其中,所述歌曲包含第二歌曲和第一歌曲,而在此实施例中,所述的第一歌曲需要其歌曲播放、搜索和/或收藏行为的产生时间已距今超过预设时间段(如1个月),否则,该第一歌曲则不在歌曲推荐的选取范围内。Rule 4: Recommended playlists that have been exposed in the past month cannot be recommended again; and recommended playlists that have not been exposed in the past month can be recommended again. And for this rule 4, if it is recommended for songs, then it is: according to the preference of the songs, sort the songs from largest to smallest, where the songs include the second song and the first song, and here In an embodiment, the first song requires that the generation time of its song playback, search and/or collection behavior has exceeded a preset time period (such as 1 month), otherwise, the first song is not recommended by the song. Select the range.
由上述可见,本发明实施例相较于传统的协同过滤、纯粹的规则堆叠推荐度打分机制排序等,能够大大提高了最终输出的推荐结果与用户喜爱的歌曲之间的契合度,极大降低了算法误差(RMSE);同时无需建立歌曲或歌单之间的相似度关系矩阵,大大提高了运算效率。而且,不同于其他音乐客户端的用户交互场景,用户的体验场景在车载端,由于其使用场景的特殊性(用户不方便频繁的与音乐客户端交互,但驾驶时对听歌的需求又较高),因此,本发明实施例所实现的推荐方案特别适合应用于车载场景中,尤其是,本发明实施例的偏好度和/或推荐度的计算还增加有车载感知信息这一影响因素,因此令歌曲推荐结果非常适用于车载场景。It can be seen from the above that, compared with traditional collaborative filtering, purely regular stack recommendation scoring mechanism sorting, etc., the embodiment of the present invention can greatly improve the fit between the final output recommendation result and the user’s favorite song, and greatly reduce The algorithm error (RMSE); at the same time, there is no need to establish a similarity relationship matrix between songs or playlists, which greatly improves computing efficiency. Moreover, different from the user interaction scenes of other music clients, the user experience scene is on the vehicle side, due to the particularity of its use scene (users are inconvenient to interact with the music client frequently, but the demand for listening to songs while driving is higher. ), therefore, the recommendation scheme implemented by the embodiment of the present invention is particularly suitable for application in vehicle-mounted scenarios. In particular, the calculation of preference and/or recommendation degree in the embodiment of the present invention also adds the influencing factor of vehicle-mounted perception information. The result of song recommendation is very suitable for in-vehicle scenarios.
如图3所示,本发明实施例还提供了一种歌曲推荐系统,包括:As shown in Figure 3, an embodiment of the present invention also provides a song recommendation system, including:
第一获取单元,用于获取第一歌曲的属性参数;所述属性参数包括歌曲收藏参数、歌曲搜索参数、歌曲播放参数中至少一种;The first obtaining unit is configured to obtain attribute parameters of the first song; the attribute parameters include at least one of song collection parameters, song search parameters, and song playback parameters;
第一计算单元,用于根据所述属性参数,计算出第一歌曲的偏好度;The first calculation unit is configured to calculate the preference degree of the first song according to the attribute parameter;
第二计算单元,用于根据所述第一歌曲的偏好度,计算出用户对不同歌曲特性的喜爱程度值,根据所述用户对不同歌曲特性的喜爱程度值以及不同歌曲特性对第二歌曲的权重,计算出第二歌曲的偏好度;The second calculation unit is used to calculate the user’s preference for different song characteristics according to the preference of the first song, and according to the user’s preference for different song characteristics and the preference of different song characteristics for the second song Weight, calculate the preference of the second song;
推荐单元,用于根据所述第一歌曲的偏好度和/或所述第二歌曲的偏好度,输出歌曲推荐结果。The recommendation unit is configured to output song recommendation results according to the preference degree of the first song and/or the preference degree of the second song.
可见,本发明实施例利用第一歌曲的歌曲收藏行为参数、歌曲搜索行为参数和/或歌曲播放行为参数来计算得出第一歌曲的偏好度,然后再利用第一歌曲的偏好度来计算出用户对歌曲特性的喜爱程度值,根据用户对歌曲特性的喜爱程度值以及歌曲特性对第二歌曲的权重来计算出第二歌曲的偏好度,从而根据第一歌曲和/或第二歌曲的偏好度来实现歌曲推荐,可见,由于本发明实施例结合用户对歌曲的操作行为(包括有歌曲收藏行为、搜索行为、播放行为)来实现第一歌曲的偏好度计算,并且利用第一歌曲的偏好度来计算出用户对歌曲特性的喜爱程度值后,再计算出第二歌曲的偏好度,因此,相较于传统的协同过滤、纯粹的规则堆叠推荐,本发明实施例的方案所推荐的结果与用户喜爱的歌曲的贴合度更高,也就是说,推荐结 果的准确度更高,同时在实现歌曲推荐的计算过程中无需构建歌曲或歌单之间的相似度关系矩阵,这样在提供歌曲推荐的契合准确度的基础上,还能极大地提高处理效率。It can be seen that the embodiment of the present invention uses the song collection behavior parameter, the song search behavior parameter and/or the song playback behavior parameter of the first song to calculate the preference of the first song, and then the preference of the first song is used to calculate The user’s preference for the song characteristics is calculated based on the user’s preference for the song characteristics and the weight of the song characteristics on the second song, so as to calculate the preference for the second song based on the preference of the first song and/or the second song It can be seen that the embodiment of the present invention combines the user's operating behaviors on the songs (including song collection behavior, search behavior, and playback behavior) to achieve the preference degree calculation of the first song, and uses the preference of the first song After calculating the user’s preference for the song characteristics, the second song’s preference is calculated. Therefore, compared with the traditional collaborative filtering and pure rule stacking recommendation, the result recommended by the embodiment of the present invention is It has a higher degree of fit with the user’s favorite song, that is, the recommendation result is more accurate, and there is no need to construct a similarity relationship matrix between songs or playlists in the calculation process of song recommendation. On the basis of the accuracy of the song recommendation, the processing efficiency can be greatly improved.
进一步作为本系统的优选实施例,所述第二计算单元包括:Further as a preferred embodiment of the system, the second calculation unit includes:
第一处理模块,用于将不同用户对不同第一歌曲的偏好度置入歌曲偏好度矩阵中,其中,所述歌曲偏好度矩阵的行数表示用户数,所述歌曲偏好度矩阵的列数表示歌曲数;The first processing module is used to place different users’ preferences for different first songs into a song preference matrix, wherein the number of rows in the song preference matrix represents the number of users, and the number of columns in the song preference matrix Indicates the number of songs;
第二处理模块,用于对所述歌曲偏好度矩阵进行矩阵分解后,得到不同用户对不同歌曲特性的喜爱程度矩阵以及不同歌曲特性对不同歌曲的权重矩阵,其中,所述不同歌曲特性对不同歌曲的权重矩阵中包含有不同歌曲特性对不同第二歌曲的权重;The second processing module is used to decompose the song preference matrix to obtain the preference matrix of different users for different song characteristics and the weight matrix of different song characteristics to different songs, wherein the different song characteristics have different pairs. The weight matrix of the song contains the weight of different song characteristics for different second songs;
第三处理模块,用于将所述喜爱程度矩阵与所述权重矩阵相乘后,得到歌曲评分矩阵;The third processing module is configured to multiply the favorite degree matrix and the weight matrix to obtain a song score matrix;
第四处理模块,用于从所述歌曲评分矩阵中获取得到所述第二歌曲的偏好度。The fourth processing module is used to obtain the preference degree of the second song from the song score matrix.
进一步作为本系统的优选实施例,所述推荐单元包括:Further as a preferred embodiment of the system, the recommendation unit includes:
第一获取模块,用于获取车载感知信息;The first acquisition module is used to acquire vehicle-mounted perception information;
第二获取模块,用于获取与所述车载感知信息匹配的歌曲标签;The second acquisition module is used to acquire a song tag matching the vehicle-mounted perception information;
第一调整模块,用于当判断出所述第一歌曲具有所述歌曲标签,则增大所述第一歌曲的偏好度,和/或当判断出所述第二歌曲具有所述歌曲标签,则增大所述第二歌曲的偏好度;The first adjustment module is used to increase the preference of the first song when it is determined that the first song has the song tag, and/or when it is determined that the second song has the song tag, Increase the preference of the second song;
第一推荐模块,用于根据所述第一歌曲的偏好度和/或所述第二歌曲的偏好度,输出歌曲推荐结果。The first recommendation module is configured to output song recommendation results according to the preference of the first song and/or the preference of the second song.
或者,所述推荐单元包括:Or, the recommendation unit includes:
第一计算模块,用于将歌单所包含的若干个第一歌曲的偏好度和/或歌单所包含的若干个第二歌曲的偏好度进行求和处理后,得出所述歌单的推荐度;The first calculation module is used to sum up the preferences of several first songs included in the playlist and/or the preferences of several second songs included in the playlist to obtain the Recommendation
第二推荐模块,用于根据歌单的推荐度,输出歌曲推荐结果。The second recommendation module is used to output song recommendation results according to the recommendation degree of the playlist.
进一步作为本系统的优选实施例,所述第二推荐模块包括:Further as a preferred embodiment of the system, the second recommendation module includes:
第一获取子模块,用于获取车载感知信息;The first acquisition sub-module is used to acquire vehicle sensing information;
第二获取子模块,用于获取与所述车载感知信息匹配的歌单标签;The second acquisition sub-module is used to acquire a playlist tag matching the vehicle-mounted perception information;
第一调整子模块,用于当判断出所述歌单具有所述歌单标签,则增大所述歌单的推荐度;The first adjustment submodule is configured to increase the recommendation degree of the playlist when it is determined that the playlist has the playlist tag;
第一推荐子模块,用于根据所述歌单的推荐度,输出歌曲推荐结果。The first recommendation submodule is used to output song recommendation results according to the recommendation degree of the playlist.
进一步作为本系统的优选实施例,还包括:Further as a preferred embodiment of the system, it also includes:
第二获取单元,用于获取歌单热度、歌单更新的距今时长和/或兴趣标签命中次数;The second acquiring unit is used to acquire the popularity of the playlist, the time since the update of the playlist, and/or the number of hits of interest tags;
第一调整单元,用于根据所述歌单热度、所述歌单更新的距今时长和/或所述兴趣标签命中次数来调整所述歌单的推荐度;The first adjustment unit is configured to adjust the recommendation degree of the playlist according to the popularity of the playlist, the time period since the update of the playlist, and/or the number of hits of the interest tag;
其中,所述歌单热度与所述歌单的推荐度呈正比例关系,所述歌单更新的距今时长与所述歌单的推荐度呈反比例关系,所述兴趣标签命中次数与所述歌单的推荐度呈正比例关系。Wherein, the popularity of the playlist is in a positive relationship with the recommendation degree of the playlist, the time period since the update of the playlist is in an inverse proportional relationship with the recommendation degree of the playlist, and the number of hits of the interest tag is proportional to the song recommendation. The recommendation degree of a single is proportional.
进一步作为本系统的优选实施例,所述歌曲收藏参数包括歌曲收藏的距今时长,其中,所述歌曲收藏的距今时长与所述第一歌曲的偏好度呈反比例关系;Further as a preferred embodiment of the system, the song collection parameter includes the time period of the song collection, wherein the time period of the song collection is in inverse proportion to the preference of the first song;
或,所述歌曲搜索参数包括歌曲搜索的距今时长,其中,所述歌曲搜索的距今时长与所述第一歌曲的偏好度呈反比例关系;Or, the song search parameter includes the time span of the song search, wherein the time span of the song search is in inverse proportion to the preference of the first song;
或,所述歌曲播放参数包括歌曲播放时长和/或歌曲播放的距今时长,其中,所述歌曲播放时长与所述第一歌曲的偏好度呈正比例关系,所述歌曲播放的距今时长与所述第一歌曲的偏好度呈反比例关系。Or, the song playback parameter includes the song playback duration and/or the song playback duration, wherein the song playback duration is proportional to the preference of the first song, and the song playback duration is proportional to The preference of the first song is in an inverse proportional relationship.
进一步作为本系统的优选实施例,还包括:Further as a preferred embodiment of the system, it also includes:
理由输出单元,用于按照所述歌曲收藏参数对应的优先级、所述歌曲搜索参数对应的优先级、所述歌曲播放参数对应的优先级和所述车载感知信息对应的优先级,输出与所述歌曲收藏参数、所述歌曲搜索参数、所述歌曲播放参数和/或所述车载感知信息相对应的歌曲推荐理由信息。The reason output unit is configured to output the priority corresponding to the song collection parameter, the priority corresponding to the song search parameter, the priority corresponding to the song playback parameter, and the priority corresponding to the in-vehicle perception information. The song collection parameter, the song search parameter, the song playback parameter, and/or the song recommendation reason information corresponding to the vehicle-mounted perception information.
上述方法实施例中的内容均适用于本系统实施例中,本系统实施例所具体实现的功能与上述方法实施例相同,并且达到的有益效果与上述方法实施例所达到的有益效果也相同。The contents of the above method embodiments are all applicable to this system embodiment, and the specific functions implemented by this system embodiment are the same as the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
如图4所示,本发明实施例还提供了一种终端,该装置包括:As shown in FIG. 4, an embodiment of the present invention also provides a terminal, and the device includes:
至少一个处理器;At least one processor;
至少一个存储器,用于存储至少一个程序;At least one memory for storing at least one program;
当所述至少一个程序被所述至少一个处理器执行,使得所述至少一个处理器实现所述一种歌曲推荐方法。其中,所述终端可以为由软件和/或硬件构成的客户端和/或服务器。When the at least one program is executed by the at least one processor, the at least one processor implements the song recommendation method. Wherein, the terminal may be a client and/or server constituted by software and/or hardware.
可见,上述方法实施例中的内容均适用于本终端实施例中,本终端实施例所具体实现的功能与上述方法实施例相同,并且达到的有益效果与上述方法实施例所达到的有益效果也相同。此外,本发明实施例还提供了一种存储介质,其中存储有处理器可执行的指令,所述处理器可执行的指令在由处理器执行时用于执行所述一种歌曲推荐方法。同样地,上述方法实施例中的内容均适用于本存储介质实施例中,本存储介质实施例所具体实现的功能与上述方法实施例相同,并且达到的有益效果与上述方法实施例所达到的有益效果也相同。It can be seen that the contents of the above method embodiments are all applicable to this terminal embodiment, and the specific functions implemented by this terminal embodiment are the same as the above method embodiments, and the beneficial effects achieved are the same as those achieved by the above method embodiments. the same. In addition, an embodiment of the present invention also provides a storage medium in which instructions executable by a processor are stored, and the instructions executable by the processor are used to execute the song recommendation method when executed by the processor. Similarly, the content in the above method embodiment is applicable to this storage medium embodiment, and the specific function implemented by this storage medium embodiment is the same as the above method embodiment, and the beneficial effects achieved are the same as those achieved by the above method embodiment. The beneficial effects are also the same.
以上是对本发明的较佳实施进行了具体说明,但本发明创造并不限于所述实施例,熟悉本领域的技术人员在不违背本发明精神的前提下还可做作出种种的等同变形或替换,这些等同的变形或替换均包含在本申请权利要求所限定的范围内。The above is a detailed description of the preferred implementation of the present invention, but the invention is not limited to the described embodiments. Those skilled in the art can make various equivalent modifications or substitutions without departing from the spirit of the present invention. These equivalent modifications or replacements are all included in the scope defined by the claims of this application.

Claims (11)

  1. 一种歌曲推荐方法,其特征在于,包括以下步骤:A song recommendation method is characterized in that it comprises the following steps:
    获取第一歌曲的属性参数;所述属性参数包括歌曲收藏参数、歌曲搜索参数、歌曲播放参数中至少一种;Acquiring attribute parameters of the first song; the attribute parameters include at least one of song collection parameters, song search parameters, and song playback parameters;
    根据所述属性参数,计算出第一歌曲的偏好度;Calculate the preference of the first song according to the attribute parameter;
    根据所述第一歌曲的偏好度,计算出用户对不同歌曲特性的喜爱程度值,根据所述用户对不同歌曲特性的喜爱程度值以及不同歌曲特性对第二歌曲的权重,计算出第二歌曲的偏好度;According to the preference of the first song, the user’s preference for different song characteristics is calculated, and the second song is calculated according to the user’s preference for different song characteristics and the weight of different song characteristics on the second song Preference
    根据所述第一歌曲的偏好度和/或所述第二歌曲的偏好度,输出歌曲推荐结果。According to the preference degree of the first song and/or the preference degree of the second song, the song recommendation result is output.
  2. 根据权利要求1所述一种歌曲推荐方法,其特征在于,所述根据所述第一歌曲的偏好度,计算出用户对不同歌曲特性的喜爱程度值,根据所述用户对不同歌曲特性的喜爱程度值以及不同歌曲特性对第二歌曲的权重,计算出第二歌曲的偏好度这一步骤,其包括:The method for recommending songs according to claim 1, wherein the user’s preference for different song characteristics is calculated according to the preference of the first song, and according to the user’s preference for different song characteristics The degree value and the weight of different song characteristics on the second song, and the step of calculating the second song’s preference includes:
    将不同用户对不同第一歌曲的偏好度置入歌曲偏好度矩阵中,其中,所述歌曲偏好度矩阵的行数表示用户数,所述歌曲偏好度矩阵的列数表示歌曲数;Placing preferences of different users for different first songs into a song preference matrix, wherein the number of rows in the song preference matrix represents the number of users, and the number of columns in the song preference matrix represents the number of songs;
    对所述歌曲偏好度矩阵进行矩阵分解后,得到不同用户对不同歌曲特性的喜爱程度矩阵以及不同歌曲特性对不同歌曲的权重矩阵,其中,所述不同歌曲特性对不同歌曲的权重矩阵中包含有不同歌曲特性对不同第二歌曲的权重;After matrix decomposition of the song preference matrix, different users’ preference matrix for different song characteristics and a weight matrix of different song characteristics for different songs are obtained, wherein the weight matrix of different song characteristics for different songs includes The weight of different song characteristics to different second songs;
    将所述喜爱程度矩阵与所述权重矩阵相乘后,得到歌曲评分矩阵;After multiplying the favorite degree matrix and the weight matrix to obtain a song score matrix;
    从所述歌曲评分矩阵中获取得到所述第二歌曲的偏好度。The preference degree of the second song is obtained from the song score matrix.
  3. 根据权利要求1所述一种歌曲推荐方法,其特征在于,所述根据所述第一歌曲的偏好度和/或所述第二歌曲的偏好度,输出歌曲推荐结果这一步骤,其包括:The song recommendation method according to claim 1, wherein the step of outputting a song recommendation result according to the preference degree of the first song and/or the preference degree of the second song comprises:
    获取车载感知信息;Obtain vehicle perception information;
    获取与所述车载感知信息匹配的歌曲标签;Acquiring a song tag matching the vehicle-mounted perception information;
    当判断出所述第一歌曲具有所述歌曲标签,则增大所述第一歌曲的偏好度,和/或当判断出所述第二歌曲具有所述歌曲标签,则增大所述第二歌曲的偏好度;When it is determined that the first song has the song tag, increase the preference of the first song, and/or when it is determined that the second song has the song tag, increase the second Song preference;
    根据所述第一歌曲的偏好度和/或所述第二歌曲的偏好度,输出歌曲推荐结果。According to the preference degree of the first song and/or the preference degree of the second song, the song recommendation result is output.
  4. 根据权利要求1所述一种歌曲推荐方法,其特征在于,所述根据所述第一歌曲的偏好度和/或所述第二歌曲的偏好度,输出歌曲推荐结果这一步骤,其包括:The song recommendation method according to claim 1, wherein the step of outputting a song recommendation result according to the preference degree of the first song and/or the preference degree of the second song comprises:
    将歌单所包含的若干个第一歌曲的偏好度和/或歌单所包含的若干个第二歌曲的偏好度进行求和处理后,得出所述歌单的推荐度;After summing the preferences of several first songs included in the playlist and/or the preferences of several second songs included in the playlist, the recommendation degree of the playlist is obtained;
    根据歌单的推荐度,输出歌曲推荐结果。According to the recommendation degree of the playlist, the song recommendation result is output.
  5. 根据权利要求4所述一种歌曲推荐方法,其特征在于,所述根据歌单的推荐度,输出歌曲推荐结果这一步骤,其包括:A song recommendation method according to claim 4, wherein the step of outputting the song recommendation result according to the recommendation degree of the playlist comprises:
    获取车载感知信息;Obtain vehicle perception information;
    获取与所述车载感知信息匹配的歌单标签;Acquiring a playlist tag matching the vehicle-mounted perception information;
    当判断出所述歌单具有所述歌单标签,则增大所述歌单的推荐度;When it is determined that the playlist has the playlist tag, increase the recommendation degree of the playlist;
    根据所述歌单的推荐度,输出歌曲推荐结果。According to the recommendation degree of the playlist, the song recommendation result is output.
  6. 根据权利要求4所述一种歌曲推荐方法,其特征在于,还包括以下步骤:A song recommendation method according to claim 4, characterized in that it further comprises the following steps:
    获取歌单热度、歌单更新的距今时长和/或兴趣标签命中次数;Get the popularity of the playlist, the time since the update of the playlist, and/or the number of interest tag hits
    根据所述歌单热度、所述歌单更新的距今时长和/或所述兴趣标签命中次数来调整所述歌单的推荐度;Adjusting the recommendation degree of the playlist according to the popularity of the playlist, the time period since the update of the playlist, and/or the number of hits of the interest tag;
    其中,所述歌单热度与所述歌单的推荐度呈正比例关系,所述歌单更新的距今时长与所述歌单的推荐度呈反比例关系,所述兴趣标签命中次数与所述歌单的推荐度呈正比例关系。Wherein, the popularity of the playlist is in a positive relationship with the recommendation degree of the playlist, the time period since the update of the playlist is in an inverse proportional relationship with the recommendation degree of the playlist, and the number of hits of the interest tag is proportional to the song recommendation. The recommendation degree of a single is proportional.
  7. 根据权利要求1-6任一项所述一种歌曲推荐方法,其特征在于,所述歌曲收藏参数包括歌曲收藏的距今时长,其中,所述歌曲收藏的距今时长与所述第一歌曲的偏好度呈反比例关系;The method for recommending songs according to any one of claims 1-6, wherein the parameters of the song collection include the time length of the song collection, wherein the time length of the song collection is the same as that of the first song. The degree of preference is inversely proportional;
    或,所述歌曲搜索参数包括歌曲搜索的距今时长,其中,所述歌曲搜索的距今时长与所述第一歌曲的偏好度呈反比例关系;Or, the song search parameter includes the time span of the song search, wherein the time span of the song search is in inverse proportion to the preference of the first song;
    或,所述歌曲播放参数包括歌曲播放时长和/或歌曲播放的距今时长,其中,所述歌曲播放时长与所述第一歌曲的偏好度呈正比例关系,所述歌曲播放的距今时长与所述第一歌曲的偏好度呈反比例关系。Or, the song playback parameter includes the song playback duration and/or the song playback duration, wherein the song playback duration is proportional to the preference of the first song, and the song playback duration is proportional to The preference of the first song is in an inverse proportional relationship.
  8. 根据权利要求5所述一种歌曲推荐方法,其特征在于,还包括以下步骤:The method for recommending songs according to claim 5, further comprising the following steps:
    按照所述歌曲收藏参数对应的优先级、所述歌曲搜索参数对应的优先级、所述歌曲播放参数对应的优先级和所述车载感知信息对应的优先级,输出与所述歌曲收藏参数、所述歌曲搜索参数、所述歌曲播放参数和/或所述车载感知信息相对应的歌曲推荐理由信息。According to the priority corresponding to the song collection parameter, the priority corresponding to the song search parameter, the priority corresponding to the song playback parameter, and the priority corresponding to the in-vehicle perception information, output the song collection parameters and the priority The song search parameter, the song playback parameter and/or the song recommendation reason information corresponding to the vehicle-mounted perception information.
  9. 一种歌曲推荐系统,其特征在于,包括:A song recommendation system is characterized in that it includes:
    第一获取单元,用于获取第一歌曲的属性参数;所述属性参数包括歌曲收藏参数、歌曲搜索参数、歌曲播放参数中至少一种;The first obtaining unit is configured to obtain attribute parameters of the first song; the attribute parameters include at least one of song collection parameters, song search parameters, and song playback parameters;
    第一计算单元,用于根据所述属性参数,计算出第一歌曲的偏好度;The first calculation unit is configured to calculate the preference degree of the first song according to the attribute parameter;
    第二计算单元,用于根据所述第一歌曲的偏好度,计算出用户对不同歌曲特性的喜爱程度值,根据所述用户对不同歌曲特性的喜爱程度值以及不同歌曲特性对第二歌曲的权重,计算出第二歌曲的偏好度;The second calculation unit is used to calculate the user’s preference for different song characteristics according to the preference of the first song, and according to the user’s preference for different song characteristics and the preference of different song characteristics for the second song Weight, calculate the preference of the second song;
    推荐单元,用于根据所述第一歌曲的偏好度和/或所述第二歌曲的偏好度,输出歌曲推荐结果。The recommendation unit is configured to output song recommendation results according to the preference degree of the first song and/or the preference degree of the second song.
  10. 一种终端,其特征在于:该装置包括:A terminal, characterized in that: the device includes:
    至少一个处理器;At least one processor;
    至少一个存储器,用于存储至少一个程序;At least one memory for storing at least one program;
    当所述至少一个程序被所述至少一个处理器执行,使得所述至少一个处理器实现如权利要求1-8任一项所述一种歌曲推荐方法。When the at least one program is executed by the at least one processor, the at least one processor implements the song recommendation method according to any one of claims 1-8.
  11. 一种存储介质,其中存储有处理器可执行的指令,其特征在于,所述处理器可执行的指令在由处理器执行时用于执行如权利要求1-8任一项所述一种歌曲推荐方法。A storage medium storing instructions executable by a processor, wherein the instructions executable by the processor are used to execute a song according to any one of claims 1-8 when executed by the processor Recommended method.
PCT/CN2019/093464 2019-01-24 2019-06-28 Song recommendation method and system, terminal and storage medium WO2020151189A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910068899.3A CN109885719A (en) 2019-01-24 2019-01-24 A kind of song recommendations method, system, terminal and storage medium
CN201910068899.3 2019-01-24

Publications (1)

Publication Number Publication Date
WO2020151189A1 true WO2020151189A1 (en) 2020-07-30

Family

ID=66926784

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/093464 WO2020151189A1 (en) 2019-01-24 2019-06-28 Song recommendation method and system, terminal and storage medium

Country Status (2)

Country Link
CN (1) CN109885719A (en)
WO (1) WO2020151189A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109885719A (en) * 2019-01-24 2019-06-14 广州小鹏汽车科技有限公司 A kind of song recommendations method, system, terminal and storage medium
CN113127674B (en) * 2019-12-31 2023-07-21 中移(成都)信息通信科技有限公司 Song list recommendation method and device, electronic equipment and computer storage medium
CN111626615A (en) * 2020-05-27 2020-09-04 腾讯音乐娱乐科技(深圳)有限公司 Method, device and computer storage medium for determining singing order score
CN112201234A (en) * 2020-09-04 2021-01-08 广州大学 Voice song-on-demand method and device based on multiple resources
CN112417204B (en) * 2020-12-16 2024-02-13 吉林大学 Music recommendation system based on real-time road conditions

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1460373A (en) * 2001-04-03 2003-12-03 皇家菲利浦电子有限公司 Method and apparatus for generating recommendations based on user preferences and environmental characteristics
CN105868330A (en) * 2016-03-28 2016-08-17 乐视控股(北京)有限公司 Music recommendation method and device of internet of vehicles
CN107967280A (en) * 2016-10-19 2018-04-27 北京酷我科技有限公司 A kind of method and system of label recommendations song
CN108540815A (en) * 2017-03-02 2018-09-14 腾讯科技(深圳)有限公司 Multimedia content playback method, apparatus and system
CN108629047A (en) * 2018-05-14 2018-10-09 平安科技(深圳)有限公司 A kind of song list generation method and terminal device
CN109885719A (en) * 2019-01-24 2019-06-14 广州小鹏汽车科技有限公司 A kind of song recommendations method, system, terminal and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10165070B2 (en) * 2014-10-03 2018-12-25 Drive Time Metrics, Inc. Cross channel in-vehicle media consumption measurement and analysis
CN106126591B (en) * 2016-06-16 2019-09-20 广东顺德中山大学卡内基梅隆大学国际联合研究院 Music data recommended method and system
CN107885745B (en) * 2016-09-29 2020-09-08 亿览在线网络技术(北京)有限公司 Song recommendation method and device
CN107800793A (en) * 2017-10-27 2018-03-13 江苏大学 Car networking environment down train music active pushing system
CN108304441B (en) * 2017-11-14 2022-04-26 腾讯科技(深圳)有限公司 Network resource recommendation method and device, electronic equipment, server and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1460373A (en) * 2001-04-03 2003-12-03 皇家菲利浦电子有限公司 Method and apparatus for generating recommendations based on user preferences and environmental characteristics
CN105868330A (en) * 2016-03-28 2016-08-17 乐视控股(北京)有限公司 Music recommendation method and device of internet of vehicles
CN107967280A (en) * 2016-10-19 2018-04-27 北京酷我科技有限公司 A kind of method and system of label recommendations song
CN108540815A (en) * 2017-03-02 2018-09-14 腾讯科技(深圳)有限公司 Multimedia content playback method, apparatus and system
CN108629047A (en) * 2018-05-14 2018-10-09 平安科技(深圳)有限公司 A kind of song list generation method and terminal device
CN109885719A (en) * 2019-01-24 2019-06-14 广州小鹏汽车科技有限公司 A kind of song recommendations method, system, terminal and storage medium

Also Published As

Publication number Publication date
CN109885719A (en) 2019-06-14

Similar Documents

Publication Publication Date Title
WO2020151189A1 (en) Song recommendation method and system, terminal and storage medium
US11386137B2 (en) Dynamic feedback in a recommendation system
US20230328051A1 (en) Methods, systems, and media for presenting information related to an event based on metadata
US8214318B2 (en) Apparatus, method and computer program for content recommendation and recording medium
US8200689B2 (en) Apparatus, method and computer program for content recommendation and recording medium
US9208251B2 (en) Computer-based evaluation tool for selecting personalized content for users
CN104899302B (en) Recommend the method and apparatus of music to user
US8112418B2 (en) Generating audio annotations for search and retrieval
US20140025690A1 (en) Content ranking system and method
CN109271574A (en) A kind of hot word recommended method and device
US10380649B2 (en) System and method for logistic matrix factorization of implicit feedback data, and application to media environments
US20150312603A1 (en) Recommending media items based on take rate signals
CN111771384A (en) Automatically adjusting playback speed and contextual information
US7629529B2 (en) Music-piece retrieval and playback apparatus, and related method
US20070276826A1 (en) Aggregation of affinity lists
CN107885745A (en) A kind of song recommendations method and device
CN103942328B (en) A kind of video retrieval method and video-unit
US20160086086A1 (en) Multi-media content-recommender system that learns how to elicit user preferences
KR20080050902A (en) Method and system of recommending a music using user model, and update method of a conditional user model
CN108140034B (en) Selecting content items based on received terms using a topic model
EP2096558A1 (en) Method for generating an ordered list of content items
CN112800270B (en) Music recommendation method and system based on music labels and time information
CN112836082B (en) Method and device for generating song list, electronic equipment and storage medium
WO2008032037A1 (en) Method and system for filtering and searching data using word frequencies
JP5727846B2 (en) Series item group extraction system, series item group extraction method, and series item group extraction program

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19911676

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19911676

Country of ref document: EP

Kind code of ref document: A1