A method for predicting the travel location of a vehicle owner based on vehicle location information

By organizing vehicle trajectory data, identifying important points of interest and using density clustering algorithms, combined with the spatiotemporal label recurrent neural network model, the problem of not considering dwell time and semantic labels in the existing technology is solved, and the accuracy of interest point prediction is improved. .

CN113938817BInactive Publication Date: 2024-09-17HARBIN INST OF TECH AT WEIHAI
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111064003.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-10
Publication Date
2024-09-17
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing technology fails to effectively consider the user's residence time at historical interest points and the semantic tags of the interest points when predicting user points of interest, resulting in insufficient prediction accuracy.

Method used

Using a method based on vehicle location information, the vehicle trajectory data is organized, the user's important points of interest are identified, the density clustering algorithm is used to merge the interest points, and a spatiotemporal tag recurrent neural network model (Tag-SDT-RNN) is constructed to determine the user's next point of interest. prediction.

Benefits of technology

It improves the accuracy of interest point prediction and improves the ability to understand and predict user travel behavior by combining spatial and semantic information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113938817B
    Figure CN113938817B
Patent Text Reader

Abstract

The present invention belongs to the technical field of intelligent vehicle networking, and discloses a method for predicting the travel location of a car owner based on vehicle location information, comprising the following steps: step 1: sorting vehicle trajectory data based on vehicle location data; step 2: identifying important points of interest of users based on vehicle trajectory data; step 3: merging points of interest by density clustering method; step 4: predicting the next point of interest of the user based on a spatiotemporal label recurrent neural network model. By utilizing information of spatial dimension and semantic dimension, the accuracy of point of interest prediction is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of intelligent vehicle networking, and in particular relates to a method for predicting a vehicle owner's travel location based on vehicle location information. Background Art

[0002] As location-based services become more and more popular, a large amount of location data is generated in many in-vehicle APP applications. For example, user check-in data, user trajectory data, etc. These data are strongly related to time and space factors, and describe the locations visited by the owner (user) at a given time. At present, there are research results on the problem of user point of interest (POI) prediction. The user point of interest recommendation problem is to establish a model to predict the user's upcoming new location based on the user's historical visited location sequence. Obtaining the next intended location (POI) of the vehicle user is one of the foundations for providing users with more convenient and personalized services. Real-time demand perception based on user behavior characteristics and intended locations, and reasonable service recommendations will greatly facilitate and enrich users' lives, help users discover new hobbies, and guide users to form new living habits.

[0003] The existing solutions are sequence prediction models based on Markov chains, POI prediction methods based on high-order vector decomposition, and methods based on recurrent neural networks. Considering the data serialization characteristics of user travel POI prediction, the model based on Markov chains is the preferred solution. In the Markov model, a probability transition matrix is ​​used to represent the probability of a certain user behavior. FPMC (Factorizing Personalized Markov Chains) is a classic improved Markov model. This model combines the theory of factor decomposition models, uses vectors to represent the transition to and from a certain state, generates a transition matrix in the form of vector inner product, and models the probability of user transitions between different locations. However, FPMC only considers the linear relationship in state transitions and assumes that the factors are independent of each other. Such processing limits the capabilities of the model.

[0004] The PRME (Personalized Ranking Metric Embedding) model based on high-order vector decomposition embeds user POIs into a low-dimensional vector space and represents the connection between POIs through Euclidean distance. The model defines two latent vector spaces, one for representing sequence transfer and the other for representing user preferences. The weighted sum of the two vector spaces of the same dimension is used as the optimization target of the model. The model has established a good model for user transfer between multiple POIs, taking into account time and space factors. However, the PEMR model still has the limitation of linear space representation parameters.

[0005] The RNN (recurrent neural network) based model can efficiently characterize the serialization features in the model and show good sequence prediction capabilities. STRNN (space-time recurrent neural network) is an extension of RNN. It uses time and space factors as hidden layers and has achieved good results in POI prediction, but STRNN cannot model the user's residence time and POI label information, and is not suitable for prediction scenarios in smart car networks. Specifically, the existing problem space does not consider the user's residence time at historical POIs when predicting the user's POIs, nor does it consider the semantic labels of the POIs themselves. These two types of information actually have a great impact on the user's choice of POIs. The problem space of the existing method does not consider the user's residence time at historical POIs when predicting the user's POIs, nor does it consider the insufficiency of the semantic labels of the POIs themselves. Summary of the invention

