Internet of vehicles music sharing method and device and computer program product
By screening users with close geographical locations, similar driving routes and matching activity time windows, calculate the similarity of music preferences and push a music recommendation list, it solves the problem of the lack of sharing mechanism in the existing Internet of Vehicles music services and improves user experience and music services. diversity.
Patent Information
- Application Number
- CN202410629864.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-20
- Publication Date
- 2024-09-06
AI Technical Summary
Existing Internet of Vehicles music services lack a sharing mechanism and cannot discover and recommend the music content that fellow users are listening to in real time, resulting in a poor user experience and ignoring the potential correlation between users due to shared driving environments and music preferences.
By obtaining the current user's real-time location information, we screen users with close geographical locations, similar driving routes and matching activity time windows, calculate the similarity of music preferences, and push music playlists of similar users to achieve music sharing.
It improves the diversity and user experience of music services, enhances interactivity and connectivity within the music community, and ensures real-time music sharing and personalized recommendations.
Smart Images

Figure CN118606509A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of intelligent networked vehicles, and in particular to a method, device and computer program product for sharing music in an Internet of Vehicles. Background Art
[0002] In recent years, with the rapid development of Internet of Vehicles and artificial intelligence technology, car networking functions have been widely used. Among them, Internet of Vehicles music services have become an important part of driving scenarios. However, the in-car music recommendation systems on the current market mainly focus on obtaining music resources from the content end based on the user's personal preferences, ignoring the potential correlation between users based on location and music preferences. Users mainly receive media content officially recommended by the platform, which to a certain extent limits the diversity and personalization of users' access to music content, and ignores the unique community formed between users due to common driving environments and similar music preferences. In other words, the existing Internet of Vehicles music services lack a sharing mechanism that can discover and recommend content that peer users are listening to in real time. The lack of this mechanism not only reduces the richness of the user experience, but also limits the interaction and connection between users in the music community. Summary of the invention
[0003] The technical problem to be solved by the embodiments of the present invention is to provide a method, device and computer program product for sharing music in an Internet of Vehicles, so as to enhance the diversity of Internet of Vehicles music services and user experience.
[0004] In order to solve the above technical problems, the present invention provides a method for sharing music in an Internet of Vehicles, comprising the following steps:
[0005] Get the real-time location information of the vehicle the current user is in;
[0006] According to the real-time location information, filter and obtain users related to the current user within a set range;
[0007] Acquire music preference data of related users, and calculate similarity with the music preference of the current user based on the music preference data to obtain a music recommendation list;
[0008] The music recommendation list is played through the vehicle-mounted device of the vehicle where the current user is located.
[0009] Preferably, the filtering and obtaining of users related to the current user within a set range according to the real-time location information is specifically:
[0010] According to the real-time location information of the vehicle where the current user is located, and based on the three dimensions of geographical location proximity, driving route similarity and activity time window, the correlation between the user to be screened and the current user is calculated, and the user whose calculated user correlation is greater than the preset threshold is regarded as a user related to the current user.
[0011] Preferably, the specific method of calculating user relevance is as follows:
[0012] S=w1×L+w2×R+w3×T
[0013] Among them, S is the user relevance score, L is the geographic proximity score, w1 is the geographic location weight; R is the driving route similarity score, w2 is the driving route weight, T is the activity time window score, and w3 is the activity time weight; w1+w2+w3=1.
[0014] Preferably, the geographical location proximity score L is used to measure the geographical location proximity between the user to be screened and the current user, and is calculated in the following way:
[0015] or
[0016] Where l is the straight-line distance between the user to be screened and the current user; l f is the reference distance.
[0017] Preferably, the driving route similarity score R is used to measure the similarity or degree of intersection between the driving route of the user to be screened and the driving route of the current user, and is calculated by the following formula:
[0018]
[0019] Where r is the number of intersections between the driving route of the user to be screened and the driving route of the current user, and r′ is the number of points where the driving route of the user to be screened may intersect with the driving route of the current user;
[0020] Alternatively, the driving route similarity score R is obtained by using a GIS system to track and analyze the user's driving route, and calculating the degree of overlap or similarity between the driving route of the user to be screened and the driving route of the current user.
[0021] Preferably, the activity time window score T is used to measure the matching degree between the activity time of the user to be screened and the activity time of the current user, and is calculated by the following formula:
[0022]
[0023] Among them, t c is the time that the user to be screened and the current user are active in the same time period, t a The total active time of the user to be screened and the current user.
[0024] Alternatively, the activity time window score T is obtained according to the time overlap between the activities of the to-be-screened user and the current user.
[0025] Preferably, the step of calculating the similarity with the current user's music preferences based on the music preference data to obtain a music recommendation list specifically includes:
[0026] Obtain music preference data of relevant users and perform feature extraction and analysis on it;
[0027] Calculate the similarity of music preferences between each related user and the current user, and obtain the related users with the highest similarity;
[0028] The music playlists of the most similar related users are pushed to the current user as music recommendation lists.
[0029] Preferably, the set range is a circular area defined with the vehicle where the current user is located as the center and a predetermined distance as the radius.
[0030] The present invention also provides a car networking music sharing device, comprising:
[0031] one or more processors;
[0032] Memory;
[0033] One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, and the one or more applications are configured to execute the Internet of Vehicles music sharing method.
[0034] The present invention also provides a computer program product, comprising computer instructions, wherein the computer instructions instruct a computer device to execute operations corresponding to the method.
[0035] The implementation of the present invention has the following beneficial effects: the present invention ensures the real-time and interactivity of music sharing by matching relevant user groups with the current user's geographical proximity, driving route similarity and activity time window; and further determines users with similar music preferences to the current user from the relevant user groups, and pushes their music playlists to the current user as music recommendation lists, thereby enabling the sharing of music with similar preferences during driving, while improving user satisfaction and the value of in-vehicle products, providing the possibility for location-based music social interaction, and laying the foundation for the sustainable development of Internet of Vehicles music services. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0037] Figure 1 The present invention is a flowchart of a method for sharing music in an Internet of Vehicles according to a first embodiment of the present invention. DETAILED DESCRIPTION
[0038] The following descriptions of the embodiments refer to the accompanying drawings to illustrate specific embodiments in which the present invention may be implemented.
[0039] Please refer to Figure 1 As shown, the first embodiment of the present invention provides a method for sharing music in an Internet of Vehicles, comprising the following steps:
[0040] Get the real-time location information of the vehicle the current user is in;
[0041] According to the real-time location information, filter and obtain users related to the current user within a set range;
[0042] Acquire music preference data of related users, and calculate similarity with the music preference of the current user based on the music preference data to obtain a music recommendation list;
[0043] The music recommendation list is played through the vehicle-mounted device of the vehicle where the current user is located.
[0044] It can be seen from the above steps that the present invention obtains related users within a set range through the current user's geographic location information, and calculates the similarity of the music preferences of the related users and the current user, thereby obtaining a music recommendation list for sharing, thereby achieving effective real-time music sharing between different users, improving the overall user experience, and enhancing the social and interactive characteristics of the Internet of Vehicles music service.
[0045] Specifically, in the embodiment of the present invention, the real-time location information of the vehicle where the current user is located is obtained through the location-based service LBS (Location Based Services) positioning technology, including the latitude and longitude information of the vehicle where the current user is located. It can be understood that the LBS positioning technology needs to ensure that the vehicle-mounted device of the vehicle where the current user is located can be connected to the GPS to obtain the location information of the vehicle where the user is located in real time. The accuracy of the location and the time interval and other details need to set reasonable control conditions, such as the following:
[0046] GPS connection and accuracy: Ensure that the vehicle device can be stably connected to the GPS and set a minimum location accuracy threshold. If the location accuracy of the vehicle device is lower than this threshold, the vehicle device will not be considered for matching.
[0047] Real-time: Set a reasonable time interval, such as updating the location information of the user's vehicle every 30 seconds or every minute. This helps capture the latest location of the user's vehicle while ensuring system performance.
[0048] Privacy protection: When processing the location information of the user's vehicle, ensure compliance with local laws and privacy protection standards. It is necessary to provide users with clear privacy setting options so that users can control whether their location information is shared and how it is used.
[0049] After obtaining the real-time location information of the vehicle where the current user is located, a range is set accordingly to filter users related to the current user. Specifically, a circular area is defined with the vehicle where the current user is located as the center and a predetermined distance (e.g. 1 to 3 km) as the radius as the set range; then users within the set range are filtered to filter out users related to the current user. The filtering of related users is based on the following dimensions:
[0050] (1) Geographical proximity
[0051] It can be understood that for vehicles within the set range, the geographical location proximity is satisfied.
[0052] (2) Similarity of driving routes
[0053] For users who are driving, in addition to the proximity of geographical locations, it is also necessary to consider whether their driving routes are similar or intersecting with the current user's vehicle. If so, the opportunities and relevance of interaction between users can be increased.
[0054] (3)Activity time window
[0055] Taking the user's activity time into consideration and filtering out users who are active in the same time period can ensure the real-time and interactivity of music sharing.
[0056] As an implementation method, based on the above dimensions, relevant users can be screened by using a calculation formula to specifically calculate user relevance:
[0057] S=w1×L+w2×R+w3×T
[0058] Among them, S is the user relevance score, L is the geographic proximity score, w1 is the geographic location weight; R is the driving route similarity score, w2 is the driving route weight, T is the activity time window score, and w3 is the activity time weight; w1+w2+w3=1.
[0059] The geographic proximity score L is used to measure the geographic proximity between the user to be screened and the current user. The higher the score, the closer the geographic location. It can be calculated using the following formula:
[0060]
[0061] Where l is the straight-line distance between the user to be screened and the current user, in km; lf is the reference distance, which may be the radius used when dividing the setting range as mentioned above (eg, 1 to 3 km).
[0062] The geographic proximity score L can also be obtained in the form of a piecewise function:
[0063]
[0064] Wherein, l is the straight-line distance between the user to be screened and the current user, in km.
[0065] The driving route similarity score R is used to measure the similarity or degree of intersection between the driving route of the user to be screened and the driving route of the current user. The higher the score, the more similar their driving routes are. It can be calculated using the following formula:
[0066]
[0067] Among them, r is the number of intersection points between the driving route of the user to be screened and the driving route of the current user, and r′ is the number of points where the driving route of the user to be screened may intersect with the driving route of the current user.
[0068] In addition, the GIS system can be used to track and analyze the user's driving route, and calculate the overlap or similarity between the driving route of the user to be screened and the current user's driving route. The score can be in the form of a percentage, with complete overlap as 100% and no overlap as 0%, and the intermediate situations are scored proportionally.
[0069] The activity time window score T is used to measure the matching degree between the activity time of the user to be screened and the activity time of the current user. The higher the score, the more similar their activity time is, which may increase the interaction opportunities and relevance between them. It can be calculated by the following formula:
[0070]
[0071] Among them, t c is the time that the user to be screened and the current user are active in the same time period, t a is the sum of the total active time of the user to be screened and the current user. For example, if both users are active from 7pm to 9pm, their common active time is 2 hours. If the active time of user A to be screened is 4 hours a day and the active time of the current user is 6 hours, the total active time of the two is 10 hours. In this case, the activity time window score T = 2 / 10 = 0.2.
[0072] Of course, the activity time window score T can also be obtained based on the degree of time overlap between the to-be-screened user and the current user. For example, if two users are active in the same time period, then T = 1; if the active time partially overlaps, then the value of T is between 0 and 1, depending on the overlap ratio; if there is no overlap, then T = 0.
[0073] The geographic location weight w1 is the weight of geographic location proximity in user relevance, which can be set to a value between 0 and 1 and can be adjusted according to actual needs. The driving route weight w2 is the weight of driving route similarity in user relevance, and the activity time weight w3 is the weight of the activity time window in user relevance; similarly, they can also be set to a value between 0 and 1 and can be adjusted according to actual needs, as long as w1+w2+w3=1 is satisfied.
[0074] After obtaining the user relevance score, it is compared with a preset relevance threshold. Only when the user relevance score of a certain user is higher than this threshold, will it be screened and determined as a relevant user.
[0075] For example, the correlation threshold S can be set threshold =0.75, and then calculate the user relevance score between each user in the set range and the current user. Users with scores higher than 0.75 will be screened as relevant users, and their music preference data will be further considered to generate a music recommendation list.
[0076] Through the above-mentioned screening process of related users, it is possible to more accurately find related users who are geographically close to the current user, have similar driving routes, and have overlapping activity times, thereby improving the accuracy and interactivity of music recommendations.
[0077] After filtering out users related to the current user, the music preference data of the related users will be obtained and feature extraction and analysis will be performed on them, such as music type (instrumental music, songs, etc.), music style (classical, pop, etc.), singers or performers, rhythm, etc. Then the similarity with the current user's music preference is calculated, and the related user with the highest similarity is obtained, and then their music playlist is pushed to the current user as a music recommendation list.
[0078] Specifically, when extracting features from music preference data, first, collect and store the music preference data of each relevant user, including the user's play history, favorites list, music liked or disliked, etc. Then, perform feature extraction on the music preference data of each relevant user to identify key features such as music type (such as instrumental music, song), music style (such as classical, pop, rock), singer or performer, and rhythm (such as fast rhythm, slow rhythm).
[0079] When calculating the similarity of music preferences, the embodiment of the present invention adopts the cosine similarity method, that is, by comparing the music feature vectors of two users to evaluate their similarity. For each relevant user, a feature vector is constructed based on its music preference data, and each element in the feature vector represents the weight or frequency of a specific music feature (for example, the number of times a user plays a certain style of music). Then, the dot product of the two user feature vectors is calculated, and the result is divided by the product of the module lengths (L2 norm) of the two vectors to obtain a cosine similarity value between -1 and 1. The closer this value is to 1, the more similar the music preferences of the two users are.
[0080] According to the calculated music preference similarity, the user with the highest music preference similarity is selected from the relevant users, and the music with the highest score or the most frequently played in the current playlist or the historical playlist of the user is obtained as the basis of the music recommendation list. The music recommendation list can also be generated by combining the playlists of multiple users with similar music preferences (for example, the top three users with similar music preferences) in a weighted average manner to increase the diversity and accuracy of the recommendation.
[0081] In addition, the current user's behavior and feedback on the music recommendation list playback is monitored in real time, and the music recommendation list is dynamically adjusted to ensure that the recommended content always meets the current user's real-time preferences.
[0082] Corresponding to the vehicle networking music sharing method described in the first embodiment of the present invention, the second embodiment of the present invention further provides a vehicle networking music sharing device, including:
[0083] one or more processors;
[0084] Memory;
[0085] One or more applications, wherein the one or more applications are stored in the memory and are configured to be executed by the one or more processors, and the one or more applications are configured to execute the Internet of Vehicles music sharing method described in Embodiment 1 of the present invention.
[0086] Corresponding to the vehicle network music sharing method described in the aforementioned embodiment 1 of the present invention, embodiment 3 of the present invention further provides a computer program product, including computer instructions, and the computer instructions instruct a computer device to perform operations corresponding to the method described in embodiment 1 of the present invention.
[0087] Preferably, the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor, or the processor may be any conventional processor. The processor is the control center of the device, and various parts of the device are connected using various interfaces and lines.
[0088] The memory mainly includes a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function, etc., and the data storage area can store related data, etc. In addition, the memory can be a high-speed random access memory, or a non-volatile memory, such as a plug-in hard disk, a smart memory card (SmartMedia Card, SMC), a secure digital (Secure Digital, SD) card, and a flash card (Flash Card), etc., or the memory can also be other volatile solid-state storage devices.
[0089] It should be noted that the above-mentioned device may include but is not limited to a processor and a memory, which can be understood by those skilled in the art.
[0090] For the working principle and process of the above embodiment, please refer to the description of the above embodiment of the present invention, which will not be repeated here.
[0091] From the above description, it can be seen that compared with the prior art, the beneficial effects of the present invention are: the present invention ensures the real-time and interactivity of music sharing by matching the relevant user groups with the current user's geographical proximity, driving route similarity and activity time window; and further determines users with similar music preferences to the current user from the relevant user groups, and pushes their music playlists to the current user as music recommendation lists, thereby enabling the sharing of music with similar preferences during driving, while improving user satisfaction and the value of in-vehicle products, providing the possibility for location-based music social interaction, and laying the foundation for the sustainable development of Internet of Vehicles music services.
[0092] The above disclosure is only the preferred embodiment of the present invention, which certainly cannot be used to limit the scope of the present invention. Therefore, equivalent changes made according to the claims of the present invention are still within the scope of the present invention.
Claims
1. A method for sharing music in an Internet of Vehicles, characterized in that: The following steps are involved: Get the real-time location information of the vehicle the current user is in; According to the real-time location information, filter and obtain users related to the current user within a set range; Acquire music preference data of related users, and calculate similarity with the music preference of the current user based on the music preference data to obtain a music recommendation list; The music recommendation list is played through the vehicle-mounted device of the vehicle where the current user is located.
2. The method according to claim 1, characterized in that The filtering and obtaining of users related to the current user within a set range according to the real-time location information is specifically: According to the real-time location information of the vehicle where the current user is located, and based on the three dimensions of geographical location proximity, driving route similarity and activity time window, the correlation between the user to be screened and the current user is calculated, and the user whose calculated user correlation is greater than the preset threshold is regarded as a user related to the current user.
3. The method according to claim 2, characterized in that The specific method of calculating user relevance is as follows: S=w1×L+w2×R+w3×T Among them, S is the user relevance score, L is the geographic proximity score, w1 is the geographic location weight; R is the driving route similarity score, w2 is the driving route weight, T is the activity time window score, and w3 is the activity time weight; w1+w2+w3=1.
4. The method according to claim 3, characterized in that The geographic proximity score L is used to measure the geographic proximity between the user to be screened and the current user, and is calculated in the following way: Where l is the straight-line distance between the user to be screened and the current user; l f is the reference distance.
5. The method according to claim 3, characterized in that: The driving route similarity score R is used to measure the similarity or degree of intersection between the driving route of the user to be screened and the driving route of the current user, and is calculated using the following formula: Where r is the number of intersections between the driving route of the user to be screened and the driving route of the current user, and r′ is the number of points where the driving route of the user to be screened may intersect with the driving route of the current user; Alternatively, the driving route similarity score R is obtained by using a GIS system to track and analyze the user's driving route, and calculating the degree of overlap or similarity between the driving route of the user to be screened and the driving route of the current user.
6. The method according to claim 3, characterized in that: The activity time window score T is used to measure the matching degree between the activity time of the user to be screened and the activity time of the current user, and is calculated by the following formula: Among them, t c is the time that the user to be screened and the current user are active in the same time period, t a The total active time of the user to be screened and the current user. Alternatively, the activity time window score T is obtained according to the time overlap between the activities of the to-be-screened user and the current user.
7. The method according to claim 1, characterized in that The step of calculating the similarity between the music preference data and the current user's music preference and obtaining a music recommendation list specifically includes: Obtain music preference data of relevant users and perform feature extraction and analysis on it; Calculate the similarity of music preferences between each related user and the current user, and obtain the related users with the highest similarity; The music playlists of the most similar related users are pushed to the current user as music recommendation lists.
8. The method according to claim 1, characterized in that The set range is a circular area defined with the vehicle where the current user is located as the center and the predetermined distance as the radius.
9. A car networking music sharing device, characterized in that: include: one or more processors; Memory; One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, and the one or more applications are configured to execute the Internet of Vehicles music sharing method as described in any one of claims 1 to 8.
10. A computer program product, characterized in that The method comprises computer instructions, wherein the computer instructions instruct a computer device to execute operations corresponding to the method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Interest point recommendation method and device based on position and time information
CN110851742A
Vehicle control method and device, vehicle and computer readable storage medium
CN115556765A
Vehicle entertainment system pushing method and system
CN116800794A
Travel team recommendation method and device, electronic equipment and storage medium
CN117521877A
Vehicle information / entertainment management system
US20150185030A1
Cited By
Audio and video recommendation method and module for vehicle-mounted system and automobile
CN120264055A
