Method, device and apparatus for recommending media data
By determining the media data and recommendation areas to be recommended locally in the terminal and recommending based on the location and time of the terminal, the problem of user privacy protection in music applications is solved, and more efficient user data security is achieved.
Patent Information
- Application Number
- CN202011122400.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-10-20
- Publication Date
- 2025-01-14
- Estimated Expiration
- 2040-10-20
AI Technical Summary
Existing music applications require servers to store users' historical playback operation data for a long time, which affects user privacy protection.
By determining the media data to be recommended and the corresponding recommended time period and recommendation area locally on the terminal, recommendations are made based on the actual location and time of the terminal, so as to avoid storing the user's historical playback operation data in the server.
It realizes better protection of user privacy, completes recommended operations locally through the terminal, avoids data storage on the server, and improves the security of user data.
Smart Images

Figure CN112269896B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a method, device and apparatus for recommending media data. Background Art
[0002] With the popularity of mobile phones, the use of music applications is becoming more and more widespread, and many users use music applications to listen to song audio anytime and anywhere.
[0003] Music applications generally have a function of recommending song audio or song audio lists (also called playlists) to users. The server usually analyzes the song audio or song audio lists that users frequently listen to, searches the database for song audio or song audio lists with high similarity, and recommends them to users.
[0004] In the process of implementing this application, the inventors found that the related technology has at least the following problems:
[0005] The above method requires the server to store the user's historical playback operation data for a long time, which is not conducive to the protection of user privacy. Summary of the invention
[0006] The embodiments of the present application provide a method, apparatus, and device for recommending media data, which can solve the problem of user privacy protection being affected.
[0007] In a first aspect, a method for recommending media data is provided, the method comprising:
[0008] Determine, based on the playback time and playback position of the media data when the terminal plays the media data, at least one media data to be recommended and the corresponding recommended time period and recommended area, and store them in the terminal;
[0009] When a recommendation trigger event is detected, the current first time and first position are obtained;
[0010] Determining target media data corresponding to the first time and the first location based on a recommended time period and a recommended area corresponding to the at least one media data to be recommended;
[0011] The recommendation information corresponding to the target media data is displayed.
[0012] Optionally, the determining, based on the playback time and playback position when the terminal plays the media data, at least one media data to be recommended and the corresponding recommended time period and recommended area includes:
[0013] When the number of times a terminal plays the first media data in a target area within a target time period reaches a number threshold, the first media data is recorded as media data to be recommended, the target time period is recorded as a recommended time period corresponding to the media data to be recommended, and the target area is recorded as a recommended area corresponding to the media data to be recommended.
[0014] Optionally, when the number of times that the terminal plays the first media data in the target area and within the target time period reaches a number threshold, recording the first media data as the media data to be recommended, recording the target time period as a recommended time period corresponding to the media data to be recommended, and recording the target area as a recommended area corresponding to the media data to be recommended, includes:
[0015] When the terminal plays the first media data, determine the current second time and the second position, determine a target time period to which the second time belongs from among the preset multiple time periods, determine a target area to which the second position belongs from among the preset multiple areas, and record the number of times the terminal plays the first media data in the target area within the target time period plus 1;
[0016] When the number reaches a number threshold, the first media data is recorded as the media data to be recommended, the target time period is recorded as the recommended time period corresponding to the media data to be recommended, and the target area is recorded as the recommended area corresponding to the media data to be recommended.
[0017] Optionally, the determining, based on the recommended time period and the recommended area corresponding to the at least one media data to be recommended, the target media data corresponding to the first time and the first location includes:
[0018] Determine, based on a recommended time period and a recommended area corresponding to the at least one media data to be recommended, candidate media data corresponding to a target recommended time period to which the first time belongs and a target recommended area to which the first position belongs;
[0019] Based on a preset selection rule, target media data is selected from the candidate media data.
[0020] Optionally, the selecting target media data from the candidate media data based on a preset selection rule includes:
[0021] Among the candidate media data, target media data with the largest number of plays is selected.
[0022] Optionally, the selecting target media data from the candidate media data based on a preset selection rule includes:
[0023] Based on the type and the number of times each candidate media data is played, determining the total number of times each type of media data is played;
[0024] Among the candidate media data corresponding to the target type with the largest total number of playbacks, the target media data with the largest number of playbacks is selected.
[0025] Optionally, after displaying the recommendation information corresponding to the target media data, the method further includes:
[0026] When a trigger instruction corresponding to the recommendation information is received, the target media data is played.
[0027] Optionally, the media data is a song audio list or song audio.
[0028] In a second aspect, a device for recommending media data is provided, the device comprising:
[0029] A storage module, configured to determine at least one media data to be recommended and a corresponding recommended time period and recommended area based on the playing time and playing position of the media data played by the terminal, and store the determined data in the terminal;
[0030] An acquisition module, used to acquire the current first time and first position when a recommendation triggering event is detected;
[0031] a determination module, configured to determine target media data corresponding to the first time and the first location based on a recommendation time period and a recommendation area corresponding to the at least one media data to be recommended;
[0032] The display module is used to display the recommendation information corresponding to the target media data.
[0033] Optionally, the storage module is used to:
[0034] When the number of times a terminal plays the first media data in a target area within a target time period reaches a number threshold, the first media data is recorded as media data to be recommended, the target time period is recorded as a recommended time period corresponding to the media data to be recommended, and the target area is recorded as a recommended area corresponding to the media data to be recommended.
[0035] Optionally, the storage module is used to:
[0036] When the terminal plays the first media data, determine the current second time and the second position, determine a target time period to which the second time belongs from among the preset multiple time periods, determine a target area to which the second position belongs from among the preset multiple areas, and record the number of times the terminal plays the first media data in the target area within the target time period plus 1;
[0037] When the number reaches a number threshold, the first media data is recorded as the media data to be recommended, the target time period is recorded as the recommended time period corresponding to the media data to be recommended, and the target area is recorded as the recommended area corresponding to the media data to be recommended.
[0038] Optionally, the determining module is used to:
[0039] Determine, based on a recommended time period and a recommended area corresponding to the at least one media data to be recommended, candidate media data corresponding to a target recommended time period to which the first time belongs and a target recommended area to which the first position belongs;
[0040] Based on a preset selection rule, target media data is selected from the candidate media data.
[0041] Optionally, the determining module is used to:
[0042] Among the candidate media data, target media data with the largest number of plays is selected.
[0043] Optionally, the determining module is used to:
[0044] Based on the type and the number of times each candidate media data is played, determining the total number of times each type of media data is played;
[0045] Among the candidate media data corresponding to the target type with the largest total number of playbacks, the target media data with the largest number of playbacks is selected.
[0046] Optionally, the device further comprises:
[0047] The playing module is used to play the target media data upon receiving a trigger instruction corresponding to the recommendation information.
[0048] Optionally, the media data is a song audio list or song audio.
[0049] According to a third aspect, a computer device is provided, comprising a processor and a memory, wherein the memory stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the operation performed by the method for recommending media data according to the first aspect.
[0050] According to a fourth aspect, a computer-readable storage medium is provided, wherein at least one instruction is stored in the storage medium, and the at least one instruction is loaded and executed by a processor to implement the operation performed by the method for recommending media data as described in the first aspect.
[0051] The beneficial effects of the technical solution provided by the embodiment of the present application are:
[0052] In the embodiment of the present application, based on the user's historical playback operation data, at least one media data to be recommended and the corresponding recommended time period and recommended area are determined and stored locally in the terminal. Subsequently, according to the actual location and time of the terminal, the corresponding media data is searched for recommendation. In this way, the recommendation can be completed through the local data of the terminal, without storing the user's historical playback operation data in the server, which is more conducive to the protection of user privacy. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0054] Figure 1 is a flowchart of a method for recommending media data provided by an embodiment of the present application;
[0055] Figure 2 This is an example of the method processing process provided by the embodiment of the present application;
[0056] Figure 3 is a schematic diagram of the structure of a device for recommending media data provided in an embodiment of the present application;
[0057] Figure 4 It is a schematic diagram of the structure of the terminal provided in the embodiment of the present application. DETAILED DESCRIPTION
[0058] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0059] The method for recommending media data provided in the present application can be implemented by a terminal. The terminal can be a user device such as a mobile phone, a tablet computer, a smart wearable device, a desktop computer, a laptop computer, etc. The terminal can be installed with an application with a media playback function, such as a music application, etc., and the application can be run in a state with a network service or in a state without a network service. The terminal can have a processor, a memory, a screen, an audio output component, etc. The processor can be a CPU (central processing unit), which can be used to determine time and location, search for media data, and other processing. The memory can include a non-volatile memory and a volatile memory, etc. The memory can be used to store data required by the processor processing process, data generated by the processing process, and processing result data, such as media data to be recommended and the corresponding recommended time period and recommended area, etc. The screen can be a touch screen, etc., which can be used to display the interface of the application, can be used to display a list of media data, and can also display the playback interface of media data, etc. The audio output component can be an earphone, an external speaker or a speaker, etc., which can be used to play audio. The terminal can also include components such as a camera, a microphone, and an antenna.
[0060] The user can use the above application installed in the terminal to play media data in life and work. The application has a recommendation function, which can recommend specific media data to the user at a specific time and place. The media data in the embodiment of the present application can be song audio, song audio list, video, video list, etc. Here, song audio and song audio list are used as an example to illustrate the solution, and the application is a music application. Other situations are similar, and the embodiments of the present application will not be repeated.
[0061] Figure 1 is a flow chart of a method for recommending media data provided by an embodiment of the present application. Figure 1 , the embodiment comprises:
[0062] Step 101 : based on the playing time and playing position of the media data played by the terminal, at least one media data to be recommended and the corresponding recommended time period and recommended area are determined and stored in the terminal.
[0063] The media data takes a song audio list as an example, which can also be called a playlist. A playlist generally consists of multiple song audio options and also records relevant information about the song audio, such as song name, singer, album, rating, etc. When a user clicks to play a playlist, the terminal will retrieve the song audio file corresponding to the corresponding option locally or from the server and play it.
[0064] In implementation, the user can run the music application on the terminal and search for the song audio that he wants to play in the music application. At the same time, the music application also provides users with a variety of playlists for selection. Some of these playlists are edited by staff, some are edited by different users on the network, and some are edited by local users themselves. Generally, most of the song audios in the same playlist can have the same characteristics, which can be style, age, emotional type, emotional type, etc. For example, most of the song audios in the same playlist have the same style, such as rock, classical or jazz. Users can choose a playlist suitable for themselves based on their current situation. For example, if you want to relax your brain at a certain time during work, you can choose a lyrical playlist to play. For example, when running, you can choose some playlists with a stronger sense of rhythm to play. For example, when shopping, you can choose some cheerful playlists to play, and so on.
[0065] When the user plays a playlist, the music application records the play time and play location. The play time can be a specific clock, and the play location can be the terminal's location information. The music application can record the playlist that is repeatedly played at the same play time and the same play location as the playlist to be recommended, and record the corresponding recommended time period and recommended area.
[0066] Optionally, the number of times the media data is repeatedly played may be counted in units of time periods and geographical areas to determine the media data to be recommended. Accordingly, the processing of step 101 may be as follows:
[0067] When the number of times the terminal plays the first media data in the target area and the target time period reaches a number threshold, the first media data is recorded as the media data to be recommended, the target time period is recorded as the recommended time period corresponding to the media data to be recommended, and the target area is recorded as the recommended area corresponding to the media data to be recommended.
[0068] It is understandable that in other embodiments, the media data may also be a single song audio, etc., and its implementation process is similar to the above description and will not be repeated here.
[0069] There are many different ways that a music application can perform the above counting:
[0070] Method 1 is to perform a frequency statistics every preset period. If the number of times a certain media data is played in the same area and the same time period reaches a frequency threshold, the first media data is recorded as the media data to be recommended, the target time period is recorded as the recommended time period corresponding to the media data to be recommended, and the target area is recorded as the recommended area corresponding to the media data to be recommended.
[0071] Method 2, determines the time and position and counts the number of times each time the media is played, and the corresponding processing can be as follows: when the terminal plays the first media data, determines the current second time and second position, determines the target time period to which the second time belongs among the preset multiple time periods, determines the target area to which the second position belongs among the preset multiple areas, and records the number of times the terminal plays the first media data in the target area and within the target time period plus 1; when the number reaches a threshold value, records the first media data as the media data to be recommended, records the target time period as the recommended time period corresponding to the media data to be recommended, and records the target area as the recommended area corresponding to the media data to be recommended.
[0072] In implementation, a plurality of time periods may be pre-stored in the music application, for example, a day may be divided into 24 time periods according to hours, or a day may be divided into time periods larger or smaller than hours, or a day may be divided into 7:00 to 8:00, 8:00 to 9:00, 9:00 to 12:00, 12:00 to 13:00, 13:00 to 18:00, 18:00 to 19:00, 19:00 to 23:00, 23:00 to 7:00 the next day according to the work and rest habits of ordinary people. In addition, a plurality of regions may be pre-stored, and these regions may be divided according to geographical units, such as a certain building, a certain street, a certain community, a certain shopping mall, etc., or other division methods may be used to obtain a plurality of regions. This division work may be pre-performed by a technician, and the divided plurality of time periods and a plurality of regions may be stored in the music application. Of course, a corresponding function interface may be set in the music application, and the user may set and store the interface in the music application.
[0073] A play count statistics table can be established in the music application, and the corresponding relationship between the playlist, time period, region and play count can be stored in the play count statistics table, as shown in Table 1. The play count statistics table is used to count the number of times a user plays the same playlist in the same time period and the same region.
[0074] Table 1
[0075] Playlist Time period area Number of plays Songs of the Faraway Place 15:00-16:00 Global Center 3 Let's blast together 19:00-20:00 Taikoo Fitness Center 4 …… …… …… ……
[0076] A recommended playlist table may also be established in the music application, in which the correspondence between the playlist to be recommended, the recommended time period and the recommended area may be stored, as shown in Table 2.
[0077] Table 2
[0078] Recommended playlists Recommended time period Recommended areas Morning Sunshine Songs 7:00-8:00 Anxinjiayuan Night Time Songs 21:00~22:00 Anxinjiayuan …… …… ……
[0079] When the user operates the music application to play a certain playlist, the music application can request the system program to query the current time (i.e., the second time mentioned above) and the location of the terminal (i.e., the second location mentioned above), and then query the target time period to which the current time belongs in the stored multiple time periods, and query the target area to which the current location belongs in the stored multiple areas. Further, the above-mentioned play count statistics table is searched to see whether the corresponding items of the playlist, target time period, and target area are included. If the corresponding items are included, the play count corresponding to the corresponding items is increased by 1. If the corresponding items are not included, the corresponding items of the playlist, target time period, and target area are added to the play count statistics table, and the play count corresponding to the corresponding items is recorded as 1.
[0080] When the number of plays of a corresponding item in the play count statistics table is greater than or equal to the preset number threshold, the playlist, time period and area in the corresponding item are added to the recommended playlist table as the playlist to be recommended, the recommended time period and the recommended area. Figure 2 As shown, the number threshold is 5. When playlist A is played 5 times in the same area and time period, it will be added to the recommended playlist table.
[0081] If the playlists of two corresponding items in the play count statistics table are the same, the area is the same, and the time periods are adjacent, the two corresponding items can be merged, and the playlists and areas of the merged corresponding items are the playlists and areas of the corresponding items before the merge, and the time period of the merged corresponding items is the merged time period of the two adjacent time periods, and the play count of the merged corresponding items is the sum of the play counts of the two corresponding items before the merge. If the playlists of two corresponding items in the play count statistics table are the same, the time period is the same, and the area is adjacent, the two corresponding items can be merged, and the playlists and time period of the merged corresponding items are the playlists and areas of the corresponding items before the merge, and the area of the merged corresponding items is the merged area of the two adjacent areas, and the play count of the merged corresponding items is the sum of the play counts of the two corresponding items before the merge. If the playlists of two corresponding items in the play count statistics table are the same, the time periods are adjacent, and the areas are adjacent, the two corresponding items can be merged. The playlist of the corresponding item after the merger is the playlist of the corresponding item before the merger, the time period of the corresponding item after the merger is the merged time period of the two adjacent time periods, the area of the corresponding item after the merger is the merged area of the two adjacent areas, and the play count of the corresponding item after the merger is the sum of the play counts of the two corresponding items before the merger.
[0082] Optionally, among the stored multiple media data to be recommended and the corresponding recommended time periods and recommended areas, if the following situations exist, some recommended time periods or recommended areas may be merged.
[0083] Case 1: among the multiple stored media data to be recommended and the corresponding recommended time periods and recommended areas, if there is first media data corresponding to the first recommended time period and the first recommended area, and there is first media data corresponding to the second recommended time period and the first recommended area, and the first recommended time period and the second recommended time period are adjacent time periods, then a merged recommended time period of the first recommended time period and the second recommended time period is determined, and among the multiple stored media data to be recommended and the corresponding recommended time periods and recommended areas, the corresponding items of the first media data, the first recommended time period and the first recommended area, as well as the corresponding items of the first media data, the second recommended time period and the first recommended area, are replaced with the corresponding items of the first media data, the merged recommended time period and the first recommended area.
[0084] Case 2: Among the multiple stored media data to be recommended and the corresponding recommended time periods and recommended areas, if there is first media data corresponding to the first recommended time period and the first recommended area, and there is first media data corresponding to the first recommended time period and the second recommended area, and the first recommended area and the second recommended area are adjacent areas, then a merged recommended area of the first recommended area and the second recommended area is determined, and among the multiple stored media data to be recommended and the corresponding recommended time periods and recommended areas, the corresponding items of the first media data, the first recommended time period and the first recommended area, as well as the corresponding items of the first media data, the first recommended time period and the second recommended area, are replaced with the corresponding items of the first media data, the first recommended time period and the merged recommended area.
[0085] Case three, among the multiple stored media data to be recommended and the corresponding recommended time periods and recommended areas, if there is first media data corresponding to the first recommended time period and the first recommended area, and there is first media data corresponding to the second recommended time period and the second recommended area, and the first recommended time period and the second recommended time period are adjacent time periods, and the first recommended area and the second recommended area are adjacent areas, then a merged recommended time period of the first recommended time period and the second recommended time period is determined, and a merged recommended area of the first recommended area and the second recommended area is determined, and among the multiple stored media data to be recommended and the corresponding recommended time periods and recommended areas, the corresponding items of the first media data, the first recommended time period and the first recommended area, and the corresponding items of the first media data, the second recommended time period and the second recommended area are replaced with the corresponding items of the first media data, the merged recommended time period and the merged recommended area.
[0086] Step 102: when a recommendation triggering event is detected, obtain the current first time and first position.
[0087] In implementation, the recommendation triggering events can be varied, and can be one or more of the following events: application startup, entering or returning to the application main page, the time for which the song audio has not been played reaches a preset time, the song audio has been played and there is no song audio to be played, etc.
[0088] After the user has performed a certain amount of historical operations, the music application creates the above-mentioned recommended playlist table and continuously enriches the content in the table. In this way, when the user subsequently uses the music application, the music application can recommend playlists to the user based on the recommended playlist table.
[0089] The user starts the music application in a certain time period, and the music application detects the occurrence of a recommendation trigger event. The music application can query the system program for the current time (ie, the first time mentioned above) and the location of the terminal (ie, the first location mentioned above).
[0090] Step 103: Determine target media data corresponding to the first time and the first position based on a recommended time period and a recommended area corresponding to at least one media data to be recommended.
[0091] The target media data is the found media data to be recommended to the user.
[0092] For example, Figure 2 As shown, when a recommendation trigger event is detected, the current time 15:19 and the current location Global Center are obtained, and then the corresponding playlist A is found in the recommended playlist table.
[0093] Optionally, based on a recommended time period and a recommended area corresponding to at least one media data to be recommended, candidate media data corresponding to a target recommended time period of the first time and a target recommended area of the first position can be determined; and based on a preset selection rule, target media data can be selected from the candidate media data.
[0094] In implementation, after determining the current first time and first position, the music application can search in the above-mentioned recommended playlist table to confirm whether there is media data to be recommended corresponding to the target recommendation time period to which the first time belongs and the target recommendation area to which the first position belongs. If so, the media data is determined as candidate media data. If there is only one candidate media data, it can be directly determined as the target media data. If there are multiple candidate media data, further selection can be made among them to obtain the target media data.
[0095] There are many possibilities for the above selection rules, and several rules are given below.
[0096] Rule 1: Select the target media data with the most playback times from the candidate media data.
[0097] In implementation, the number of times each playlist is played in the corresponding time period and area can be determined based on the data in the play count statistics table. For each candidate playlist determined above, its number of plays in the target area during the target recommendation time period can be determined, and the number of plays of each candidate playlist can be compared, and the candidate playlist with the most plays can be selected as the target playlist for recommendation.
[0098] Rule 2: Based on the type and number of plays of each candidate media data, determine the total number of plays corresponding to each type; among the candidate media data corresponding to the target type with the largest total number of plays, select the target media data with the largest number of plays.
[0099] In implementation, the number of times each playlist is played in the corresponding time period and area can be determined based on the data in the play count statistics table. For each candidate playlist determined above, the number of times it is played in the target area within the target recommendation time period can be determined. In addition, the type of each candidate playlist can be queried. The number of times the candidate playlists of the same type are played is then added together to obtain the total number of plays corresponding to each type. Then the target type with the largest total number of plays is determined, and then among the candidate playlists of the target type, the candidate playlist with the largest number of plays is selected as the target playlist for recommendation.
[0100] In addition, in the case where there are multiple candidate song lists, all of the multiple candidate song lists can be used as target song lists for recommendation.
[0101] Step 104: Display recommendation information corresponding to the target media data.
[0102] In implementation, the song application may display a song list recommendation window, in which the recommendation information of the target song list is displayed. The recommendation information may include one or more of the following information: the name of the target song list, the type of the target song list, the name of some or all of the song audio in the target song list, etc. The song list recommendation window may also be provided with a play control and a cancel control. For example, Figure 2 As shown, after the corresponding playlist A is found in the recommended playlist table, a playlist recommendation window may be displayed, in which the recommendation information corresponding to playlist A is displayed, namely, "Do you want to listen to 'playlist A' at this time and place?".
[0103] If the user subsequently wants to play the recommended target playlist, he can click the play control. At this time, the terminal will receive the trigger instruction corresponding to the recommendation information and play the target playlist.
[0104] The above-mentioned media data to be recommended, recommended time period and recommended location are stored locally in the terminal. Of course, they can also be stored in the server, because the media data to be recommended is only a part of all the media data played by the user in the past. Therefore, even if it is stored in the server, it can protect the user's privacy to a certain extent compared with the relevant technology. The corresponding processing can be that the terminal sends a recommendation information storage request to the server, wherein the recommendation information storage request carries the current account identifier of the terminal and at least one media data to be recommended and the corresponding recommended time period and recommended area.
[0105] All the above optional technical solutions can be arbitrarily combined to form optional embodiments of the present disclosure, and will not be described in detail here.
[0106] In the embodiment of the present application, based on the user's historical playback operation data, at least one media data to be recommended and the corresponding recommended time period and recommended area are determined and stored locally in the terminal. Subsequently, according to the actual location and time of the terminal, the corresponding media data is searched for recommendation. In this way, the recommendation can be completed through the local data of the terminal, without storing the user's historical playback operation data in the server, which is more conducive to the protection of user privacy.
[0107] The embodiment of the present application provides a device for recommending media data, which may be the terminal in the above embodiment. Figure 3 As shown, the device comprises:
[0108] The storage module 310 is used to determine at least one media data to be recommended and the corresponding recommended time period and recommended area based on the playback time and playback position when the terminal plays the media data, and store them in the terminal;
[0109] An acquisition module 320 is used to acquire the current first time and first position when a recommendation triggering event is detected;
[0110] A determination module 330, configured to determine target media data corresponding to the first time and the first location based on a recommendation time period and a recommendation area corresponding to the at least one media data to be recommended;
[0111] The display module 340 is used to display the recommendation information corresponding to the target media data.
[0112] Optionally, the storage module 310 is used to:
[0113] When the number of times a terminal plays the first media data in a target area within a target time period reaches a number threshold, the first media data is recorded as media data to be recommended, the target time period is recorded as a recommended time period corresponding to the media data to be recommended, and the target area is recorded as a recommended area corresponding to the media data to be recommended.
[0114] Optionally, the storage module 310 is used to:
[0115] When the terminal plays the first media data, determine the current second time and the second position, determine a target time period to which the second time belongs from among the preset multiple time periods, determine a target area to which the second position belongs from among the preset multiple areas, and record the number of times the terminal plays the first media data in the target area within the target time period plus 1;
[0116] When the number reaches a number threshold, the first media data is recorded as the media data to be recommended, the target time period is recorded as the recommended time period corresponding to the media data to be recommended, and the target area is recorded as the recommended area corresponding to the media data to be recommended.
[0117] Optionally, the determining module 330 is used to:
[0118] Determine, based on a recommended time period and a recommended area corresponding to the at least one media data to be recommended, candidate media data corresponding to a target recommended time period to which the first time belongs and a target recommended area to which the first position belongs;
[0119] Based on a preset selection rule, target media data is selected from the candidate media data.
[0120] Optionally, the determining module 330 is used to:
[0121] Among the candidate media data, target media data with the largest number of plays is selected.
[0122] Optionally, the determining module 330 is used to:
[0123] Based on the type and the number of times each candidate media data is played, determining the total number of times each type of media data is played;
[0124] Among the candidate media data corresponding to the target type with the largest total number of playbacks, the target media data with the largest number of playbacks is selected.
[0125] Optionally, the device further comprises:
[0126] The playing module is used to play the target media data upon receiving a trigger instruction corresponding to the recommendation information.
[0127] Optionally, the media data is a song audio list or song audio.
[0128] In the embodiment of the present application, based on the user's historical playback operation data, at least one media data to be recommended and the corresponding recommended time period and recommended area are determined and stored locally in the terminal. Subsequently, according to the actual location and time of the terminal, the corresponding media data is searched for recommendation. In this way, the recommendation can be completed through the local data of the terminal, without storing the user's historical playback operation data in the server, which is more conducive to the protection of user privacy.
[0129] It should be noted that: the device for recommending media data provided in the above embodiment only uses the division of the above functional modules as an example when recommending media data. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device for recommending media data provided in the above embodiment and the method embodiment for recommending media data belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.
[0130] Figure 4 The structure block diagram of a terminal 400 provided by an exemplary embodiment of the present application is shown. The terminal 400 may be: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III), an MP4 (Moving Picture Experts Group Audio Layer IV), a laptop computer or a desktop computer. The terminal 400 may also be called a user device, a portable terminal, a laptop terminal, a desktop terminal or other names.
[0131] Typically, the terminal 400 includes a processor 401 and a memory 402 .
[0132] The processor 401 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 401 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 401 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 401 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 401 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.
[0133] The memory 402 may include one or more computer-readable storage media, which may be non-transitory. The memory 402 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 402 is used to store at least one instruction, which is used to be executed by the processor 401 to implement the recommended media data method provided in the method embodiment of the present application.
[0134] In some embodiments, the terminal 400 may further optionally include: a peripheral device interface 403 and at least one peripheral device. The processor 401, the memory 402 and the peripheral device interface 403 may be connected via a bus or a signal line. Each peripheral device may be connected to the peripheral device interface 403 via a bus, a signal line or a circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 404, a touch display screen 405, a camera 406, an audio circuit 407, a positioning component 408 and a power supply 409.
[0135] The peripheral device interface 403 may be used to connect at least one peripheral device related to I / O (Input / Output) to the processor 401 and the memory 402. In some embodiments, the processor 401, the memory 402, and the peripheral device interface 403 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 401, the memory 402, and the peripheral device interface 403 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.
[0136] The radio frequency circuit 404 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 404 communicates with the communication network and other communication devices through electromagnetic signals. The radio frequency circuit 404 converts the electrical signal into an electromagnetic signal for transmission, or converts the received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 404 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, and the like. The radio frequency circuit 404 can communicate with other terminals through at least one wireless communication protocol. The wireless communication protocol includes, but is not limited to: a metropolitan area network, various generations of mobile communication networks (2G, 3G, 4G and 5G), a wireless local area network and / or a WiFi (Wireless Fidelity) network. In some embodiments, the radio frequency circuit 404 may also include circuits related to NFC (Near Field Communication), which is not limited in this application.
[0137] The display screen 405 is used to display the UI (User Interface). The UI may include graphics, text, icons, videos and any combination thereof. When the display screen 405 is a touch display screen, the display screen 405 also has the ability to collect touch signals on the surface or above the surface of the display screen 405. The touch signal can be input to the processor 401 as a control signal for processing. At this time, the display screen 405 can also be used to provide virtual buttons and / or virtual keyboards, also known as soft buttons and / or soft keyboards. In some embodiments, the display screen 405 can be one, and the front panel of the terminal 400 is set; in other embodiments, the display screen 405 can be at least two, which are respectively set on different surfaces of the terminal 400 or are folded; in some other embodiments, the display screen 405 can be a flexible display screen, which is set on the curved surface or folded surface of the terminal 400. Even, the display screen 405 can also be set to a non-rectangular irregular shape, that is, a special-shaped screen. The display screen 405 can be made of materials such as LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode) and the like.
[0138] The camera assembly 406 is used to capture images or videos. Optionally, the camera assembly 406 includes a front camera and a rear camera. Typically, the front camera is arranged on the front panel of the terminal, and the rear camera is arranged on the back of the terminal. In some embodiments, there are at least two rear cameras, which are any one of a main camera, a depth of field camera, a wide-angle camera, and a telephoto camera, so as to realize the fusion of the main camera and the depth of field camera to realize the background blur function, the fusion of the main camera and the wide-angle camera to realize the panoramic shooting and VR (Virtual Reality) shooting function or other fusion shooting functions. In some embodiments, the camera assembly 406 may also include a flash. The flash can be a monochrome temperature flash or a dual-color temperature flash. A dual-color temperature flash refers to a combination of a warm light flash and a cold light flash, which can be used for light compensation at different color temperatures.
[0139] The audio circuit 407 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals and input them into the processor 401 for processing, or input them into the radio frequency circuit 404 to achieve voice communication. For the purpose of stereo acquisition or noise reduction, there may be multiple microphones, which are respectively arranged at different parts of the terminal 400. The microphone may also be an array microphone or an omnidirectional acquisition microphone. The speaker is used to convert the electrical signal from the processor 401 or the radio frequency circuit 404 into sound waves. The speaker may be a traditional film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert the electrical signal into sound waves audible to humans, but also convert the electrical signal into sound waves inaudible to humans for purposes such as ranging. In some embodiments, the audio circuit 407 may also include a headphone jack.
[0140] Positioning component 408 is used to locate the current geographical location of terminal 400 to implement navigation or LBS (Location Based Service). Positioning component 408 can be a positioning component based on the US GPS (Global Positioning System), China's Beidou system, Russia's Grenas system or the European Union's Galileo system.
[0141] The power supply 409 is used to power various components in the terminal 400. The power supply 409 can be an alternating current, a direct current, a disposable battery, or a rechargeable battery. When the power supply 409 includes a rechargeable battery, the rechargeable battery can support wired charging or wireless charging. The rechargeable battery can also be used to support fast charging technology.
[0142] In some embodiments, the terminal 400 further includes one or more sensors 410 , including but not limited to: an acceleration sensor 411 , a gyroscope sensor 412 , a pressure sensor 413 , a fingerprint sensor 414 , an optical sensor 415 , and a proximity sensor 416 .
[0143] The acceleration sensor 411 can detect the magnitude of acceleration on the three coordinate axes of the coordinate system established by the terminal 400. For example, the acceleration sensor 411 can be used to detect the components of gravity acceleration on the three coordinate axes. The processor 401 can control the touch display screen 405 to display the user interface in a horizontal view or a vertical view according to the gravity acceleration signal collected by the acceleration sensor 411. The acceleration sensor 411 can also be used for collecting game or user motion data.
[0144] The gyro sensor 412 can detect the body direction and rotation angle of the terminal 400, and the gyro sensor 412 can cooperate with the acceleration sensor 411 to collect the user's 3D actions on the terminal 400. The processor 401 can implement the following functions based on the data collected by the gyro sensor 412: motion sensing (such as changing the UI according to the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.
[0145] The pressure sensor 413 can be set on the side frame of the terminal 400 and / or the lower layer of the touch display screen 405. When the pressure sensor 413 is set on the side frame of the terminal 400, it can detect the user's holding signal of the terminal 400, and the processor 401 performs left and right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 413. When the pressure sensor 413 is set on the lower layer of the touch display screen 405, the processor 401 controls the operability controls on the UI interface according to the user's pressure operation on the touch display screen 405. The operability controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.
[0146] The fingerprint sensor 414 is used to collect the user's fingerprint, and the processor 401 identifies the user's identity based on the fingerprint collected by the fingerprint sensor 414, or the fingerprint sensor 414 identifies the user's identity based on the collected fingerprint. When the user's identity is identified as a trusted identity, the processor 401 authorizes the user to perform relevant sensitive operations, which include unlocking the screen, viewing encrypted information, downloading software, paying, and changing settings. The fingerprint sensor 414 can be set on the front, back, or side of the terminal 400. When a physical button or a manufacturer logo is set on the terminal 400, the fingerprint sensor 414 can be integrated with the physical button or the manufacturer logo.
[0147] The optical sensor 415 is used to collect the ambient light intensity. In one embodiment, the processor 401 can control the display brightness of the touch display screen 405 according to the ambient light intensity collected by the optical sensor 415. Specifically, when the ambient light intensity is high, the display brightness of the touch display screen 405 is increased; when the ambient light intensity is low, the display brightness of the touch display screen 405 is reduced. In another embodiment, the processor 401 can also dynamically adjust the shooting parameters of the camera assembly 406 according to the ambient light intensity collected by the optical sensor 415.
[0148] The proximity sensor 416, also called a distance sensor, is usually arranged on the front panel of the terminal 400. The proximity sensor 416 is used to collect the distance between the user and the front of the terminal 400. In one embodiment, when the proximity sensor 416 detects that the distance between the user and the front of the terminal 400 is gradually decreasing, the processor 401 controls the touch display screen 405 to switch from the screen-on state to the screen-off state; when the proximity sensor 416 detects that the distance between the user and the front of the terminal 400 is gradually increasing, the processor 401 controls the touch display screen 405 to switch from the screen-off state to the screen-on state.
[0149] Those skilled in the art will understand that Figure 4 The structure shown in the figure does not constitute a limitation on the terminal 400, and the terminal 400 may include more or less components than those shown in the figure, or combine some components, or adopt a different component arrangement.
[0150] In an exemplary embodiment, a computer-readable storage medium is also provided, such as a memory including instructions, and the instructions can be executed by a processor in a terminal to complete the method of recommending media data in the above embodiment. The computer-readable storage medium can be non-transitory. For example, the computer-readable storage medium can be a ROM (Read-Only Memory), a RAM (Random Access Memory), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0151] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.
[0152] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.
Claims
1. A method for recommending media data, characterized in that: The method comprises: When the terminal plays the first media data, determine the current second time and the second position, determine a target time period to which the second time belongs from among the preset multiple time periods, determine a target area to which the second position belongs from among the preset multiple areas, and record the number of times the terminal plays the first media data in the target area within the target time period plus 1; When the number of times reaches a number threshold, recording the first media data as the media data to be recommended, recording the target time period as the recommended time period corresponding to the media data to be recommended, recording the target area as the recommended area corresponding to the media data to be recommended, and storing the media data to be recommended, the recommended time period, and the recommended area locally in the terminal; When a recommendation trigger event is detected, the current first time and first position are obtained; Determining target media data corresponding to the first time and the first location based on a recommended time period and a recommended area corresponding to at least one of the media data to be recommended; Displaying recommendation information corresponding to the target media data; Among them, the first media data is a song audio list or song audio, the correspondence between the first media data, the target time period, the target area and the number of times is stored in a playback count statistics table, and the correspondence between the media data to be recommended, the recommended time period and the recommended area is stored in a recommended play list table.
2. The method according to claim 1, characterized in that The determining, based on at least one of the recommended time period and the recommended area corresponding to the media data to be recommended, the target media data corresponding to the first time and the first location includes: Determine, based on a recommended time period and a recommended area corresponding to the at least one media data to be recommended, candidate media data corresponding to a target recommended time period to which the first time belongs and a target recommended area to which the first position belongs; Based on a preset selection rule, target media data is selected from the candidate media data.
3. The method according to claim 2, characterized in that The selecting target media data from the candidate media data based on a preset selection rule includes: Among the candidate media data, target media data with the largest number of plays is selected.
4. The method according to claim 2, characterized in that: The selecting target media data from the candidate media data based on a preset selection rule includes: Based on the type and the number of times each candidate media data is played, determining the total number of times each type of media data is played; Among the candidate media data corresponding to the target type with the largest total number of playbacks, the target media data with the largest number of playbacks is selected.
5. The method according to any one of claims 1 to 4, characterized in that: After displaying the recommendation information corresponding to the target media data, the method further includes: When a trigger instruction corresponding to the recommendation information is received, the target media data is played.
6. A device for recommending media data, characterized in that: The device comprises: A storage module, configured to, when a terminal plays first media data, determine a current second time and a second position, determine a target time period to which the second time belongs among a plurality of preset time periods, determine a target area to which the second position belongs among a plurality of preset areas, and record the number of times the terminal plays the first media data in the target area within the target time period plus 1; when the number reaches a number threshold, record the first media data as media data to be recommended, record the target time period as a recommended time period corresponding to the media data to be recommended, record the target area as a recommended area corresponding to the media data to be recommended, and store the media data to be recommended, the recommended time period, and the recommended area locally in the terminal; An acquisition module, used to acquire the current first time and first position when a recommendation triggering event is detected; a determination module, configured to determine target media data corresponding to the first time and the first location based on a recommendation time period and a recommendation area corresponding to at least one of the media data to be recommended; A display module, used to display the recommendation information corresponding to the target media data; Among them, the first media data is a song audio list or song audio, the correspondence between the first media data, the target time period, the target area and the number of times is stored in a playback count statistics table, and the correspondence between the media data to be recommended, the recommended time period and the recommended area is stored in a recommended play list table.
7. A computer device, characterized in that: The computer device includes a processor and a memory, wherein the memory stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the operation performed by the method for recommending media data according to any one of claims 1 to 5.
Citation Information
Patent Citations
Method, device and system for recommending multimedia object, terminal and server
CN106649400A
Music recommendation method and mobile terminal
CN107463644A