[0006] The present invention aims to overcome the defects of the prior art and provide a method for predicting the travel location of a car owner based on vehicle location information. The method aims to analyze the driving trajectory of the car owner, extract the POI visit record of the car owner, and establish an artificial intelligence model based on the user's stay time at the location and the category label information of the location to predict the next point of interest (POI) that the car owner is about to visit and recommend points of interest to the user.

[0007] In order to solve the above technical problems, the present invention provides the following technical solutions:

[0008] A method for predicting a vehicle owner's travel location based on vehicle location information, characterized in that it comprises the following steps: Step 1: arranging vehicle trajectory data based on vehicle location data;

[0009] Step 2: Identify important points of interest for users based on vehicle trajectory data;

[0010] Step 3: Merge important user interest points through density clustering method;

[0011] Step 4: Predict the user's next point of interest based on the spatiotemporal label recurrent neural network model.

[0012] Preferably, step 1: vehicle trajectory data collation:

[0013] Before processing the data, first read the batch vehicle trajectory data to sort it out, separate the vehicle trajectory data by device number according to the device unique identification code, then sort the data in ascending order by time tag, and insert it to the end of the user's historical trajectory data to update the data.

[0014] When the data is updated, each time the user's historical trajectory data is inserted, it is arranged in ascending time order to ensure that all historical trajectory data is arranged in ascending order.

[0015] Preferably, step 2: identifying important points of interest (POIs) of users based on vehicle trajectory data:

[0016] After arranging the vehicle trajectory data, the trajectory data of each device in chronological order is obtained, and then the important parking points in the trajectory data are identified, and the trajectory data is converted into parking point record data through the processing of the trajectory compression algorithm;

[0017] The important parking points are the starting and ending points of the vehicle. POI discovery is the process of extracting important parking points of POI from the huge trajectory data. The trajectory compression algorithm compresses based on the shape of the trajectory, which allows many waypoints to remain in the trajectory. Waypoints are just information about certain locations that the user must pass through in the process of reaching the destination.

[0018] Parking point recognition, by scanning trajectory data, associates each trajectory data read with the parking point data corresponding to a specific user, obtains structured data of the parking point, and outputs parking point data records; parking point data includes latitude and longitude, time tag, stay time and distance; the specific user refers to the owner of the current vehicle.

[0019] Define the set of trajectory data of user u as,

[0020] V u ={(lat n ,lon n ,T n )|T i <T i+1 ,n=1,2,…,|V u |},

[0021] where lat u With lon u Respectively represent the latitude and longitude of the nth data, Tn represents the time tag of the nth data, and the regular data are arranged in chronological order. Then for any n, Ti is satisfied. <Ti+1。

[0022] Parameters for parking point recognition,(1) distance: represents the distance between two adjacent trajectory records,,which is calculated based on the longitude and latitude between points A and B;

[0023] The method for calculating the distance between points A and B based on the longitude and latitude is shown in formula (1):

[0024] d AB =Rarccos[sin(lat A )sin(lat B )+cos(lat A )cos(lat B )cos(lonB -lon A )] (1)

[0025] (2) lastLat, lastLon, lastT: respectively record the latitude, longitude, and time tag of the previous data currently being read. After the current data is processed, the latitude, longitude, and time tag of the current data will be assigned to lastLat, lastLon, and lastT.

[0026] (3) Moving: The current data indicates whether the vehicle is moving, which helps identify the second type of parking spot mentioned above.

[0027] Parking point recognition trigger mode: the first parking point recognition is that the vehicle signal is interrupted and the trajectory data is no longer uploaded. When the vehicle is started again and the device starts to collect data, the last record is determined to be the parking point; at this time, distance represents the distance deviation between the position before the device is turned off and the position after the device is started again.

[0028] Another parking point recognition is that the vehicle uploads data continuously for a long period of time, but the position does not change. When the vehicle moves again, if the time interval reaches the threshold, the last record before the vehicle stops moving is identified as a parking point. At this time, the distance is meaningless and is assigned a value of 0.

[0029] (4) stoptime: The time tag when moving changes from True to False, used to calculate the vehicle’s stay time at the parking spot.

[0030] In the parking point record data, the dwell time indicates the length of time the user stays at a certain location. These data are regarded as parking point data corresponding to a specific user, and structured data of the parking point is obtained.

[0031] Preferably, step three: POI cluster merging based on density clustering algorithm, user important POI will include many adjacent location point sets as input of location clustering algorithm, multiple geographically adjacent POIs are clustered into one important POI, and user important POI travel records are generated to obtain a sequence of destinations frequently visited by users, so as to predict the next location of the vehicle.

[0032] Parking point recognition trigger mode: the first parking point recognition is that the vehicle signal is interrupted and the trajectory data is no longer uploaded. When the vehicle is started again and the device starts to collect data, the last record is determined to be the parking point; at this time, distance represents the distance deviation between the position before the device is turned off and the position after the device is started again;

[0033] Another parking point recognition is that the vehicle continuously uploads data over a long period of time, but the position does not change. When the vehicle moves again, if the time interval reaches a threshold, the last record before the vehicle stops moving is recognized as a parking point.

[0034] An important POI for a user will contain many nearby locations, and the user's POI points of interest usually cluster in space. Taking the set of nearby user POI points as the input of the clustering algorithm, clusters of POI points can be generated, thereby obtaining a list of destinations that the user frequently visits (real POI points of interest).

[0035] The location clustering method is the DBSCAN density clustering algorithm, which is used to return the outliers in the input data set. It includes two input parameters: distance threshold and density threshold. The distance threshold ε represents the tendency of different samples to be divided into the same cluster based on distance. The larger the value is, the farther the samples will be divided into the same cluster. The density threshold Minpts is a limit on the number of samples in the cluster. After setting the density threshold, the number of samples in the output cluster will be greater than or equal to this value. If it is less than this value, no matter how close the two samples are, they will be considered outliers. First, the set of outliers is output, and second, the distance is measured. The longitude and latitude distance between two points is calculated by formula (1).

[0036] In the implementation process, DBSCAN needs to be improved to a certain extent to meet the needs of this scenario. In the scenario of the present invention, first, DBSCAN needs to output a set of outliers, and second, the distance measurement does not use Minkowski distance calculation, but calculates the longitude and latitude distance between two points through formula (1). It has many advantages. For example, some outliers in parking spots may also reflect the user's behavior habits. DBSCAN accurately returns the outliers in the input data set.

[0037] Preferably, step 4: predicting the user's next point of interest POI based on Tag-SDT-RNN

[0038] To predict the next POI of a user, Tag-SDT-RNN first defines the user interest latent vector of the recurrent neural network; divides the length of time and the distance of space into slices, and trains the transfer matrix corresponding to the special values ​​of the upper and lower bounds in the training model; optimizes the model parameters to maximize the probability of expression (7): given the partial derivative of J with respect to the latent vector of user u at time t, calculates the partial derivative of J with respect to any model parameter: optimizes the model parameters by gradient descent until all parameters converge, and the training inference of the prediction model is completed; predicts the user's position in time, and sorts in descending order to obtain the user's top k most likely visited locations.

[0039] To predict points of interest, the distance transfer matrix between user points of interest is calculated, the duration (user's stay time at a point of interest) transfer matrix is ​​calculated, and the transfer matrix corresponding to the time interval t between the user's visits to two points of interest is calculated by formula (5): The predicted probability of a user visiting a location at a certain time is defined by calculation, which measures the influence of the user's interest preference and the specific spatiotemporal scenario on the prediction results.

[0040] Compared with the prior art, the present invention has the following beneficial effects:

[0041] When predicting a user's points of interest, not only the user's residence time at the historical points of interest is considered, but also the semantic labels of the points of interest themselves. By utilizing information from the spatial dimension and the semantic dimension, the accuracy of point of interest prediction is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1 It is a flow chart of trajectory data arrangement of a method for predicting a vehicle owner's travel location based on vehicle location information of the present invention;

[0043] Figure 2 It is a flow chart of identifying important points of interest of a user in a method for predicting a vehicle owner's travel location based on vehicle location information of the present invention;

[0044] Figure 3 It is a model calculation flow chart of the method for predicting the travel location of a vehicle owner based on the vehicle location information of the present invention;

[0045] Figure 4 It is a calculation flow chart of the whole method of the present invention. DETAILED DESCRIPTION

[0046] The preferred embodiments of the present invention are described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention.

[0047] like Figure 1-3 As shown, a method for predicting the travel location of a vehicle owner based on vehicle location information includes the following steps: Step 1: collating vehicle trajectory data based on vehicle location data;

[0048] Step 2: Identify user interest points based on vehicle trajectory data;

[0049] Step 3: POI merging based on density clustering algorithm (DBSCAN);

[0050] Step 4: User next POI prediction method based on Tag-SDT-RNN.

[0051] Preferably, step 1: vehicle trajectory data arrangement of vehicle position data:

[0052] The original trajectory data is uploaded by many vehicles in a mixed manner. Some devices may delay uploading data due to signal reasons, so the original trajectory data is not necessarily ordered in time. Before processing the data, read the batch trajectory data, first sort the vehicle trajectory data, separate the vehicle trajectory data by device number according to the device unique identification code, and then sort the data in ascending order by time tag (label), and insert it to the end of the user's historical trajectory data. Usually, there is a long time interval between updates of a user's historical trajectory. Therefore, as long as the user's historical trajectory data is inserted in ascending order of time each time it is updated, it is guaranteed that all historical trajectory data is arranged in order. For example Figure 1 As shown in FIG. 1 , a batch of trajectory data is sorted in ascending order.

[0053] Data sorting, batch trajectory data reads data, reads data successfully; if there are user data temporary variables, add data to the temporary variables; if data reading is unsuccessful, add all temporary variable data to the corresponding trajectory file. If there are no user data temporary variables, create user data temporary variables;

[0054] Step 2: Get the user's important POIs (points of interest) based on vehicle trajectory data:

[0055] After the vehicle trajectory data is sorted, the chronological trajectory data of each device is obtained, the important parking points in the trajectory data are identified, and the trajectory data is converted into parking point record data through the processing of the trajectory compression algorithm.

[0056] The important parking points of POI are the starting point and the ending point of the vehicle. Since the starting point and the ending point directly represent the travel needs of the user, the process of extracting the important parking points of POI from the huge trajectory data is called POI discovery. However, the common point of the above trajectory compression algorithms is that they are compressed based on the shape of the trajectory, which makes many waypoints still remain in the trajectory. Waypoints are only information about certain locations that users must pass through in the process of reaching their destination, and cannot reflect the user's behavioral habits. In addition, the time complexity of the above offline trajectory compression algorithm is at least O(N 2 ), such time complexity is unacceptable for trajectory data with tens of thousands of records. The parking point recognition algorithm can compress trajectory data and only retain important cars that reflect the user's purpose or intention. On the other hand, its algorithm time complexity is O(N).

[0057] During operation, all parking points can be extracted by simply scanning the trajectory data sequentially.

[0058] Get the user's important points of interest, read each user's trajectory data, the current parking time is greater than the threshold, set the current point, calculate the distance, and add it to the user's POI set. If it is a temporary parking, set the current point, the distance is 0 and add it to the user's POI combination, and enter the user's POI combination;

[0059] If the current parking time is less than the threshold, the process returns to reading each track data of the user; if it is not a temporary parking, the process returns to reading each track data of the user.

[0060] The parking point recognition algorithm outputs parking point data records by scanning trajectory data. The parking point data includes latitude and longitude, time label, stay time, and distance.

[0061] The specific algorithm process is as follows Figure 2 As shown, the set of trajectory data of user u is defined as, V u = {(lat n ,lon n ,T n )|T i <T i+1 ,n=1,2,…,|V u |}, where latu and lonu represent the latitude and longitude of the nth data, respectively, and Tn represents the time tag of the nth data. The regular data has been arranged in chronological order, so for any n, Ti is satisfied. <Ti+1。

[0062] Parameters for parking point recognition,(1) distance: the distance between two adjacent trajectory records.

[0063] (2) lastLat, lastLon, lastT: respectively record the latitude, longitude, and time tag of the previous data currently being read. After the current data is processed, the latitude, longitude, and time tag of the current data will be assigned to lastLat, lastLon, and lastT.

[0064] (3) Moving: The current data indicates whether the vehicle is moving, which helps identify the second type of parking spot mentioned above.

[0065] There are two ways to trigger parking point recognition. The first parking point recognition is that the vehicle signal is interrupted and the trajectory data is no longer uploaded. When the vehicle is started again and the device starts to collect data, the last record before is determined to be the parking point. At this time, distance represents the distance deviation between the position before the device is turned off and after the device is started again. The other parking point recognition is that the vehicle continuously uploads data for a long period of time, but the position does not change. When the vehicle moves again, if the time interval reaches the threshold, the last record before the vehicle stops moving is identified as the parking point. At this time, distance is meaningless and is assigned a value of 0.

[0066] The method for calculating the distance between points A and B based on the longitude and latitude is shown in formula (1):

[0067] d AB =Rarccos[sin(lat A )sin(lat B )+cos(lat A )cos(lat B )cos(lon B -lon A )] (1)

[0068] Where R is the radius of the earth, which is 6378.137 km.

[0069] If the address category field information is missing in the travel record data, it can be replaced with the following formula:

[0070] The rest of the process remains the same.

[0071] (4) stoptime: The time tag when moving changes from True to False, used to calculate the vehicle’s stay time at the parking spot.

[0072] A key item in the parking point record data is the dwell time, which indicates how long the user stays at a certain location. This data is regarded as the parking point data corresponding to a specific user, and the structured data of the parking point is obtained.

[0073] Through the processing of the above algorithm, the trajectory data can be converted into parking point record data. One of the key data in the parking point record is the dwell time, which indicates the length of time the user stays at a certain location. The acquisition of this data eliminates the difference between the starting point and the end point, so that the output result maintains the structured characteristics. These data are regarded as parking point data corresponding to a specific user. The obtained parking point structured data is shown in Table 1:

[0074] Table 1

[0075]

[0076]

[0077] In a further specific embodiment, step three: based on the merging of POI clusters using a density clustering algorithm, the generated user travel records are used to predict the next location of the vehicle.

[0078] The user's important POIs will contain many nearby locations, and the user's POI points of interest will usually cluster in space. If the user regularly travels between home and work, then their parking points should form two clusters. Using the set of nearby user POI points as the input of the clustering algorithm, clusters of POI points can be generated, thereby obtaining a list of destinations that the user frequently visits (real POI points of interest).

[0079] As a location clustering algorithm, DBSCAN density clustering algorithm includes two input parameters: distance threshold and density threshold. The distance threshold ε represents the tendency of different samples to be divided into the same cluster based on distance. The larger the value is, the farther the samples will be divided into the same cluster. The density threshold Minpts is a limit on the number of samples in the cluster. After setting the density threshold, the number of samples in the output cluster will be greater than or equal to this value. If it is less than this value, no matter how close the two samples are, they will be considered outliers.

[0080] This algorithm has many advantages in the scenario of the present invention. For example, some outliers in parking spots may also reflect the behavior habits of users. These points cannot be ignored, and DBSCAN can accurately return the outliers in the input data set. As long as a location does not form a cluster under the algorithm standard, then the location will be an outlier and will not be classified with any cluster.

[0081] In the implementation process, DBSCAN needs to be improved to a certain extent to meet the needs of this scenario. In the scenario of the present invention, first, DBSCAN needs to output a set of outliers, because outliers are also important user travel information. Secondly, the distance measurement does not use Minkowski distance calculation, but calculates the longitude and latitude distance between two points through formula (1). This is because the longitude and latitude coordinates are different from the plane rectangular coordinate system. It has many advantages, such as some outliers in the parking spot, which may also reflect the user's behavioral habits. DBSCAN accurately returns the outliers in the input data set.

[0082] The DBSCAN algorithm needs to determine two input parameters: the distance threshold ε and the density threshold Minpts. The distance threshold indicates the tendency of different samples to be divided into the same cluster based on distance. The larger the value is, the farther samples will be divided into the same cluster. The density threshold is a limit on the number of samples in the cluster. After setting the density threshold, the number of samples in the output cluster will be greater than or equal to this value. If it is less than this value, no matter how close the two samples are, they will be considered outliers. In this scenario, the value should be set directly to 2, because as long as the distance between the two points is close enough, they can be considered to be the same destination. Separating them for analysis is actually a disadvantageous approach.

[0083] The user travel record data format Table 2 is as follows:

[0084]

[0085]

[0086] The industry category of the address is also a unique code, and each industry category corresponds to a latent vector c. Represents the latent vector of the industry category corresponding to the location visited by user u at time t.

[0087] In a further specific embodiment, step 4: predicting the next POI of the user based on the spatiotemporal tag recurrent neural network (Tag-SDT-RNN) model,

[0088] In order to predict the user's next POI, the Tag-SDT-RNN method is proposed. First, the user interest latent vector of the recurrent neural network needs to be defined as:

[0089]

[0090] in is the hidden vector of user u, which represents u's position at time t. interests;

[0091] is the latent vector of the POI visited by user u at time ti;

[0092] For location arrive The transfer matrix corresponding to the geographical distance;

[0093] is the time interval tt i The corresponding transfer matrix;

[0094] D is the duration transfer matrix, and the matrix parameters are related to the time that user u stays at the location he arrives at time t;

[0095] C is the parameter matrix connecting the state information of the previous step, and the matrix parameters are determined through model training. ;

[0096] M is the industry category transfer matrix, and the matrix parameters are determined through model training.

[0097] Because the set of real numbers is an infinite set, it is obviously impossible to establish a one-to-one corresponding transfer matrix for all real values. Therefore, consider dividing the length of time and the distance of space into slices, and only train the transfer matrix corresponding to the special values ​​of the upper and lower bounds in the model. The parameter matrix corresponding to ordinary real numbers can be calculated by linear interpolation. When the user predicts the point of interest, given U(l) and L(l) represent the upper and lower bounds of the geographical distance l, then consider the distance transfer matrix S between the points of interest l Calculated by formula (3):

[0098]

[0099] Given that U(d) and L(d) represent the upper and lower bounds of the duration d, the duration (the time the user stays at the point of interest) transfer matrix is ​​calculated by formula (4):

[0100]

[0101] Given that U(t) and L(t) represent the upper and lower bounds of the partition where the time interval t is located, then the transition matrix T corresponding to the time interval t between the user visiting two points of interest is t It can be calculated by formula (5):

[0102]

[0103] The present invention defines the predicted probability o of user u visiting location v at time t as u,t,v Calculated by formula (6):

[0104]

[0105] where q v is the vector of position v; p u is the vector of user u; θ is a hyperparameter with a value of [0,1], which measures the impact of user interest preferences and specific spatiotemporal scenarios on the prediction results.

[0106] Then according to the Bayesian personalized ranking theory, in order to optimize the model parameters, we need to maximize the probability of expression (7):

[0107] p(u,t,v>v′)=f(o u,t,v -o u,t,v′ ) (7)

[0108] Where v′ is the POI that user u has not visited;

[0109] f(·) — sigmoid function.

[0110] Using the method of negative likelihood logarithm to find the extreme point, we can get the formula:

[0111]

[0112] Where Θ——represents all the parameters that need to be learned {p, q, c, S, D, T, M, C};

[0113] λ——Regular term weight parameter.

[0114] Combined with the back-propagation algorithm over time, the gradients of all parameters of the hidden layer can be calculated, given the partial derivative of J with respect to the hidden vector of user u at time t The partial derivative of J with respect to any model parameter can be calculated by formula (8):

[0115]

[0116]

[0117]

[0118]

[0119]

[0120]

[0121]

[0122]

[0123] In the formula ——is the tensor product operator, which here represents the outer product of the two matrices before and after the operator;

[0124] f′(·)——represents the function value of the derivative of the sigmoid function at the independent variable matrix in formula (4-8).

[0125] Finally, the parameters are optimized by gradient descent until all parameters converge.

[0126] When the parameters converge, the training inference of the prediction model is completed.

[0127] p, q, and c represent the latent vectors of all users, all positions, and all industry categories, respectively.

[0128] Finally, the method to predict the location of user u at time t is as follows:

[0129] For all positions v, calculate o in formula (6) u,t,v , sort in descending order to get the user's top k most likely visited locations.

[0130] The present invention is based on experiments with real trajectory data, which comes from trajectory data collected by vehicle rearview mirrors and is compared with several different location prediction algorithms. The user's trajectory data is used to identify parking points, and then a clustering algorithm is used to obtain all the locations visited by the user. Each location is regarded as a POI, and a point in the cluster is randomly selected as the longitude and latitude of the POI. Through such processing, the format of the data is similar to many open check-in data sets, which is also convenient for comparative experiments with other location prediction models.

[0131] Considering that the user activities are too widely distributed, data within a certain city should be selected as the research object. Users with more than 10 travel records are selected, which consists of more than 800 users with more than 4,000 activity locations, with a total number of more than 100,000 records and a time span of 4 months. In the experiment, the user's travel records are sorted in chronological order, with the first 50% as the training set, the next 30% as the test set, and the last 20% as the validation set to adjust the parameters. The parameter of the regular term is set to λ = 0.05.

[0132] The model evaluation indicators selected are Recall@k, which is the most basic metric, where the value of k is 1, 5 and 10. In addition, two global evaluation indicators, MAP and AUC, are selected. The larger the value, the better the model effect. The models selected for comparative experiments are matrix factorization model (MF), personalized Markov chain model (FPMC), personalized ranking metric embedding (PRME), recurrent neural network (RNN), and recurrent neural network considering spatiotemporal factors (ST-RNN).

[0133] Table 3 Comparative experimental results of location prediction models

[0134]

[0135]

[0136] Table 1 is the results of various indicators on all models. It can be seen that the Tag-ST-RNN model proposed in the present invention has the best performance. Specifically, the most basic matrix decomposition method has the worst performance, and FPMC performs better than MF because the Markov chain-based model considers time series and takes personalized factors into account. PRME uses both users and locations as latent vectors, and trains the transfer matrices in two linear spaces through metric learning to achieve better results. RNN makes full use of historical information in training, so the performance is better than previous models. As can be seen from Table 1, modeling the user's stay time at the location (SD-RNN) can obtain an execution effect similar to that of ST-RNN. When both the stay time and the arrival time are taken into account by the model, the effect will be improved to a certain extent. When combined with the category characteristics of POI, the performance of the Tag-ST-RNN model is further improved, which shows that the user's location transfer process contains an inherent law, which is related to the industry category.

[0137] Table 4 Execution effect of Tag-SDT-RNN under different w

[0138]

[0139] Table 2 shows the performance of the model under different time windows. This can provide guidance for the choice of parameters. At this time, the dimension is set to d = 20 and θ = 0.5 in formula (5). We can see that the best time window width is 6 hours. In this case, all indicators except Recall@1 have the best performance. When w = 12h, Recall@1 performs better. However, this does not affect the choice of w, because even when w = 6h, Recall@1 performs better than other values.

[0140] The above description is only for illustrating the implementation mode of the present invention and is not intended to limit the present invention. For those skilled in the art, any modification, equivalent substitution, improvement, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for predicting the travel location of a vehicle owner based on vehicle location information, It is characterized in that The method comprises the following steps: Step 1: arranging vehicle trajectory data based on vehicle position data; Step 2: Identify important points of interest for users based on vehicle trajectory data; Step 3: Merge important points of interest of users through density clustering method; Step 4: Predict the user's next point of interest based on the spatiotemporal label recurrent neural network model, including: The spatiotemporal tag recurrent neural network model first defines the user interest latent vector of the recurrent neural network, including: in, is the hidden vector of user u, which represents u's position at time t. interests; is the latent vector of the POI visited by user u at time ti; For location arrive The transfer matrix corresponding to the geographical distance; is the time interval tt i The corresponding transfer matrix; D is the duration transfer matrix, and the matrix parameters are related to the time that user u stays at the location he arrives at time t; C is the parameter matrix connecting the state information of the previous step, and the matrix parameters are determined through model training; M is the industry category transfer matrix, and the matrix parameters are determined through model training; The length of time and the distance of space are sliced, and the transfer matrix corresponding to the specific values ​​of the upper and lower bounds in the training model includes: when the user makes a prediction at the point of interest, given U(l) and L(l) represent the upper and lower bounds of the geographical distance l, the distance transfer matrix S between the user's points of interest is l Calculated by the formula: The duration transfer matrix is ​​calculated by: Given U(d) and L(d) representing the upper and lower bounds of duration d, the duration transfer matrix is ​​calculated by the formula: The duration is the time the user stays at the point of interest; The transfer matrix corresponding to the time interval between a user visiting two points of interest is calculated by: Given U(t) and L(t) represent the upper and lower bounds of the partition where the time interval t is located, the transfer matrix T corresponding to the time interval t between a user visiting two points of interest is t Calculated by the formula: Defining the predicted probability of a user visiting a location at time t by calculating: Defining the predicted probability o of user u visiting location v at time t u,t,v Calculated by the formula: where q v is the vector of position v; p u is the vector of user u; θ is a hyperparameter with a value of [0,1], which measures the influence of user interest preferences and specific spatiotemporal scenarios on the prediction results; optimize the model parameters and maximize the expression p(u,t,v>v′)=f(o u,t,v -o u,t,v′ ), Where v′ is the POI that user u has not visited; f(·)——sigmoid function, Among them, the method of finding the extreme point by using the negative likelihood logarithm is used to obtain the formula: Where Θ——represents all the parameters that need to be learned {p, q, c, S, D, T, M, C}; λ——regular term weight parameter; Given the partial derivative of J with respect to the latent vector of user u at a certain time t, calculate the partial derivative of J with respect to any model parameter: optimize the model parameters by gradient descent until all parameters converge, and the training inference of the prediction model is completed; predict the user's position in time, and sort in descending order to obtain the user's top k most likely visited locations.

2. The method for predicting the travel location of a vehicle owner based on vehicle location information according to claim 1, It is characterized in that Step 1: Arrange the vehicle trajectory data: Before data sorting, batches of vehicle trajectory data are read and sorted first, and the vehicle trajectory data is separated by device number according to the device identification code, and then the data is sorted by time tag. The user's historical trajectory data is inserted at the end of the vehicle trajectory data for data update.

3. The method for predicting the travel location of a vehicle owner based on vehicle location information according to claim 2, It is characterized in that When data is updated, each time the user's historical trajectory data is inserted, it is sorted in ascending time order.

4. The method for predicting the travel location of a vehicle owner based on vehicle location information according to claim 1, It is characterized in that Step 2: Identify important points of interest for users based on vehicle trajectory data: After the vehicle trajectory data is sorted, the trajectory data of each device in chronological order is obtained, and then the important parking points in the trajectory data are identified, and the trajectory data is converted into parking point record data through trajectory compression processing; the important parking points are the starting point and the ending point of the vehicle.

5. The method for predicting the travel location of a vehicle owner based on vehicle location information according to claim 4, It is characterized in that Parking point identification, by scanning the trajectory data, associating each trajectory data read with the parking point data corresponding to a specific user, obtaining the structured data of the parking point, and outputting the parking point data record; the parking point data includes latitude and longitude, time tag, stay time and distance; Parking point recognition parameters, distance: represents the distance between two adjacent trajectory records, and the distance is calculated based on the longitude and latitude between points A and B; lastLat, lastLon, lastT: respectively record the latitude, longitude, and time tag of the previous data currently read. After the current data is processed, the latitude, longitude, and time tag of the current data will be assigned to lastLat, lastLon, and lastT; Moving: The vehicle status represented by the current data is whether it is moving, which assists in identifying the parking trigger mode; stoptime: used to calculate the time a vehicle stays at a parking spot.

6. The method for predicting the travel location of a vehicle owner based on vehicle location information according to claim 4, It is characterized in that Parking point recognition is triggered. The first parking point recognition is when the vehicle signal is interrupted and the trajectory data is no longer uploaded. When the vehicle is started again and the device starts collecting data, the last record is determined to be the parking point. At this time, distance indicates the distance deviation between the position before the device is turned off and the position after the device is started again. Another parking point recognition is that the vehicle continuously uploads data over a long period of time, but the position does not change. When the vehicle moves again, if the time interval reaches a threshold, the last record before the vehicle stops moving is recognized as a parking point.

7. The method for predicting the travel location of a vehicle owner based on vehicle location information according to claim 1, It is characterized in that Step 3: merging the important points of interest of users through the density clustering method; The user's important points of interest, which contain many adjacent locations, are collected as the input of the location clustering algorithm. The points of interest at multiple adjacent locations are clustered into one important point of interest, and the travel records of the user's important points of interest are generated to obtain a sequence of destinations that the user frequently visits.

8. The method for predicting the travel location of a vehicle owner based on vehicle location information according to claim 7, It is characterized in that The position clustering method is the DBSCAN density clustering method, which is used to return the outliers in the input data set. First, the set of outliers is output, and second, the distance is measured, calculating the longitude and latitude distance between two points; It includes two input parameters: distance threshold and density threshold. The distance threshold indicates the tendency of different samples to be divided into the same cluster based on distance. The larger the distance threshold is, the more distant samples will be divided into the same cluster. The density threshold is a limit on the number of samples in a cluster. After setting the density threshold, the number of samples in the output cluster will be greater than or equal to this value. If it is less than this value, no matter how close the two samples are, they are considered outliers.