WO2021082464A1 - Method and device for predicting destination of vehicle - Google Patents

Method and device for predicting destination of vehicle Download PDF

Info

Publication number
WO2021082464A1
WO2021082464A1 PCT/CN2020/096004 CN2020096004W WO2021082464A1 WO 2021082464 A1 WO2021082464 A1 WO 2021082464A1 CN 2020096004 W CN2020096004 W CN 2020096004W WO 2021082464 A1 WO2021082464 A1 WO 2021082464A1
Authority
WO
WIPO (PCT)
Prior art keywords
vehicle
predicted
data
model
travel
Prior art date
Application number
PCT/CN2020/096004
Other languages
French (fr)
Chinese (zh)
Inventor
汪亮
张亚楠
朱林
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2021082464A1 publication Critical patent/WO2021082464A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/04Forecasting or optimisation specially adapted for administrative or management purposes, e.g. linear programming or "cutting stock problem"
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9537Spatial or temporal dependent retrieval, e.g. spatiotemporal queries
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/26Government or public services

Definitions

  • This application relates to the field of smart transportation, and more specifically, to a method and device for predicting the destination of a vehicle.
  • Traffic congestion will not only lead to the decline of various functions of the city, but also increase the cost of travel time for residents, and reduce the quality of life of residents.
  • traffic accidents, air pollution, noise impact and other related problems caused by traffic congestion have severely hindered the economic and social development of the city.
  • the destination of traveling vehicles can be known in advance for traffic warning and diversion.
  • the method of obtaining the destination of a vehicle is to use a questionnaire survey. This method surveys a group of vehicle owners by searching for passing vehicles in a certain traffic area or sharing a questionnaire link on the Internet to obtain the destination information of the vehicle.
  • the efficiency of the destination data obtained by the method is low, and it is greatly affected by time and area. Therefore, how to predict the destination of the vehicle is a technical problem that needs to be solved urgently.
  • the present application provides a method, device and computing device for predicting the destination of a vehicle, which can improve the efficiency of predicting the destination of a vehicle.
  • this application provides a method for predicting the destination of a vehicle.
  • the method can be applied to a traffic area in which multiple monitoring devices and multiple POIs are distributed.
  • the method includes: obtaining the trajectory data of the vehicle to be predicted in the travel process and the travel data of the vehicle to be predicted in the traffic area; and obtaining the vehicle to be predicted according to the trajectory data, the travel data, and the target neural network model.
  • Predict the destination information of the vehicle in the traffic area where the destination information includes: the destination sub-region of the vehicle to be predicted and the type of POI of the destination point of interest of the vehicle to be predicted; the travel of the vehicle to be predicted
  • the data includes one or more of the following data: vehicle type, travel weather type, number of vehicle trips in the first time period, vehicle travel frequency in the second time period, and vehicle travel sub-time periods in the third time period .
  • the method of the present application predicts the sub-region and type of the target POI of the vehicle to be predicted based on the trajectory data and travel data of the vehicle to be predicted and the target neural network model trained on the trajectory data and travel data of a large number of vehicles. To obtain the destination of the vehicle to be predicted, the efficiency and accuracy of predicting the destination of the vehicle can be improved.
  • the method further includes: determining, according to the destination information of the vehicle to be predicted, that the destination is the traffic volume corresponding to the type of POI in the destination sub-area; The flow rate predicts the traffic state of the road in the destination sub-area.
  • traffic guidance can also be given according to the traffic state of the road to relieve traffic pressure.
  • the target neural network model includes an embedded model, a first feature extraction model, a second feature extraction model, a fusion model, a first classification model, and a second classification model, wherein the embedded model Used to vectorize the data input to the embedding model, and the first feature extraction model and the second feature extraction model are respectively used to extract the data input to the first feature extraction model and the second feature extraction model.
  • Feature extraction is performed on the data of the model
  • the fusion model is used to perform feature fusion on the data input to the fusion model
  • the first classification model and the second classification model are respectively used to perform feature extraction according to the first classification model and
  • the input data of the second classification model performs category prediction.
  • the obtaining the destination information of the vehicle to be predicted in the traffic area according to the trajectory data, the travel data and the target neural network model includes: inputting the trajectory data And the travel data to the embedded model to obtain the initial trajectory feature and initial travel feature of the vehicle to be predicted; input the initial trajectory feature to the first feature extraction model to obtain the trajectory feature of the vehicle to be predicted Input the initial travel feature to the second feature extraction model to obtain the travel feature of the vehicle to be predicted; input the trajectory feature and the travel feature to the fusion model to obtain the travel of the vehicle to be predicted Characteristics; input the driving characteristics to the first classification model to obtain the target sub-area of the vehicle to be predicted; input the driving characteristics to the second classification model to obtain the type of the target POI of the vehicle to be predicted .
  • the trajectory data and travel data of the vehicle to be predicted are first mapped into multi-dimensional vectors, and then the mapped multi-dimensional vectors are input to the feature extraction model to extract trajectory features and travel features with deep semantics.
  • the destination predicted by travel characteristics is more accurate.
  • the acquiring the trajectory data of the vehicle to be predicted in the traffic area during the current travel includes: determining that the vehicle to be predicted is currently traveling based on the passing data in the traffic area Information of multiple monitoring devices that have passed; and determining the trajectory data of the vehicle to be predicted according to the information of the multiple monitoring devices.
  • the method further includes: acquiring sub-region information in the traffic area; wherein the determining the trajectory data of the vehicle to be predicted according to the information of the multiple monitoring devices includes : Determine the trajectory data according to the sub-region information and the information of the multiple monitoring devices, where the trajectory data includes the information of the sub-regions to which the multiple monitoring devices belong.
  • the trajectory of the vehicle to be predicted is represented by the location information of the sub-region to which the monitoring device belongs.
  • the monitoring device belongs.
  • less data can be used to characterize the trajectory of the vehicle to be predicted, thereby reducing the amount of data calculation and the complexity of data calculation, and further improving the pre-stored data.
  • the efficiency of the destination of the vehicle is represented by the location information of the sub-region to which the monitoring device belongs.
  • the trajectory data further includes time information when the vehicle to be predicted passes through the multiple monitoring devices. These implementations use more information to predict the destination of the vehicle, which can improve the accuracy of the predicted destination.
  • the trajectory data further includes the POI types included in the sub-regions to which the multiple monitoring devices belong. These implementations use more information to predict the destination of the vehicle, which can improve the accuracy of the predicted destination.
  • the target neural network model is a neural network model trained by training data
  • the training data includes historical trajectory data of vehicles in the traffic area and travel data of the vehicles.
  • the present application provides a device for predicting the destination of a vehicle.
  • the device is applied to a geographic traffic area in which multiple monitoring devices and multiple points of interest POI are distributed.
  • the device includes: an acquisition module, It is used to obtain the trajectory data of the vehicle to be predicted in the travel process and the travel data of the vehicle to be predicted in the traffic area; the prediction module is used to obtain the data according to the trajectory data, the travel data and the target neural network model.
  • the destination information of the vehicle to be predicted in the traffic area where the destination information includes: the destination sub-area of the vehicle to be predicted and the type of the destination POI of the vehicle to be predicted; the vehicle to be predicted
  • the travel data of includes one or more of the following data: vehicle type, travel weather type, number of vehicle trips in the first time period, vehicle travel frequency in the second time period, and vehicle travel in the third time period period.
  • the device can predict the destination sub-area and destination POI type of the vehicle based on the current travel trajectory data and travel data of the vehicle, so as to know the destination of the vehicle. Compared with knowing the destination of the vehicle manually, the prediction efficiency and accuracy can be improved.
  • the prediction module is further configured to: according to the destination information of the vehicle to be predicted, determine that the destination is the traffic volume corresponding to the type of POI in the destination sub-area; The traffic flow predicts the traffic state of the road in the destination sub-area.
  • traffic guidance can also be given according to the traffic state of the road to relieve traffic pressure.
  • the target neural network model includes an embedded model, a first feature extraction model, a second feature extraction model, a fusion model, a first classification model, and a second classification model, wherein the embedded model Used to vectorize the data input to the embedding model, and the first feature extraction model and the second feature extraction model are respectively used to extract the data input to the first feature extraction model and the second feature extraction model.
  • Feature extraction is performed on the data of the model
  • the fusion model is used to perform feature fusion on the data input to the fusion model
  • the first classification model and the second classification model are respectively used to perform feature extraction according to the first classification model and
  • the input data of the second classification model performs category prediction.
  • the prediction module is specifically configured to: input the trajectory data and the travel data to the embedded model to obtain the initial trajectory characteristics and initial travel characteristics of the vehicle to be predicted; and input the The initial trajectory feature to the first feature extraction model to obtain the trajectory feature of the vehicle to be predicted; input the initial travel feature to the second feature extraction model to obtain the travel feature of the vehicle to be predicted; input the Trajectory characteristics and the travel characteristics to the fusion model to obtain the driving characteristics of the vehicle to be predicted; input the driving characteristics to the first classification model to obtain the target subregion of the vehicle to be predicted; input the The driving feature is transferred to the second classification model, and the target POI type of the vehicle to be predicted is obtained.
  • the trajectory data of the vehicle to be predicted is first mapped to a multi-dimensional vector, and then the mapped multi-dimensional vector is input to the feature extraction model to extract trajectory features with deep semantics, which can make the destination predicted based on the trajectory feature more accurate.
  • the acquisition module is specifically configured to: according to the passing data in the traffic area, determine the information of multiple monitoring devices that the vehicle to be predicted has passed through during the current trip; The information of multiple monitoring devices determines the trajectory data of the vehicle to be predicted.
  • the acquisition module is specifically configured to: acquire sub-area information in the traffic area; determine the trajectory data according to the sub-area information and the information of the multiple monitoring devices, so The trajectory data includes information about the sub-regions to which the multiple monitoring devices belong.
  • the trajectory of the vehicle to be predicted is represented by the location information of the sub-region to which the monitoring device belongs.
  • the monitoring device belongs.
  • less data can be used to characterize the trajectory of the vehicle to be predicted, thereby reducing the amount of data calculation and the complexity of data calculation, and further improving the pre-stored data.
  • the efficiency of the destination of the vehicle is represented by the location information of the sub-region to which the monitoring device belongs.
  • the trajectory data further includes time information when the vehicle passes through each of the at least one location. These implementations use more information to predict the destination of the vehicle, which can improve the accuracy of the predicted destination.
  • the trajectory data further includes the POI types included in the sub-regions to which the multiple monitoring devices belong. These implementations use more information to predict the destination of the vehicle, which can improve the accuracy of the predicted destination.
  • the target neural network model is a neural network model trained by training data
  • the training data includes historical trajectory data of vehicles in the traffic area and travel data of the vehicles.
  • a computing device in a third aspect, includes a processor and a memory, where computer instructions are stored in the memory, and the processor executes the computer instructions to implement the methods of the first aspect and possible implementation manners thereof.
  • a computer-readable storage medium which is characterized in that the computer-readable storage medium stores computer instructions, and when the computer instructions in the computer-readable storage medium are executed by a computing device, the computing device executes the first Aspects and possible implementation manners thereof, or enable a computing device to implement the functions of the above-mentioned second aspect and possible implementation manners of the apparatus.
  • a computer program product containing instructions which when running on a computing device, causes the computing device to execute the above-mentioned first aspect and its possible implementation methods, or causes the computing device to implement the above-mentioned second aspect The function of the device and its possible implementations.
  • FIG. 1 is a schematic flowchart of a method for predicting the destination of a vehicle according to this application;
  • Fig. 2 is a schematic flow chart of a method for obtaining trajectory data of a vehicle according to this application;
  • FIG. 3 is another schematic flow chart of the method for obtaining vehicle trajectory data according to this application.
  • Figure 4 is a schematic structural diagram of the target neural network model of the application.
  • FIG. 5 is a schematic flowchart of a method for obtaining destination information of a vehicle according to this application.
  • FIG. 6 is another schematic flowchart of a method for obtaining destination information of a vehicle according to this application.
  • Fig. 7 is another schematic structural diagram of the target neural network model of the application.
  • FIG. 8 is another schematic flowchart of a method for obtaining destination information of a vehicle according to this application.
  • FIG. 9 is a schematic structural diagram of a device for predicting the destination of a vehicle in this application.
  • FIG. 10 is another schematic structural diagram of the device for predicting the destination of a vehicle in this application.
  • FIG. 11 is a schematic structural diagram of a computing device for predicting the destination of a vehicle in this application.
  • FIG. 12 is a schematic architecture diagram of a system to which the apparatus of the embodiment of the present application can be applied;
  • FIG. 13 is a schematic deployment diagram of a device to which an embodiment of the present application can be applied.
  • FIG. 14 is a schematic flow chart of the application for obtaining initial trajectory features
  • Fig. 15 is another schematic flow chart for obtaining the initial trajectory feature according to the present application.
  • POI is a place that people are interested in and frequent in daily life. Generally speaking, a POI can be described from three aspects: name, location and type.
  • the name of the POI is used to identify the POI to distinguish it from other POIs.
  • the type of POI is usually the result of dividing the POI according to the function or purpose of the POI.
  • the location of the POI is usually expressed by the longitude and latitude of the location of the POI.
  • POI can include: government departments, gas stations, department stores, supermarkets, restaurants, hotels, convenience stores, hospitals, tourist attractions, stations, parking lots, etc.
  • POI names include: Tiananmen Square, Oriental Pearl Tower, Terracotta Warriors and Horses, Wangfujing Department Store, and Baiyun Airport.
  • Each POI name corresponds to one POI type.
  • One POI type can correspond to multiple POI names, such as: Tiananmen Square, Oriental Pearl Tower, The POI type corresponding to the Terracotta Warriors and Horses of Qin Shihuang is "tourist attraction"; the POI type corresponding to Wangfujing Department Store is "shopping mall”; the POI type corresponding to Baiyun Airport is "transportation".
  • the monitoring system is a system that monitors the driving information of vehicles in the traffic area, and further processes the driving information of the vehicles to obtain monitoring data.
  • the monitoring system includes monitoring equipment and processing systems.
  • the data obtained from the monitoring system is called monitoring data
  • the monitoring data includes traffic passing data of multiple intersections or multiple road sections.
  • the passing data of each intersection or each road section is the data recorded by the monitoring equipment installed at the intersection or the road section and analyzed by the processing system.
  • the passing data of a monitoring device includes the license plate information and model information of the vehicle passing the location of the monitoring device within a period of time, the time information when the monitoring device captures the vehicle, and the location information of the location of the monitoring device (such as latitude and longitude information) And the number information of the monitoring device.
  • the location information of the location where the monitoring device is located can also be understood as the location information of the location where the vehicle passes
  • the time information of the vehicle captured by the monitoring device can also be understood as the time information of the vehicle passing the location.
  • the monitoring system in the embodiment of the present application may be a bayonet monitoring system.
  • the bayonet monitoring system is used to monitor vehicles passing through specific places in the traffic area (such as toll stations, traffic or public security checkpoints, intersections, road sections, etc.).
  • the bayonet monitoring system includes a bayonet device and a processing system.
  • the bayonet device is set at a certain position of an intersection or road section to monitor vehicles passing by that position.
  • the bayonet device is a device that can capture images or images, such as Camera, or camera, etc.; the processing system can obtain images or images captured by the bayonet device, and use deep learning algorithms to identify the license plate, model, and number of vehicles in the image or image captured by the bayonet device, and can also record the elapsed time And other information.
  • the processing system can be a software system running on a computing device.
  • the processing system can be deployed in a server close to the bayonet device or on a remote server.
  • the data processed by the processing system in the bayonet monitoring system can be used as the monitoring data of the bayonet monitoring system.
  • bayonet devices can be installed only at some intersections, such as trunk road sections in the traffic area, road sections prone to traffic jams, road sections with intensive accidents, and key road junctions.
  • the bayonet device installed at an intersection can capture vehicles passing through all lanes of the intersection.
  • the angle of view (shooting range) of the bayonet device at the intersection can cover all lanes of the intersection; the bayonet device installed at the intersection can also It is possible to only photograph the vehicles passing through a part of the lane of the intersection.
  • the angle of view (the shooting range) of the bayonet device at the intersection may only cover the lane in the direction of the intersection.
  • the monitoring system is a bayonet monitoring system as an example for description.
  • the monitoring system can also be an electronic police system, which can monitor vehicles passing through intersections in a traffic area, identify vehicle information, and further determine possible traffic violations and traffic accidents.
  • the electronic police system includes electronic police monitoring equipment and an analysis and processing system.
  • the content of the data recorded by the electronic police monitoring equipment is similar to the content of the data captured by the bayonet device.
  • the analysis and processing system analyzes and processes the data and the processing system of the bayonet monitoring system.
  • the processed data is also similar.
  • the data analyzed and processed by the analysis and processing system can also include the license plate of the vehicle passing the intersection where the electronic police monitoring device is located, the recorded elapsed time and the entrance lane, and can also include the vehicle model, one or The number of vehicles passing through the intersection where the electronic police monitoring equipment is located in multiple time periods; the monitoring data of the electronic police system includes the data after the analysis and processing system analyzes and processes the data recorded by multiple electronic police monitoring equipment.
  • the data analyzed and processed by the analysis and processing system in the electronic police monitoring system and the data processed by the processing system of the bayonet monitoring system may be correspondingly merged, and the merged data may be used as monitoring data.
  • the monitoring system is the bayonet monitoring system as an example.
  • the monitoring system is an electronic police system (correspondingly, the monitoring data is the monitoring data of the electronic police system), or the monitoring system is monitored by the bayonet
  • the situation of the system formed by the combination of the system and the electronic monitoring system (correspondingly, the monitoring data is the fused monitoring data) is similar to the situation where the monitoring system is a bayonet monitoring system, and will not be repeated here.
  • the parking lot data refers to the parking records of the parking lot of each POI or the parking lot near each POI.
  • a camera at a parking lot bayonet can collect the parking data of the parking lot.
  • the parking lot data can include: the license plate information of the vehicle, the time when the vehicle enters the parking lot, the time when the vehicle leaves the parking lot, and the parking duration, within a period of time The number of vehicles entering, the number of vehicles leaving within a period of time, the remaining number of vehicles that can be accommodated in the parking lot, etc.
  • the road traffic state can be divided into three states: congested, slow, and unblocked, or the road traffic state can be divided into unblocked, lightly congested, congested, and severely congested.
  • Neural network model is a kind of mathematical calculation model that imitates the structure and function of biological neural network (animal's central nervous system).
  • a neural network model can be composed of a combination of multiple sub-neural network models.
  • Neural network models with different structures can be used in different scenes (for example, classification, recognition or image segmentation) or provide different effects when used in the same scene.
  • Different neural network model structures specifically include one or more of the following: the number of network layers in the neural network model is different, the order of each network layer is different, and the weights, parameters or calculation formulas in each network layer are different.
  • neural network models with high accuracy for application scenarios such as weather prediction, image content prediction, and event probability prediction in the industry.
  • some neural network models can be trained by a specific training set to complete a task alone or combined with other neural network models (or other functional modules) to complete a task.
  • Some neural network models can also be used directly to complete a task alone or in combination with other neural network models (or other functional modules) to complete a task.
  • a vehicle In real life, when a vehicle is traveling, it usually has a clear POI, such as going to a hospital in a certain area, or going to a primary school to send a child to school, or shopping in a mall. If during the journey of each vehicle, it is possible to predict in advance the destination that the vehicle will go to, and predict which sub-area in the traffic area can be reached and the POI type of the vehicle’s destination, then the entire vehicle can be predicted. The number of vehicles arriving at the same POI in the traffic area. Further, the future traffic state of the road near the POI can be predicted based on the number and the road network data near the POI, and the traffic management and prompts can be performed early based on the predicted future traffic state of the road.
  • a clear POI such as going to a hospital in a certain area, or going to a primary school to send a child to school, or shopping in a mall.
  • this application proposes a method for predicting the destination of a vehicle, by which the destination information of the traveling vehicle can be obtained in advance.
  • the destination information of the vehicle includes the destination sub-area of the vehicle and the vehicle.
  • the purpose of the POI type a neural network model that has been trained is used, called the target neural network model, based on the travel data (trajectory data and/or travel data) that the current traveling vehicle has generated during the trip.
  • the target neural network model Predict the destination sub-area and the type of the destination POI of the current traveling vehicle to achieve the purpose of predicting the destination of the current traveling vehicle.
  • This method can improve the prediction accuracy and predicted speed of the destination of the vehicle.
  • the method can also predict the road traffic status of each sub-area in the traffic area based on the destinations of multiple traveling vehicles in the entire traffic area, so that the traffic management department can timely warn the road traffic status of the traffic area. And regulation.
  • Fig. 1 is a schematic flowchart of a method for predicting the destination of a vehicle according to the present application.
  • the method may include S110 to S120.
  • the device that executes this method is called a prediction device.
  • the vehicle to be predicted is a traveling vehicle that is in the process of driving and has not yet reached the destination.
  • the vehicle to be predicted that can be used for destination prediction in this solution is usually a vehicle that has passed several monitoring equipment, that is, a vehicle that has formed a driving track, for example: the driving track of the vehicle can be judged in the process of driving It is determined that the vehicle whose position information included in the driving track is greater than the preset threshold value can be predicted by this solution, that is, this kind of vehicle can be called the vehicle to be predicted.
  • the method for predicting the destination of a vehicle in this application can be executed on multiple vehicles to be predicted in the traffic area. For ease of understanding, this application will subsequently predict a vehicle to be predicted. Predict the destination of the vehicle as an example, and describe the method.
  • obtaining the target sub-region and the target POI type of the vehicle to be predicted can be understood as: inputting the trajectory data to the target neural network model; obtaining all the output of the target neural network model Describe the target sub-area of the vehicle to be predicted and the type of the target POI.
  • Fig. 2 is an exemplary flow chart of a method for obtaining trajectory data of a vehicle to be predicted in this application.
  • the method shown in FIG. 2 includes S210 to S220.
  • the predicting device receives the passing data in the traffic area periodically sent by the monitoring system, and the passing data in the traffic area includes the passing data recorded by multiple monitoring devices in the traffic area.
  • the prediction device sends a request message to the monitoring system to request the passing data in the traffic area, and the request message carries the name or area identification information of the traffic area. After receiving the request message, the monitoring system sends the passing data in the traffic field to the prediction device.
  • S220 Determine trajectory data of the vehicle to be predicted according to the passing data.
  • the passing data recorded by each monitoring device in the traffic area can include the license plate information, model information of the vehicle passing the location of the monitoring device within a period of time, the time information when the monitoring device captures the vehicle, and the location of the monitoring device. Location information (such as latitude and longitude information) and number information of the monitoring device. According to the passing data, the trajectory data of the vehicle to be predicted can be determined.
  • the trajectory data of the vehicle to be predicted may include a variety of information, for example: 1.
  • the trajectory data of the vehicle to be predicted includes: location information or grids of sub-regions in the traffic area that the vehicle to be predicted passes through Number; 2.
  • the trajectory data of the vehicle to be predicted includes: the position information or grid number of the sub-area in the traffic area that the vehicle to be predicted passes through, and the time information when the vehicle to be predicted passes through one or more of these locations; 3.
  • the trajectory data of the predicted vehicle includes: the position information or grid number of the sub-area in the traffic area that the vehicle to be predicted passes through, and the type of POI that the vehicle to be predicted passes through; 4.
  • the trajectory data of the vehicle to be predicted includes: the vehicle to be predicted passes through Location information or grid numbers of sub-regions in the traffic area, the type of POI that the vehicle to be predicted passes through, and time information when the vehicle to be predicted passes one or more of these locations.
  • the following describes how to determine the trajectory data of the vehicle to be predicted based on the passing data.
  • Fig. 3 is an exemplary flow chart of an implementation method of determining the trajectory data of the vehicle to be predicted according to the passing data.
  • the method shown in FIG. 3 includes S310 to S330.
  • S310 Acquire location information of sub-areas in the traffic area.
  • the prediction device divides the map covering the traffic area into grids with a specified accuracy or a specified number.
  • the area covered by a grid is a sub-area, and the center point of each grid covers the location.
  • Location information (for example, latitude and longitude) indicates the location information of the sub-region corresponding to the grid.
  • the position information of multiple sub-areas in the traffic area forms a position information sequence.
  • the prediction device can use artificial division, Geohash method or other methods to divide the map of the traffic area.
  • the division accuracy of each grid can be determined by the application's accuracy requirements for the predicted target sub-region and the overall area of the traffic area.
  • the map of the traffic area can be divided into 10,000-meter, kilometer, or hundred-meter-level grids.
  • the grid can be merged with its adjacent grid, that is, it can be used.
  • the center point of the adjacent grid is used as the center point of the grid.
  • the less and more here can be based on a threshold.
  • the threshold may be set according to the historical passing frequency of each grid after the historical passing frequency in the sub-region corresponding to each grid is counted. For example, the historical passing frequency may be sorted, and the number of the nth historical passing frequency in the historical passing frequency sorting is taken as the threshold, where n is a positive integer greater than 0.
  • the prediction device does not need to perform grid division of the traffic area, and the prediction device sends a message requesting location information of the sub-area to other devices, and the message may carry the name or area identification information of the traffic area.
  • the prediction device After receiving the message, other devices send the location information of the sub-area in the traffic area to the prediction device.
  • the location information of the sub-area in the traffic area can be manually copied to the prediction device.
  • S320 Determine initial trajectory data of the vehicle to be predicted according to the passing data.
  • the prediction device obtains the location information (such as latitude and longitude information) of the target monitoring device from the passing data and the time information of the vehicle to be predicted recorded by the target monitoring device.
  • the target monitoring device refers to the recorded vehicle.
  • the monitoring equipment of the vehicle to be predicted for example, the license plate number of the vehicle to be predicted
  • the time information of all the target monitoring equipment records the vehicle to be predicted is arranged in chronological order. Accordingly, the location information of all the target monitoring equipment is
  • the target monitoring equipment records the time sequence of the target vehicle; according to the difference between the time indicated by the two adjacent time information in the time information sequence, the initial trajectory of the vehicle to be predicted for this trip is obtained from the position information sequence data.
  • the above-mentioned time threshold may be determined according to the average speed of the vehicle to be predicted and the driving distance between the two target monitoring devices. For example, assuming that the driving distance between two target monitoring devices is 30 kilometers or 15 kilometers (there are two different driving routes), and the average speed of the vehicle to be predicted in the traffic area is 10 kilometers per hour, the time threshold can be The preset is 1.5 hours to 3 hours.
  • S330 Determine the trajectory data of the vehicle to be predicted according to the location information of the sub-area in the traffic area and the initial trajectory data of the vehicle to be predicted.
  • each position information in the initial trajectory data of the vehicle to be predicted is replaced with the position information of the subregion to which the position indicated by the position information belongs, so as to obtain the trajectory data of the vehicle to be predicted.
  • the position information in the initial trajectory data is actually the position information of the monitoring device that captured the vehicle to be predicted.
  • the trajectory data of the vehicle to be predicted may be deduplicated. That is, search for multiple adjacent and identical position information in the trajectory data of the vehicle to be predicted, delete the repeated position information in the multiple position information, and leave only one of them. This can reduce the amount of data, which can improve forecasting efficiency.
  • the position information sequence formed by the position information of the sub-areas in the traffic area is converted into a grid sequence.
  • each position information in the initial trajectory data of the vehicle to be predicted is replaced with the corresponding grid serial number, thereby obtaining the trajectory data of the vehicle to be predicted.
  • the grid sequence number corresponding to each location information refers to the grid sequence number corresponding to the sub-region to which the location indicated by the location information belongs. Since the grid sequence number can be represented by more concise information than the position information, indicating the trajectory of the vehicle to be predicted by the grid sequence number can reduce the amount of data calculation, thereby improving the prediction efficiency.
  • the trajectory data of the vehicle to be predicted may be deduplicated. That is, search for multiple adjacent and identical grid serial numbers in the trajectory data of the vehicle to be predicted, delete the repeated grid serial numbers among the multiple grid serial numbers, and keep only one of them. This can reduce the amount of data, which can improve forecasting efficiency.
  • the prediction device may directly use the initial trajectory data of the vehicle to be predicted as the trajectory data of the vehicle to be predicted.
  • the prediction device may determine the trajectory data of the vehicle to be predicted based on the initial trajectory data and the time information sequence corresponding to the current trip.
  • the initial trajectory data and the time information sequence corresponding to the current trip form the trajectory data of the vehicle to be predicted.
  • the position information in the initial trajectory data is replaced with the position information of the subregion, and the position information sequence after the replacement and the time information sequence corresponding to the current trip form the trajectory data of the vehicle to be predicted.
  • the position information in the initial trajectory data is replaced with the grid serial number of the subregion, and the replaced grid serial number sequence and the time information sequence corresponding to the current trip form the trajectory data of the vehicle to be predicted.
  • the prediction device may also obtain the correspondence between the POI and the POI type in the traffic area, and determine the trajectory data of the vehicle to be predicted based on the correspondence and the initial trajectory data of the vehicle to be predicted.
  • the position information in the initial trajectory data is replaced with the position information of the sub-region, and the position information sequence after the replacement and the type of POI in each sub-region are combined into the trajectory data of the vehicle to be predicted.
  • the position information in the initial trajectory data is replaced with the grid serial number of the subregion, and the replaced grid serial number sequence and the type of POI in each subregion are combined into the trajectory data of the vehicle to be predicted.
  • the type of POI constitutes the trajectory data of the vehicle to be predicted.
  • the type of POI constitutes the trajectory data of the vehicle to be predicted.
  • Each position information or each grid number in the trajectory data of the vehicle to be predicted may correspond to one or more POI types.
  • the time information in the initial trajectory data can be converted from the format of year, month, day, hour, and minute to the format of month, week, day, hour, and hour.
  • 17:36 on December 1, 2018 can be expressed as [12,6,1,17,3], where "12" in “[]” means December, “6” means Saturday, and "1 "Means the 1st, "17” means 17:00, and "3" means 36 minutes is the third time in an hour.
  • Month, week, day, hour, and moment can be called time elements of time information.
  • the following describes the implementation manner for the prediction device to obtain the correspondence between the POI and the POI type in the traffic area.
  • the prediction device can first obtain information about all POIs in the traffic area, and then use K-means clustering algorithm, hierarchical clustering algorithm, density-based clustering algorithm, Gaussian mixture model clustering algorithm, or mean shift Any one of the clustering algorithms performs clustering processing on all POIs in the traffic area, and establishes the corresponding relationship between the POI type and the POI; and then stores the corresponding relationship between the POI type and the POI.
  • the POIs used for accommodation in hotels, guesthouses, and inns can be clustered into one category
  • the POIs used for providing cooked food such as Chinese restaurants, western restaurants, fast food restaurants, etc. can be clustered into one category.
  • the prediction device may obtain the correspondence between the POI and the POI type in the traffic area from other equipment. For example, the prediction device sends a message requesting the corresponding relationship to other devices, and the message may carry the name of the traffic area or the area identification information. After receiving the message, other devices send the corresponding relationship to the prediction device.
  • Fig. 4 is an exemplary structure diagram of the target neural network model of the application.
  • the target neural network model of the present application may include an embedded model, a first feature extraction model, a first classification model, and a second classification model.
  • the embedded model is used for vector mapping to obtain a multi-dimensional vector;
  • the feature extraction model is used to obtain the trajectory features of the vehicle to be predicted;
  • the first classification model is used to output the target subregion of the vehicle to be predicted according to the trajectory feature;
  • the second classification model is used to output the target POI of the vehicle to be predicted according to the trajectory feature Types of.
  • the first feature extraction model can include any one of a long short term memory (LSTM) network, a bidirectional recurrent neural network (BRNN), and a memory network (Memory Networks).
  • the first classification model or the second classification model may be an artificial neural network model.
  • the first classification model or the second classification model is an artificial neural network model that only includes a fully connected layer and an activation function.
  • the method shown in FIG. 5 includes S510 to S540.
  • S510 Acquire an initial trajectory feature of the vehicle to be predicted according to the trajectory data and the embedded model of the vehicle to be predicted. An exemplary implementation of this step will be introduced in the subsequent content.
  • S520 Acquire the trajectory feature of the vehicle to be predicted according to the initial trajectory feature of the vehicle to be predicted and the first feature extraction model.
  • the initial trajectory feature of the vehicle to be predicted is input into the first feature extraction model, and the feature output by the first feature extraction model can be used as the trajectory feature of the vehicle to be predicted.
  • S530 Obtain a target sub-region of the vehicle to be predicted according to the trajectory feature output by the feature extraction model and the first classification model.
  • the trajectory feature output by the feature extraction model is input to the first classification model, and the first classification model outputs the target sub-region of the vehicle to be predicted.
  • S540 Acquire the target POI type of the vehicle to be predicted according to the trajectory feature output by the feature extraction model and the second classification sub-model.
  • the trajectory feature output by the feature extraction model is input into the second classification model, and the second classification model outputs the type of the target POI of the vehicle to be predicted.
  • the following introduces several different implementation methods for obtaining the initial trajectory characteristics of the vehicle to be predicted according to the trajectory data of the vehicle to be predicted and the embedded model when the trajectory data of the vehicle to be predicted includes different information.
  • the prediction device may first input the position information or grid serial numbers in the trajectory data of the vehicle to be predicted into the first embedding layer in the embedding model, and the first embedding layer pairs The position information or grid sequence number is mapped to obtain multiple multi-dimensional vectors.
  • the dimension of the vector obtained by the mapping is preset, and the dimensions of the multiple vectors obtained from the mapping of the trajectory data of the vehicle to be predicted are all the same.
  • the trajectory data of the vehicle to be predicted includes n pieces of position information, and each position information is mapped to a v-dimensional vector
  • the trajectory data of the vehicle to be predicted can be mapped to n vectors, and these n vectors can form a n*
  • the matrix of v, m and v are both positive integers.
  • the trajectory data of the vehicle to be predicted includes n grid numbers, and each grid number is mapped to a v-dimensional vector
  • the trajectory data of the vehicle to be predicted can be mapped to n vectors, and these n vectors can form one
  • n*v both m and v are positive integers.
  • the multiple vectors can be merged to obtain the spatial feature vector of the vehicle to be predicted, and the spatial feature vector can be used as the initial trajectory feature of the vehicle to be predicted.
  • these multiple vectors can be spliced together in order to obtain the spatial feature vector of the vehicle to be predicted.
  • a dot multiplication operation can be performed on these multiple vectors, and the result of the dot multiplication can be used as the spatial feature vector of the vehicle to be predicted.
  • the n grid numbers "g 1 , ..., g i , ..., g n "in the trajectory data of the vehicle to be predicted are input into the first embedding layer in the embedding model, and the vectors "[a 11 ...a 1j ...a 1n ]”...“[a i1 ...a ij ...a in ]”...“[a n1 ...a nj ...a nn ]”, where i and j are positive integers less than or equal to n;
  • the prediction device may first input the position information or grid serial number in the trajectory data of the vehicle to be predicted into the first embedding layer in the embedding model to Obtain the spatial feature vector; and input each time element in the time information into the second embedding layer to the sixth embedding layer in the embedded model to obtain the temporal feature vector of the vehicle to be predicted; and combine the spatial feature vector and the temporal feature vector Fusion is the initial trajectory feature of the vehicle to be predicted.
  • the position information or the grid sequence number in the trajectory data of the vehicle to be predicted is input into the first embedding layer in the embedding model to obtain the implementation of the spatial feature vector, as described above, and will not be repeated here.
  • the following describes how to input each time element in the time information into the second embedding layer to the sixth embedding layer in the embedded model to obtain the time feature vector of the vehicle to be predicted.
  • the "month” time element is input to the second embedding layer, and the second embedding layer outputs a multi-dimensional vector;
  • the "week” time element is input to the third embedding layer, and the third embedding layer outputs a multi-dimensional vector;
  • "day” time The element is input to the fourth embedding layer, and the fourth embedding layer is mapped to obtain a multi-dimensional vector;
  • the “time” time element is input to the fifth embedding layer, and the fifth embedding layer is mapped to obtain a multi-dimensional vector;
  • the six embedding layer outputs a multi-dimensional vector.
  • the dimensions of the vectors output by the second, third, fourth, fifth, and sixth embedding layers can be preset, and the vectors output by these five embedding layers The dimensions of can be the same or different.
  • the five vectors can be spliced together in order to form a time feature vector of the vehicle to be predicted; or, the five vectors can be dot-multiplied, and the result of the operation can be used as a time feature vector. It should be noted that the dimensions of these five vectors must be the same when performing dot multiplication operations.
  • the prediction device After the prediction device obtains the time feature vector of the vehicle to be predicted, it can fuse the space feature vector and the time feature vector of the vehicle to be predicted to obtain the initial trajectory feature of the vehicle to be predicted.
  • the spatial feature vector and time feature vector of the vehicle to be predicted can be spliced together to obtain the initial trajectory feature of the vehicle to be predicted; or, the spatial feature vector of the vehicle to be predicted can be obtained.
  • the point multiplication operation is performed with the time feature vector, and the result of the operation is the initial trajectory feature of the vehicle to be predicted. This method requires that the dimensions of the space feature vector and the time feature vector are the same.
  • the spatial feature vector and the multiple temporal feature vectors can be spliced in sequence to obtain the initial trajectory feature of the vehicle to be predicted; or, the multiple temporal feature vectors can be selected first. Multiplication, and then splicing the calculated vector with the spatial feature vector to obtain the initial trajectory feature of the vehicle to be predicted; or, do a dot multiplication on the multiple temporal feature vectors and the spatial feature vector, and the result of the calculation is To predict the initial trajectory characteristics of the vehicle, this method requires that the dimensions of the temporal feature vector and the spatial feature vector are the same.
  • the network sequence numbers "g 1 ,..., g i ,..., g n "in the trajectory data of the vehicle to be predicted are sequentially input into the first embedding layer and the splicing module, and the spatial feature vector "a 11 ...a 1j ...a 1n ...a i1 ...a ij ...a in ...a n1 ...a nj ...a nn ".
  • the prediction device can first input the location information or grid number in the trajectory data of the vehicle to be predicted into the first embedding in the embedded model Layer to obtain the spatial feature vector; input each time element in the time information into the second embedding layer to the sixth embedding layer in the embedding model to obtain the time feature vector of the vehicle to be predicted; enter the POI type into the seventh embedding Layer to obtain the POI feature vector; and fuse the spatial feature vector, the temporal feature vector, and the POI feature vector into the initial trajectory feature of the vehicle to be predicted.
  • the implementation of the second embedding layer to the sixth embedding layer to obtain the time feature vector of the vehicle to be predicted is as described above and will not be repeated here.
  • the following describes how to input the POI type into the seventh embedding layer to obtain the POI feature vector.
  • the seventh embedding layer After each POI type is input to the seventh embedding layer, the seventh embedding layer outputs a multi-dimensional vector.
  • the dimension of the vector can be preset. The dimensions of the vectors corresponding to different POI types are the same.
  • the prediction device When the prediction device obtains that each position information or grid number in the trajectory data corresponds to multiple POI types, it can first splice or perform dot multiplication operations on multiple vectors corresponding to the multiple POI types to obtain the position information or grid The POI vector corresponding to the serial number.
  • the multiple POI vectors can be spliced or dot multiplied to obtain the POI feature vector of the vehicle to be predicted. If a POI vector is obtained from the trajectory data of the vehicle to be predicted, this POI vector can be directly used as the POI feature vector of the vehicle to be predicted.
  • the POI feature vector of the vehicle to be predicted After the POI feature vector of the vehicle to be predicted is obtained, the POI feature vector and the spatial feature vector of the vehicle to be predicted can be spliced or dot multiplied, and the obtained vector can be used as the initial trajectory feature of the vehicle to be predicted; or, the POI can be used as the initial trajectory feature of the vehicle to be predicted.
  • the feature vector is spliced or dot multiplied with the spatial feature vector and time feature vector of the vehicle to be predicted, and the obtained vector is used as the initial trajectory feature of the vehicle to be predicted.
  • the dot multiplication method requires the dimensions of each feature vector to be the same.
  • predicting the destination of a vehicle in addition to predicting based on the trajectory data of the vehicle to be predicted, it can also be predicted based on the trajectory data and travel data of the predicted vehicle, and the travel data of the vehicle to be predicted can be added for the destination of the vehicle Prediction can improve the accuracy of predicted destination information.
  • Fig. 6 is an exemplary flowchart of another method for predicting the destination of a vehicle to be predicted in this application.
  • the method shown in FIG. 6 includes S610 to S630.
  • S610 Acquire trajectory data of the vehicle to be predicted in the traffic area, where the trajectory data includes location information of locations that the vehicle to be predicted has passed during this trip.
  • the implementation of this step can refer to the implementation of S110, which will not be repeated here.
  • S620 Acquire travel data of the vehicle to be predicted.
  • the travel data of the vehicle to be predicted may include one or more of the following: the number of trips of the vehicle to be predicted in a period of time, the travel frequency of the vehicle to be predicted in a period of time, the type of vehicle to be predicted, and the type of vehicle to be predicted.
  • Predict the weather type when the vehicle is traveling the travel sub-time period of the vehicle to be predicted in a period of time, the number of trips of the vehicle of the vehicle type to be predicted in a period of time, and the number of trips of the vehicle type of the vehicle to be predicted in a period of time
  • Travel frequency is the number of vehicles of the same type as the vehicle to be predicted that travel within a period of time.
  • the travel data of the vehicle to be predicted may include one or more of the following information: the number of sunrise trips of the vehicle to be predicted, the frequency of monthly trips, the type of vehicle to be predicted, the weather type at the start time of the vehicle to be predicted, The sub-time period of the trip of the vehicle to be predicted in a day, the number of trips of the vehicle type of the vehicle to be predicted in a day, the trip frequency of the vehicle type of the vehicle to be predicted within a month, and the number of trips within a month , The number of vehicles of the same vehicle type as the vehicle to be predicted.
  • One way to obtain the number of trips of the vehicle to be predicted in a period of time is as follows: Obtain the historical passing data of the traffic area within the period of time, and then determine the number of trips of the vehicle to be predicted in the period of time based on the historical process data . For an implementation manner of determining the number of trips of the vehicle to be predicted during the period of time according to the historical process data, reference may be made to related content in S320.
  • the passing data in S320 is the passing data of the time period during which the vehicle to be predicted will travel this time, while the passing data in this step is historical passing data; and the i-th time information is determined in this step
  • the travel frequency of the vehicle to be predicted within a period of time refers to the ratio of the number of sub-periods in which the vehicle to be predicted travels to the total number of sub-periods included in the period of time.
  • the travel frequency of the vehicle to be predicted in a period of time may refer to the ratio of the number of days the vehicle to be predicted travels to the total number of days in the month in a month.
  • the vehicle type of the vehicle to be predicted refers to classifying the vehicle in a certain way.
  • vehicles can be divided into different types such as taxis, passenger cars, private cars, and trucks.
  • the type of weather to be predicted when the vehicle travels may include sunny, cloudy, cloudy, rainy and snowy, etc.
  • the weather type when the vehicle to be predicted travels may be the weather type on the day of travel, or may be the weather type at the time period when the travel starts.
  • the weather type of the vehicle to be predicted when traveling can be obtained from the weather station or weather software.
  • the number of trips of a vehicle of the vehicle type to which the vehicle to be predicted belongs within a period of time can be obtained by the following method: adding the number of trips of all vehicles in the vehicle type during the period of time.
  • the travel frequency of the vehicle of the vehicle type to be predicted within a period of time can be obtained by calculating the number of sub-periods in which vehicles of the vehicle type travel within a period of time and the total number of sub-periods included in the period of time. The ratio of the quantity.
  • Each piece of data in the travel data of the vehicle to be predicted can be encoded to form a vector, for example:
  • S630 Obtain a target sub-region and a target POI type of the vehicle to be predicted in the traffic area according to the trajectory data, the travel data, and the target neural network model.
  • the POI of this type in the destination sub-area is the destination of the vehicle to be predicted.
  • the target neural network model may include an embedded model, a first feature extraction model, a second feature extraction model, a fusion model, a first classification model, and a second classification model, where the embedded model is used for vector mapping to obtain a multidimensional vector;
  • the feature extraction model is used to extract the trajectory features of the vehicle to be predicted;
  • the second feature extraction model is used to extract the travel features in the travel data;
  • the fusion model is used to fuse the trajectory features and the travel features into driving features;
  • the first classification The model is used to output the target sub-region of the vehicle to be predicted according to the driving feature;
  • the second classification model is used to output the target POI type of the vehicle to be predicted according to the driving feature.
  • the first feature extraction model may include any one of LSTM network, BRNN, and memory network.
  • the second extracted feature model may include an artificial neural network model.
  • the second extracted feature model may be a neural network model including one or more fully connected layers.
  • the first classification model or the second classification model may be an artificial neural network model.
  • the first classification model or the second classification model is a neural network model that only includes a fully connected layer and an activation function.
  • the method shown in FIG. 8 includes S810 to S870.
  • S810 Acquire an initial trajectory feature of the vehicle to be predicted according to the trajectory data and the embedded model of the vehicle to be predicted.
  • S820 Acquire the trajectory feature of the vehicle to be predicted according to the initial trajectory feature of the vehicle to be predicted and the first feature extraction model.
  • S830 Obtain the initial travel characteristics of the vehicle to be predicted based on the travel data and the embedded model.
  • each type of data in the travel data into the corresponding embedding layer in the embedding model, and the embedding layer maps the corresponding data into a multi-dimensional vector, where different types of data have different embedding layers, and the dimensions of the mapped vector can be the same , It can also be different, the dimension of the vector obtained by different data mapping is preset.
  • the number of trips of the vehicle to be predicted in a period of time can be encoded first.
  • the encoding method may be: specifying that the number of trips of the vehicle to be predicted in a period of time is 0 to n times is the first gear, and the corresponding code value is "1"; the number of trips from n+1 to n+2 is the second gear, and the corresponding code value is "2", and so on.
  • the code value corresponding to the number of trips can be determined according to the gear division method and the code value corresponding to each gear, and then the corresponding code value is input into the corresponding embedded layer for mapping. This method can reduce the amount of calculation and the complexity of the calculation.
  • the travel frequency of the vehicle to be predicted in a period of time can be encoded first.
  • the encoding method can be: specify the travel frequency of the vehicle to be predicted in a period of time from 0 to frequency 1. For the first gear, the corresponding value is "1"; Frequency 1 to Frequency 2 are for the second gear, and the corresponding value is "2", and so on.
  • the value corresponding to the travel frequency can be determined according to the gear division method and the value corresponding to each gear, and then the corresponding value is input into the corresponding embedded layer for mapping. This method can reduce the amount of calculation and the complexity of the calculation.
  • the value corresponding to each weather type can be specified first, for example: the value “00” for sunny days, the value “01” for cloudy days, and the value “01” for cloudy days. 10", the corresponding value "11” in rainy and snowy days, and then find the value corresponding to the weather type when the vehicle to be predicted travels from these values, and then input the corresponding value into the corresponding embedding layer for mapping.
  • the prediction device After the prediction device obtains the multi-dimensional vector corresponding to various historical travel data of the vehicle to be predicted according to the embedded model, the vector corresponding to the various historical travel data can be merged into a feature vector by splicing or dot multiplication.
  • This feature vector is called The initial travel characteristics of the vehicle to be predicted.
  • S840 Acquire the travel feature of the vehicle to be predicted according to the initial travel feature of the vehicle to be predicted and the second feature extraction model.
  • the initial travel characteristics of the vehicle to be predicted are input into the second feature extraction model, and the second feature extraction model outputs the travel characteristics of the vehicle to be predicted.
  • S850 Determine the driving characteristics of the vehicle to be predicted according to the trajectory characteristics of the vehicle to be predicted, the travel characteristics of the vehicle to be predicted, and the fusion model.
  • the fusion model merges the trajectory characteristics of the vehicle to be predicted and the travel characteristics of the vehicle to be predicted by splicing, so as to obtain the driving characteristics of the vehicle to be predicted.
  • the fusion model fuses the trajectory characteristics of the vehicle to be predicted and the travel characteristics of the vehicle to be predicted by a point multiplication method, so as to obtain the driving characteristics of the vehicle to be predicted.
  • this method requires that the trajectory characteristics of the vehicle to be predicted and the travel characteristics of the vehicle to be predicted have the same dimensions.
  • S860 Acquire a target subregion of the vehicle to be predicted according to the driving characteristics of the vehicle to be predicted and the first classification model.
  • the driving characteristics of the vehicle to be predicted are input into the first classification model, and the first classification model outputs the target sub-region of the vehicle to be predicted.
  • S870 Acquire the target POI type of the vehicle to be predicted according to the driving characteristics of the vehicle to be predicted and the second classification model.
  • the driving characteristics of the vehicle to be predicted are input into the second classification model, and the second classification model outputs the type of the target POI of the vehicle to be predicted.
  • the trajectory data and/or travel data of the vehicle to be predicted may be obtained by the prediction apparatus from other equipment.
  • the target neural network model used in the foregoing embodiments of the present application is a neural network model obtained by training the initial neural network model. Since the target neural network model has been trained, the target neural network model has the ability to predict the target sub-region and the target POI type of the vehicle based on the trajectory data (and/or travel data) of the vehicle, so that the target neural network can be used for prediction in this application The destination method of the vehicle.
  • the process of training the initial neural network model in terms of time, before the target neural network model obtained by the initial neural network model training is used to predict the destination of the vehicle, in some embodiments, the initial neural network model
  • the operation of training can be performed by the training module in the prediction device in this application. In other embodiments, the operation of training the initial neural network model can be performed by a third-party device or by an independent training device.
  • the prediction device can use a third-party device or training device before predicting the destination of the vehicle. Obtain the trained target neural network model.
  • the following takes the training of the initial neural network performed by the training device as an example to introduce the training method of the neural network model of the present application.
  • a large amount of trajectory data and travel data obtained according to the historical travel conditions of a large number of vehicles (for example, thousands of vehicles) in a traffic area are used as training data for the initial neural network
  • the model is trained, and the trained target neural network model can be used as the target neural network model in the method for predicting the destination of the vehicle proposed in this application, and is used to predict the target sub-area of the current traveling vehicle in the traffic area and the type of the target POI .
  • the training data is the historical trajectory data and travel data of vehicles in a traffic area.
  • the trained target neural network model can be used To predict the destination of the current traveling vehicle in the traffic area.
  • the initial neural network model needs to be selected or designed in advance.
  • the initial neural network model that is suitable for this application for vehicle destination prediction is selected from the neural network models that have been built in the industry.
  • Model or construct an initial neural network model suitable for the application to predict the destination of the vehicle according to the needs, such as: design the structure of the initial neural network model (the number of layers of the initial neural network model, the type of sub-models in the initial neural network model , The number and types of neurons in each layer, the type of loss function, etc.), the structure of the initial neural network model used in this application is as mentioned above, and for different embodiments, the type of the initial neural network model is slightly different.
  • a method for training the neural network model of this application may include step 8100 to step 8200.
  • the device that performs this method is called a training device.
  • Step 8100 Obtain training data.
  • the training data includes historical trajectory data and travel data of a large number of vehicles, and each training data also corresponds to label data corresponding to each vehicle. Among them, the trajectory data of each vehicle and the labeling data are in one-to-one correspondence.
  • the trajectory data includes the location information of multiple locations that the vehicle passes.
  • the labeling data records the POI type and the purpose of the real destination of the corresponding vehicle. The sub-region to which the land belongs.
  • the POI type of the destination of the vehicle is also referred to as the destination POI type of the vehicle, and the traffic sub-area described by the destination of the vehicle is also referred to as the destination sub-area of the vehicle.
  • Step 8200 Train the initial neural network model according to the training data, the neural network model obtained by training is the target neural network model, and the initial neural network model is used to predict the vehicle's trajectory data in the traffic area according to the vehicle's trajectory data. Destination sub-area and destination POI type.
  • the training device trains the initial neural network model used to predict the target sub-area and the target POI type of the vehicle in the traffic area through a large amount of historical trajectory data and travel data of the vehicle, so that the target neural network model obtained by training It can more accurately predict the destination sub-area and destination POI type of the vehicle in the traffic area.
  • the more historical trajectory data included in the training data the better.
  • the more historical trajectory data included in the training data the higher the accuracy of the trained target neural network model for predicting the target sub-region and target POI type of the vehicle.
  • the method of obtaining the trajectory data in the training data can refer to the method of obtaining the trajectory data in the aforementioned method of predicting the destination of the vehicle, which will not be repeated here.
  • the trajectory data in this application is the historical trajectory data of the vehicle in the traffic area, that is, the trajectory data of the trip that has ended.
  • the label data corresponding to the trajectory data needs to be obtained in this application.
  • An exemplary method for obtaining annotation data in the present application may include step 9100 to step 9300.
  • Step 9100 Obtain map information of the traffic area, and divide sub-areas of the traffic area according to the map to obtain location information of the sub-areas of the traffic area. For this step, refer to S320, which will not be repeated here.
  • Step 9200 Obtain the POI information of the traffic area, and determine the correspondence between the POI and the POI type in the traffic area according to the POI information.
  • Step 9300 Obtain parking lot data in the traffic area, and determine the label data corresponding to the vehicle based on the parking lot data and the correspondence between the POI and POI types in the traffic area.
  • the target parking lot data is searched from the parking lot data, and the parking lot corresponding to the target parking lot data is located at the last location recorded in the trajectory data (that is, the vehicle corresponding to the trajectory data) In the vicinity of the last location captured by the surveillance system during the trip, for example, the distance between the last location and the parking lot is less than or equal to a preset distance threshold.
  • An example of the distance threshold is 100 M;
  • the POI type of the POI to which the parking lot belongs is used as the destination POI type corresponding to the vehicle, and the subregion to which the POI belongs is the destination subregion corresponding to the vehicle Area; the corresponding relationship between the destination POI type and the destination sub-area and the vehicle is generated, and the destination POI type and the destination sub-area are the label data corresponding to the vehicle.
  • the last location recorded in the trajectory data can be determined first (that is, the vehicle corresponding to the vehicle trajectory data is in this trip.
  • the last location photographed by the monitoring system) nearby POI for example, the distance between the last location and the parking lot is less than or equal to a preset distance threshold.
  • An example of the distance threshold is one hundred meters;
  • the corresponding relationship between the POI and the POI type determined in step 920, the POI type corresponding to the POI is determined as the destination POI type of the trajectory data, and the subarea to which the POI belongs is taken as the destination subarea corresponding to the vehicle;
  • the destination POI type and the corresponding relationship between the destination sub-area and the vehicle, and the destination POI type and the destination sub-area are the label data corresponding to the vehicle.
  • step 9100 is only an implementation manner for the training device to obtain sub-area information in the traffic area, and other methods may also be used to obtain the sub-area information in the traffic area in this application.
  • the training device may send a request message to others to request sub-area information in the traffic area, and the request message may carry the name or area identification information of the traffic area.
  • the request message may carry the name or area identification information of the traffic area.
  • other devices can send the sub-area information in the traffic area to the training device.
  • the sub-region information in the traffic area can be manually copied to the training device.
  • step 9200 is only an implementation manner for the training device to obtain the POI type in the traffic area, and the POI type in the traffic area may also be obtained in other ways in this application.
  • the training device may send a request message to others to request the POI type in the traffic area, and the request message may carry the name or area identification information of the traffic area.
  • the other device After receiving the request message, the other device performs the operation in step 920 or other operations, and sends the POI type in the traffic area to the training device.
  • the POI type information in the traffic area can be manually copied to the training device.
  • step 9200 and step 9300 are only an implementation manner for the training device to obtain the label data corresponding to the vehicle, and the label data may also be obtained in other ways in this application.
  • the training device may send a request message to others to request the annotation data, and the request message may carry the trajectory data of the vehicle.
  • the request message may carry the trajectory data of the vehicle.
  • other devices After receiving the request message, other devices perform the operations in step 9200 and step 9300, or perform other operations, and send the annotation data to the training device.
  • training data may also be acquired in other ways in this application.
  • the training device may send a request message to other devices to request training data of the traffic area, and the request message may carry the name or area identification information of the traffic area; after receiving the request message, the other device sends the request message to the training device The training data.
  • the training data can be copied to the training device manually.
  • the target neural network model trained in this application can be used in the aforementioned method of predicting the destination of a vehicle.
  • the data used to predict the destination of the vehicle to be predicted should be the same type of data used when training the target neural network model.
  • the trajectory data used in training only includes the location information of the monitoring device
  • the trajectory data in the method for predicting the destination of the vehicle only includes the location information of the monitoring device.
  • the trajectory data used in training includes the location information of the sub-region or the grid number corresponding to the sub-region
  • the trajectory data in the method of predicting the destination of the vehicle includes the location information of the sub-region or the corresponding sub-region. The number of the grid.
  • the trajectory data used during training includes location information and time information
  • the trajectory data in the method for predicting the destination of a vehicle includes location information and time information.
  • the difference between the method of training the target neural network model in this application and the method of predicting the destination of the vehicle based on the target neural network model is that after the target neural network model predicts the target sub-region and the type of the target POI of the vehicle each time, More steps need to be performed. For example, after performing step 1001 and step 1002, step 1003 to step 1007 need to be performed.
  • Step 1001 Obtain training data.
  • Obtaining training data may include obtaining historical trajectory data.
  • obtaining training data may also include obtaining historical travel data.
  • To obtain historical trajectory data refer to the aforementioned method of pre-storing the target sub-area of the vehicle to be predicted and the type of the target POI to obtain the trajectory data of the vehicle to be predicted.
  • To obtain historical travel data refer to the corresponding implementation method for obtaining travel data.
  • Step 1002 Input the training data to the initial neural network model, and the initial neural network model outputs the predicted target sub-region and the target POI type
  • the initial neural network model needs to be initialized.
  • the initial neural network model is to initialize the parameters in the constructed or selected neural network model. .
  • Input the training data to the initialized initial neural network model, and the initialized initial neural network model maps the input data according to the model structure, and then performs feature extraction on the mapped vector, then performs feature fusion, and finally performs the target POI classification And target sub-region classification.
  • This process is similar to the steps of S510-S540 (or S810-S870 in another embodiment) described above.
  • step S1002 since the initial neural network model after only initialization has not learned the rules in the input training data and the corresponding label data, the target sub-region and the target POI type of the vehicle output in step S1002 are in the label data of the vehicle. There is a big difference between the true target sub-region and the target POI type, that is, the prediction result is not accurate. Therefore, the following step S1003 and subsequent steps need to be performed.
  • Step 1003 Calculate the predicted loss value of the predicted target sub-region compared to the target sub-region in the label data, and calculate the predicted loss value of the predicted target POI type compared to the target POI type in the label data.
  • the loss value of the predicted target sub-region compared to the target sub-region in the labeled data is calculated according to the loss function, and this loss value is called the first predicted loss value; the predicted target POI type calculated based on the loss function is compared to the labeled data The loss value of the target POI type in the target POI, which is called the second predicted loss value.
  • the first prediction loss value and the second prediction loss value are calculated by two loss functions respectively, and the obtained first prediction loss value represents the difference between the target sub-region predicted by the initial neural network model during the training process and the actual target sub-region of the vehicle.
  • the degree of error between the two; the obtained second prediction loss value represents the degree of error between the target POI type predicted by the initial neural network model in the training process and the actual target POI type of the vehicle.
  • Step 1004 according to the first prediction loss value and the second prediction loss value, update the parameters in the initial neural network model, for example, update each embedding layer in the embedding model, the first feature extraction model, the second feature extraction model, and the first classification
  • the parameters in the model and the second classification model can refer to the prior art, which will not be repeated here.
  • Step 1005 It is judged whether the training termination condition is satisfied.
  • the training termination condition is met; otherwise, it means that the training termination condition is not met.
  • test data training data that has not been used to train the initial neural network model
  • input the trajectory data in the test data into the initial neural network model and calculate the target POI type predicted by the initial neural network model Compare the loss value of the POI type in the test data, and calculate the loss value of the target subregion predicted by the initial neural network model compared to the target subregion in the test data; if these two loss values are less than or equal to the preset
  • the threshold value of it means that the training termination condition is met, otherwise, it means that the training termination condition is not met.
  • step 1006 if the training termination condition is not met, steps 1001 to S1005 are repeated.
  • Step 1007 If the training termination condition is met, output the trained neural network model, and the trained neural network model is used as the target neural network model for predicting the destination of the vehicle.
  • the prediction device can learn the destination sub-area and the type of the destination POI of a large number of vehicles to be predicted in the traffic area, and the prediction device can count the vehicles of the same destination after learning the destination of a large number of vehicles to be predicted. flow.
  • the predicting device can predict the number of vehicles arriving at the same destination in the same time period.
  • the length of the time can be preset, for example, it can be half an hour or one hour.
  • the prediction device can calculate the time for each vehicle with the same destination to arrive at the destination from its current location according to the average vehicle speed in the traffic area and according to the conventional route, and Count the traffic volume that will arrive at the destination in the next half an hour, one hour, or one and a half hours in the future.
  • the predicting device After the predicting device learns the traffic volume when a POI of one type in a sub-area is used as a destination in a time period in the future, it can also determine the traffic state of the road near the POI according to the traffic volume.
  • traffic volume greater than 400 means severe congestion
  • traffic volume between 200 and 400 means congestion
  • the prediction device After the prediction device learns the traffic state of the road near the POI, it can also send the road traffic state information to the traffic management platform. It enables the traffic management platform to notify the traffic status of the roads near each type of POI in each sub-area in real time through traffic radio stations or news information, or enables the traffic management platform to formulate a series of traffic diversion strategies based on the road traffic status. Or, after the prediction device learns the traffic status of the road near the POI, it can also send road traffic status information to the driving vehicle, and the driving vehicle receives the road traffic status in real time, so that it can decide to continue to the destination according to its own travel situation. Give up traveling or make a detour.
  • the predicting device may generate a traffic travel suggestion according to the traffic state of the road.
  • the prediction device can also send the traffic travel advice to the driving vehicle, so that the vehicle can make a travel decision based on the obtained traffic travel advice.
  • Fig. 9 is a structural diagram of a device for predicting a destination of a vehicle provided by an embodiment of the present application.
  • the device can be implemented as part or all of the device through software, hardware or a combination of the two.
  • the device 900 includes an acquisition module 910 and a prediction module 920.
  • the device 900 can implement the method for predicting the destination of the vehicle in this application.
  • the obtaining module 910 is used to obtain trajectory data of the vehicle to be predicted in the traffic area during travel.
  • the prediction module 920 is configured to obtain destination information of the vehicle to be predicted in the traffic area according to the trajectory data and the target neural network model, where the destination information includes: the destination sub-region of the vehicle to be predicted And the type of the POI of the destination point of interest of the vehicle to be predicted.
  • the target neural network model includes an embedded model, a first feature extraction model, a first classification model, and a second classification model, wherein the embedded model is used to input to the embedded model Vectorization of the data of the first feature extraction model, the first feature extraction model is used for feature extraction of the data input to the first feature extraction model, and the fusion model is used for feature fusion of the data input to the fusion model,
  • the first classification model and the second classification model are respectively used for class prediction based on input data of the first classification model and the second classification model.
  • the prediction module 920 is specifically configured to: input the trajectory data into the embedded model to obtain the initial trajectory feature of the vehicle to be predicted, and the initial trajectory feature includes the multi-dimensional vector corresponding to the trajectory data;
  • the initial trajectory feature is input to the first feature extraction model to obtain the trajectory feature of the vehicle to be predicted;
  • the trajectory feature is input to the first classification model to obtain the target subregion of the vehicle to be predicted;
  • the trajectory feature is input to the second classification model, and the target POI type of the vehicle to be predicted is obtained.
  • the obtaining module 910 is further configured to obtain travel data of the vehicle to be predicted.
  • the prediction module 920 is specifically configured to obtain destination information of the vehicle to be predicted in the traffic area according to the trajectory data, the travel data, and the target neural network model.
  • the travel data of the vehicle to be predicted includes one or more of the following data: vehicle type, travel weather type, number of vehicle trips in the first time period, and travel data in the second time period The frequency of vehicle travel, and the sub-period of vehicle travel in the third time period.
  • the target neural network model includes an embedded model, a first feature extraction model, a second feature extraction model, a fusion model, a first classification model, and a second classification model, wherein the embedded model Used to vectorize the data input to the embedding model, and the first feature extraction model and the second feature extraction model are respectively used to extract the data input to the first feature extraction model and the second feature extraction model.
  • Feature extraction is performed on the data of the model
  • the fusion model is used to perform feature fusion on the data input to the fusion model
  • the first classification model and the second classification model are respectively used to perform feature extraction according to the first classification model and
  • the input data of the second classification model performs category prediction.
  • the prediction module is specifically configured to: input the trajectory data and the travel data to the embedded model to obtain the initial trajectory characteristics and initial travel characteristics of the vehicle to be predicted; and input the The initial trajectory feature to the first feature extraction model to obtain the trajectory feature of the vehicle to be predicted; input the initial travel feature to the second feature extraction model to obtain the travel feature of the vehicle to be predicted; input the Trajectory characteristics and the travel characteristics to the fusion model to obtain the driving characteristics of the vehicle to be predicted; input the driving characteristics to the first classification model to obtain the target subregion of the vehicle to be predicted; input the The driving feature is transferred to the second classification model, and the target POI type of the vehicle to be predicted is obtained.
  • the prediction module 920 is also used to: determine the destination as the traffic flow of the type of POI in the destination sub-area according to the destination information of the vehicle to be predicted; The traffic flow determines the traffic state of the road in the destination sub-area.
  • the acquiring module 910 is specifically configured to: determine information about multiple locations that the vehicle to be predicted passes through during travel according to the passing data in the traffic area; and acquire the traffic Information about the sub-regions in the area; determine the trajectory data of the vehicle to be predicted in the travel process according to the information of the multiple locations that the vehicle to be predicted passes through during the travel and the sub-region information in the traffic area.
  • the trajectory data includes position information and time information of the vehicle to be predicted passing in the traffic area.
  • the trajectory data further includes the type of POI that the vehicle to be predicted passes through in the traffic area.
  • the target neural network model is a neural network model trained by training data
  • the training data includes historical trajectory data of vehicles in the traffic area and travel data of the vehicles.
  • the device 900 further includes a training module 940, the training module 940 is used to: determine the initial neural network model; according to the historical trajectory data of the vehicles in the traffic area to perform the initial neural network model Training to obtain the target neural network model.
  • the training module 940 may also be used to determine an initial neural network model; train the initial neural network model according to historical trajectory data and travel data of vehicles in the traffic area to obtain the target neural network model.
  • the device 900 may further include an output module for outputting destination information of the vehicle to be predicted.
  • the output module can also be used for traffic flow.
  • the output module can also be used to output road traffic status.
  • the device 900 may further include a traffic guidance module, which is used to perform traffic guidance according to the traffic state of the road to relieve traffic pressure.
  • a traffic guidance module which is used to perform traffic guidance according to the traffic state of the road to relieve traffic pressure.
  • FIG. 11 exemplarily provides a possible architecture diagram of the computing device 1100.
  • the computing device 1100 includes a memory 1101, a processor 1102, and a communication interface 1103. Among them, the memory 1101, the processor 1102, and the communication interface 1103 implement communication connections between each other through a bus.
  • the memory 1101 may be a read only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM).
  • the memory 1101 may store a program. When the program stored in the memory 1101 is executed by the processor 1102, the processor 1102 and the communication interface 1103 are used to execute the method of predicting the destination of the vehicle.
  • the memory 1101 can also store a data set. For example, a part of the storage resources in the memory 1101 is divided into a data set storage module for storing the data set required to execute the method of predicting the destination of the vehicle, and a part of the storage resources in the memory 1101 It is divided into a neural network model storage module, which is used to store the target neural network model shown in Figure 4 or Figure 7.
  • the processor 1102 may adopt a general-purpose central processing unit (central Processing Unit, CPU), microprocessor, application specific integrated circuit (application specific integrated circuit, ASIC), graphics processing unit (graphics processing unit, GPU), or one or more integrated circuit.
  • CPU central Processing Unit
  • ASIC application specific integrated circuit
  • GPU graphics processing unit
  • the processor 1102 may also be an integrated circuit chip with signal processing capabilities. In the implementation process, part or all of the functions of the device for predicting the destination of the vehicle of the present application can be completed by hardware integrated logic circuits in the processor 1102 or instructions in the form of software.
  • the aforementioned processor 1102 may also be a general-purpose processor, a digital signal processing (digital signal processing, DSP), an application specific integrated circuit (ASIC), an off-the-shelf programmable gate array (field programmable gate array, FPGA) or other programmable logic devices , Discrete gates or transistor logic devices, discrete hardware components.
  • DSP digital signal processing
  • ASIC application specific integrated circuit
  • FPGA field programmable gate array
  • Discrete gates or transistor logic devices discrete hardware components.
  • the general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like.
  • the steps of the method disclosed in the embodiments of the present application can be directly embodied as being executed and completed by a hardware decoding processor, or executed and completed by a combination of hardware and software modules in the decoding processor.
  • the software module can be located in a mature storage medium in the field, such as random access memory, flash memory, read-only memory, programmable read-only memory, or electrically erasable programmable memory, registers.
  • the storage medium is located in the memory 1101, and the processor 1102 reads the information in the memory 1101 and completes part of the functions of the device for predicting the destination of the vehicle in the embodiment of the present application in combination with its hardware.
  • the communication interface 1103 uses a transceiver module such as but not limited to a transceiver to implement communication between the computing device 1100 and other devices or a communication network.
  • a transceiver module such as but not limited to a transceiver to implement communication between the computing device 1100 and other devices or a communication network.
  • the data set can be obtained through the communication interface 1103.
  • the bus may include a path for transferring information between various components of the computing device 1100 (for example, the memory 1101, the processor 1102, and the communication interface 1103).
  • each of the foregoing computing devices 1100 establishes a communication path through a communication network.
  • Each computing device 1100 runs any one or more of the acquisition module 910, the prediction module 920, the determination module 930, or the training module 940.
  • Any computing device 1100 may be a computing device (for example, a server) in a cloud data center, or a computing device in an edge data center, or a terminal computing device.
  • FIG. 12 is a schematic architecture diagram of a system to which the apparatus of the embodiment of the present application can be applied.
  • the system 1200 includes a prediction device 1210, a training device 1220, a database 1230, a data storage system 1250, and a data collection device 1260.
  • the data collection device 1260 is used to collect training data. After the training data is collected, the data collection device 1260 stores the training data in the database 1230, and the training device 1220 trains a preselected neural network model based on the training data maintained in the database 1230 to obtain the target neural network model 1201.
  • the trained target neural network model 1201 has the function of predicting the sub-region to which the destination of the vehicle belongs and predicting the POI type of the destination of the vehicle.
  • the training data maintained in the database 1230 may not all come from the collection of the data collection device 1260, and may also be received from other devices.
  • the training device 1220 does not necessarily train the target neural network model 1201 completely based on the training data maintained by the database 1230. It may also obtain training data from the cloud or other places for model training, or generate training data by itself. The description should not be taken as a limitation to the embodiments of the present application.
  • the target neural network model 1201 obtained by training according to the training device 1220 can be applied to different systems or devices, such as the prediction device 1210.
  • the trajectory data can be stored in the database 1230, and the prediction device 1210 makes predictions based on the trajectory data maintained in the database 1230.
  • the trajectory data and travel data can be stored in the database 1230, and the prediction device 1210 makes predictions based on the trajectory data and travel data maintained in the database 1230.
  • the prediction device 1210 can call the data, codes, etc. in the data storage system 1250 for the corresponding prediction processing, and can also use the data obtained from the corresponding processing, Instructions and the like are stored in the data storage system 1250.
  • FIG. 12 is only a schematic system architecture diagram, and the positional relationship between the devices, devices, modules, etc. shown in FIG. 12 does not constitute any limitation.
  • the data storage system 1250 relatively predicts The device 1210 is an external memory.
  • the data storage system 1250 can also be placed in the prediction device 1210.
  • the prediction device 1210 and the training device 1220 may be the same device.
  • the prediction device may be deployed in a cloud environment, which is an entity that uses basic resources to provide cloud services to users in a cloud computing mode.
  • the cloud environment includes a cloud data center and a cloud service platform.
  • the cloud data center includes a large number of basic resources (including computing resources, storage resources, and network resources) owned by a cloud service provider.
  • the computing resources included in the cloud data center can be a large number of computing resources.
  • Device for example, server).
  • the prediction device can be a server in a cloud data center; the prediction device can also be a virtual machine created in a cloud data center; the prediction device can also be a server or a software device deployed on a virtual machine in a cloud data center. It can be distributed on multiple servers, or distributed on multiple virtual machines, or distributed on virtual machines and servers. For example, multiple modules in the forecasting apparatus may be distributed on multiple servers, or distributed on multiple virtual machines, or distributed on virtual machines and servers.
  • the prediction device When the prediction device is a software device, the prediction device can be logically divided into multiple parts, and each part has a different function. In this scenario, several parts of the prediction device can be deployed in different environments or devices. Taking Figure 13 as an example, part of the forecasting device is deployed in terminal computing equipment, and the other part is deployed in the data center (specifically deployed on the server or virtual machine in the data center).
  • the data center can be a cloud data center or a data center. It is an edge data center.
  • An edge data center is a collection of edge computing devices that are deployed closer to the terminal computing device.
  • this application does not restrict which parts of the prediction device are deployed in the terminal computing equipment and which parts are deployed in the data center. In actual applications, it can be adapted according to the computing capabilities of the terminal computing equipment or specific application requirements. deploy. It is worth noting that in some possible implementations, the prediction device can be deployed in three parts, of which one part is deployed in the terminal computing device, one part is deployed in the edge data center, and the other part is deployed in the cloud data center.
  • the division of modules in the embodiments of the present application is illustrative, and is only a logical function division. In actual implementation, there may be other division methods.
  • the functional modules in the various embodiments of the present application It can be integrated in a processor, it can be a separate physical presence, or two or more modules can be integrated into one module.
  • the above-mentioned integrated modules can be implemented in the form of hardware or software function modules.
  • the integrated module is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer readable storage medium.
  • the technical solution of the present application essentially or the part that contributes to the existing technology or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , Including several instructions to make a terminal device (which may be a personal computer, a mobile phone, or a network device, etc.) or a processor (processor) execute all or part of the steps of the method in each embodiment of the present application.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (read-only memory, ROM), random access memory (random access memory, RAM), magnetic disks or optical disks and other media that can store program codes. .
  • the computer program product for video similarity detection includes one or more computer instructions for video similarity detection.
  • the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.
  • the computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium.
  • the computer instructions may be transmitted from a website, computer, server, or data center. Transmission to another website, computer, server, or data center via wired (such as coaxial cable, optical fiber, digital subscriber line, or wireless (such as infrared, wireless, microwave, etc.)).
  • the computer-readable storage medium stores the video A readable storage medium of similarly detected computer program instructions.
  • the computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or data center integrated with one or more available media.
  • the usable medium may be a magnetic medium (for example, a floppy disk, a hard disk, a magnetic tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, an SSD).

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Economics (AREA)
  • Human Resources & Organizations (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Strategic Management (AREA)
  • Tourism & Hospitality (AREA)
  • Databases & Information Systems (AREA)
  • General Business, Economics & Management (AREA)
  • Development Economics (AREA)
  • Marketing (AREA)
  • Educational Administration (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Primary Health Care (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Game Theory and Decision Science (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Traffic Control Systems (AREA)

Abstract

A method for predicting a destination of a vehicle, relating to the field of intelligent transportation. The method comprises: acquiring trajectory data of a vehicle awaiting destination prediction travelling in a traffic region and travel data of the vehicle, and acquiring destination information of the vehicle in the traffic region according to the trajectory data, the travel data, and a target neural network model. The destination information comprises: a target sub-region of the vehicle and a target point of interest (POI) type of the vehicle. The travel data of the vehicle comprises one or more pieces of the following data: a vehicle type, a travel weather type, the vehicle travel count in a first time period, the vehicle travel frequency in a second time period, and a vehicle travel sub-time period in a third time period. The method improves the efficiency and accuracy of predicting a destination of a vehicle.

Description

预测车辆的目的地的方法和装置Method and device for predicting destination of vehicle 技术领域Technical field
本申请涉及智慧交通领域,并且更具体地,涉及预测车辆的目的地的方法和装置。This application relates to the field of smart transportation, and more specifically, to a method and device for predicting the destination of a vehicle.
背景技术Background technique
交通运输是经济发展的基本需要和先决条件,推动了现代设备的进步和发展。但是,随着城市经济的快速发展,居民的出行需求与城市道路交通供给能力之间的矛盾日益加剧。随之而来的交通拥堵问题已成为全球性的“城市病”。Transportation is the basic need and prerequisite for economic development, and it promotes the progress and development of modern equipment. However, with the rapid development of urban economy, the contradiction between residents' travel demand and urban road traffic supply capacity is increasing. The ensuing traffic congestion problem has become a global "urban disease".
交通拥堵问题不仅会导致城市诸项功能的衰退,还增加了居民的出行时间成本,使得居民生活质量也随之下降。另外,由于交通拥堵带来的交通事故、空气污染、噪声影响以及其他相关的一系列问题,都严重阻碍了城市经济和社会的发展。Traffic congestion will not only lead to the decline of various functions of the city, but also increase the cost of travel time for residents, and reduce the quality of life of residents. In addition, traffic accidents, air pollution, noise impact and other related problems caused by traffic congestion have severely hindered the economic and social development of the city.
为了提高城市交通管理和交通服务的质量,以有效缓解交通拥堵,降低公众的出行时间成本,可提前获知在出行的车辆的目的地,以进行交通预警和疏导。现有技术中获知车辆的目的地的方法是利用问卷调查的方式,该方法通过在一定交通区域中寻访路过车辆或者在互联网分享问卷链接对车主群体进行调查,获取车辆的目的地信息,通过该方法获取的目的地数据的效率低,且受时间和区域的影响大。因此,如何预测车辆的目的地是一个亟待解决的技术问题。In order to improve the quality of urban traffic management and traffic services, to effectively alleviate traffic congestion and reduce the cost of public travel time, the destination of traveling vehicles can be known in advance for traffic warning and diversion. In the prior art, the method of obtaining the destination of a vehicle is to use a questionnaire survey. This method surveys a group of vehicle owners by searching for passing vehicles in a certain traffic area or sharing a questionnaire link on the Internet to obtain the destination information of the vehicle. The efficiency of the destination data obtained by the method is low, and it is greatly affected by time and area. Therefore, how to predict the destination of the vehicle is a technical problem that needs to be solved urgently.
发明内容Summary of the invention
本申请提供了一种预测车辆的目的地的方法、装置和计算设备,可以提高预测车辆的目的地的效率。The present application provides a method, device and computing device for predicting the destination of a vehicle, which can improve the efficiency of predicting the destination of a vehicle.
第一方面,本申请提供了一种预测车辆的目的地的方法,所述方法可以应用于一个交通区域中,所述交通区域中分布有多个监控设备和多个POI。所述方法包括:获取交通区域内的待预测车辆在出行过程中的轨迹数据和所述待预测车辆的出行数据;根据所述轨迹数据、所述出行数据和目标神经网络模型,获得所述待预测车辆在所述交通区域内的目的地信息,所述目的地信息包括:所述待预测车辆的目的子区域和所述待预测车辆的目的兴趣点POI的类型;所述待预测车辆的出行数据包括以下数据中的一种或多种:车辆类型、出行天气类型、第一时间段内的车辆出行次数、第二时间段内的车辆出行频率、第三时间段内的车辆出行子时间段。In the first aspect, this application provides a method for predicting the destination of a vehicle. The method can be applied to a traffic area in which multiple monitoring devices and multiple POIs are distributed. The method includes: obtaining the trajectory data of the vehicle to be predicted in the travel process and the travel data of the vehicle to be predicted in the traffic area; and obtaining the vehicle to be predicted according to the trajectory data, the travel data, and the target neural network model. Predict the destination information of the vehicle in the traffic area, where the destination information includes: the destination sub-region of the vehicle to be predicted and the type of POI of the destination point of interest of the vehicle to be predicted; the travel of the vehicle to be predicted The data includes one or more of the following data: vehicle type, travel weather type, number of vehicle trips in the first time period, vehicle travel frequency in the second time period, and vehicle travel sub-time periods in the third time period .
本申请的方法,根据待预测车辆当前出行中的轨迹数据和出行数据与经过大量车辆的轨迹数据和出行数据训练好的目标神经网络模型,预测待预测车辆的目的POI所属的子区域和类型,以获得待预测车辆的目的地,可以提高预测车辆的目的地的效率和准确率。The method of the present application predicts the sub-region and type of the target POI of the vehicle to be predicted based on the trajectory data and travel data of the vehicle to be predicted and the target neural network model trained on the trajectory data and travel data of a large number of vehicles. To obtain the destination of the vehicle to be predicted, the efficiency and accuracy of predicting the destination of the vehicle can be improved.
在一些可能的实现方式中,所述方法还包括:根据所述待预测车辆的目的地信息,确定目的地为所述目的子区域内的所述POI的类型对应的车流量;根据所述车流量预测所述目的子区域内的道路通行状态。In some possible implementation manners, the method further includes: determining, according to the destination information of the vehicle to be predicted, that the destination is the traffic volume corresponding to the type of POI in the destination sub-area; The flow rate predicts the traffic state of the road in the destination sub-area.
进一步地,还可以根据该道路通行状态进行交通指导,以缓解交通压力。Further, traffic guidance can also be given according to the traffic state of the road to relieve traffic pressure.
在一些可能的实现方式中,所述目标神经网络模型中包括嵌入模型、第一特征提取 模型、第二特征提取模型、融合模型、第一分类模型和第二分类模型,其中,所述嵌入模型用于对输入至所述嵌入模型的数据进行向量化,所述第一特征提取模型和所述第二特征提取模型分别用于对输入至所述第一特征提取模型和所述第二特征提取模型的数据进行特征提取,所述融合模型用于对输入至所述融合模型的数据进行特征融合,所述第一分类模型和所述第二分类模型分别用于根据所述第一分类模型和所述第二分类模型的输入数据进行类别预测。In some possible implementations, the target neural network model includes an embedded model, a first feature extraction model, a second feature extraction model, a fusion model, a first classification model, and a second classification model, wherein the embedded model Used to vectorize the data input to the embedding model, and the first feature extraction model and the second feature extraction model are respectively used to extract the data input to the first feature extraction model and the second feature extraction model. Feature extraction is performed on the data of the model, the fusion model is used to perform feature fusion on the data input to the fusion model, and the first classification model and the second classification model are respectively used to perform feature extraction according to the first classification model and The input data of the second classification model performs category prediction.
在一些可能的实现方式中,所述根据所述轨迹数据、所述出行数据和目标神经网络模型,获得所述待预测车辆在所述交通区域内的目的地信息,包括:输入所述轨迹数据和所述出行数据至所述嵌入模型,获得所述待预测车辆的初始轨迹特征和初始出行特征;输入所述初始轨迹特征至所述第一特征提取模型,获得所述待预测车辆的轨迹特征;输入所述初始出行特征至所述第二特征提取模型,获得所述待预测车辆的出行特征;输入所述轨迹特征和所述出行特征至所述融合模型,获得所述待预测车辆的行驶特征;输入所述行驶特征至所述第一分类模型,获得所述待预测车辆的目的子区域;输入所述行驶特征至所述第二分类模型,获取所述待预测车辆的目的POI的类型。In some possible implementation manners, the obtaining the destination information of the vehicle to be predicted in the traffic area according to the trajectory data, the travel data and the target neural network model includes: inputting the trajectory data And the travel data to the embedded model to obtain the initial trajectory feature and initial travel feature of the vehicle to be predicted; input the initial trajectory feature to the first feature extraction model to obtain the trajectory feature of the vehicle to be predicted Input the initial travel feature to the second feature extraction model to obtain the travel feature of the vehicle to be predicted; input the trajectory feature and the travel feature to the fusion model to obtain the travel of the vehicle to be predicted Characteristics; input the driving characteristics to the first classification model to obtain the target sub-area of the vehicle to be predicted; input the driving characteristics to the second classification model to obtain the type of the target POI of the vehicle to be predicted .
这些实现方式中,先将待预测车辆的轨迹数据和出行数据映射为多维向量,再将映射得到的多维向量输入特征提取模型提取具有深度语义的轨迹特征和出行特征,可以使得根据该轨迹特征和出行特征预测的目的地更准确。In these implementations, the trajectory data and travel data of the vehicle to be predicted are first mapped into multi-dimensional vectors, and then the mapped multi-dimensional vectors are input to the feature extraction model to extract trajectory features and travel features with deep semantics. The destination predicted by travel characteristics is more accurate.
在一些可能的实现方式中,所述获取交通区域内的待预测车辆在当前出行过程中的轨迹数据,包括:根据所述交通区域内的过车数据,确定所述待预测车辆在当前出行中已经经过的多个监控设备的信息;根据所述多个监控设备的信息,确定所述待预测车辆的轨迹数据。In some possible implementations, the acquiring the trajectory data of the vehicle to be predicted in the traffic area during the current travel includes: determining that the vehicle to be predicted is currently traveling based on the passing data in the traffic area Information of multiple monitoring devices that have passed; and determining the trajectory data of the vehicle to be predicted according to the information of the multiple monitoring devices.
在一些可能的实现方式中,所述方法还包括:获取所述交通区域内的子区域信息;其中,所述根据所述多个监控设备的信息,确定所述待预测车辆的轨迹数据,包括:根据所述子区域信息和所述多个监控设备的信息,确定所述轨迹数据,所述轨迹数据中包括所述多个监控设备所属的子区域的信息。In some possible implementation manners, the method further includes: acquiring sub-region information in the traffic area; wherein the determining the trajectory data of the vehicle to be predicted according to the information of the multiple monitoring devices includes : Determine the trajectory data according to the sub-region information and the information of the multiple monitoring devices, where the trajectory data includes the information of the sub-regions to which the multiple monitoring devices belong.
也就是说,通过监控设备所属的子区域的位置信息来表示待预测车辆的轨迹。这种方式在每个子区域中仅包含一个或者较少监控设备的情况下,可以通过较少的数据来表征待预测车辆的轨迹,从而可以降低数据计算量和数据计算复杂度,进一步可以提高预存车辆的目的地的效率。In other words, the trajectory of the vehicle to be predicted is represented by the location information of the sub-region to which the monitoring device belongs. In this way, when each sub-area contains only one or fewer monitoring devices, less data can be used to characterize the trajectory of the vehicle to be predicted, thereby reducing the amount of data calculation and the complexity of data calculation, and further improving the pre-stored data. The efficiency of the destination of the vehicle.
在一些可能的实现方式中,所述轨迹数据中还包括所述待预测车辆经过所述多个监控设备的时间信息。这些实现方式利用更多的信息来预测车辆的目的地,可以提高预测的目的地得准确率。In some possible implementation manners, the trajectory data further includes time information when the vehicle to be predicted passes through the multiple monitoring devices. These implementations use more information to predict the destination of the vehicle, which can improve the accuracy of the predicted destination.
在一些可能的实现方式中,所述轨迹数据中还包括所述多个监控设备所属的子区域所包括的POI类型。这些实现方式利用更多的信息来预测车辆的目的地,可以提高预测的目的地得准确率。In some possible implementation manners, the trajectory data further includes the POI types included in the sub-regions to which the multiple monitoring devices belong. These implementations use more information to predict the destination of the vehicle, which can improve the accuracy of the predicted destination.
在一些可能的实现方式中,所述目标神经网络模型为由训练数据进行训练后的神经网络模型,所述训练数据包括所述交通区域内的车辆的历史轨迹数据和所述车辆的出行数据。In some possible implementation manners, the target neural network model is a neural network model trained by training data, and the training data includes historical trajectory data of vehicles in the traffic area and travel data of the vehicles.
第二方面,本申请提供一种预测车辆的目的地的装置,该装置应用于一个地理交通区域,该交通区域内分布有多个监控设备和多个兴趣点POI,该装置包括:获取模块,用 于获取交通区域内的待预测车辆在出行过程中的轨迹数据和所述待预测车辆的出行数据;预测模块,用于根据所述轨迹数据、所述出行数据和目标神经网络模型,获得所述待预测车辆在所述交通区域内的目的地信息,所述目的地信息包括:所述待预测车辆的目的子区域和所述待预测车辆的目的兴趣点POI的类型;所述待预测车辆的出行数据包括以下数据中的一种或多种:车辆类型、出行天气类型、第一时间段内的车辆出行次数、第二时间段内的车辆出行频率、第三时间段内的车辆出行子时间段。In a second aspect, the present application provides a device for predicting the destination of a vehicle. The device is applied to a geographic traffic area in which multiple monitoring devices and multiple points of interest POI are distributed. The device includes: an acquisition module, It is used to obtain the trajectory data of the vehicle to be predicted in the travel process and the travel data of the vehicle to be predicted in the traffic area; the prediction module is used to obtain the data according to the trajectory data, the travel data and the target neural network model. The destination information of the vehicle to be predicted in the traffic area, where the destination information includes: the destination sub-area of the vehicle to be predicted and the type of the destination POI of the vehicle to be predicted; the vehicle to be predicted The travel data of includes one or more of the following data: vehicle type, travel weather type, number of vehicle trips in the first time period, vehicle travel frequency in the second time period, and vehicle travel in the third time period period.
该装置可以根据车辆当前出行的轨迹数据和出行数据预测车辆的目的子区域和目的POI类型,从而获知该车辆的目的地。与通过人工方式获知车辆的目的地相比,可以提高预测效率和准确率。The device can predict the destination sub-area and destination POI type of the vehicle based on the current travel trajectory data and travel data of the vehicle, so as to know the destination of the vehicle. Compared with knowing the destination of the vehicle manually, the prediction efficiency and accuracy can be improved.
在一些可能的实现方式中,所述预测模块还用于:根据所述待预测车辆的目的地信息,确定目的地为所述目的子区域内的所述POI的类型对应的车流量;根据所述车流量预测所述目的子区域内的道路通行状态。In some possible implementations, the prediction module is further configured to: according to the destination information of the vehicle to be predicted, determine that the destination is the traffic volume corresponding to the type of POI in the destination sub-area; The traffic flow predicts the traffic state of the road in the destination sub-area.
进一步地,还可以根据该道路通行状态进行交通指导,以缓解交通压力。Further, traffic guidance can also be given according to the traffic state of the road to relieve traffic pressure.
在一些可能的实现方式中,所述目标神经网络模型中包括嵌入模型、第一特征提取模型、第二特征提取模型、融合模型、第一分类模型和第二分类模型,其中,所述嵌入模型用于对输入至所述嵌入模型的数据进行向量化,所述第一特征提取模型和所述第二特征提取模型分别用于对输入至所述第一特征提取模型和所述第二特征提取模型的数据进行特征提取,所述融合模型用于对输入至所述融合模型的数据进行特征融合,所述第一分类模型和所述第二分类模型分别用于根据所述第一分类模型和所述第二分类模型的输入数据进行类别预测。In some possible implementations, the target neural network model includes an embedded model, a first feature extraction model, a second feature extraction model, a fusion model, a first classification model, and a second classification model, wherein the embedded model Used to vectorize the data input to the embedding model, and the first feature extraction model and the second feature extraction model are respectively used to extract the data input to the first feature extraction model and the second feature extraction model. Feature extraction is performed on the data of the model, the fusion model is used to perform feature fusion on the data input to the fusion model, and the first classification model and the second classification model are respectively used to perform feature extraction according to the first classification model and The input data of the second classification model performs category prediction.
在一些可能的实现方式中,所述预测模块具体用于:输入所述轨迹数据和所述出行数据至所述嵌入模型,获得所述待预测车辆的初始轨迹特征和初始出行特征;输入所述初始轨迹特征至所述第一特征提取模型,获得所述待预测车辆的轨迹特征;输入所述初始出行特征至所述第二特征提取模型,获得所述待预测车辆的出行特征;输入所述轨迹特征和所述出行特征至所述融合模型,获得所述待预测车辆的行驶特征;输入所述行驶特征至所述第一分类模型,获得所述待预测车辆的目的子区域;输入所述行驶特征至所述第二分类模型,获取所述待预测车辆的目的POI的类型。In some possible implementations, the prediction module is specifically configured to: input the trajectory data and the travel data to the embedded model to obtain the initial trajectory characteristics and initial travel characteristics of the vehicle to be predicted; and input the The initial trajectory feature to the first feature extraction model to obtain the trajectory feature of the vehicle to be predicted; input the initial travel feature to the second feature extraction model to obtain the travel feature of the vehicle to be predicted; input the Trajectory characteristics and the travel characteristics to the fusion model to obtain the driving characteristics of the vehicle to be predicted; input the driving characteristics to the first classification model to obtain the target subregion of the vehicle to be predicted; input the The driving feature is transferred to the second classification model, and the target POI type of the vehicle to be predicted is obtained.
这些实现方式中,先将待预测车辆的轨迹数据映射为多维向量,再将映射得到的多维向量输入特征提取模型提取具有深度语义的轨迹特征,可以使得根据该轨迹特征预测的目的地更准确。In these implementations, the trajectory data of the vehicle to be predicted is first mapped to a multi-dimensional vector, and then the mapped multi-dimensional vector is input to the feature extraction model to extract trajectory features with deep semantics, which can make the destination predicted based on the trajectory feature more accurate.
在一些可能的实现方式中,所述获取模块具体用于:根据所述交通区域内的过车数据,确定所述待预测车辆在当前出行中已经经过的多个监控设备的信息;根据所述多个监控设备的信息,确定所述待预测车辆的轨迹数据。In some possible implementation manners, the acquisition module is specifically configured to: according to the passing data in the traffic area, determine the information of multiple monitoring devices that the vehicle to be predicted has passed through during the current trip; The information of multiple monitoring devices determines the trajectory data of the vehicle to be predicted.
在一些可能的实现方式中,所述获取模块具体用于:获取所述交通区域内的子区域信息;根据所述子区域信息和所述多个监控设备的信息,确定所述轨迹数据,所述轨迹数据中包括所述多个监控设备所属的子区域的信息。In some possible implementations, the acquisition module is specifically configured to: acquire sub-area information in the traffic area; determine the trajectory data according to the sub-area information and the information of the multiple monitoring devices, so The trajectory data includes information about the sub-regions to which the multiple monitoring devices belong.
也就是说,通过监控设备所属的子区域的位置信息来表示待预测车辆的轨迹。这种方式在每个子区域中仅包含一个或者较少监控设备的情况下,可以通过较少的数据来表征待预测车辆的轨迹,从而可以降低数据计算量和数据计算复杂度,进一步可以提高预存车辆的目的地的效率。In other words, the trajectory of the vehicle to be predicted is represented by the location information of the sub-region to which the monitoring device belongs. In this way, when each sub-area contains only one or fewer monitoring devices, less data can be used to characterize the trajectory of the vehicle to be predicted, thereby reducing the amount of data calculation and the complexity of data calculation, and further improving the pre-stored data. The efficiency of the destination of the vehicle.
在一些可能的实现方式中,所述轨迹数据中还包括所述车辆经过所述至少一个地点中的每一个地点的时间信息。这些实现方式利用更多的信息来预测车辆的目的地,可以提高预测的目的地得准确率。In some possible implementation manners, the trajectory data further includes time information when the vehicle passes through each of the at least one location. These implementations use more information to predict the destination of the vehicle, which can improve the accuracy of the predicted destination.
在一些可能的实现方式中,所述轨迹数据中还包括所述多个监控设备所属的子区域所包括的POI类型。这些实现方式利用更多的信息来预测车辆的目的地,可以提高预测的目的地得准确率。In some possible implementation manners, the trajectory data further includes the POI types included in the sub-regions to which the multiple monitoring devices belong. These implementations use more information to predict the destination of the vehicle, which can improve the accuracy of the predicted destination.
在一些可能的实现方式中,所述目标神经网络模型为由训练数据进行训练后的神经网络模型,所述训练数据包括所述交通区域内的车辆的历史轨迹数据和所述车辆的出行数据。In some possible implementation manners, the target neural network model is a neural network model trained by training data, and the training data includes historical trajectory data of vehicles in the traffic area and travel data of the vehicles.
第三方面,提供了一种计算设备,计算设备包括处理器和存储器,其中:存储器中存储有计算机指令,处理器执行计算机指令,以实现第一方面及其可能的实现方式的方法。In a third aspect, a computing device is provided. The computing device includes a processor and a memory, where computer instructions are stored in the memory, and the processor executes the computer instructions to implement the methods of the first aspect and possible implementation manners thereof.
第四方面,提供了一种计算机可读存储介质,其特征在于,计算机可读存储介质存储有计算机指令,当计算机可读存储介质中的计算机指令被计算设备执行时,使得计算设备执行第一方面及其可能的实现方式的方法,或者使得计算设备实现上述第二方面及其可能的实现方式的装置的功能。In a fourth aspect, a computer-readable storage medium is provided, which is characterized in that the computer-readable storage medium stores computer instructions, and when the computer instructions in the computer-readable storage medium are executed by a computing device, the computing device executes the first Aspects and possible implementation manners thereof, or enable a computing device to implement the functions of the above-mentioned second aspect and possible implementation manners of the apparatus.
第五方面,提供了一种包含指令的计算机程序产品,当其在计算设备上运行时,使得计算设备执行上述第一方面及其可能的实现方式的方法,或者使得计算设备实现上述第二方面及其可能的实现方式的装置的功能。In a fifth aspect, a computer program product containing instructions is provided, which when running on a computing device, causes the computing device to execute the above-mentioned first aspect and its possible implementation methods, or causes the computing device to implement the above-mentioned second aspect The function of the device and its possible implementations.
附图说明Description of the drawings
为了更清楚地说明本申请实施例的技术方法,下面将对实施例中所需使用的附图作以简单地介绍。In order to more clearly illustrate the technical methods of the embodiments of the present application, the following will briefly introduce the drawings needed in the embodiments.
图1为本申请预测车辆的目的地的方法的一种示意性流程图;FIG. 1 is a schematic flowchart of a method for predicting the destination of a vehicle according to this application;
图2为本申请获取车辆的轨迹数据的方法的一种示意性流程图;Fig. 2 is a schematic flow chart of a method for obtaining trajectory data of a vehicle according to this application;
图3为本申请获取车辆的轨迹数据的方法的另一种示意性流程图;FIG. 3 is another schematic flow chart of the method for obtaining vehicle trajectory data according to this application;
图4为本申请目标神经网络模型的一种示意性结构图;Figure 4 is a schematic structural diagram of the target neural network model of the application;
图5为本申请获取车辆的目的地信息的方法的一种示意性流程图;FIG. 5 is a schematic flowchart of a method for obtaining destination information of a vehicle according to this application;
图6为本申请获取车辆的目的地信息的方法的另一种示意性流程图;FIG. 6 is another schematic flowchart of a method for obtaining destination information of a vehicle according to this application;
图7为本申请目标神经网络模型的另一种示意性结构图;Fig. 7 is another schematic structural diagram of the target neural network model of the application;
图8为本申请获取车辆的目的地信息的方法的另一种示意性流程图;FIG. 8 is another schematic flowchart of a method for obtaining destination information of a vehicle according to this application;
图9为本申请预测车辆的目的地的装置的一种示意结构图;FIG. 9 is a schematic structural diagram of a device for predicting the destination of a vehicle in this application;
图10为本申请预测车辆的目的地的装置的另一种示意结构图;FIG. 10 is another schematic structural diagram of the device for predicting the destination of a vehicle in this application;
图11为本申请预测车辆的目的地的计算设备的一种示意结构图;FIG. 11 is a schematic structural diagram of a computing device for predicting the destination of a vehicle in this application;
图12是可以应用本申请实施例的装置的系统的一种示意架构图;FIG. 12 is a schematic architecture diagram of a system to which the apparatus of the embodiment of the present application can be applied;
图13是可以应用本申请实施例的装置的一种示意部署图;FIG. 13 is a schematic deployment diagram of a device to which an embodiment of the present application can be applied;
图14是本申请获取初始轨迹特征的一种示意性流程图;FIG. 14 is a schematic flow chart of the application for obtaining initial trajectory features;
图15是本申请获取初始轨迹特征的另一种示意性流程图。Fig. 15 is another schematic flow chart for obtaining the initial trajectory feature according to the present application.
具体实施方式Detailed ways
下面将结合本申请中的附图,对本申请提供的实施例中的方案进行描述。The solutions in the embodiments provided in this application will be described below in conjunction with the drawings in this application.
为了便于理解,下面给出与本申请相关的概念的说明。To facilitate understanding, an explanation of concepts related to the present application is given below.
1、兴趣点(point of interest,POI)1. Point of interest (POI)
POI是日常生活中,人们感兴趣且常常出入的地点。一般来说,一个POI可以从三方面进行描述:名称、位置和类型。POI is a place that people are interested in and frequent in daily life. Generally speaking, a POI can be described from three aspects: name, location and type.
POI的名称用于标识该POI以区别于其他POI,POI的类型通常是按POI的功能或者用途来对POI进行划分得到的结果,POI的位置通常是用POI所在地点的经纬度来表示。The name of the POI is used to identify the POI to distinguish it from other POIs. The type of POI is usually the result of dividing the POI according to the function or purpose of the POI. The location of the POI is usually expressed by the longitude and latitude of the location of the POI.
POI的类型可以包括:政府部门、加油站、百货公司、超市、餐厅、酒店、便利商店、医院、旅游景点、车站、停车场等。The types of POI can include: government departments, gas stations, department stores, supermarkets, restaurants, hotels, convenience stores, hospitals, tourist attractions, stations, parking lots, etc.
POI的名称示例包括:天安门广场、东方明珠、秦始皇兵马俑、王府井百货商场和白云机场,每个POI的名称对应一个POI的类型,一个POI类型可以对应多个POI名称,例如:天安门广场、东方明珠、秦始皇兵马俑对应的POI类型均为“旅游景点”;王府井百货商场对应的POI类型为“商场”;白云机场对应的POI类型为“交通”。Examples of POI names include: Tiananmen Square, Oriental Pearl Tower, Terracotta Warriors and Horses, Wangfujing Department Store, and Baiyun Airport. Each POI name corresponds to one POI type. One POI type can correspond to multiple POI names, such as: Tiananmen Square, Oriental Pearl Tower, The POI type corresponding to the Terracotta Warriors and Horses of Qin Shihuang is "tourist attraction"; the POI type corresponding to Wangfujing Department Store is "shopping mall"; the POI type corresponding to Baiyun Airport is "transportation".
2、监控系统2. Monitoring system
监控系统是监控交通区域中的车辆行驶信息,并进一步对车辆行驶信息进行处理,获得监控数据的系统。The monitoring system is a system that monitors the driving information of vehicles in the traffic area, and further processes the driving information of the vehicles to obtain monitoring data.
监控系统包括监控设备和处理系统。在本申请实施例中,从监控系统中获得的数据称为监控数据,监控数据包括多个路口或多个路段的过车数据。每个路口或每个路段的过车数据是由设置于该路口或该路段的监控设备记录的、再经处理系统分析后获得的数据。The monitoring system includes monitoring equipment and processing systems. In the embodiments of the present application, the data obtained from the monitoring system is called monitoring data, and the monitoring data includes traffic passing data of multiple intersections or multiple road sections. The passing data of each intersection or each road section is the data recorded by the monitoring equipment installed at the intersection or the road section and analyzed by the processing system.
一个监控设备的过车数据包括一段时间内经过该监控设备所在位置的车辆的车牌信息、车型信息、该监控设备拍摄到该车辆的时间信息、该监控设备所在位置的位置信息(例如经纬度信息)和该监控设备的编号信息。其中,该监控设备所在位置的位置信息也可以理解为该车辆经过的地点的位置信息,该监控设备拍摄到车辆的时间信息也可以理解为该车辆经过该地点的时间信息。The passing data of a monitoring device includes the license plate information and model information of the vehicle passing the location of the monitoring device within a period of time, the time information when the monitoring device captures the vehicle, and the location information of the location of the monitoring device (such as latitude and longitude information) And the number information of the monitoring device. Wherein, the location information of the location where the monitoring device is located can also be understood as the location information of the location where the vehicle passes, and the time information of the vehicle captured by the monitoring device can also be understood as the time information of the vehicle passing the location.
本申请实施例中监控系统可以是卡口监控系统。卡口监控系统用于对经过交通区域中的特定场所(如收费站、交通或治安检查站、路口、路段等)的车辆进行监控。卡口监控系统包括卡口设备和处理系统,其中,卡口设备设置在路口或路段的某个位置,用于监控经过该位置的车辆,卡口设备是能够捕捉到图像或影像的设备,如摄像头,或相机等;处理系统可以获取卡口设备捕捉的图像或影像,通过深度学习算法识别卡口设备捕捉到的图像或影像中的车辆的车牌、车型、车辆数量,还可以记录经过的时间等信息。处理系统可以是一个运行在计算设备上的软件系统,处理系统可以部署在靠近卡口设备的服务器中,也可以部署在远端服务器上。卡口监控系统中处理系统处理后的数据可以作为卡口监控系统的监控数据。The monitoring system in the embodiment of the present application may be a bayonet monitoring system. The bayonet monitoring system is used to monitor vehicles passing through specific places in the traffic area (such as toll stations, traffic or public security checkpoints, intersections, road sections, etc.). The bayonet monitoring system includes a bayonet device and a processing system. The bayonet device is set at a certain position of an intersection or road section to monitor vehicles passing by that position. The bayonet device is a device that can capture images or images, such as Camera, or camera, etc.; the processing system can obtain images or images captured by the bayonet device, and use deep learning algorithms to identify the license plate, model, and number of vehicles in the image or image captured by the bayonet device, and can also record the elapsed time And other information. The processing system can be a software system running on a computing device. The processing system can be deployed in a server close to the bayonet device or on a remote server. The data processed by the processing system in the bayonet monitoring system can be used as the monitoring data of the bayonet monitoring system.
在一个交通区域内,可以只在一些路口设置卡口设备,例如可以在该交通区域内的主干路段、交通容易拥堵的路段、事故发生密集的路段以及在关键路口处设置卡口设备。在路口上设置的卡口设备可以拍摄到经过该路口的所有车道的车辆,例如该路口的卡口设备的视角(拍摄范围)可以覆盖该路口的所有车道;在路口上设置的卡口设备也可以只拍摄经过该路口部分车道上的车辆,例如该路口上卡口设备的视角(拍摄范围)可以只覆盖该路口部分方向的车道。In a traffic area, bayonet devices can be installed only at some intersections, such as trunk road sections in the traffic area, road sections prone to traffic jams, road sections with intensive accidents, and key road junctions. The bayonet device installed at an intersection can capture vehicles passing through all lanes of the intersection. For example, the angle of view (shooting range) of the bayonet device at the intersection can cover all lanes of the intersection; the bayonet device installed at the intersection can also It is possible to only photograph the vehicles passing through a part of the lane of the intersection. For example, the angle of view (the shooting range) of the bayonet device at the intersection may only cover the lane in the direction of the intersection.
需要说明的是,在本申请实施例中以监控系统为卡口监控系统为例进行说明。事实上,监控系统还可以是电子警察系统,电子警察系统可以对经过交通区域中的路口的车辆进行监控,识别出车辆的信息,进一步确定可能存在的交通违规情况以及发生的交通事故等。It should be noted that, in the embodiments of the present application, the monitoring system is a bayonet monitoring system as an example for description. In fact, the monitoring system can also be an electronic police system, which can monitor vehicles passing through intersections in a traffic area, identify vehicle information, and further determine possible traffic violations and traffic accidents.
电子警察系统包括电子警察监控设备和分析处理系统,电子警察监控设备记录的数据的内容与卡口设备捕捉的数据的内容类似,分析处理系统分析、处理后的数据与卡口监控系统的处理系统处理后的数据也类似,具体的,分析处理系统分析、处理后的数据也可以包括经过电子警察监控设备所在路口的车辆的车牌、记录经过的时间和进口车道,还可以包括车辆车型、一个或多个时间段内经过电子警察监控设备所在路口的车辆数量;电子警察系统的监控数据包括分析处理系统对多个电子警察监控设备记录的数据进行分析、处理后的数据。The electronic police system includes electronic police monitoring equipment and an analysis and processing system. The content of the data recorded by the electronic police monitoring equipment is similar to the content of the data captured by the bayonet device. The analysis and processing system analyzes and processes the data and the processing system of the bayonet monitoring system. The processed data is also similar. Specifically, the data analyzed and processed by the analysis and processing system can also include the license plate of the vehicle passing the intersection where the electronic police monitoring device is located, the recorded elapsed time and the entrance lane, and can also include the vehicle model, one or The number of vehicles passing through the intersection where the electronic police monitoring equipment is located in multiple time periods; the monitoring data of the electronic police system includes the data after the analysis and processing system analyzes and processes the data recorded by multiple electronic police monitoring equipment.
作为一种可能的实施方式,也可以将电子警察监控系统中分析处理系统分析、处理后的数据与卡口监控系统的处理系统处理后的数据进行对应融合,将融合后的数据作为监控数据。As a possible implementation manner, the data analyzed and processed by the analysis and processing system in the electronic police monitoring system and the data processed by the processing system of the bayonet monitoring system may be correspondingly merged, and the merged data may be used as monitoring data.
在本申请实施例中,以监控系统为卡口监控系统为例进行说明,对于监控系统为电子警察系统(相应的,监控数据为电子警察系统的监控数据),或监控系统为由卡口监控系统和电子监察系统组合构成的系统(相应的,监控数据为融合后的监控数据)的情况,与监控系统为卡口监控系统的情况类似,此处不再赘述。In the embodiments of this application, the monitoring system is the bayonet monitoring system as an example. For the monitoring system is an electronic police system (correspondingly, the monitoring data is the monitoring data of the electronic police system), or the monitoring system is monitored by the bayonet The situation of the system formed by the combination of the system and the electronic monitoring system (correspondingly, the monitoring data is the fused monitoring data) is similar to the situation where the monitoring system is a bayonet monitoring system, and will not be repeated here.
3、停车场数据3. Parking lot data
停车场数据是指各个POI的停车场或各个POI附近的停车场的停车记录。例如,停车场卡口的摄像头可以采集该停车场的停车数据,停车场数据可以包括:车辆的车牌信息,车辆进入该停车场的时间、驶离该停车场的时间及停车时长、一段时间内车辆进入量、一段时间内车辆驶离量、该停车场剩余可容纳车辆数等。The parking lot data refers to the parking records of the parking lot of each POI or the parking lot near each POI. For example, a camera at a parking lot bayonet can collect the parking data of the parking lot. The parking lot data can include: the license plate information of the vehicle, the time when the vehicle enters the parking lot, the time when the vehicle leaves the parking lot, and the parking duration, within a period of time The number of vehicles entering, the number of vehicles leaving within a period of time, the remaining number of vehicles that can be accommodated in the parking lot, etc.
4、道路通行状态4. Road traffic status
道路通行状态有多种划分方式。例如,可以将道路通行状态划分为拥堵、缓慢和畅通三种状态,或者,可以将道路通行状态划分为畅通、轻度拥挤、拥挤和严重拥挤等。There are many ways to divide the traffic state of the road. For example, the road traffic state can be divided into three states: congested, slow, and unblocked, or the road traffic state can be divided into unblocked, lightly congested, congested, and severely congested.
5、神经网络模型5. Neural network model
神经网络模型是一类模仿生物神经网络(动物的中枢神经系统)的结构和功能的数学计算模型。一个神经网络模型可以由多个子神经网络模型组合构成。不同结构的神经网络模型可用于不同的场景(例如:分类、识别或图像分割)或在用于同一场景时提供不同的效果。神经网络模型结构不同具体包括以下一项或多项:神经网络模型中网络层的层数不同、各个网络层的顺序不同、每个网络层中的权重、参数或计算公式不同。Neural network model is a kind of mathematical calculation model that imitates the structure and function of biological neural network (animal's central nervous system). A neural network model can be composed of a combination of multiple sub-neural network models. Neural network models with different structures can be used in different scenes (for example, classification, recognition or image segmentation) or provide different effects when used in the same scene. Different neural network model structures specifically include one or more of the following: the number of network layers in the neural network model is different, the order of each network layer is different, and the weights, parameters or calculation formulas in each network layer are different.
业界已存在多种不同的用于天气预测、图像内容预测、事件发生概率预测等应用场景的具有较高准确率的神经网络模型。其中,一些神经网络模型可以被特定的训练集进行训练后单独完成一项任务或与其他神经网络模型(或其他功能模块)组合完成一项任务。一些神经网络模型也可以被直接用于单独完成一项任务或与其他神经网络模型(或其他功能模块)组合完成一项任务。There are many different neural network models with high accuracy for application scenarios such as weather prediction, image content prediction, and event probability prediction in the industry. Among them, some neural network models can be trained by a specific training set to complete a task alone or combined with other neural network models (or other functional modules) to complete a task. Some neural network models can also be used directly to complete a task alone or in combination with other neural network models (or other functional modules) to complete a task.
在现实生活中,车辆在出行时,通常都是有着明确的POI的,例如:去某地区的一个医院看病,或者去一个小学送孩子上学,再或者去商场购物。如果在每辆车的出行过程中,能够提前预测出车辆要去往的目的地,以及预测出能够到达交通区域中的哪个子 区域以及该车辆的目的地的POI类型,则进而可以预测出整个交通区域中到达同一个POI的车辆的数量。进一步地,可以根据该数量以及该POI附近的路网数据预测该POI附近的道路的未来通行状态,根据预测得到的道路的未来通行状态可以提早进行交通管理和提示。In real life, when a vehicle is traveling, it usually has a clear POI, such as going to a hospital in a certain area, or going to a primary school to send a child to school, or shopping in a mall. If during the journey of each vehicle, it is possible to predict in advance the destination that the vehicle will go to, and predict which sub-area in the traffic area can be reached and the POI type of the vehicle’s destination, then the entire vehicle can be predicted. The number of vehicles arriving at the same POI in the traffic area. Further, the future traffic state of the road near the POI can be predicted based on the number and the road network data near the POI, and the traffic management and prompts can be performed early based on the predicted future traffic state of the road.
由此,本申请提出了一种预测车辆的目的地的方法,通过该方法可以提前获得在出行的车辆的目的地信息,在本申请中,车辆的目的地信息包括车辆的目的子区域和车辆的目的POI类型。在该预测车辆的目的地的方法中,采用训练完成的一个神经网络模型,称为目标神经网络模型,基于当前出行车辆在该次出行中已经生成的行驶数据(轨迹数据和/或出行数据),预测当前出行车辆的目的子区域和目的POI的类型,以达到预测当前出行车辆的目的地的目的。该方法能够提高车辆的目的地的预测准确度和预测速度。进一步地,该方法还可以根据整个交通区域中多个出行车辆的目的地,预测该交通区域中的每个子区域的道路通行状态,以便于交通管理部门及时对该交通区域的道路通行状态进行预警和调控。Therefore, this application proposes a method for predicting the destination of a vehicle, by which the destination information of the traveling vehicle can be obtained in advance. In this application, the destination information of the vehicle includes the destination sub-area of the vehicle and the vehicle. The purpose of the POI type. In the method of predicting the destination of the vehicle, a neural network model that has been trained is used, called the target neural network model, based on the travel data (trajectory data and/or travel data) that the current traveling vehicle has generated during the trip. , Predict the destination sub-area and the type of the destination POI of the current traveling vehicle to achieve the purpose of predicting the destination of the current traveling vehicle. This method can improve the prediction accuracy and predicted speed of the destination of the vehicle. Further, the method can also predict the road traffic status of each sub-area in the traffic area based on the destinations of multiple traveling vehicles in the entire traffic area, so that the traffic management department can timely warn the road traffic status of the traffic area. And regulation.
图1是本申请预测车辆的目的地的一种方法的示意性流程图。该方法可以包括S110至S120。执行该方法的装置称为预测装置。Fig. 1 is a schematic flowchart of a method for predicting the destination of a vehicle according to the present application. The method may include S110 to S120. The device that executes this method is called a prediction device.
S110,获取交通区域内的待预测车辆的轨迹数据,所述轨迹数据中包括所述待预测车辆本次出行中已经经过的地点的位置信息。其中的位置信息可以是经纬度信息。待预测车辆为在行驶过程中且还未到达目的地的出行车辆。本方案中可进行目的地预测的待预测车辆通常为已经行驶经过了几个监控设备的车辆,即已经形成了一段行驶轨迹的车辆,例如:可以对在行驶过程中的车辆的行驶轨迹进行判断,确定行驶轨迹中包括的位置信息大于预设门限值的车辆可以由本方案进行车辆的目的地预测,即这种车辆可称待预测车辆。应理解,一个交通区域内通常存在多个待预测车辆,本申请的预测车辆的目的地的方法可以对交通区域内的多个待预测车辆执行,为了方便理解,本申请后续以预测一辆待预测车辆的目的地为例,进行方法的描述。S110: Acquire trajectory data of a vehicle to be predicted in a traffic area, where the trajectory data includes location information of locations that the vehicle to be predicted has passed during this trip. The location information may be latitude and longitude information. The vehicle to be predicted is a traveling vehicle that is in the process of driving and has not yet reached the destination. The vehicle to be predicted that can be used for destination prediction in this solution is usually a vehicle that has passed several monitoring equipment, that is, a vehicle that has formed a driving track, for example: the driving track of the vehicle can be judged in the process of driving It is determined that the vehicle whose position information included in the driving track is greater than the preset threshold value can be predicted by this solution, that is, this kind of vehicle can be called the vehicle to be predicted. It should be understood that there are usually multiple vehicles to be predicted in a traffic area. The method for predicting the destination of a vehicle in this application can be executed on multiple vehicles to be predicted in the traffic area. For ease of understanding, this application will subsequently predict a vehicle to be predicted. Predict the destination of the vehicle as an example, and describe the method.
S120,根据所述轨迹数据和目标神经网络模型,获取所述待预测车辆在所述交通区域内的目的地信息,所述目的地信息包括所述待预测车辆的目的子区域和所述待预测车辆的目的POI的类型。所述目的子区域内该类型的POI即为所述待预测车辆的目的地。S120. Obtain destination information of the vehicle to be predicted in the traffic area according to the trajectory data and the target neural network model, where the destination information includes the destination sub-region of the vehicle to be predicted and the vehicle to be predicted The type of POI for the purpose of the vehicle. The POI of this type in the destination sub-area is the destination of the vehicle to be predicted.
根据所述轨迹数据和目标神经网络模型,获取所述待预测车辆的目的子区域和目的POI的类型,可以理解为:向目标神经网络模型输入所述轨迹数据;获取目标神经网络模型输出的所述待预测车辆的目的子区域和目的POI的类型。According to the trajectory data and the target neural network model, obtaining the target sub-region and the target POI type of the vehicle to be predicted can be understood as: inputting the trajectory data to the target neural network model; obtaining all the output of the target neural network model Describe the target sub-area of the vehicle to be predicted and the type of the target POI.
下面对上述步骤S110进行具体地描述。图2为本申请获取待预测车辆的轨迹数据的一种方法的示例性流程图。图2所示的方法包括S210至S220。The above step S110 will be described in detail below. Fig. 2 is an exemplary flow chart of a method for obtaining trajectory data of a vehicle to be predicted in this application. The method shown in FIG. 2 includes S210 to S220.
S210,获取交通区域内的过车数据。S210: Acquire passing traffic data in the traffic area.
例如,预测装置接收监控系统周期性发送的该交通区域内的过车数据,该交通区域内的过车数据中包括该交通区域内的多个监控设备记录的过车数据。For example, the predicting device receives the passing data in the traffic area periodically sent by the monitoring system, and the passing data in the traffic area includes the passing data recorded by multiple monitoring devices in the traffic area.
又如,预测装置向监控系统发送请求消息,以请求该交通区域内的过车数据,该请求消息中携带该交通区域的名称或区域标识信息。监控系统接收到该请求消息后,向预测装置发送该交通领域内的过车数据。For another example, the prediction device sends a request message to the monitoring system to request the passing data in the traffic area, and the request message carries the name or area identification information of the traffic area. After receiving the request message, the monitoring system sends the passing data in the traffic field to the prediction device.
S220,根据所述过车数据,确定所述待预测车辆的轨迹数据。S220: Determine trajectory data of the vehicle to be predicted according to the passing data.
由于交通区域内的每个监控设备记录的过车数据均可以包括一段时间内经过该监控 设备所在位置的车辆的车牌信息、车型信息、该监控设备拍摄到该车辆的时间信息、该监控设备所在位置的位置信息(例如经纬度信息)和该监控设备的编号信息。根据过车数据可以确定待预测车辆的轨迹数据。Since the passing data recorded by each monitoring device in the traffic area can include the license plate information, model information of the vehicle passing the location of the monitoring device within a period of time, the time information when the monitoring device captures the vehicle, and the location of the monitoring device. Location information (such as latitude and longitude information) and number information of the monitoring device. According to the passing data, the trajectory data of the vehicle to be predicted can be determined.
在本申请的实施例中,待预测车辆的轨迹数据中可以包括多种信息,例如:1、待预测车辆的轨迹数据包括:待预测车辆经过的交通区域内的子区域的位置信息或网格编号;2、待预测车辆的轨迹数据包括:待预测车辆经过的交通区域内的子区域的位置信息或网格编号、待预测车辆经过这些地点中一个或多个地点的时间信息;3、待预测车辆的轨迹数据包括:待预测车辆经过的交通区域内的子区域的位置信息或网格编号、待预测车辆经过的POI的类型;4、待预测车辆的轨迹数据包括:待预测车辆经过的交通区域内的子区域的位置信息或网格编号、待预测车辆经过的POI的类型、待预测车辆经过这些地点中一个或多个地点的时间信息。In the embodiment of the present application, the trajectory data of the vehicle to be predicted may include a variety of information, for example: 1. The trajectory data of the vehicle to be predicted includes: location information or grids of sub-regions in the traffic area that the vehicle to be predicted passes through Number; 2. The trajectory data of the vehicle to be predicted includes: the position information or grid number of the sub-area in the traffic area that the vehicle to be predicted passes through, and the time information when the vehicle to be predicted passes through one or more of these locations; 3. The trajectory data of the predicted vehicle includes: the position information or grid number of the sub-area in the traffic area that the vehicle to be predicted passes through, and the type of POI that the vehicle to be predicted passes through; 4. The trajectory data of the vehicle to be predicted includes: the vehicle to be predicted passes through Location information or grid numbers of sub-regions in the traffic area, the type of POI that the vehicle to be predicted passes through, and time information when the vehicle to be predicted passes one or more of these locations.
下面介绍根据过车数据确定待预测车辆的轨迹数据的实现方法。The following describes how to determine the trajectory data of the vehicle to be predicted based on the passing data.
图3为根据所述过车数据确定所述待预测车辆的轨迹数据的一种实现方法的示例性流程图。图3所示的方法包括S310至S330。Fig. 3 is an exemplary flow chart of an implementation method of determining the trajectory data of the vehicle to be predicted according to the passing data. The method shown in FIG. 3 includes S310 to S330.
S310,获取交通区域内的子区域的位置信息。S310: Acquire location information of sub-areas in the traffic area.
在一些可能的实现方式中,预测装置将覆盖交通区域的地图划分为指定精度或指定数量的网格,一个网格覆盖的区域为一个子区域,并使用每个网格中心点覆盖的地点的位置信息(例如经纬度)来表示该网格对应的子区域的位置信息。交通区域内多个子区域的位置信息形成位置信息序列。In some possible implementations, the prediction device divides the map covering the traffic area into grids with a specified accuracy or a specified number. The area covered by a grid is a sub-area, and the center point of each grid covers the location. Location information (for example, latitude and longitude) indicates the location information of the sub-region corresponding to the grid. The position information of multiple sub-areas in the traffic area forms a position information sequence.
预测装置可以采用人为划分、Geohash法或其他方式对交通区域的地图进行划分。The prediction device can use artificial division, Geohash method or other methods to divide the map of the traffic area.
每个网格的划分精度可以由本申请对预测的目的子区域的精确度要求和交通区域的整体面积来共同决定。例如,可以将交通区域的地图划分为万米级、千米级或百米级的网格。The division accuracy of each grid can be determined by the application's accuracy requirements for the predicted target sub-region and the overall area of the traffic area. For example, the map of the traffic area can be divided into 10,000-meter, kilometer, or hundred-meter-level grids.
若一个网格对应的子区域中历史过车频次较少,该相邻网格对应的子区域中的历史过车频次较多时,可以将该网格与其相邻网格合并,即可以使用其相邻网格的中心点作为该网格的中心点使用。此处的较少和较多可以是基于一个阈值而言。该阈值可在统计各网格对应的子区域内的历史过车频次之后,根据各个网格对应的历史过车频次来设置。例如,可以将历史过车频次排序,取历史过车频次排序中的第n个历史过车频次的数量为阈值,其中n为大于0的正整数。If the historical passing frequency in the sub-region corresponding to a grid is low, and the historical passing frequency in the sub-region corresponding to the adjacent grid is high, the grid can be merged with its adjacent grid, that is, it can be used. The center point of the adjacent grid is used as the center point of the grid. The less and more here can be based on a threshold. The threshold may be set according to the historical passing frequency of each grid after the historical passing frequency in the sub-region corresponding to each grid is counted. For example, the historical passing frequency may be sorted, and the number of the nth historical passing frequency in the historical passing frequency sorting is taken as the threshold, where n is a positive integer greater than 0.
在对交通区域的地图进行网格化处理时,可以仅对有车辆出行过的区域对应的部分地图进行网格化。When the map of the traffic area is gridded, only part of the map corresponding to the area where the vehicle has traveled can be gridded.
通常情况下,对交通区域进行划分时,可以尽量满足一个子区域中仅部署有一个监控设备的需求,这样可以保证待预测车辆的轨迹数据中不同的位置信息落在不同的子区域中,从而可以从该轨迹数据中提取出更有意义的轨迹特征,最终提高预测的准确性。Under normal circumstances, when dividing the traffic area, you can try to meet the requirement that only one monitoring device is deployed in a sub-area, so as to ensure that different position information in the trajectory data of the vehicle to be predicted falls in different sub-areas. More meaningful trajectory features can be extracted from the trajectory data, and finally the accuracy of prediction can be improved.
在另一些可能的实现方式中,预测装置无需进行交通区域的网格划分,预测装置向其他设备发送请求子区域位置信息的消息,该消息中可以携带该交通区域的名称或区域标识信息。其他设备接收到该消息之后,向预测装置发送该交通区域内的子区域的位置信息。又如,可以通过人工方式将该交通区域内的子区域的位置信息拷贝到预测装置中。In other possible implementations, the prediction device does not need to perform grid division of the traffic area, and the prediction device sends a message requesting location information of the sub-area to other devices, and the message may carry the name or area identification information of the traffic area. After receiving the message, other devices send the location information of the sub-area in the traffic area to the prediction device. For another example, the location information of the sub-area in the traffic area can be manually copied to the prediction device.
S320,根据过车数据确定待预测车辆的初始轨迹数据。S320: Determine initial trajectory data of the vehicle to be predicted according to the passing data.
在一些可能的实现方式中,预测装置从过车数据中获取目标监控设备的位置信息(例 如经纬度信息)以及该目标监控设备记录的待预测车辆的时间信息,该目标监控设备是指该记录过待预测车辆(例如例如记录过待预测车辆的车牌号)的监控设备;将所有目标监控设备记录待预测车辆的时间信息按照时间的先后顺序排列,相应地,所有目标监控设备的位置信息按照每个目标监控设备记录目标车辆的时间的先后顺序排列;根据时间信息序列中相邻两个时间信息所指示的时间之间的差值,从位置信息序列中获取待预测车辆本次出行的初始轨迹数据。In some possible implementations, the prediction device obtains the location information (such as latitude and longitude information) of the target monitoring device from the passing data and the time information of the vehicle to be predicted recorded by the target monitoring device. The target monitoring device refers to the recorded vehicle. The monitoring equipment of the vehicle to be predicted (for example, the license plate number of the vehicle to be predicted); the time information of all the target monitoring equipment records the vehicle to be predicted is arranged in chronological order. Accordingly, the location information of all the target monitoring equipment is The target monitoring equipment records the time sequence of the target vehicle; according to the difference between the time indicated by the two adjacent time information in the time information sequence, the initial trajectory of the vehicle to be predicted for this trip is obtained from the position information sequence data.
具体地,假设时间信息序列的长度为n,则执行如下几个操作,以从位置信息序列中获取待预测车辆本次出行的轨迹数据:(1)初始化i=n;(2)取出时间信息序列中的第i个时间信息和第i-1个时间信息;(3)计算这两个时间信息分别指示的时间之间的差值;(4)若差值小于或等于预设的时间阈值,则计算i=i-1,并重复(2)和(3);(5)若差值大于预设的时间阈值,则说明待预测车辆经过第i个位置信息对应的位置的行为,和经过第i-1个位置信息对应的位置的行为,不属于同一次出行,即第i个位置信息对应的位置可以被认为是待预测车辆本次出行的起点,因此,从位置信息序列中获取第i个至第n位置信息,得到待预测车辆的初始轨迹数据。若i取到2之后,都没有出现差值大于预设的时间阈值的情况,则说明位置信息序列中所有位置信息构成待预测车辆的初始轨迹数据。Specifically, assuming that the length of the time information sequence is n, the following operations are performed to obtain the trajectory data of the current trip of the vehicle to be predicted from the position information sequence: (1) Initialize i=n; (2) Take out the time information The i-th time information and the i-1th time information in the sequence; (3) Calculate the difference between the times indicated by the two time information; (4) If the difference is less than or equal to the preset time threshold , Then calculate i=i-1, and repeat (2) and (3); (5) If the difference is greater than the preset time threshold, the behavior of the vehicle to be predicted passing the position corresponding to the i-th position information is explained, and The behavior that passes through the position corresponding to the i-1th position information does not belong to the same trip, that is, the position corresponding to the i-th position information can be regarded as the starting point of the current trip of the vehicle to be predicted, so it is obtained from the position information sequence From the i-th to the n-th position information, the initial trajectory data of the vehicle to be predicted is obtained. If there is no situation where the difference is greater than the preset time threshold after i is set to 2, it means that all the position information in the position information sequence constitutes the initial trajectory data of the vehicle to be predicted.
上述时间阈值可以根据待预测车辆的平均车速以及两个目标监控设备之间的行驶距离来决定。例如,假设两个目标监控设备之间的行驶距离为30公里或者15公里(存在两条不同的行驶路线),待预测车辆在该交通区域的平均车速为10公里/每小时,则时间阈值可以预设为1.5小时-3小时。The above-mentioned time threshold may be determined according to the average speed of the vehicle to be predicted and the driving distance between the two target monitoring devices. For example, assuming that the driving distance between two target monitoring devices is 30 kilometers or 15 kilometers (there are two different driving routes), and the average speed of the vehicle to be predicted in the traffic area is 10 kilometers per hour, the time threshold can be The preset is 1.5 hours to 3 hours.
S330,根据交通区域内的子区域的位置信息和待预测车辆的初始轨迹数据,确定待预测车辆的轨迹数据。S330: Determine the trajectory data of the vehicle to be predicted according to the location information of the sub-area in the traffic area and the initial trajectory data of the vehicle to be predicted.
在一种可能的实现方式中,将待预测车辆的初始轨迹数据中的每个位置信息替换为该位置信息指示的位置所属的子区域的位置信息,从而得到待预测车辆的轨迹数据。其中,初始轨迹数据中的位置信息实际上为拍摄到待预测车辆的监控设备的位置信息。In a possible implementation manner, each position information in the initial trajectory data of the vehicle to be predicted is replaced with the position information of the subregion to which the position indicated by the position information belongs, so as to obtain the trajectory data of the vehicle to be predicted. Wherein, the position information in the initial trajectory data is actually the position information of the monitoring device that captured the vehicle to be predicted.
可选地,获得待预测车辆的轨迹数据之后,可以对待预测车辆的轨迹数据进行消重处理。即查找待预测车辆的轨迹数据中相邻的且相同的多个位置信息,将这多个位置信息中重复的位置信息删掉,仅留其中一个。这样可以降低数据量,从而可以提高预测效率。Optionally, after obtaining the trajectory data of the vehicle to be predicted, the trajectory data of the vehicle to be predicted may be deduplicated. That is, search for multiple adjacent and identical position information in the trajectory data of the vehicle to be predicted, delete the repeated position information in the multiple position information, and leave only one of them. This can reduce the amount of data, which can improve forecasting efficiency.
在另一种实现方式中,将交通区域内的子区域的位置信息构成的位置信息序列转换为网格序列。In another implementation manner, the position information sequence formed by the position information of the sub-areas in the traffic area is converted into a grid sequence.
例如,将
Figure PCTCN2020096004-appb-000001
转换为(g 1,…,g i,…g n),其中,
Figure PCTCN2020096004-appb-000002
表示第i个子区域的经纬度坐标,g i表示网格序列中第i个网格的网格序号,i从1取到n,n等于子区域的数量。
For example, change
Figure PCTCN2020096004-appb-000001
Converted to (g 1 ,…,g i ,…g n ), where,
Figure PCTCN2020096004-appb-000002
Represents the latitude and longitude coordinates of the i-th subregion, g i represents the grid number of the i-th grid in the grid sequence, i is taken from 1 to n, and n is equal to the number of subregions.
获得交通区域对应的网格序列后,将待预测车辆的初始轨迹数据中的每个位置信息替换为对应的网格序号,从而得到待预测车辆的轨迹数据。其中,每个位置信息对应的网格序号是指该位置信息指示的位置所属的子区域对应的网格序号。由于网格序号相比于位置信息而言,可以使用更简洁的信息来表示,因此通过网格序号来指示待预测车辆的轨迹可以降低数据计算量,从而可以提高预测效率。After obtaining the grid sequence corresponding to the traffic area, each position information in the initial trajectory data of the vehicle to be predicted is replaced with the corresponding grid serial number, thereby obtaining the trajectory data of the vehicle to be predicted. Wherein, the grid sequence number corresponding to each location information refers to the grid sequence number corresponding to the sub-region to which the location indicated by the location information belongs. Since the grid sequence number can be represented by more concise information than the position information, indicating the trajectory of the vehicle to be predicted by the grid sequence number can reduce the amount of data calculation, thereby improving the prediction efficiency.
可选地,获得待预测车辆的轨迹数据之后,可以对待预测车辆的轨迹数据进行消重 处理。即查找待预测车辆的轨迹数据中相邻的且相同的多个网格序号,将这多个网格序号中重复的网格序号删掉,仅留其中一个。这样可以降低数据量,从而可以提高预测效率。Optionally, after obtaining the trajectory data of the vehicle to be predicted, the trajectory data of the vehicle to be predicted may be deduplicated. That is, search for multiple adjacent and identical grid serial numbers in the trajectory data of the vehicle to be predicted, delete the repeated grid serial numbers among the multiple grid serial numbers, and keep only one of them. This can reduce the amount of data, which can improve forecasting efficiency.
在另一些实现方式中,预测装置可以将待预测车辆的初始轨迹数据直接作为待预测车辆的轨迹数据。In other implementation manners, the prediction device may directly use the initial trajectory data of the vehicle to be predicted as the trajectory data of the vehicle to be predicted.
在另一些实现方式中,预测装置根据过车数据确定待预测车辆的初始轨迹数据之后,可以根据该初始轨迹数据以及本次出行对应的时间信息序列确定待预测车辆的轨迹数据。In other implementation manners, after the prediction device determines the initial trajectory data of the vehicle to be predicted based on the passing data, it may determine the trajectory data of the vehicle to be predicted based on the initial trajectory data and the time information sequence corresponding to the current trip.
例如,将初始轨迹数据和本次出行对应的时间信息序列组成待预测车辆的轨迹数据。For example, the initial trajectory data and the time information sequence corresponding to the current trip form the trajectory data of the vehicle to be predicted.
又如,将初始轨迹数据中的位置信息替换为子区域的位置信息,并将替换后的位置信息序列和本次出行对应的时间信息序列组成待预测车辆的轨迹数据。For another example, the position information in the initial trajectory data is replaced with the position information of the subregion, and the position information sequence after the replacement and the time information sequence corresponding to the current trip form the trajectory data of the vehicle to be predicted.
又如,将初始轨迹数据中的位置信息替换为子区域的网格序号,并将替换后的网格序号序列和本次出行对应的时间信息序列组成待预测车辆的轨迹数据。For another example, the position information in the initial trajectory data is replaced with the grid serial number of the subregion, and the replaced grid serial number sequence and the time information sequence corresponding to the current trip form the trajectory data of the vehicle to be predicted.
又如,将初始轨迹数据中的位置信息替换为子区域的位置信息,并将替换后的位置信息序列和本次出行对应的时间信息序列中的第一个时间信息组成待预测车辆的轨迹数据。For another example, replace the position information in the initial trajectory data with the position information of the subregion, and combine the position information sequence after the replacement and the first time information in the time information sequence corresponding to this trip to form the trajectory data of the vehicle to be predicted .
又如,将初始轨迹数据中的位置信息替换为子区域的网格序号,并将替换后的网格序号序列和本次出行对应的时间信息序列中的第一个时间信息组成待预测车辆的轨迹数据。For another example, replace the position information in the initial trajectory data with the grid number of the sub-region, and combine the replaced grid number sequence and the first time information in the time information sequence corresponding to this trip to form the vehicle to be predicted Track data.
在另一些实现方式中,预测装置还可以获取交通区域内的POI与POI类型的对应关系,并根据该对应关系和待预测车辆的初始轨迹数据确定待预测车辆的轨迹数据。In other implementations, the prediction device may also obtain the correspondence between the POI and the POI type in the traffic area, and determine the trajectory data of the vehicle to be predicted based on the correspondence and the initial trajectory data of the vehicle to be predicted.
例如,将初始轨迹数据中的位置信息替换为子区域的位置信息,并将替换后的位置信息序列和其中每个子区域内的POI的类型组成待预测车辆的轨迹数据。For example, the position information in the initial trajectory data is replaced with the position information of the sub-region, and the position information sequence after the replacement and the type of POI in each sub-region are combined into the trajectory data of the vehicle to be predicted.
又如,将初始轨迹数据中的位置信息替换为子区域的网格序号,并将替换后的网格序号序列和其中每个子区域内的POI的类型组成待预测车辆的轨迹数据。For another example, the position information in the initial trajectory data is replaced with the grid serial number of the subregion, and the replaced grid serial number sequence and the type of POI in each subregion are combined into the trajectory data of the vehicle to be predicted.
又如,将初始轨迹数据中的位置信息替换为子区域的位置信息,并将替换后的位置信息序列、本次出行对应的时间信息序列中的第一个时间信息和其中每个子区域内的POI的类型组成待预测车辆的轨迹数据。For another example, replace the position information in the initial trajectory data with the position information of the sub-area, and replace the position information sequence after the replacement, the first time information in the time information sequence corresponding to this trip, and the information in each sub-area. The type of POI constitutes the trajectory data of the vehicle to be predicted.
又如,将初始轨迹数据中的位置信息替换为子区域的网格序号,并将替换后的网格序列、本次出行对应的时间信息序列中的第一个时间信息和其中每个子区域内的POI的类型组成待预测车辆的轨迹数据。For another example, replace the position information in the initial trajectory data with the grid number of the sub-area, and replace the grid sequence after the replacement, the first time information in the time information sequence corresponding to this trip, and the first time information in each sub-area. The type of POI constitutes the trajectory data of the vehicle to be predicted.
待预测车辆的轨迹数据中的每个位置信息或每个网格序号可以对应一个或多个POI类型。Each position information or each grid number in the trajectory data of the vehicle to be predicted may correspond to one or more POI types.
当待预测轨迹数据中包括时间信息时,可以先将初始轨迹数据中的时间信息从年、月、日、时、分的格式转换为月、星期、日、时、刻的格式。例如,2018年12月1日17时36分可表示为[12,6,1,17,3],其中,“[]”中的“12”表示12月,“6”表示星期六,“1”表示1日,“17”表示17时,“3”表示36分位于一个小时中的第三个时刻。月、星期、日、时、刻可以称为时间信息的时间元素。When the trajectory data to be predicted includes time information, the time information in the initial trajectory data can be converted from the format of year, month, day, hour, and minute to the format of month, week, day, hour, and hour. For example, 17:36 on December 1, 2018 can be expressed as [12,6,1,17,3], where "12" in "[]" means December, "6" means Saturday, and "1 "Means the 1st, "17" means 17:00, and "3" means 36 minutes is the third time in an hour. Month, week, day, hour, and moment can be called time elements of time information.
下面介绍预测装置获取获取交通区域内的POI与POI类型的对应关系的实现方式。The following describes the implementation manner for the prediction device to obtain the correspondence between the POI and the POI type in the traffic area.
在一种实现方式中,预测装置可以先获取交通区域内的所有POI的信息,然后使用K 均值聚类算法、层次聚类算法、基于密度的聚类算法、高斯混合模型聚类算法或者均值漂移聚类算法中的任意一种,对交通区域中的所有POI进行聚类处理,建立起POI类型与POI的对应关系;然后将POI类型与POI的对应关系进行存储。例如,可以将酒店、宾馆、旅馆等用于住宿的POI聚类为一类,可以将中餐馆、西餐馆、快餐馆等用于提供熟食的POI聚类为一类等。In one implementation, the prediction device can first obtain information about all POIs in the traffic area, and then use K-means clustering algorithm, hierarchical clustering algorithm, density-based clustering algorithm, Gaussian mixture model clustering algorithm, or mean shift Any one of the clustering algorithms performs clustering processing on all POIs in the traffic area, and establishes the corresponding relationship between the POI type and the POI; and then stores the corresponding relationship between the POI type and the POI. For example, the POIs used for accommodation in hotels, guesthouses, and inns can be clustered into one category, and the POIs used for providing cooked food such as Chinese restaurants, western restaurants, fast food restaurants, etc. can be clustered into one category.
在另一些可能的实现方式中,预测装置可以从其他设备获取交通区域内的POI与POI类型的对应关系。例如,预测装置向其他设备发送请求该对应关系的消息,该消息中可以携带该交通区域的名称或者区域标识信息。其他设备接收到该消息之后,向预测装置发送该对应关系。In other possible implementation manners, the prediction device may obtain the correspondence between the POI and the POI type in the traffic area from other equipment. For example, the prediction device sends a message requesting the corresponding relationship to other devices, and the message may carry the name of the traffic area or the area identification information. After receiving the message, other devices send the corresponding relationship to the prediction device.
图4为本申请的目标神经网络模型的一种示例性结构图。如图4所示,本申请的目标神经网络模型中可以包括嵌入模型、第一特征提取模型、第一分类模型和第二分类模型,其中,嵌入模型用于向量映射,得到多维向量;第一特征提取模型用于获取待预测车辆的轨迹特征;第一分类模型用于根据该轨迹特征输出待预测车辆的目的子区域;第二分类模型用于根据该轨迹特征输出待预测车辆的目的POI的类型。Fig. 4 is an exemplary structure diagram of the target neural network model of the application. As shown in Figure 4, the target neural network model of the present application may include an embedded model, a first feature extraction model, a first classification model, and a second classification model. The embedded model is used for vector mapping to obtain a multi-dimensional vector; The feature extraction model is used to obtain the trajectory features of the vehicle to be predicted; the first classification model is used to output the target subregion of the vehicle to be predicted according to the trajectory feature; the second classification model is used to output the target POI of the vehicle to be predicted according to the trajectory feature Types of.
嵌入模型中可以包括嵌入层。第一特征提取模型中可以包括长短时记忆(long short term memory,LSTM)网络、双向递归神经网络(Bidirectional Recurrent Neural Networks,BRNN)、记忆网络(Memory Networks)中的任意一种。第一分类模型或第二分类模型可以为人工神经网络模型,例如,第一分类模型或第二分类模型为仅包含全连接层和激活函数的人工神经网络模型。An embedding layer can be included in the embedding model. The first feature extraction model can include any one of a long short term memory (LSTM) network, a bidirectional recurrent neural network (BRNN), and a memory network (Memory Networks). The first classification model or the second classification model may be an artificial neural network model. For example, the first classification model or the second classification model is an artificial neural network model that only includes a fully connected layer and an activation function.
针对图4所示的目标神经网络模型,下面结合图5介绍本申请前述S120中获取待预测车辆的目的子区域和目的POI的类型的一种方法。图5所示的方法包括S510至S540。With regard to the target neural network model shown in FIG. 4, a method for obtaining the target sub-region and the target POI type of the vehicle to be predicted in the aforementioned S120 of the present application will be introduced below in conjunction with FIG. 5. The method shown in FIG. 5 includes S510 to S540.
S510,根据待预测车辆的轨迹数据和嵌入模型,获取待预测车辆的初始轨迹特征。该步骤的示例性实现方式在后续内容中将会介绍。S510: Acquire an initial trajectory feature of the vehicle to be predicted according to the trajectory data and the embedded model of the vehicle to be predicted. An exemplary implementation of this step will be introduced in the subsequent content.
S520,根据待预测车辆的初始轨迹特征和第一特征提取模型,获取待预测车辆的轨迹特征。S520: Acquire the trajectory feature of the vehicle to be predicted according to the initial trajectory feature of the vehicle to be predicted and the first feature extraction model.
例如,将待预测车辆的初始轨迹特征输入第一特征提取模型,第一特征提取模型输出的特征可以作为待预测车辆的轨迹特征。For example, the initial trajectory feature of the vehicle to be predicted is input into the first feature extraction model, and the feature output by the first feature extraction model can be used as the trajectory feature of the vehicle to be predicted.
S530,根据特征提取模型输出的轨迹特征和第一分类模型,获取待预测车辆的目的子区域。S530: Obtain a target sub-region of the vehicle to be predicted according to the trajectory feature output by the feature extraction model and the first classification model.
例如,将特征提取模型输出的轨迹特征输入第一分类模型,第一分类模型输出待预测车辆的目的子区域。For example, the trajectory feature output by the feature extraction model is input to the first classification model, and the first classification model outputs the target sub-region of the vehicle to be predicted.
S540,根据特征提取模型输出的轨迹特征和第二分类子模型,获取待预测车辆的目的POI的类型。S540: Acquire the target POI type of the vehicle to be predicted according to the trajectory feature output by the feature extraction model and the second classification sub-model.
例如,将特征提取模型输出的轨迹特征输入第二分类模型,第二分类模型输出待预测车辆的目的POI的类型。For example, the trajectory feature output by the feature extraction model is input into the second classification model, and the second classification model outputs the type of the target POI of the vehicle to be predicted.
下面介绍待预测车辆的轨迹数据包括不同信息时,根据待预测车辆的轨迹数据和嵌入模型获取待预测车辆的初始轨迹特征的几种不同实现方式。The following introduces several different implementation methods for obtaining the initial trajectory characteristics of the vehicle to be predicted according to the trajectory data of the vehicle to be predicted and the embedded model when the trajectory data of the vehicle to be predicted includes different information.
若待预测车辆的轨迹数据包括位置信息或网格序号,则预测装置可以先将待预测车辆的轨迹数据中的位置信息或网格序号输入嵌入模型中的第一嵌入层,第一嵌入层对该位置信息或网格序号进行映射,得到多个多维的向量。If the trajectory data of the vehicle to be predicted includes position information or grid serial numbers, the prediction device may first input the position information or grid serial numbers in the trajectory data of the vehicle to be predicted into the first embedding layer in the embedding model, and the first embedding layer pairs The position information or grid sequence number is mapped to obtain multiple multi-dimensional vectors.
通常来说,映射得到的向量的维数是预先设置好的,且待预测车辆的轨迹数据映射得到的多个向量的维数都是相同的。Generally speaking, the dimension of the vector obtained by the mapping is preset, and the dimensions of the multiple vectors obtained from the mapping of the trajectory data of the vehicle to be predicted are all the same.
例如,若待预测车辆的轨迹数据内包括n个位置信息,每个位置信息映射成v维向量,则该待预测车辆的轨迹数据可以映射为n个向量,这n个向量可以构成一个n*v的矩阵,m和v均为正整数。For example, if the trajectory data of the vehicle to be predicted includes n pieces of position information, and each position information is mapped to a v-dimensional vector, the trajectory data of the vehicle to be predicted can be mapped to n vectors, and these n vectors can form a n* The matrix of v, m and v are both positive integers.
例如,若待预测车辆的轨迹数据内包括n个网格序号,每个网格序号映射成v维向量,则该待预测车辆的轨迹数据可以映射为n个向量,这n个向量可以构成一个n*v的矩阵,m和v均为正整数。For example, if the trajectory data of the vehicle to be predicted includes n grid numbers, and each grid number is mapped to a v-dimensional vector, the trajectory data of the vehicle to be predicted can be mapped to n vectors, and these n vectors can form one For the matrix of n*v, both m and v are positive integers.
利用第一嵌入层得到待预测车辆的多个向量之后,可以对这多个向量进行融合,得到待预测车辆的空间特征向量,并可将该空间特征向量作为待预测车辆的初始轨迹特征。例如,可以将这多个向量按顺序拼接在一起,从而得到待预测车辆的空间特征向量。又如,可以对这多个向量进行点乘运算,并将点乘的结果作为待预测车辆的空间特征向量。After using the first embedding layer to obtain multiple vectors of the vehicle to be predicted, the multiple vectors can be merged to obtain the spatial feature vector of the vehicle to be predicted, and the spatial feature vector can be used as the initial trajectory feature of the vehicle to be predicted. For example, these multiple vectors can be spliced together in order to obtain the spatial feature vector of the vehicle to be predicted. For another example, a dot multiplication operation can be performed on these multiple vectors, and the result of the dot multiplication can be used as the spatial feature vector of the vehicle to be predicted.
如图14所示,待预测车辆的轨迹数据中的n个网格序号“g 1、…、g i、…、g n”输入嵌入模型中的第一嵌入层之后,分别得到向量“[a 11…a 1j…a 1n]”…“[a i1…a ij…a in]”…“[a n1…a nj…a nn]”,其中,i和j为小于或等于n的正整数;向量“[a 11…a 1j…a 1n]”…“[a i1…a ij…a in]”…“[a n1…a nj…a nn]拼接在一些得到待预测车辆的初始轨迹特征“a 11…a 1j…a 1n…a i1…a ij…a in…a n1…a nj…a nnAs shown in Figure 14, the n grid numbers "g 1 , ..., g i , ..., g n "in the trajectory data of the vehicle to be predicted are input into the first embedding layer in the embedding model, and the vectors "[a 11 …a 1j …a 1n ]”…“[a i1 …a ij …a in ]”…“[a n1 …a nj …a nn ]”, where i and j are positive integers less than or equal to n; The vector “[a 11 …a 1j …a 1n ]”…“[a i1 …a ij …a in ]”…“[a n1 …a nj …a nn ] stitched together to get the initial trajectory features of the vehicle to be predicted" a 11 …a 1j …a 1n …a i1 …a ij …a in …a n1 …a nj …a nn .
若待预测车辆的轨迹数据包括位置信息或网格序号,以及时间信息,则预测装置可以先将待预测车辆的轨迹数据中的位置信息或网格序号输入嵌入模型中的第一嵌入层,以得到空间特征向量;并将时间信息中的各个时间元素跟别输入嵌入模型中的第二嵌入层至第六嵌入层,以得到待预测车辆的时间特征向量;以及将空间特征向量和时间特征向量融合为待预测车辆的初始轨迹特征。If the trajectory data of the vehicle to be predicted includes position information or grid serial number, and time information, the prediction device may first input the position information or grid serial number in the trajectory data of the vehicle to be predicted into the first embedding layer in the embedding model to Obtain the spatial feature vector; and input each time element in the time information into the second embedding layer to the sixth embedding layer in the embedded model to obtain the temporal feature vector of the vehicle to be predicted; and combine the spatial feature vector and the temporal feature vector Fusion is the initial trajectory feature of the vehicle to be predicted.
将待预测车辆的轨迹数据中的位置信息或网格序号输入嵌入模型中的第一嵌入层,以得到空间特征向量的实现方式,如前所述,此处不再赘述。The position information or the grid sequence number in the trajectory data of the vehicle to be predicted is input into the first embedding layer in the embedding model to obtain the implementation of the spatial feature vector, as described above, and will not be repeated here.
下面介绍将时间信息中的各个时间元素跟别输入嵌入模型中的第二嵌入层至第六嵌入层,以得到待预测车辆的时间特征向量的实现方式。The following describes how to input each time element in the time information into the second embedding layer to the sixth embedding layer in the embedded model to obtain the time feature vector of the vehicle to be predicted.
针对每个时间信息,“月”时间元素输入第二嵌入层,第二嵌入层输出一个多维向量;“星期”时间元素输入第三嵌入层,第三嵌入层输出一个多维向量;“日”时间元素输入第四嵌入层,第四嵌入层映射得到一个多维向量;“时”时间元素输入第五嵌入层,第五嵌入层映射得到一个多维向量;“刻”时间元素输入第六嵌入层,第六嵌入层输出一个多维向量。For each time information, the "month" time element is input to the second embedding layer, and the second embedding layer outputs a multi-dimensional vector; the "week" time element is input to the third embedding layer, and the third embedding layer outputs a multi-dimensional vector; "day" time The element is input to the fourth embedding layer, and the fourth embedding layer is mapped to obtain a multi-dimensional vector; the “time” time element is input to the fifth embedding layer, and the fifth embedding layer is mapped to obtain a multi-dimensional vector; The six embedding layer outputs a multi-dimensional vector.
可以理解的是,第二嵌入层、第三嵌入层、第四嵌入层、第五嵌入层和第六嵌入层输出的向量的维数可以是预先设置的,且这五个嵌入层输出的向量的维数可以相同,也可以不同。It is understandable that the dimensions of the vectors output by the second, third, fourth, fifth, and sixth embedding layers can be preset, and the vectors output by these five embedding layers The dimensions of can be the same or different.
上述五个嵌入层输出一个时间信息对应的五个向量之后,可以对这5个向量进行融合,以得到待预测车辆的一个时间特征向量。After the above five embedding layers output five vectors corresponding to one time information, these five vectors can be fused to obtain a time feature vector of the vehicle to be predicted.
例如,可以将这五个向量按顺序拼接在一起,即构成待预测车辆的一个时间特征向量;或者,可以对这五个向量进行点乘运算,并将运算结果作为一个时间特征向量。应注意的是,进行点乘运算时,这五个向量的维数必须相同。For example, the five vectors can be spliced together in order to form a time feature vector of the vehicle to be predicted; or, the five vectors can be dot-multiplied, and the result of the operation can be used as a time feature vector. It should be noted that the dimensions of these five vectors must be the same when performing dot multiplication operations.
预测装置获取到待预测车辆的时间特征向量之后,可以对待预测车辆的空间特征向 量和时间特征向量进行融合,以得到待预测车辆的初始轨迹特征。After the prediction device obtains the time feature vector of the vehicle to be predicted, it can fuse the space feature vector and the time feature vector of the vehicle to be predicted to obtain the initial trajectory feature of the vehicle to be predicted.
其中,待预测车辆的时间特征向量为一个时,可以将待预测车辆的空间特征向量和时间特征向量拼接在一起,从而得到待预测车辆的初始轨迹特征;或者,可以对待预测车辆的空间特征向量和时间特征向量进行点乘运算,运算结果即为待预测车辆的初始轨迹特征,该方式要求空间特征向量和时间特征向量的维数相同。Among them, when the time feature vector of the vehicle to be predicted is one, the spatial feature vector and time feature vector of the vehicle to be predicted can be spliced together to obtain the initial trajectory feature of the vehicle to be predicted; or, the spatial feature vector of the vehicle to be predicted can be obtained. The point multiplication operation is performed with the time feature vector, and the result of the operation is the initial trajectory feature of the vehicle to be predicted. This method requires that the dimensions of the space feature vector and the time feature vector are the same.
待预测车辆的时间特征向量为多个时,可以将空间特征向量和这多个时间特征向量依次拼接,从而得到待预测车辆的初始轨迹特征;或者,可以先对这多个时间特征向量进行点乘运算,然后将运算得到的向量与该空间特征向量进行拼接,从而得到待预测车辆的初始轨迹特征;或者,对这多个时间特征向量和该空间特征向量进行点乘运算,运算结果即为待预测车辆的初始轨迹特征,该方式要求时间特征向量与空间特征向量的维数相同。When there are multiple temporal feature vectors of the vehicle to be predicted, the spatial feature vector and the multiple temporal feature vectors can be spliced in sequence to obtain the initial trajectory feature of the vehicle to be predicted; or, the multiple temporal feature vectors can be selected first. Multiplication, and then splicing the calculated vector with the spatial feature vector to obtain the initial trajectory feature of the vehicle to be predicted; or, do a dot multiplication on the multiple temporal feature vectors and the spatial feature vector, and the result of the calculation is To predict the initial trajectory characteristics of the vehicle, this method requires that the dimensions of the temporal feature vector and the spatial feature vector are the same.
如图15所示,待预测车辆的轨迹数据中的网络序号“g 1、…、g i、…、g n”依次输入第一嵌入层和拼接模块后,得到空间特征向量“a 11…a 1j…a 1n…a i1…a ij…a in…a n1…a nj…a nn”。 As shown in Figure 15, the network sequence numbers "g 1 ,..., g i ,..., g n "in the trajectory data of the vehicle to be predicted are sequentially input into the first embedding layer and the splicing module, and the spatial feature vector "a 11 …a 1j …a 1n …a i1 …a ij …a in …a n1 …a nj …a nn ".
将“月”时间元素“m”输入第二嵌入层,得到多维向量“[m 1…m j…m n]”;将“星期”时间元素“w”输入第三嵌入层,得到多维向量“[w 1…w j…w n]”;将“日”时间元素“d”输入第四嵌入层,得到多维向量“[d 1…d j…d n]”;将“时”时间元素“h”输入第五嵌入层,得到多维向量“[h 1…j j…h n]”;将“刻”时间元素“q”输入第六嵌入层,得到多维向量“[q 1…q j…q n]”;将上述第二嵌入层至第六嵌入层输出的多维向量输入拼接模块,得到时间特征向量“m 1…m j…m nw 1…w j…w nd 1…d j…d nh 1…j j…h nq 1…q j…q n”。 Input the "month" time element "m" into the second embedding layer to obtain the multidimensional vector "[m 1 …m j …m n ]"; input the "week" time element "w" into the third embedding layer to obtain the multidimensional vector " [w 1 …w j …w n ]”; input the “day” time element “d” into the fourth embedding layer to obtain the multi-dimensional vector “[d 1 …d j …d n ]”; replace the “time” time element “ h" is input to the fifth embedding layer, and the multi-dimensional vector “[h 1 …j j …h n ]” is obtained; and the “engraved” time element “q” is input to the sixth embedding layer to obtain the multi-dimensional vector “[q 1 …q j … q n ]"; input the multi-dimensional vector output from the second embedding layer to the sixth embedding layer into the splicing module to obtain the temporal feature vector "m 1 …m j …m n w 1 …w j …w n d 1 …d j …D n h 1 …j j …h n q 1 …q j …q n ".
将上述空间特征向量“a 11…a 1j…a 1n…a i1…a ij…a in…a n1…a nj…a nn”和时间特征向量“m 1…m j…m nw 1…w j…w nd 1…d j…d nh 1…j j…h nq 1…q j…q n”输入拼接模块,得到待预测车辆的初始轨迹特征“a 11…a 1j…a 1n…a i1…a ij…a in…a n1…a nj…a nnm 1…m j…m nw 1…w j…w nd 1…d j…d nh 1…j j…h nq 1…q j…q n”。 Combine the above spatial feature vector "a 11 …a 1j …a 1n …a i1 …a ij …a in …a n1 …a nj …a nn "and the time feature vector "m 1 …m j …m n w 1 …w j …w n d 1 …d j …d n h 1 …j j …h n q 1 …q j …q n ”Input the splicing module to obtain the initial trajectory feature of the vehicle to be predicted “a 11 …a 1j …a 1n …A i1 …a ij …a in …a n1 …a nj …a nn m 1 …m j …m n w 1 …w j …w n d 1 …d j …d n h 1 …j j …h n q 1 …q j …q n ".
若待预测车辆的轨迹数据包括位置信息或网格序号,以及时间信息和POI类型,则预测装置可以先将待预测车辆的轨迹数据中的位置信息或网格序号输入嵌入模型中的第一嵌入层,以得到空间特征向量;将时间信息中的各个时间元素跟别输入嵌入模型中的第二嵌入层至第六嵌入层,以得到待预测车辆的时间特征向量;将POI类型输入第七嵌入层,以得到POI特征向量;以及将空间特征向量、时间特征向量和POI特征向量融合为待预测车辆的初始轨迹特征。If the trajectory data of the vehicle to be predicted includes location information or grid number, as well as time information and POI type, the prediction device can first input the location information or grid number in the trajectory data of the vehicle to be predicted into the first embedding in the embedded model Layer to obtain the spatial feature vector; input each time element in the time information into the second embedding layer to the sixth embedding layer in the embedding model to obtain the time feature vector of the vehicle to be predicted; enter the POI type into the seventh embedding Layer to obtain the POI feature vector; and fuse the spatial feature vector, the temporal feature vector, and the POI feature vector into the initial trajectory feature of the vehicle to be predicted.
将待预测车辆的轨迹数据中的位置信息或网格序号输入嵌入模型中的第一嵌入层,以得到空间特征向量的实现方式,和将时间信息中的各个时间元素跟别输入嵌入模型中的第二嵌入层至第六嵌入层,以得到待预测车辆的时间特征向量的实现方式,如前所述,此处不再赘述。Input the position information or grid number in the trajectory data of the vehicle to be predicted into the first embedding layer in the embedding model to obtain the realization of the spatial feature vector, and input the time elements in the time information into the embedding model. The implementation of the second embedding layer to the sixth embedding layer to obtain the time feature vector of the vehicle to be predicted is as described above and will not be repeated here.
下面介绍将POI类型输入第七嵌入层,以得到POI特征向量的实现方式。The following describes how to input the POI type into the seventh embedding layer to obtain the POI feature vector.
每个POI类型输入第七嵌入层之后,第七嵌入层输出一个多维向量。该向量的维数可以是预先设置的。不同POI类型对应的向量的维数是相同的。After each POI type is input to the seventh embedding layer, the seventh embedding layer outputs a multi-dimensional vector. The dimension of the vector can be preset. The dimensions of the vectors corresponding to different POI types are the same.
预测装置获得轨迹数据中的每个位置信息或网格序号对应多个POI类型时,可以先将这多个POI类型对应的多个向量进行拼接或进行点乘运算,得到该位置信息或网格序 号对应的POI向量。When the prediction device obtains that each position information or grid number in the trajectory data corresponds to multiple POI types, it can first splice or perform dot multiplication operations on multiple vectors corresponding to the multiple POI types to obtain the position information or grid The POI vector corresponding to the serial number.
根据待预测车辆的轨迹数据得到多个POI向量时,可以对这多个POI向量进行拼接处理或者点乘处理,以得到待预测车辆的POI特征向量。若根据待预测车辆的轨迹数据得到的是一个POI向量,则可以将这个POI向量直接作为待预测车辆的POI特征向量。When multiple POI vectors are obtained according to the trajectory data of the vehicle to be predicted, the multiple POI vectors can be spliced or dot multiplied to obtain the POI feature vector of the vehicle to be predicted. If a POI vector is obtained from the trajectory data of the vehicle to be predicted, this POI vector can be directly used as the POI feature vector of the vehicle to be predicted.
获得待预测车辆的POI特征向量之后,可以将该POI特征向量与待预测车辆的空间特征向量进行拼接或点乘处理,将得到的向量作为待预测车辆的初始轨迹特征;或者,可以将该POI特征向量与待预测车辆的空间特征向量和时间特征向量进行拼接或点乘处理,并将得到的向量作为待预测车辆的初始轨迹特征。其中,点乘方式要求各个特征向量的维数相同。After the POI feature vector of the vehicle to be predicted is obtained, the POI feature vector and the spatial feature vector of the vehicle to be predicted can be spliced or dot multiplied, and the obtained vector can be used as the initial trajectory feature of the vehicle to be predicted; or, the POI can be used as the initial trajectory feature of the vehicle to be predicted. The feature vector is spliced or dot multiplied with the spatial feature vector and time feature vector of the vehicle to be predicted, and the obtained vector is used as the initial trajectory feature of the vehicle to be predicted. Among them, the dot multiplication method requires the dimensions of each feature vector to be the same.
在进行车辆的目的地预测时,除了根据待预测的车辆已经形成的轨迹数据进行预测,还可以根据带预测车辆的轨迹数据以及出行数据进行预测,增加待预测车辆的出行数据进行车辆的目的地预测可以提高预测的目的地信息的准确率。When predicting the destination of a vehicle, in addition to predicting based on the trajectory data of the vehicle to be predicted, it can also be predicted based on the trajectory data and travel data of the predicted vehicle, and the travel data of the vehicle to be predicted can be added for the destination of the vehicle Prediction can improve the accuracy of predicted destination information.
图6为本申请预测待预测车辆的目的地的另一种方法的示例性流程图。图6所示的方法包括S610至S630。Fig. 6 is an exemplary flowchart of another method for predicting the destination of a vehicle to be predicted in this application. The method shown in FIG. 6 includes S610 to S630.
S610,获取交通区域内的待预测车辆的轨迹数据,所述轨迹数据中包括所述待预测车辆本次出行中已经经过的地点的位置信息。S610: Acquire trajectory data of the vehicle to be predicted in the traffic area, where the trajectory data includes location information of locations that the vehicle to be predicted has passed during this trip.
该步骤的实现可以参考S110的实现,此处不再赘述。The implementation of this step can refer to the implementation of S110, which will not be repeated here.
S620,获取所述待预测车辆的出行数据。S620: Acquire travel data of the vehicle to be predicted.
在一些实现方式中,待预测车辆的出行数据可以包括以下一种或多种:待预测车辆在一段时间内的出行次数,待预测车辆在一段时间内的出行频率,待预测车辆的类型,待预测车辆出行时的天气类型,待预测车辆在一段时间内的出行子时间段,待预测车辆所属车辆类型的车辆在一段时间内的出行次数,待预测车辆所属车辆类型的车辆在一段时间内的出行频率,在一段时间内出行的、与所述待预测车辆的车辆类型相同的车辆的数量。In some implementations, the travel data of the vehicle to be predicted may include one or more of the following: the number of trips of the vehicle to be predicted in a period of time, the travel frequency of the vehicle to be predicted in a period of time, the type of vehicle to be predicted, and the type of vehicle to be predicted. Predict the weather type when the vehicle is traveling, the travel sub-time period of the vehicle to be predicted in a period of time, the number of trips of the vehicle of the vehicle type to be predicted in a period of time, and the number of trips of the vehicle type of the vehicle to be predicted in a period of time Travel frequency is the number of vehicles of the same type as the vehicle to be predicted that travel within a period of time.
例如,待预测车辆的出行数据可以包括以下信息中的一种或多种:待预测车辆的日出行次数,月出行频率,待预测车辆的类型、待预测车辆出行起始时间时的天气类型、待预测车辆在一天内的出行的子时间段、待预测车辆所属车辆类型的车辆在一天内的出行次数,待预测车辆所属车辆类型的车辆在一个月内的出行频率,在一个月内出行的、与所述待预测车辆的车辆类型相同的车辆的数量。For example, the travel data of the vehicle to be predicted may include one or more of the following information: the number of sunrise trips of the vehicle to be predicted, the frequency of monthly trips, the type of vehicle to be predicted, the weather type at the start time of the vehicle to be predicted, The sub-time period of the trip of the vehicle to be predicted in a day, the number of trips of the vehicle type of the vehicle to be predicted in a day, the trip frequency of the vehicle type of the vehicle to be predicted within a month, and the number of trips within a month , The number of vehicles of the same vehicle type as the vehicle to be predicted.
待预测车辆在一段时间内的出行次数一种获取方式如下:获取该段时间内该交通区域内的历史过车数据,然后根据该历史过程数据确定待预测车辆在该段时间内的出行次数。根据该历史过程数据确定待预测车辆在该段时间内的出行次数的一种实现方式可以参考S320中的相关内容。不同之处在于,S320中的过车数据是待预测车辆本次出行所在时间段的过车数据,而本步骤中的过车数据为历史过车数据;且本步骤中确定第i个时间信息与第i-1个时间信息属于待预测车辆两次出行中的时间信息时,预测装置继续执行(2)和(3),直到i=2,这样就可以获知待预测车辆在该段时间内的出行次数了。One way to obtain the number of trips of the vehicle to be predicted in a period of time is as follows: Obtain the historical passing data of the traffic area within the period of time, and then determine the number of trips of the vehicle to be predicted in the period of time based on the historical process data . For an implementation manner of determining the number of trips of the vehicle to be predicted during the period of time according to the historical process data, reference may be made to related content in S320. The difference is that the passing data in S320 is the passing data of the time period during which the vehicle to be predicted will travel this time, while the passing data in this step is historical passing data; and the i-th time information is determined in this step When the i-1th time information belongs to the time information of the two trips of the vehicle to be predicted, the prediction device continues to execute (2) and (3) until i=2, so that it can be known that the vehicle to be predicted is within the period of time The number of trips.
待预测车辆在一段时间内的出行频率是指,在该段时间内,有待预测车辆出行的子时间段的数量与该时间段包括的子时间段的总数量的比值。例如,待预测车辆在一段时间内的出行频率可以指,在一个月内,待预测车辆出行的天数与该月的总天数的比值。The travel frequency of the vehicle to be predicted within a period of time refers to the ratio of the number of sub-periods in which the vehicle to be predicted travels to the total number of sub-periods included in the period of time. For example, the travel frequency of the vehicle to be predicted in a period of time may refer to the ratio of the number of days the vehicle to be predicted travels to the total number of days in the month in a month.
待预测车辆的车辆类型指按照一定的方式将车辆分类。例如,可以将车辆分为出租 车、客车、私家车、货车等不同类型。The vehicle type of the vehicle to be predicted refers to classifying the vehicle in a certain way. For example, vehicles can be divided into different types such as taxis, passenger cars, private cars, and trucks.
待预测车辆出行时的天气类型可以包括晴天、多云、阴天、雨雪天等。例如,待预测车辆出行时的天气类型可是出行当天的天气类型,或者可以是出行的起始时间所在时段的天气类型。待预测车辆出行时的天气类型可以从气象台或天气软件等获取。The type of weather to be predicted when the vehicle travels may include sunny, cloudy, cloudy, rainy and snowy, etc. For example, the weather type when the vehicle to be predicted travels may be the weather type on the day of travel, or may be the weather type at the time period when the travel starts. The weather type of the vehicle to be predicted when traveling can be obtained from the weather station or weather software.
待预测车辆所属车辆类型的车辆在一段时间内的出行次数可以通过如下方式获取:将该车辆类型中所有车辆在该段时间内的出行次数相加。The number of trips of a vehicle of the vehicle type to which the vehicle to be predicted belongs within a period of time can be obtained by the following method: adding the number of trips of all vehicles in the vehicle type during the period of time.
待预测车辆所属车辆类型的车辆在一段时间内的出行频率可以通过如下方式获取:计算该段时间内,有车辆类型的车辆出行的子时间段的数量与该时间段包括的子时间段的总数量的比值。The travel frequency of the vehicle of the vehicle type to be predicted within a period of time can be obtained by calculating the number of sub-periods in which vehicles of the vehicle type travel within a period of time and the total number of sub-periods included in the period of time. The ratio of the quantity.
上述待预测车辆的出行数据中的每一条数据可以被编码形成一个向量,例如:Each piece of data in the travel data of the vehicle to be predicted can be encoded to form a vector, for example:
S630,根据所述轨迹数据、所述出行数据和目标神经网络模型,获取所述待预测车辆在所述交通区域内的目的子区域和目的POI的类型。所述目的子区域内该类型的POI即为所述待预测车辆的目的地。S630: Obtain a target sub-region and a target POI type of the vehicle to be predicted in the traffic area according to the trajectory data, the travel data, and the target neural network model. The POI of this type in the destination sub-area is the destination of the vehicle to be predicted.
针对图6所示的方法,本申请的目标神经网络模型的一种示例性结构如图7所示。该目标神经网络模型可以包括嵌入模型、第一特征提取模型、第二特征提取模型、融合模型、第一分类模型和第二分类模型,其中,嵌入模型用于向量映射,得到多维向量;第一特征提取模型用于提取待预测车辆的轨迹特征;第二特征提取模型用于提取出行数据中的出行特征;融合模型用于将所述轨迹特征和所述出行特征融合为行驶特征;第一分类模型用于根据该行驶特征输出待预测车辆的目的子区域;第二分类模型用于根据该行驶特征输出待预测车辆的目的POI的类型。For the method shown in FIG. 6, an exemplary structure of the target neural network model of the present application is shown in FIG. 7. The target neural network model may include an embedded model, a first feature extraction model, a second feature extraction model, a fusion model, a first classification model, and a second classification model, where the embedded model is used for vector mapping to obtain a multidimensional vector; The feature extraction model is used to extract the trajectory features of the vehicle to be predicted; the second feature extraction model is used to extract the travel features in the travel data; the fusion model is used to fuse the trajectory features and the travel features into driving features; the first classification The model is used to output the target sub-region of the vehicle to be predicted according to the driving feature; the second classification model is used to output the target POI type of the vehicle to be predicted according to the driving feature.
嵌入模型中可以包括嵌入层。第一特征提取模型中可以包括LSTM网络、BRNN、记忆网络中的任意一种。第二提取特征模型中可以包括人工神经网络模型,例如,第二提取特征模型可以是包括一个或多个全连接层的神经网络模型。第一分类模型或第二分类模型可以为人工神经网络模型,例如,第一分类模型或第二分类模型为仅包含全连接层和激活函数的神经网络模型。An embedding layer can be included in the embedding model. The first feature extraction model may include any one of LSTM network, BRNN, and memory network. The second extracted feature model may include an artificial neural network model. For example, the second extracted feature model may be a neural network model including one or more fully connected layers. The first classification model or the second classification model may be an artificial neural network model. For example, the first classification model or the second classification model is a neural network model that only includes a fully connected layer and an activation function.
针对图7所示的目标神经网络模型,下面结合图8介绍前述S630中获取待预测车辆的目的子区域和目的POI的类型的一种方法。图8所示的方法包括S810至S870。With regard to the target neural network model shown in FIG. 7, a method for obtaining the target sub-region and the target POI type of the vehicle to be predicted in the aforementioned S630 will be introduced below in conjunction with FIG. 8. The method shown in FIG. 8 includes S810 to S870.
S810,根据待预测车辆的轨迹数据和嵌入模型,获取待预测车辆的初始轨迹特征。S810: Acquire an initial trajectory feature of the vehicle to be predicted according to the trajectory data and the embedded model of the vehicle to be predicted.
该步骤可以参考S510,此处不再赘述。For this step, refer to S510, which will not be repeated here.
S820,根据待预测车辆的初始轨迹特征和第一特征提取模型,获取待预测车辆的轨迹特征。S820: Acquire the trajectory feature of the vehicle to be predicted according to the initial trajectory feature of the vehicle to be predicted and the first feature extraction model.
该步骤可以参考S520,此处不再赘述。For this step, refer to S520, which will not be repeated here.
S830,根据出行数据和嵌入模型,获取待预测车辆的初始出行特征。S830: Obtain the initial travel characteristics of the vehicle to be predicted based on the travel data and the embedded model.
例如,将出行数据中每种数据输入嵌入模型中对应的嵌入层,该嵌入层将对应的数据映射为多维向量,其中,不同种类的数据的嵌入层不同,映射得到的向量的维数可以相同,也可以不相同,不同数据映射得到的向量的维数是预先设置的。For example, input each type of data in the travel data into the corresponding embedding layer in the embedding model, and the embedding layer maps the corresponding data into a multi-dimensional vector, where different types of data have different embedding layers, and the dimensions of the mapped vector can be the same , It can also be different, the dimension of the vector obtained by different data mapping is preset.
可选地,在待预测的车辆在一段时间内的出行次数输入嵌入层之前,可以先对出行次数进行编码,编码的方法可以是:规定待预测的车辆在一段时间内的出行次数为0到n次为第一档,对应的编码数值为“1”;出行次数为n+1次到n+2次为第二档,对应的编码数值为“2”,以此类推。这样可以根据该档位划分方式和个档位对应的编码数值确 定该出行次数对应的编码数值,再将对应的编码数值输入到对应的嵌入层中进行映射。这种方式可以减少计算量和计算的复杂度。Optionally, before the number of trips of the vehicle to be predicted in a period of time is input into the embedding layer, the number of trips can be encoded first. The encoding method may be: specifying that the number of trips of the vehicle to be predicted in a period of time is 0 to n times is the first gear, and the corresponding code value is "1"; the number of trips from n+1 to n+2 is the second gear, and the corresponding code value is "2", and so on. In this way, the code value corresponding to the number of trips can be determined according to the gear division method and the code value corresponding to each gear, and then the corresponding code value is input into the corresponding embedded layer for mapping. This method can reduce the amount of calculation and the complexity of the calculation.
同理,在待预测车辆在一段时间内的出行频率输入至嵌入层之前,可以先对出行频率进行编码,编码的方法可以是:规定待预测的车辆在一段时间内的出行频率0到频率1为第一档,对应的数值为“1”;频率1到频率2为第二档,对应的数值为“2”,以此类推。这样可以根据该档位划分方式和个档位对应的数值确定该出行频率对应的数值,再将对应的数值输入到对应的嵌入层中进行映射。这种方式可以减少计算量和计算的复杂度。Similarly, before the travel frequency of the vehicle to be predicted in a period of time is input to the embedding layer, the travel frequency can be encoded first. The encoding method can be: specify the travel frequency of the vehicle to be predicted in a period of time from 0 to frequency 1. For the first gear, the corresponding value is "1"; Frequency 1 to Frequency 2 are for the second gear, and the corresponding value is "2", and so on. In this way, the value corresponding to the travel frequency can be determined according to the gear division method and the value corresponding to each gear, and then the corresponding value is input into the corresponding embedded layer for mapping. This method can reduce the amount of calculation and the complexity of the calculation.
同理,在将在一段时间内出行的、与所述待预测车辆的车辆类型相同的车辆的数量输入嵌入层之前,可以先规定0到数量1为第一档,对应的数值为“1”;数量1到数量2为第二档,对应的数值为“2”,以此类推。这样可以根据该档位划分方式和个档位对应的数值确定该出行车辆数对应的数值,再将对应的数值输入到对应的嵌入层中进行映射。这种方式可以减少计算量和计算的复杂度。In the same way, before entering the number of vehicles of the same vehicle type as the vehicle to be predicted that travel within a period of time into the embedding layer, you can first specify 0 to number 1 as the first gear, and the corresponding value is "1" ; Quantity 1 to quantity 2 are the second level, and the corresponding value is "2", and so on. In this way, the value corresponding to the number of traveling vehicles can be determined according to the gear division method and the value corresponding to each gear, and then the corresponding value is input into the corresponding embedded layer for mapping. This method can reduce the amount of calculation and the complexity of the calculation.
同理,在待预测车辆出行时的天气类型输入嵌入层之前,可以先规定每种天气类型对应的数值,例如:将晴天对应数值“00”、多云对应数值“01”、阴天对应数值“10”、雨雪天对应数值“11”,然后从这些数值中查找到待预测车辆出行时的天气类型对应的数值,再将对应的数值输入到对应的嵌入层中进行映射。,In the same way, before entering the embedded layer of the weather type when the vehicle to be predicted is traveling, the value corresponding to each weather type can be specified first, for example: the value "00" for sunny days, the value "01" for cloudy days, and the value "01" for cloudy days. 10", the corresponding value "11" in rainy and snowy days, and then find the value corresponding to the weather type when the vehicle to be predicted travels from these values, and then input the corresponding value into the corresponding embedding layer for mapping. ,
同理,在待预测车辆的类型输入嵌入层之前,可以先规定每种类型对应的数值,然后从这些数值中查找到待预测车辆的类型对应的数值,再将对应的数值输入到对应的嵌入层中进行映射。这种方式可以降低数据量,从而可以较少计算量和计算的复杂度。Similarly, before entering the type of vehicle to be predicted into the embedding layer, you can first specify the value corresponding to each type, and then find the value corresponding to the type of vehicle to be predicted from these values, and then enter the corresponding value into the corresponding embedding Mapping in the layer. In this way, the amount of data can be reduced, so that the amount of calculation and the complexity of the calculation can be reduced.
预测装置根据嵌入模型获取到待预测车辆的各种历史出行数据对应的多维向量之后,可以将各种历史出行数据对应的向量通过拼接或者点乘的方式融合为一个特征向量,该特征向量称为待预测车辆的初始出行特征。After the prediction device obtains the multi-dimensional vector corresponding to various historical travel data of the vehicle to be predicted according to the embedded model, the vector corresponding to the various historical travel data can be merged into a feature vector by splicing or dot multiplication. This feature vector is called The initial travel characteristics of the vehicle to be predicted.
S840,根据待预测车辆的初始出行特征和第二特征提取模型,获取待预测车辆的出行特征。S840: Acquire the travel feature of the vehicle to be predicted according to the initial travel feature of the vehicle to be predicted and the second feature extraction model.
例如,将待预测车辆的初始出行特征输入第二特征提取模型,第二特征提取模型输出待预测车辆的出行特征。For example, the initial travel characteristics of the vehicle to be predicted are input into the second feature extraction model, and the second feature extraction model outputs the travel characteristics of the vehicle to be predicted.
S850,根据待预测车辆的轨迹特征、待预测车辆的出行特征和融合模型,确定待预测车辆的行驶特征。S850: Determine the driving characteristics of the vehicle to be predicted according to the trajectory characteristics of the vehicle to be predicted, the travel characteristics of the vehicle to be predicted, and the fusion model.
例如,融合模型通过拼接的方式将待预测车辆的轨迹特征和待预测车辆的出行特征融合在一起,从而得到待预测车辆的行驶特征。For example, the fusion model merges the trajectory characteristics of the vehicle to be predicted and the travel characteristics of the vehicle to be predicted by splicing, so as to obtain the driving characteristics of the vehicle to be predicted.
例如,融合模型通过点乘的方式将待预测车辆的轨迹特征和待预测车辆的出行特征融合在一起,从而得到待预测车辆的行驶特征。但这种方式要求待预测车辆的轨迹特征和待预测车辆的出行特征的维数相同。For example, the fusion model fuses the trajectory characteristics of the vehicle to be predicted and the travel characteristics of the vehicle to be predicted by a point multiplication method, so as to obtain the driving characteristics of the vehicle to be predicted. However, this method requires that the trajectory characteristics of the vehicle to be predicted and the travel characteristics of the vehicle to be predicted have the same dimensions.
S860,根据待预测车辆的行驶特征和第一分类模型,获取待预测车辆的目的子区域。S860: Acquire a target subregion of the vehicle to be predicted according to the driving characteristics of the vehicle to be predicted and the first classification model.
例如,将待预测车辆的行驶特征输入第一分类模型,第一分类模型输出待预测车辆的目的子区域。For example, the driving characteristics of the vehicle to be predicted are input into the first classification model, and the first classification model outputs the target sub-region of the vehicle to be predicted.
S870,根据待预测车辆的行驶特征和第二分类模型,获取待预测车辆的目的POI类型。S870: Acquire the target POI type of the vehicle to be predicted according to the driving characteristics of the vehicle to be predicted and the second classification model.
例如,将待预测车辆的行驶特征输入第二分类模型,第二分类模型输出待预测车辆 的目的POI的类型。For example, the driving characteristics of the vehicle to be predicted are input into the second classification model, and the second classification model outputs the type of the target POI of the vehicle to be predicted.
可以理解的是,本申请各个实施例中,待预测车辆的轨迹数据和/或出行数据可以是预测装置从其他设备获取的。It is understandable that, in the various embodiments of the present application, the trajectory data and/or travel data of the vehicle to be predicted may be obtained by the prediction apparatus from other equipment.
应理解,本申请的上述各个实施例中采用的目标神经网络模型是初始神经网络模型经过训练得到的神经网络模型。由于目标神经网络模型经过了训练,因此目标神经网络模型具备了根据车辆的轨迹数据(和/或出行数据)预测车辆的目的子区域和目的POI类型的能力,使得目标神经网络可用于本申请预测车辆的目的地的方法中。It should be understood that the target neural network model used in the foregoing embodiments of the present application is a neural network model obtained by training the initial neural network model. Since the target neural network model has been trained, the target neural network model has the ability to predict the target sub-region and the target POI type of the vehicle based on the trajectory data (and/or travel data) of the vehicle, so that the target neural network can be used for prediction in this application The destination method of the vehicle.
还应理解,对初始神经网络模型的训练的过程,在时间上,在初始神经网络模型训练得到的目标神经网络模型用于预测车辆的目的地之前,在一些实施例中,对初始神经网络模型进行训练的操作可由本申请中的预测装置中的训练模块执行。在另一些实施例中,对初始神经网络模型进行训练的操作可由第三方的设备执行或者由一个独立的训练装置执行,预测装置在进行预测车辆的目的地之前可从第三方的设备或者训练装置获取训练完成的目标神经网络模型。It should also be understood that the process of training the initial neural network model, in terms of time, before the target neural network model obtained by the initial neural network model training is used to predict the destination of the vehicle, in some embodiments, the initial neural network model The operation of training can be performed by the training module in the prediction device in this application. In other embodiments, the operation of training the initial neural network model can be performed by a third-party device or by an independent training device. The prediction device can use a third-party device or training device before predicting the destination of the vehicle. Obtain the trained target neural network model.
下面以初始神经网络的训练由训练装置执行为例,介绍本申请的神经网络模型的训练方法。本申请提出的训练神经网络模型的方法中,将根据一个交通区域内的大量车辆(例如,成千上万个车辆)的历史出行情况获取的大量轨迹数据和出行数据作为训练数据对初始神经网络模型进行训练,训练得到的目标神经网络模型可作为本申请提出的预测车辆的目的地的方法中的目标神经网络模型,用于预测该交通区域内当前出行车辆的目的子区域和目的POI的类型。The following takes the training of the initial neural network performed by the training device as an example to introduce the training method of the neural network model of the present application. In the method for training a neural network model proposed in this application, a large amount of trajectory data and travel data obtained according to the historical travel conditions of a large number of vehicles (for example, thousands of vehicles) in a traffic area are used as training data for the initial neural network The model is trained, and the trained target neural network model can be used as the target neural network model in the method for predicting the destination of the vehicle proposed in this application, and is used to predict the target sub-area of the current traveling vehicle in the traffic area and the type of the target POI .
应理解,在实际应用中,在对神经网络模型的训练阶段,训练数据为一个交通区域内的车辆的历史轨迹数据和出行数据,则在预测阶段,训练完成的目标神经网络模型则可被用于预测该交通区域内的当前出行车辆的目的地。It should be understood that in practical applications, in the training phase of the neural network model, the training data is the historical trajectory data and travel data of vehicles in a traffic area. In the prediction phase, the trained target neural network model can be used To predict the destination of the current traveling vehicle in the traffic area.
应理解,在对初始神经网络模型进行训练之前,需要预先选取或者设计该初始神经网络模型,例如:从业界已经构建好的神经网络模型中选取适合本申请进行车辆的目的地预测的初始神经网络模型,或者根据需求构建适合于本申请进行车辆的目的地预测的初始神经网络模型,如:设计初始神经网络模型的结构(初始神经网络模型的层数、初始神经网络模型中的子模型的类型、每层神经元的个数和类型、损失函数类型等),本申请中采用的初始神经网络模型的结构如前文中提到的,对于不同实施例,初始神经网络模型的类型稍有差异。It should be understood that before training the initial neural network model, the initial neural network model needs to be selected or designed in advance. For example, the initial neural network model that is suitable for this application for vehicle destination prediction is selected from the neural network models that have been built in the industry. Model, or construct an initial neural network model suitable for the application to predict the destination of the vehicle according to the needs, such as: design the structure of the initial neural network model (the number of layers of the initial neural network model, the type of sub-models in the initial neural network model , The number and types of neurons in each layer, the type of loss function, etc.), the structure of the initial neural network model used in this application is as mentioned above, and for different embodiments, the type of the initial neural network model is slightly different.
以本申请训练神经网络模型的训练数据包括大量车辆的历史的轨迹数据和出行数据为例,本申请的训练神经网络模型的一种方法中可以包括步骤8100至步骤8200。执行该方法的装置称为训练装置。Taking the training data for training the neural network model of this application including historical trajectory data and travel data of a large number of vehicles as an example, a method for training the neural network model of this application may include step 8100 to step 8200. The device that performs this method is called a training device.
步骤8100,获取训练数据,训练数据中包括大量车辆的历史的轨迹数据和出行数据,每个训练数据还对应每个车辆对应的标注数据。其中,每个车辆的轨迹数据和标注数据是一一对应的,轨迹数据中包括车辆经过的多个地点的位置信息,标注数据中记录了其对应的车辆的真实目的地的POI类型和该目的地所属的子区域。Step 8100: Obtain training data. The training data includes historical trajectory data and travel data of a large number of vehicles, and each training data also corresponds to label data corresponding to each vehicle. Among them, the trajectory data of each vehicle and the labeling data are in one-to-one correspondence. The trajectory data includes the location information of multiple locations that the vehicle passes. The labeling data records the POI type and the purpose of the real destination of the corresponding vehicle. The sub-region to which the land belongs.
车辆的目的地的POI类型也称为车辆的目的POI类型,车辆的目的地所述的交通子区域也称为车辆的目的子区域。The POI type of the destination of the vehicle is also referred to as the destination POI type of the vehicle, and the traffic sub-area described by the destination of the vehicle is also referred to as the destination sub-area of the vehicle.
步骤8200,根据所述训练数据对初始神经网络模型进行训练,训练得到的神经网络模型为目标神经网络模型,所述初始神经网络模型用于根据车辆的轨迹数据预测所述车 辆在交通区域内的目的子区域和目的POI类型。Step 8200: Train the initial neural network model according to the training data, the neural network model obtained by training is the target neural network model, and the initial neural network model is used to predict the vehicle's trajectory data in the traffic area according to the vehicle's trajectory data. Destination sub-area and destination POI type.
本实施例的方法,训练装置通过大量车辆的历史轨迹数据和出行数据,训练用于预测车辆在交通区域内的目的子区域和目的POI类型的初始神经网络模型,使得训练得到的目标神经网络模型能更准确地预测出车辆在交通区域内的目的子区域和目的POI类型。In the method of this embodiment, the training device trains the initial neural network model used to predict the target sub-area and the target POI type of the vehicle in the traffic area through a large amount of historical trajectory data and travel data of the vehicle, so that the target neural network model obtained by training It can more accurately predict the destination sub-area and destination POI type of the vehicle in the traffic area.
通常来说,训练数据中包括的历史轨迹数据越多越好。具体地,训练数据中包括的历史轨迹数据越多,训练得到的目标神经网络模型用于预测车辆的目的子区域和目的POI类型的准确性越高。Generally speaking, the more historical trajectory data included in the training data, the better. Specifically, the more historical trajectory data included in the training data, the higher the accuracy of the trained target neural network model for predicting the target sub-region and target POI type of the vehicle.
训练数据中的轨迹数据的获取方式,可以参考前述预测车辆的目的地的方法中获取轨迹数据的方式,此处不再赘述。不同之处在于,本申请中的轨迹数据为车辆在交通区域中的历史轨迹数据,即已经结束的出行的轨迹数据。此外,本申请中还需获取轨迹数据对应的标注数据。本申请获取标注数据的一种示例性方法可以包括步骤9100至步骤9300。The method of obtaining the trajectory data in the training data can refer to the method of obtaining the trajectory data in the aforementioned method of predicting the destination of the vehicle, which will not be repeated here. The difference is that the trajectory data in this application is the historical trajectory data of the vehicle in the traffic area, that is, the trajectory data of the trip that has ended. In addition, the label data corresponding to the trajectory data needs to be obtained in this application. An exemplary method for obtaining annotation data in the present application may include step 9100 to step 9300.
步骤9100,获取交通区域的地图信息,根据该地图划分该交通区域的子区域,以得到该交通区域的子区域的位置信息。该步骤可以参考S320,此处不再赘述。Step 9100: Obtain map information of the traffic area, and divide sub-areas of the traffic area according to the map to obtain location information of the sub-areas of the traffic area. For this step, refer to S320, which will not be repeated here.
步骤9200,获取交通区域的POI信息,根据该POI信息确定该交通区域内的POI与POI类型的对应关系。Step 9200: Obtain the POI information of the traffic area, and determine the correspondence between the POI and the POI type in the traffic area according to the POI information.
该步骤可以参考前面介绍过的确定该交通区域内的POI与POI类型的对应关系的实现方式,此处不再赘述。For this step, reference may be made to the implementation manner of determining the corresponding relationship between the POI and the POI type in the traffic area described earlier, which will not be repeated here.
步骤9300,获取交通区域内的停车场数据,根据该停车场数据和该交通区域内的POI与POI类型的对应关系,确定车辆对应的标注数据。Step 9300: Obtain parking lot data in the traffic area, and determine the label data corresponding to the vehicle based on the parking lot data and the correspondence between the POI and POI types in the traffic area.
例如,针对一个车辆的一条轨迹数据,从停车场数据中查找目标停车场数据,该目标停车场数据所对应的停车场位于该轨迹数据中记录的最后一个地点(即该轨迹数据所对应的车辆在该次出行中最后被监控系统拍摄到的的地点)的附近,例如,该最后一个地点与该停车场之间的距离小于或等于预设的距离阈值,距离阈值的一种示例为一百米;根据步骤920中确定的POI与POI类型的对应关系,将该停车场所属的POI的POI类型作为该车辆对应的目的POI类型,并将该POI所属的子区域作为该车辆对应的目的子区域;生成该目的POI类型和该目的子区域与该车辆的对应关系,该目的POI类型和该目的子区域即为该车辆对应的标注数据。For example, for a trajectory data of a vehicle, the target parking lot data is searched from the parking lot data, and the parking lot corresponding to the target parking lot data is located at the last location recorded in the trajectory data (that is, the vehicle corresponding to the trajectory data) In the vicinity of the last location captured by the surveillance system during the trip, for example, the distance between the last location and the parking lot is less than or equal to a preset distance threshold. An example of the distance threshold is 100 M; According to the correspondence between the POI and the POI type determined in step 920, the POI type of the POI to which the parking lot belongs is used as the destination POI type corresponding to the vehicle, and the subregion to which the POI belongs is the destination subregion corresponding to the vehicle Area; the corresponding relationship between the destination POI type and the destination sub-area and the vehicle is generated, and the destination POI type and the destination sub-area are the label data corresponding to the vehicle.
在一些设计中,若在停车场数据中查找不到轨迹数据对应的目标停车场数据,可以先确定该轨迹数据中记录的最后一个地点(即该车辆轨迹数据所对应的车辆在该次出行中最后被监控系统拍摄到的的地点)附近的POI,例如,该最后一个地点与该停车场之间的距离小于或等于预设的距离阈值,距离阈值的一种示例为一百米;再根据步骤920中确定的POI与POI类型的对应关系,将与该POI对应的POI类型确定为该轨迹数据的目的POI类型,并将该POI所属的子区域作为该车辆对应的目的子区域;生成该目的POI类型和该目的子区域与该车辆的对应关系,该目的POI类型和该目的子区域即为该车辆对应的标注数据。In some designs, if the target parking lot data corresponding to the trajectory data cannot be found in the parking lot data, the last location recorded in the trajectory data can be determined first (that is, the vehicle corresponding to the vehicle trajectory data is in this trip. The last location photographed by the monitoring system) nearby POI, for example, the distance between the last location and the parking lot is less than or equal to a preset distance threshold. An example of the distance threshold is one hundred meters; The corresponding relationship between the POI and the POI type determined in step 920, the POI type corresponding to the POI is determined as the destination POI type of the trajectory data, and the subarea to which the POI belongs is taken as the destination subarea corresponding to the vehicle; The destination POI type and the corresponding relationship between the destination sub-area and the vehicle, and the destination POI type and the destination sub-area are the label data corresponding to the vehicle.
可以理解的是,步骤9100仅是训练装置获取交通区域内的子区域信息的一种实现方式,本申请中还可以通过其他方式获取该交通区域内的子区域信息。例如,训练装置可以向其他发送请求消息,以请求该交通区域内的子区域信息,该请求消息中可以携带该交通区域的名称或区域标识信息。其他设备接收到该请求消息之后,可以向训练装置发 送该交通区域内的子区域信息。又如,可以通过人工方式将该交通区域内的子区域信息拷贝到训练装置中。It is understandable that step 9100 is only an implementation manner for the training device to obtain sub-area information in the traffic area, and other methods may also be used to obtain the sub-area information in the traffic area in this application. For example, the training device may send a request message to others to request sub-area information in the traffic area, and the request message may carry the name or area identification information of the traffic area. After receiving the request message, other devices can send the sub-area information in the traffic area to the training device. For another example, the sub-region information in the traffic area can be manually copied to the training device.
可以理解的是,步骤9200仅是训练装置获取交通区域内的POI类型的一种实现方式,本申请中还可以通过其他方式获取该交通区域内的POI类型。例如,训练装置可以向其他发送请求消息,以请求该交通区域内的POI类型,该请求消息中可以携带该交通区域的名称或区域标识信息。其他设备接收到该请求消息之后,执行步骤920中的操作或其他操作,并向训练装置发送该交通区域内的POI类型。又如,可以通过人工方式将该交通区域内的POI类型信息拷贝到训练装置中。It is understandable that step 9200 is only an implementation manner for the training device to obtain the POI type in the traffic area, and the POI type in the traffic area may also be obtained in other ways in this application. For example, the training device may send a request message to others to request the POI type in the traffic area, and the request message may carry the name or area identification information of the traffic area. After receiving the request message, the other device performs the operation in step 920 or other operations, and sends the POI type in the traffic area to the training device. For another example, the POI type information in the traffic area can be manually copied to the training device.
可以理解的是,步骤9200和步骤9300仅是训练装置获取车辆对应的标注数据的一种实现方式,本申请中还可以通过其他方式获取该标注数据。例如,训练装置可以向其他发送请求消息,以请求该标注数据,该请求消息中可以携带车辆的轨迹数据。其他设备接收到该请求消息之后,执行步骤9200和步骤9300中的操作,或执行其他操作,并向训练装置发送标注数据。It is understandable that step 9200 and step 9300 are only an implementation manner for the training device to obtain the label data corresponding to the vehicle, and the label data may also be obtained in other ways in this application. For example, the training device may send a request message to others to request the annotation data, and the request message may carry the trajectory data of the vehicle. After receiving the request message, other devices perform the operations in step 9200 and step 9300, or perform other operations, and send the annotation data to the training device.
可以理解的是,上述获取训练数据的实现方式仅是示例,本申请中还可以通过其他方式获取训练数据。例如,训练装置可以向其他设备发送请求消息,以请求该交通区域的训练数据,该请求消息中可以携带该交通区域的名称或者区域标识信息;其他设备接收到该请求消息之后,向训练装置发送该训练数据。又如,可以通过人工方式将该训练数据拷贝到训练装置。It is understandable that the foregoing implementation of acquiring training data is only an example, and training data may also be acquired in other ways in this application. For example, the training device may send a request message to other devices to request training data of the traffic area, and the request message may carry the name or area identification information of the traffic area; after receiving the request message, the other device sends the request message to the training device The training data. For another example, the training data can be copied to the training device manually.
本申请训练得到的目标神经网络模型可用于前述预测车辆的目的地的方法中。通常情况下,预测待预测车辆的目的地所使用的数据应与训练得到目标神经网络模型时所使用的数据的类型相同。The target neural network model trained in this application can be used in the aforementioned method of predicting the destination of a vehicle. Normally, the data used to predict the destination of the vehicle to be predicted should be the same type of data used when training the target neural network model.
例如,训练时使用的轨迹数据仅包括监控设备的位置信息,则预测车辆的目的地的方法中的轨迹数据中仅包括监控设备的位置信息。For example, the trajectory data used in training only includes the location information of the monitoring device, and the trajectory data in the method for predicting the destination of the vehicle only includes the location information of the monitoring device.
又如,训练时使用的轨迹数据中包括子区域的位置信息或子区域对应的网格序号,则预测车辆的目的地的方法中的轨迹数据中包括的是子区域的位置信息或子区域对应的网格序号。For another example, if the trajectory data used in training includes the location information of the sub-region or the grid number corresponding to the sub-region, the trajectory data in the method of predicting the destination of the vehicle includes the location information of the sub-region or the corresponding sub-region. The number of the grid.
又如,训练时使用的轨迹数据中包括位置信息和时间信息,则预测车辆的目的地的方法中的轨迹数据中包括位置信息和时间信息。For another example, if the trajectory data used during training includes location information and time information, the trajectory data in the method for predicting the destination of a vehicle includes location information and time information.
本申请训练得到目标神经网络模型的方式与根据目标神经网络模型预测车辆的目的地的方式的不同之处在于,在目标神经网络模型每次预测得到车辆的目的子区域和目的POI的类型之后,还需执行更多的步骤。例如在执行步骤1001和步骤1002之后,还需执行步骤1003至步骤1007。The difference between the method of training the target neural network model in this application and the method of predicting the destination of the vehicle based on the target neural network model is that after the target neural network model predicts the target sub-region and the type of the target POI of the vehicle each time, More steps need to be performed. For example, after performing step 1001 and step 1002, step 1003 to step 1007 need to be performed.
步骤1001,获取训练数据。获取训练数据可以包括获取历史的轨迹数据。可选地,获取训练数据还可以包括获取历史的出行数据。Step 1001: Obtain training data. Obtaining training data may include obtaining historical trajectory data. Optionally, obtaining training data may also include obtaining historical travel data.
获取历史的轨迹数据,可以参考前述预存待预测车辆的目的子区域和目的POI的类型的方法中,获取待预测车辆的轨迹数据的实现方式。获取历史的出行数据,可以参考获取出行数据的对应实现方式。To obtain historical trajectory data, refer to the aforementioned method of pre-storing the target sub-area of the vehicle to be predicted and the type of the target POI to obtain the trajectory data of the vehicle to be predicted. To obtain historical travel data, refer to the corresponding implementation method for obtaining travel data.
步骤1002,输入训练数据至初始神经网络模型,该初始神经网络模型输出预测的目的子区域和目的POI的类型Step 1002: Input the training data to the initial neural network model, and the initial neural network model outputs the predicted target sub-region and the target POI type
上述步骤S1002中,若是第一次对初始神经网络模型进行训练,则需要对初始神经 网络模型进行初始化,对初始神经网络模型进行初始化即对所构建或者选择的神经网络模型中的参数赋予初始值。输入训练数据至初始化后的初始神经网络模型,初始化后的初始神经网络模型按照模型结构对输入的数据进行映射、进而将映射后的向量进行特征提取、再进行特征融合、最后分别进行目的POI分类和目的子区域分类。这一过程与前述S510-S540(或另一种实施例中的S810-S870)的步骤相似。但是由于仅进行初始化后的初始神经网络模型并没有学习到输入的训练数据与对应的标注数据中的规律,步骤S1002中输出的车辆的目的子区域和目的POI的类型与该车辆的标注数据中的真实的目的子区域和目的POI的类型相差较大,即预测结果不准确。因此,需要进行下述步骤S1003及其后续步骤。In the above step S1002, if it is the first time to train the initial neural network model, the initial neural network model needs to be initialized. The initial neural network model is to initialize the parameters in the constructed or selected neural network model. . Input the training data to the initialized initial neural network model, and the initialized initial neural network model maps the input data according to the model structure, and then performs feature extraction on the mapped vector, then performs feature fusion, and finally performs the target POI classification And target sub-region classification. This process is similar to the steps of S510-S540 (or S810-S870 in another embodiment) described above. However, since the initial neural network model after only initialization has not learned the rules in the input training data and the corresponding label data, the target sub-region and the target POI type of the vehicle output in step S1002 are in the label data of the vehicle. There is a big difference between the true target sub-region and the target POI type, that is, the prediction result is not accurate. Therefore, the following step S1003 and subsequent steps need to be performed.
步骤1003,计算该预测的目的子区域相比于标注数据中的目的子区域的预测损失值,以及计算该预测的目的POI类型相比于标注数据中的目的POI类型的预测损失值。Step 1003: Calculate the predicted loss value of the predicted target sub-region compared to the target sub-region in the label data, and calculate the predicted loss value of the predicted target POI type compared to the target POI type in the label data.
例如,根据损失函数计算预测的目的子区域相比于标注数据中的目的子区域的损失值,该损失值称为第一预测损失值;根据损失函数计算预测的目的POI类型相比于标注数据中的目的POI类型的的损失值,该损失值称为第二预测损失值。For example, the loss value of the predicted target sub-region compared to the target sub-region in the labeled data is calculated according to the loss function, and this loss value is called the first predicted loss value; the predicted target POI type calculated based on the loss function is compared to the labeled data The loss value of the target POI type in the target POI, which is called the second predicted loss value.
上述第一预测损失值和第二预测损失值分别由两个损失函数进行计算,获得的第一预测损失值表示训练过程中的初始神经网络模型预测的目的子区域与车辆真实的目的子区域之间的误差程度;获得的第二预测损失值表示训练过程中的初始神经网络模型预测的目的POI类型与车辆真实的目的POI类型之间的误差程度。The first prediction loss value and the second prediction loss value are calculated by two loss functions respectively, and the obtained first prediction loss value represents the difference between the target sub-region predicted by the initial neural network model during the training process and the actual target sub-region of the vehicle. The degree of error between the two; the obtained second prediction loss value represents the degree of error between the target POI type predicted by the initial neural network model in the training process and the actual target POI type of the vehicle.
步骤1004,根据第一预测损失值和第二预测损失值,更新初始神经网络模型中的参数,例如更新嵌入模型中的各个嵌入层、第一特征提取模型、第二特征提取模型、第一分类模型和第二分类模型中的参数。根据损失值更新初始神经网络模型中的参数的实现方式可以参考现有技术,此处不再赘述。Step 1004, according to the first prediction loss value and the second prediction loss value, update the parameters in the initial neural network model, for example, update each embedding layer in the embedding model, the first feature extraction model, the second feature extraction model, and the first classification The parameters in the model and the second classification model. The implementation of updating the parameters in the initial neural network model according to the loss value can refer to the prior art, which will not be repeated here.
步骤1005,判断训练终止条件是否得到满足。Step 1005: It is judged whether the training termination condition is satisfied.
例如,判断训练次数是否已达到预设的门限值,若已到达,则说明训练终止条件得到满足,否则说明训练终止条件没有得到满足。For example, it is judged whether the number of training times has reached a preset threshold value. If it has been reached, it means that the training termination condition is met; otherwise, it means that the training termination condition is not met.
又如,获取还没被用于训练初始神经网络模型的训练数据,该训练数据称为测试数据;将测试数据中的轨迹数据输入初始神经网络模型,并计算初始神经网络模型预测的目的POI类型相比于测试数据中的POI类型的损失值,以及计算初始神经网络模型预测的目的子区域相比于测试数据中的目的子区域的损失值;若这两个损失值均小于或等于预设的门限值,则说明训练终止条件得到满足,否则说明训练终止条件没有得到满足。For another example, obtain training data that has not been used to train the initial neural network model, which is called test data; input the trajectory data in the test data into the initial neural network model, and calculate the target POI type predicted by the initial neural network model Compare the loss value of the POI type in the test data, and calculate the loss value of the target subregion predicted by the initial neural network model compared to the target subregion in the test data; if these two loss values are less than or equal to the preset The threshold value of, it means that the training termination condition is met, otherwise, it means that the training termination condition is not met.
步骤1006,若训练终止条件没有得到满足,则重复步骤1001至S1005。In step 1006, if the training termination condition is not met, steps 1001 to S1005 are repeated.
步骤1007,若训练终止条件得到满足,则输出该训练好的神经网络模型,该训练好的神经网络模型则作为预测车辆的目的地的目标神经网络模型。Step 1007: If the training termination condition is met, output the trained neural network model, and the trained neural network model is used as the target neural network model for predicting the destination of the vehicle.
可选的,由上述实施例,预测装置可以获知交通区域内大量待预测车辆的目的子区域和目的POI的类型,预测装置可以在获知大量待预测车辆的目的地之后,统计同一目的地的车流量。Optionally, according to the above-mentioned embodiment, the prediction device can learn the destination sub-area and the type of the destination POI of a large number of vehicles to be predicted in the traffic area, and the prediction device can count the vehicles of the same destination after learning the destination of a large number of vehicles to be predicted. flow.
进一步地,预测装置可以预测在相同时间段到达同一目的地的车辆量。该时间的长度可以预先设置,例如,可以是半个小时或者一个小时。Further, the predicting device can predict the number of vehicles arriving at the same destination in the same time period. The length of the time can be preset, for example, it can be half an hour or one hour.
例如,以半个小时为一个预测时间段时,预测装置可以按照交通区域内的平均车速,按照常规路线,计算具有相同目的地的车辆中每个车辆从当前位置到达该目的地的时间, 并统计未来半个小时、未来一个小时或未来一个半小时内到达该目的地的车流量。For example, when half an hour is used as a prediction time period, the prediction device can calculate the time for each vehicle with the same destination to arrive at the destination from its current location according to the average vehicle speed in the traffic area and according to the conventional route, and Count the traffic volume that will arrive at the destination in the next half an hour, one hour, or one and a half hours in the future.
预测装置获知未来一个时间段中一个子区域内一个类型的POI作为目的地时的车流量之后,还可以根据该车流量确定该POI附近的道路通行状态。After the predicting device learns the traffic volume when a POI of one type in a sub-area is used as a destination in a time period in the future, it can also determine the traffic state of the road near the POI according to the traffic volume.
例如,可以预先设置道路通行状态为严重拥挤、拥挤、轻度拥挤和畅通时分别对应如下车流量阈值:车流量大于400则为严重拥挤,车流量位于200至400之间则为拥挤,车流量位于100至200之间则为轻度拥挤,小于100则为畅通。For example, you can preset the following thresholds for traffic flow when the traffic state of the road is severely congested, congested, lightly congested, and unblocked: traffic volume greater than 400 means severe congestion, traffic volume between 200 and 400 means congestion, traffic volume It is lightly crowded if it is between 100 and 200, and it is unblocked if it is less than 100.
预测装置获知POI附近的道路通行状态之后,还可以将道路通行状态信息发送至交通管理平台。使得交通管理平台通过交通广播电台或新闻信息等途径实时通告各个子区域内的各个类型的POI附近的道路通行状态,或使得交通管理平台根据道路通行状态制定一系列交通疏导策略。或者,预测装置获知POI附近的道路通行状态之后,还可以将道路通行状态信息发送至正在行驶的车辆,正在行驶的车辆实时接收道路通行状态,以便于根据自身出行情况,决定继续前往目的地或者放弃出行或者绕行。After the prediction device learns the traffic state of the road near the POI, it can also send the road traffic state information to the traffic management platform. It enables the traffic management platform to notify the traffic status of the roads near each type of POI in each sub-area in real time through traffic radio stations or news information, or enables the traffic management platform to formulate a series of traffic diversion strategies based on the road traffic status. Or, after the prediction device learns the traffic status of the road near the POI, it can also send road traffic status information to the driving vehicle, and the driving vehicle receives the road traffic status in real time, so that it can decide to continue to the destination according to its own travel situation. Give up traveling or make a detour.
可选的,预测装置获知POI附近的道路通行状态之后,可以根据该道路通行状态生成交通出行建议。预测装置还可以将交通出行建议发送至正在行驶的车辆,使得车辆可以根据获得的交通出行建议进行出行决策。Optionally, after the predicting device learns the traffic state of the road near the POI, it may generate a traffic travel suggestion according to the traffic state of the road. The prediction device can also send the traffic travel advice to the driving vehicle, so that the vehicle can make a travel decision based on the obtained traffic travel advice.
图9是本申请实施例提供的预测车辆的目的地的装置的结构图。该装置可以通过软件、硬件或者两者的结合实现成为装置中的部分或者全部。该装置900包括获取模块910和预测模块920。装置900可以实现本申请中预测车辆的目的地的方法。Fig. 9 is a structural diagram of a device for predicting a destination of a vehicle provided by an embodiment of the present application. The device can be implemented as part or all of the device through software, hardware or a combination of the two. The device 900 includes an acquisition module 910 and a prediction module 920. The device 900 can implement the method for predicting the destination of the vehicle in this application.
获取模块910,用于获取交通区域内的待预测车辆在出行过程中的轨迹数据。The obtaining module 910 is used to obtain trajectory data of the vehicle to be predicted in the traffic area during travel.
预测模块920,用于根据所述轨迹数据和目标神经网络模型,获得所述待预测车辆在所述交通区域内的目的地信息,所述目的地信息包括:所述待预测车辆的目的子区域和所述待预测车辆的目的兴趣点POI的类型。The prediction module 920 is configured to obtain destination information of the vehicle to be predicted in the traffic area according to the trajectory data and the target neural network model, where the destination information includes: the destination sub-region of the vehicle to be predicted And the type of the POI of the destination point of interest of the vehicle to be predicted.
在一些可能的实现方式中,所述目标神经网络模型中包括嵌入模型、第一特征提取模型、第一分类模型和第二分类模型,其中,所述嵌入模型用于对输入至所述嵌入模型的数据进行向量化,所述第一特征提取模型用于对输入至所述第一特征提取模型的数据进行特征提取,所述融合模型用于对输入至所述融合模型的数据进行特征融合,所述第一分类模型和所述第二分类模型分别用于根据所述第一分类模型和所述第二分类模型的输入数据进行类别预测。In some possible implementation manners, the target neural network model includes an embedded model, a first feature extraction model, a first classification model, and a second classification model, wherein the embedded model is used to input to the embedded model Vectorization of the data of the first feature extraction model, the first feature extraction model is used for feature extraction of the data input to the first feature extraction model, and the fusion model is used for feature fusion of the data input to the fusion model, The first classification model and the second classification model are respectively used for class prediction based on input data of the first classification model and the second classification model.
其中,所述预测模块920具体用于:将所述轨迹数据输入所述嵌入模型,获得所述待预测车辆的初始轨迹特征,所述初始轨迹特征中包括所述轨迹数据对应的多维向量;将所述初始轨迹特征输入所述第一特征提取模型,获得所述待预测车辆的轨迹特征;将所述轨迹特征输入所述第一分类模型,获得所述待预测车辆的目的子区域;将所述轨迹特征输入所述第二分类模型,获取所述待预测车辆的目的POI的类型。Wherein, the prediction module 920 is specifically configured to: input the trajectory data into the embedded model to obtain the initial trajectory feature of the vehicle to be predicted, and the initial trajectory feature includes the multi-dimensional vector corresponding to the trajectory data; The initial trajectory feature is input to the first feature extraction model to obtain the trajectory feature of the vehicle to be predicted; the trajectory feature is input to the first classification model to obtain the target subregion of the vehicle to be predicted; The trajectory feature is input to the second classification model, and the target POI type of the vehicle to be predicted is obtained.
在一些可能的实现方式中,所述获取模块910还用于:获取所述待预测车辆的出行数据。其中,所述预测模块920具体用于:根据所述轨迹数据、所述出行数据和所述目标神经网络模型,获得所述待预测车辆在所述交通区域内的目的地信息。In some possible implementation manners, the obtaining module 910 is further configured to obtain travel data of the vehicle to be predicted. Wherein, the prediction module 920 is specifically configured to obtain destination information of the vehicle to be predicted in the traffic area according to the trajectory data, the travel data, and the target neural network model.
在一些可能的实现方式中,所述待预测车辆的出行数据包括以下数据中的一种或多种:车辆类型、出行天气类型、第一时间段内的车辆出行次数、第二时间段内的车辆出行频率、第三时间段内的车辆出行子时间段。In some possible implementations, the travel data of the vehicle to be predicted includes one or more of the following data: vehicle type, travel weather type, number of vehicle trips in the first time period, and travel data in the second time period The frequency of vehicle travel, and the sub-period of vehicle travel in the third time period.
在一些可能的实现方式中,所述目标神经网络模型中包括嵌入模型、第一特征提取 模型、第二特征提取模型、融合模型、第一分类模型和第二分类模型,其中,所述嵌入模型用于对输入至所述嵌入模型的数据进行向量化,所述第一特征提取模型和所述第二特征提取模型分别用于对输入至所述第一特征提取模型和所述第二特征提取模型的数据进行特征提取,所述融合模型用于对输入至所述融合模型的数据进行特征融合,所述第一分类模型和所述第二分类模型分别用于根据所述第一分类模型和所述第二分类模型的输入数据进行类别预测。In some possible implementations, the target neural network model includes an embedded model, a first feature extraction model, a second feature extraction model, a fusion model, a first classification model, and a second classification model, wherein the embedded model Used to vectorize the data input to the embedding model, and the first feature extraction model and the second feature extraction model are respectively used to extract the data input to the first feature extraction model and the second feature extraction model. Feature extraction is performed on the data of the model, the fusion model is used to perform feature fusion on the data input to the fusion model, and the first classification model and the second classification model are respectively used to perform feature extraction according to the first classification model and The input data of the second classification model performs category prediction.
在一些可能的实现方式中,所述预测模块具体用于:输入所述轨迹数据和所述出行数据至所述嵌入模型,获得所述待预测车辆的初始轨迹特征和初始出行特征;输入所述初始轨迹特征至所述第一特征提取模型,获得所述待预测车辆的轨迹特征;输入所述初始出行特征至所述第二特征提取模型,获得所述待预测车辆的出行特征;输入所述轨迹特征和所述出行特征至所述融合模型,获得所述待预测车辆的行驶特征;输入所述行驶特征至所述第一分类模型,获得所述待预测车辆的目的子区域;输入所述行驶特征至所述第二分类模型,获取所述待预测车辆的目的POI的类型。In some possible implementations, the prediction module is specifically configured to: input the trajectory data and the travel data to the embedded model to obtain the initial trajectory characteristics and initial travel characteristics of the vehicle to be predicted; and input the The initial trajectory feature to the first feature extraction model to obtain the trajectory feature of the vehicle to be predicted; input the initial travel feature to the second feature extraction model to obtain the travel feature of the vehicle to be predicted; input the Trajectory characteristics and the travel characteristics to the fusion model to obtain the driving characteristics of the vehicle to be predicted; input the driving characteristics to the first classification model to obtain the target subregion of the vehicle to be predicted; input the The driving feature is transferred to the second classification model, and the target POI type of the vehicle to be predicted is obtained.
在一些可能的实现方式中,所述预测模块920用还于:根据所述待预测车辆的目的地信息,确定目的地为所述目的子区域内的所述类型的POI的车流量;根据所述车流量确定所述目的子区域内的道路通行状态。In some possible implementations, the prediction module 920 is also used to: determine the destination as the traffic flow of the type of POI in the destination sub-area according to the destination information of the vehicle to be predicted; The traffic flow determines the traffic state of the road in the destination sub-area.
在一些可能的实现方式中,所述获取模块910具体用于:根据所述交通区域内的过车数据,确定所述待预测车辆在出行过程中经过的多个地点的信息;获取所述交通区域内的子区域信息;根据所述待预测车辆在出行过程中经过的多个地点的信息和所述交通区域内的子区域信息,确定所述待预测车辆在出行过程中的轨迹数据。In some possible implementation manners, the acquiring module 910 is specifically configured to: determine information about multiple locations that the vehicle to be predicted passes through during travel according to the passing data in the traffic area; and acquire the traffic Information about the sub-regions in the area; determine the trajectory data of the vehicle to be predicted in the travel process according to the information of the multiple locations that the vehicle to be predicted passes through during the travel and the sub-region information in the traffic area.
在一些可能的实现方式中,所述轨迹数据包括所述待预测车辆在所述交通区域内经过的位置信息和时间信息。In some possible implementation manners, the trajectory data includes position information and time information of the vehicle to be predicted passing in the traffic area.
在一些可能的实现方式中,所述轨迹数据还包括所述待预测车辆在所述交通区域内经过的POI的类型。In some possible implementation manners, the trajectory data further includes the type of POI that the vehicle to be predicted passes through in the traffic area.
在一些可能的实现方式中,所述目标神经网络模型为由训练数据进行训练后的神经网络模型,所述训练数据包括所述交通区域内的车辆的历史轨迹数据和所述车辆的出行数据。In some possible implementation manners, the target neural network model is a neural network model trained by training data, and the training data includes historical trajectory data of vehicles in the traffic area and travel data of the vehicles.
如图10所示,所述装置900还包括训练模块940,所述训练模块940用于:确定初始神经网络模型;根据所述交通区域内的车辆的历史轨迹数据对所述初始神经网络模型进行训练,获得所述目标神经网络模型。As shown in FIG. 10, the device 900 further includes a training module 940, the training module 940 is used to: determine the initial neural network model; according to the historical trajectory data of the vehicles in the traffic area to perform the initial neural network model Training to obtain the target neural network model.
所述训练模块940还可以用于:确定初始神经网络模型;根据所述交通区域内的车辆的历史轨迹数据和出行数据对所述初始神经网络模型进行训练,获得所述目标神经网络模型。The training module 940 may also be used to determine an initial neural network model; train the initial neural network model according to historical trajectory data and travel data of vehicles in the traffic area to obtain the target neural network model.
在一些可能的实现方式中,装置900还可以包括输出模块,用于输出待预测车辆的目的地信息。可选地,输出模块还可以用于车流量。可选地,输出模块还可以用于输出道路通行状态。In some possible implementation manners, the device 900 may further include an output module for outputting destination information of the vehicle to be predicted. Optionally, the output module can also be used for traffic flow. Optionally, the output module can also be used to output road traffic status.
在一些可能的实现方式中,装置900还可以包括交通诱导模块,用于根据该道路通行状态进行交通诱导,以缓解交通压力。In some possible implementation manners, the device 900 may further include a traffic guidance module, which is used to perform traffic guidance according to the traffic state of the road to relieve traffic pressure.
本申请实施例中还提供了一种预测车辆的目的地的计算设备。图11示例性的提供了计算设备1100的一种可能的架构图。The embodiment of the present application also provides a computing device for predicting the destination of a vehicle. FIG. 11 exemplarily provides a possible architecture diagram of the computing device 1100.
计算设备1100包括存储器1101、处理器1102和通信接口1103。其中,存储器1101、处理器1102、通信接口1103通过总线实现彼此之间的通信连接。The computing device 1100 includes a memory 1101, a processor 1102, and a communication interface 1103. Among them, the memory 1101, the processor 1102, and the communication interface 1103 implement communication connections between each other through a bus.
存储器1101可以是只读存储器(read only memory,ROM),静态存储设备,动态存储设备或者随机存取存储器(random access memory,RAM)。存储器1101可以存储程序,当存储器1101中存储的程序被处理器1102执行时,处理器1102和通信接口1103用于执行预测车辆的目的地的方法。存储器1101还可以存储数据集合,例如:存储器1101中的一部分存储资源被划分成一个数据集存储模块,用于存储执行预测车辆的目的地的方法所需的数据集,存储器1101中的一部分存储资源被划分成一个神经网络模型存储模块,用于存储图4或图7所示的目标神经网络模型。The memory 1101 may be a read only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 1101 may store a program. When the program stored in the memory 1101 is executed by the processor 1102, the processor 1102 and the communication interface 1103 are used to execute the method of predicting the destination of the vehicle. The memory 1101 can also store a data set. For example, a part of the storage resources in the memory 1101 is divided into a data set storage module for storing the data set required to execute the method of predicting the destination of the vehicle, and a part of the storage resources in the memory 1101 It is divided into a neural network model storage module, which is used to store the target neural network model shown in Figure 4 or Figure 7.
处理器1102可以采用通用的中央处理器(central Processing Unit,CPU),微处理器,应用专用集成电路(application specific integrated circuit,ASIC),图形处理器(graphics processing unit,GPU)或者一个或多个集成电路。The processor 1102 may adopt a general-purpose central processing unit (central Processing Unit, CPU), microprocessor, application specific integrated circuit (application specific integrated circuit, ASIC), graphics processing unit (graphics processing unit, GPU), or one or more integrated circuit.
处理器1102还可以是一种集成电路芯片,具有信号的处理能力。在实现过程中,本申请的预测车辆的目的地的装置的部分或全部功能可以通过处理器1102中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器1102还可以是通用处理器、数字信号处理器(digital signal processing,DSP)、专用集成电路(ASIC)、现成可编程门阵列(field programmable gate array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本申请上述实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本申请实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器1101,处理器1102读取存储器1101中的信息,结合其硬件完成本申请实施例的预测车辆的目的地的装置的部分功能。The processor 1102 may also be an integrated circuit chip with signal processing capabilities. In the implementation process, part or all of the functions of the device for predicting the destination of the vehicle of the present application can be completed by hardware integrated logic circuits in the processor 1102 or instructions in the form of software. The aforementioned processor 1102 may also be a general-purpose processor, a digital signal processing (digital signal processing, DSP), an application specific integrated circuit (ASIC), an off-the-shelf programmable gate array (field programmable gate array, FPGA) or other programmable logic devices , Discrete gates or transistor logic devices, discrete hardware components. The methods, steps, and logical block diagrams disclosed in the foregoing embodiments of the present application can be implemented or executed. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like. The steps of the method disclosed in the embodiments of the present application can be directly embodied as being executed and completed by a hardware decoding processor, or executed and completed by a combination of hardware and software modules in the decoding processor. The software module can be located in a mature storage medium in the field, such as random access memory, flash memory, read-only memory, programmable read-only memory, or electrically erasable programmable memory, registers. The storage medium is located in the memory 1101, and the processor 1102 reads the information in the memory 1101 and completes part of the functions of the device for predicting the destination of the vehicle in the embodiment of the present application in combination with its hardware.
通信接口1103使用例如但不限于收发器一类的收发模块,来实现计算设备1100与其他设备或通信网络之间的通信。例如,可以通过通信接口1103获取数据集。The communication interface 1103 uses a transceiver module such as but not limited to a transceiver to implement communication between the computing device 1100 and other devices or a communication network. For example, the data set can be obtained through the communication interface 1103.
总线可包括在计算设备1100各个部件(例如,存储器1101、处理器1102、通信接口1103)之间传送信息的通路。The bus may include a path for transferring information between various components of the computing device 1100 (for example, the memory 1101, the processor 1102, and the communication interface 1103).
在计算设备1100为多个时,上述每个计算设备1100间通过通信网络建立通信通路。每个计算设备1100上运行获取模块910、预测模块920、确定模块930或训练模块940中的任意一个或多个。任一计算设备1100可以为云数据中心中的计算设备(例如:服务器),或边缘数据中心中的计算设备,或终端计算设备。When there are multiple computing devices 1100, each of the foregoing computing devices 1100 establishes a communication path through a communication network. Each computing device 1100 runs any one or more of the acquisition module 910, the prediction module 920, the determination module 930, or the training module 940. Any computing device 1100 may be a computing device (for example, a server) in a cloud data center, or a computing device in an edge data center, or a terminal computing device.
上述各个附图对应的流程的描述各有侧重,某个流程中没有详述的部分,可以参见其他流程的相关描述。The descriptions of the processes corresponding to each of the above drawings have their respective focuses. For parts that are not described in detail in a certain process, please refer to the related descriptions of other processes.
图12是可以应用本申请实施例的装置的系统的一种示意架构图。如图12所示,系统1200包括预测装置1210、训练装置1220、数据库1230、数据存储系统1250、以及数据采集设备1260。FIG. 12 is a schematic architecture diagram of a system to which the apparatus of the embodiment of the present application can be applied. As shown in FIG. 12, the system 1200 includes a prediction device 1210, a training device 1220, a database 1230, a data storage system 1250, and a data collection device 1260.
数据采集设备1260用于采集训练数据。在采集到训练数据之后,数据采集设备1260将这些训练数据存入数据库1230,训练装置1220基于数据库1230中维护的训练数据对预选的一个神经网络模型进行训练,得到目标神经网络模型1201。经训练完成的目标神 经网络模型1201具备预测车辆的目的地所属的子区域和预测车辆的目的地的POI类型的功能。The data collection device 1260 is used to collect training data. After the training data is collected, the data collection device 1260 stores the training data in the database 1230, and the training device 1220 trains a preselected neural network model based on the training data maintained in the database 1230 to obtain the target neural network model 1201. The trained target neural network model 1201 has the function of predicting the sub-region to which the destination of the vehicle belongs and predicting the POI type of the destination of the vehicle.
需要说明的是,在实际应用中,数据库1230中维护的训练数据不一定都来自于数据采集设备1260的采集,也有可能是从其他设备接收得到的。另外需要说明的是,训练装置1220也不一定完全基于数据库1230维护的训练数据进行目标神经网络模型1201的训练,也有可能从云端或其他地方获取训练数据进行模型训练,或者自己生成训练数据,上述描述不应该作为对本申请实施例的限定。It should be noted that in practical applications, the training data maintained in the database 1230 may not all come from the collection of the data collection device 1260, and may also be received from other devices. In addition, it should be noted that the training device 1220 does not necessarily train the target neural network model 1201 completely based on the training data maintained by the database 1230. It may also obtain training data from the cloud or other places for model training, or generate training data by itself. The description should not be taken as a limitation to the embodiments of the present application.
根据训练装置1220训练得到的目标神经网络模型1201可以应用于不同的系统或设备中,如应用于预测装置1210。The target neural network model 1201 obtained by training according to the training device 1220 can be applied to different systems or devices, such as the prediction device 1210.
数据采集设备1260采集到待预测车辆的轨迹数据之后,可以将这些轨迹数据存入数据库1230,预测装置1210基于数据库1230中维护的轨迹数据进行预测。或者,数据采集设备1260采集到待预测车辆的轨迹数据和出行数据之后,可以将这些轨迹数据和出行数据存入数据库1230,预测装置1210基于数据库1230中维护的轨迹数据和出行数据进行预测。After the data collection device 1260 collects the trajectory data of the vehicle to be predicted, the trajectory data can be stored in the database 1230, and the prediction device 1210 makes predictions based on the trajectory data maintained in the database 1230. Alternatively, after the data collection device 1260 collects the trajectory data and travel data of the vehicle to be predicted, the trajectory data and travel data can be stored in the database 1230, and the prediction device 1210 makes predictions based on the trajectory data and travel data maintained in the database 1230.
在预测装置1210预测车辆的目的子区域和目的POI类型的过程中,预测装置1210可以调用数据存储系统1250中的数据、代码等以用于相应的预测处理,也可以将相应处理得到的数据、指令等存入数据存储系统1250中。In the process that the prediction device 1210 predicts the target sub-region and the target POI type of the vehicle, the prediction device 1210 can call the data, codes, etc. in the data storage system 1250 for the corresponding prediction processing, and can also use the data obtained from the corresponding processing, Instructions and the like are stored in the data storage system 1250.
可以理解的是,图12仅是一种系统示意架构图,图12中所示设备、器件、模块等之间的位置关系不构成任何限制,例如,在图12中,数据存储系统1250相对预测装置1210是外部存储器,在其它情况下,也可以将数据存储系统1250置于预测装置1210中。例如,预测装置1210和训练装置1220可以是同一个装置。It is understandable that FIG. 12 is only a schematic system architecture diagram, and the positional relationship between the devices, devices, modules, etc. shown in FIG. 12 does not constitute any limitation. For example, in FIG. 12, the data storage system 1250 relatively predicts The device 1210 is an external memory. In other cases, the data storage system 1250 can also be placed in the prediction device 1210. For example, the prediction device 1210 and the training device 1220 may be the same device.
在一些设计中,预测装置可部署在云环境中,云环境是云计算模式下利用基础资源向用户提供云服务的实体。云环境包括云数据中心和云服务平台,所述云数据中心包括云服务提供商拥有的大量基础资源(包括计算资源、存储资源和网络资源),云数据中心包括的计算资源可以是大量的计算设备(例如服务器)。In some designs, the prediction device may be deployed in a cloud environment, which is an entity that uses basic resources to provide cloud services to users in a cloud computing mode. The cloud environment includes a cloud data center and a cloud service platform. The cloud data center includes a large number of basic resources (including computing resources, storage resources, and network resources) owned by a cloud service provider. The computing resources included in the cloud data center can be a large number of computing resources. Device (for example, server).
预测装置可以是云数据中心中的服务器;预测装置也可以是创建在云数据中心中的虚拟机;预测装置还可以是部署在云数据中心中的服务器或者虚拟机上的软件装置,该预测装置可以分布式地部署在多个服务器上、或者分布式地部署在多个虚拟机上、或者分布式地部署在虚拟机和服务器上。例如,预测装置中的多个模块可以分布式地部署在多个服务器上,或分布式地部署在多个虚拟机上,或者分布式地部署在虚拟机和服务器上。The prediction device can be a server in a cloud data center; the prediction device can also be a virtual machine created in a cloud data center; the prediction device can also be a server or a software device deployed on a virtual machine in a cloud data center. It can be distributed on multiple servers, or distributed on multiple virtual machines, or distributed on virtual machines and servers. For example, multiple modules in the forecasting apparatus may be distributed on multiple servers, or distributed on multiple virtual machines, or distributed on virtual machines and servers.
当预测装置为软件装置时,预测装置可以在逻辑上分成多个部分,每个部分具有不同的功能。这种场景下,预测装置的几个部分可以分别部署在不同的环境或设备中。以图13为例,预测装置中的一部分部署在终端计算设备,另一部分部署在数据中心(具体部署在数据中心中的服务器或虚拟机上),数据中心可以是云数据中心,数据中心也可以是边缘数据中心,边缘数据中心是部署在距离终端计算设备较近的边缘计算设备的集合。When the prediction device is a software device, the prediction device can be logically divided into multiple parts, and each part has a different function. In this scenario, several parts of the prediction device can be deployed in different environments or devices. Taking Figure 13 as an example, part of the forecasting device is deployed in terminal computing equipment, and the other part is deployed in the data center (specifically deployed on the server or virtual machine in the data center). The data center can be a cloud data center or a data center. It is an edge data center. An edge data center is a collection of edge computing devices that are deployed closer to the terminal computing device.
可以理解的是,本申请不对预测装置的哪些部分部署在终端计算设备和哪些部分部署在数据中心进行限制性的划分,实际应用时可根据终端计算设备的计算能力或具体应用需求进行适应性的部署。值得注意的是,在一些可能的实现方式中,预测装置可以分 三部分部署,其中,一部分部署在终端计算设备,一部分部署在边缘数据中心,一部分部署在云数据中心。It is understandable that this application does not restrict which parts of the prediction device are deployed in the terminal computing equipment and which parts are deployed in the data center. In actual applications, it can be adapted according to the computing capabilities of the terminal computing equipment or specific application requirements. deploy. It is worth noting that in some possible implementations, the prediction device can be deployed in three parts, of which one part is deployed in the terminal computing device, one part is deployed in the edge data center, and the other part is deployed in the cloud data center.
可以理解的是,本申请实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,另外,在本申请各个实施例中的各功能模块可以集成在一个处理器中,也可以是单独物理存在,也可以两个或两个以上模块集成为一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。It is understandable that the division of modules in the embodiments of the present application is illustrative, and is only a logical function division. In actual implementation, there may be other division methods. In addition, the functional modules in the various embodiments of the present application It can be integrated in a processor, it can be a separate physical presence, or two or more modules can be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware or software function modules.
该集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台终端设备(可以是个人计算机,手机,或者网络设备等)或处理器(processor)执行本申请各个实施例该方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated module is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer readable storage medium. Based on this understanding, the technical solution of the present application essentially or the part that contributes to the existing technology or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , Including several instructions to make a terminal device (which may be a personal computer, a mobile phone, or a network device, etc.) or a processor (processor) execute all or part of the steps of the method in each embodiment of the present application. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (read-only memory, ROM), random access memory (random access memory, RAM), magnetic disks or optical disks and other media that can store program codes. .
上述各个附图对应的流程的描述各有侧重,某个流程中没有详述的部分,可以参见其他流程的相关描述。The descriptions of the processes corresponding to each of the above drawings have their respective focuses. For parts that are not described in detail in a certain process, please refer to the related descriptions of other processes.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。视频相似检测的计算机程序产品包括一个或多个视频相似检测的计算机指令,在计算机上加载和执行这些计算机程序指令时,全部或部分地产生按照本发明实施例图6所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质存储有视频相似检测的计算机程序指令的可读存储介质。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如SSD)。In the above-mentioned embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented by software, it can be implemented in the form of a computer program product in whole or in part. The computer program product for video similarity detection includes one or more computer instructions for video similarity detection. When these computer program instructions are loaded and executed on the computer, the process or function described in FIG. 6 according to the embodiment of the present invention is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website, computer, server, or data center. Transmission to another website, computer, server, or data center via wired (such as coaxial cable, optical fiber, digital subscriber line, or wireless (such as infrared, wireless, microwave, etc.)). The computer-readable storage medium stores the video A readable storage medium of similarly detected computer program instructions. The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or data center integrated with one or more available media. The usable medium may be a magnetic medium (for example, a floppy disk, a hard disk, a magnetic tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, an SSD).

Claims (18)

  1. 一种预测车辆的目的地的方法,其特征在于,所述方法包括:A method for predicting the destination of a vehicle, characterized in that the method includes:
    获取交通区域内的待预测车辆在出行过程中的轨迹数据和所述待预测车辆的出行数据;Acquiring the trajectory data of the vehicle to be predicted in the travel process and the travel data of the vehicle to be predicted in the traffic area;
    根据所述轨迹数据、所述出行数据和目标神经网络模型,获得所述待预测车辆在所述交通区域内的目的地信息,所述目的地信息包括:所述待预测车辆的目的子区域和所述待预测车辆的目的兴趣点POI的类型;所述待预测车辆的出行数据包括以下数据中的一种或多种:车辆类型、出行天气类型、第一时间段内的车辆出行次数、第二时间段内的车辆出行频率、第三时间段内的车辆出行子时间段。According to the trajectory data, the travel data and the target neural network model, the destination information of the vehicle to be predicted in the traffic area is obtained, and the destination information includes: the destination sub-area of the vehicle to be predicted and The type of the POI of the destination point of interest of the vehicle to be predicted; the travel data of the vehicle to be predicted includes one or more of the following data: vehicle type, travel weather type, number of vehicle travels in the first time period, The frequency of vehicle travel in the second time period, and the sub-time period of vehicle travel in the third time period.
  2. 如权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1, wherein the method further comprises:
    根据所述待预测车辆的目的地信息,确定目的地为所述目的子区域内的所述POI的类型对应的车流量;According to the destination information of the vehicle to be predicted, determining that the destination is the traffic volume corresponding to the type of POI in the destination sub-area;
    根据所述车流量预测所述目的子区域内的道路通行状态。Predict the traffic state of the road in the target sub-region according to the traffic volume.
  3. 如权利要求1或2所述的方法,其特征在于,所述目标神经网络模型中包括嵌入模型、第一特征提取模型、第二特征提取模型、融合模型、第一分类模型和第二分类模型,其中,所述嵌入模型用于对输入至所述嵌入模型的数据进行向量化,所述第一特征提取模型和所述第二特征提取模型分别用于对输入至所述第一特征提取模型和所述第二特征提取模型的数据进行特征提取,所述融合模型用于对输入至所述融合模型的数据进行特征融合,所述第一分类模型和所述第二分类模型分别用于根据所述第一分类模型和所述第二分类模型的输入数据进行类别预测。The method of claim 1 or 2, wherein the target neural network model includes an embedded model, a first feature extraction model, a second feature extraction model, a fusion model, a first classification model, and a second classification model , Wherein the embedding model is used to vectorize data input to the embedding model, and the first feature extraction model and the second feature extraction model are respectively used to perform data input to the first feature extraction model. Perform feature extraction with the data of the second feature extraction model, the fusion model is used to perform feature fusion on the data input to the fusion model, and the first classification model and the second classification model are respectively used for The input data of the first classification model and the second classification model performs category prediction.
  4. 如权利要求3所述的方法,其特征在于,所述根据所述轨迹数据、所述出行数据和目标神经网络模型,获得所述待预测车辆在所述交通区域内的目的地信息,包括:The method of claim 3, wherein the obtaining the destination information of the vehicle to be predicted in the traffic area according to the trajectory data, the travel data and the target neural network model comprises:
    输入所述轨迹数据和所述出行数据至所述嵌入模型,获得所述待预测车辆的初始轨迹特征和初始出行特征;Input the trajectory data and the travel data to the embedded model to obtain the initial trajectory characteristics and initial travel characteristics of the vehicle to be predicted;
    输入所述初始轨迹特征至所述第一特征提取模型,获得所述待预测车辆的轨迹特征;Input the initial trajectory feature to the first feature extraction model to obtain the trajectory feature of the vehicle to be predicted;
    输入所述初始出行特征至所述第二特征提取模型,获得所述待预测车辆的出行特征;Input the initial travel feature to the second feature extraction model to obtain the travel feature of the vehicle to be predicted;
    输入所述轨迹特征和所述出行特征至所述融合模型,获得所述待预测车辆的行驶特征;Input the trajectory feature and the travel feature to the fusion model to obtain the driving feature of the vehicle to be predicted;
    输入所述行驶特征至所述第一分类模型,获得所述待预测车辆的目的子区域;Input the driving feature to the first classification model to obtain the target sub-region of the vehicle to be predicted;
    输入所述行驶特征至所述第二分类模型,获取所述待预测车辆的目的POI的类型。Input the driving feature to the second classification model to obtain the target POI type of the vehicle to be predicted.
  5. 如权利要求1-4任一项所述的方法,其特征在于,所述获取交通区域内的待预测车辆在出行过程中的轨迹数据,包括:The method according to any one of claims 1 to 4, wherein the acquiring trajectory data of the vehicle to be predicted in the traffic area during travel includes:
    根据所述交通区域内的过车数据,确定所述待预测车辆在出行过程中经过的多个地点的信息;According to the passing data in the traffic area, determine information about multiple locations that the to-be-predicted vehicle passes through during travel;
    获取所述交通区域内的子区域信息;Acquiring sub-area information in the traffic area;
    根据所述待预测车辆在出行过程中经过的多个地点的信息和所述交通区域内的子区域信息,确定所述待预测车辆在出行过程中的轨迹数据。Determine the trajectory data of the vehicle to be predicted in the travel process according to the information of the multiple locations that the vehicle to be predicted passes through during the travel and the sub-region information in the traffic area.
  6. 如权利要求5所述的方法,其特征在于,所述轨迹数据包括所述待预测车辆在所述交通区域内经过的子区域的位置信息和时间信息。The method according to claim 5, wherein the trajectory data includes position information and time information of the sub-area that the vehicle to be predicted passes through in the traffic area.
  7. 如权利要求5或6所述的方法,其特征在于,所述轨迹数据还包括所述待预测车辆在所述交通区域内经过的POI的类型。The method according to claim 5 or 6, wherein the trajectory data further includes the type of POI that the vehicle to be predicted passes through in the traffic area.
  8. 如权利要求1-7任一项所述的方法,其特征在于,所述目标神经网络模型为由训练数据进行训练后的神经网络模型,所述训练数据包括所述交通区域内的车辆的历史轨迹数据和所述车辆的出行数据。The method according to any one of claims 1-7, wherein the target neural network model is a neural network model trained by training data, and the training data includes the history of vehicles in the traffic area Trajectory data and travel data of the vehicle.
  9. 一种预测车辆的目的地的装置,其特征在于,所述装置包括:A device for predicting the destination of a vehicle, characterized in that the device comprises:
    获取模块,用于获取交通区域内的待预测车辆在出行过程中的轨迹数据和所述待预测车辆的出行数据;An acquisition module for acquiring the trajectory data of the vehicle to be predicted in the travel process and the travel data of the vehicle to be predicted in the traffic area;
    预测模块,用于根据所述轨迹数据、所述出行数据和目标神经网络模型,获得所述待预测车辆在所述交通区域内的目的地信息,所述目的地信息包括:所述待预测车辆的目的子区域和所述待预测车辆的目的兴趣点POI的类型;所述待预测车辆的出行数据包括以下数据中的一种或多种:车辆类型、出行天气类型、第一时间段内的车辆出行次数、第二时间段内的车辆出行频率、第三时间段内的车辆出行子时间段。The prediction module is used to obtain the destination information of the vehicle to be predicted in the traffic area according to the trajectory data, the travel data and the target neural network model, and the destination information includes: the vehicle to be predicted The destination sub-area of the vehicle to be predicted and the type of the POI of the destination point of interest of the vehicle to be predicted; the travel data of the vehicle to be predicted includes one or more of the following data: vehicle type, travel weather type, and data in the first time period The number of vehicle trips, the frequency of vehicle trips in the second time period, and the sub-time periods of vehicle trips in the third time period.
  10. 如权利要求9所述的装置,其特征在于,所述预测模块还用于:The device of claim 9, wherein the prediction module is further configured to:
    根据所述待预测车辆的目的地信息,确定目的地为所述目的子区域内的所述POI的类型对应的车流量;According to the destination information of the vehicle to be predicted, determining that the destination is the traffic volume corresponding to the type of POI in the destination sub-area;
    根据所述车流量预测所述目的子区域内的道路通行状态。Predict the traffic state of the road in the target sub-region according to the traffic volume.
  11. 如权利要求9或10所述的装置,其特征在于,所述目标神经网络模型中包括嵌入模型、第一特征提取模型、第二特征提取模型、融合模型、第一分类模型和第二分类模型,其中,所述嵌入模型用于对输入至所述嵌入模型的数据进行向量化,所述第一特征提取模型和所述第二特征提取模型分别用于对输入至所述第一特征提取模型和所述第二特征提取模型的数据进行特征提取,所述融合模型用于对输入至所述融合模型的数据进行特征融合,所述第一分类模型和所述第二分类模型分别用于根据所述第一分类模型和所述第二分类模型的输入数据进行类别预测。The device according to claim 9 or 10, wherein the target neural network model includes an embedded model, a first feature extraction model, a second feature extraction model, a fusion model, a first classification model, and a second classification model , Wherein the embedding model is used to vectorize data input to the embedding model, and the first feature extraction model and the second feature extraction model are respectively used to perform data input to the first feature extraction model. Perform feature extraction with the data of the second feature extraction model, the fusion model is used to perform feature fusion on the data input to the fusion model, and the first classification model and the second classification model are respectively used for The input data of the first classification model and the second classification model performs category prediction.
  12. 如权利要求11所述的装置,其特征在于,所述预测模块具体用于:The device according to claim 11, wherein the prediction module is specifically configured to:
    输入所述轨迹数据和所述出行数据至所述嵌入模型,获得所述待预测车辆的初始轨迹特征和初始出行特征;Input the trajectory data and the travel data to the embedded model to obtain the initial trajectory characteristics and initial travel characteristics of the vehicle to be predicted;
    输入所述初始轨迹特征至所述第一特征提取模型,获得所述待预测车辆的轨迹特征;Input the initial trajectory feature to the first feature extraction model to obtain the trajectory feature of the vehicle to be predicted;
    输入所述初始出行特征至所述第二特征提取模型,获得所述待预测车辆的出行特征;Input the initial travel feature to the second feature extraction model to obtain the travel feature of the vehicle to be predicted;
    输入所述轨迹特征和所述出行特征至所述融合模型,获得所述待预测车辆的行驶特征;Input the trajectory feature and the travel feature to the fusion model to obtain the driving feature of the vehicle to be predicted;
    输入所述行驶特征至所述第一分类模型,获得所述待预测车辆的目的子区域;Input the driving feature to the first classification model to obtain the target sub-region of the vehicle to be predicted;
    输入所述行驶特征至所述第二分类模型,获取所述待预测车辆的目的POI的类型。Input the driving feature to the second classification model to obtain the target POI type of the vehicle to be predicted.
  13. 如权利要求9-12任一项所述的装置,其特征在于,所述获取模块具体用于:The device according to any one of claims 9-12, wherein the acquisition module is specifically configured to:
    根据所述交通区域内的过车数据,确定所述待预测车辆在出行过程中经过的多个地点的信息;According to the passing data in the traffic area, determine information about multiple locations that the to-be-predicted vehicle passes through during travel;
    获取所述交通区域内的子区域信息;Acquiring sub-area information in the traffic area;
    根据所述待预测车辆在出行过程中经过的多个地点的信息和所述交通区域内的子区域信息,确定所述待预测车辆在出行过程中的轨迹数据。Determine the trajectory data of the vehicle to be predicted in the travel process according to the information of the multiple locations that the vehicle to be predicted passes through during the travel and the sub-region information in the traffic area.
  14. 如权利要求13所述的装置,其特征在于,所述轨迹数据包括所述待预测车辆在所述交通区域内经过的子区域的位置信息和时间信息。The device according to claim 13, wherein the trajectory data includes position information and time information of the sub-regions that the vehicle to be predicted passes through in the traffic area.
  15. 如权利要求13或14所述的装置,其特征在于,所述轨迹数据还包括所述待预测车辆在所述交通区域内经过的POI的类型。The device according to claim 13 or 14, wherein the trajectory data further includes the type of POI that the vehicle to be predicted passes through in the traffic area.
  16. 如权利要求9-15任一项所述的装置,其特征在于,所述目标神经网络模型为由训练数据进行训练后的神经网络模型,所述训练数据包括所述交通区域内的车辆的历史轨迹数据和所述车辆的出行数据。The device according to any one of claims 9-15, wherein the target neural network model is a neural network model trained by training data, and the training data includes the history of vehicles in the traffic area Trajectory data and travel data of the vehicle.
  17. 一种预测车辆的目的地的计算设备,其特征在于,所述计算设备包括处理器和存储器,其中:A computing device for predicting the destination of a vehicle, characterized in that the computing device includes a processor and a memory, wherein:
    所述存储器中存储有计算机指令;Computer instructions are stored in the memory;
    所述处理器执行所述计算机指令,以实现所述权利要求1-8任一项权利要求所述的方法。The processor executes the computer instructions to implement the method of any one of claims 1-8.
  18. 一种计算机可读存储介质,其特征在于,包括指令,当所述指令在处理器上运行时,所述处理器执行如权利要求1-8任一项所述的方法。A computer-readable storage medium, characterized by comprising instructions, when the instructions run on a processor, the processor executes the method according to any one of claims 1-8.
PCT/CN2020/096004 2019-10-31 2020-06-14 Method and device for predicting destination of vehicle WO2021082464A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911051464.4A CN112749825B (en) 2019-10-31 2019-10-31 Method and device for predicting destination of vehicle
CN201911051464.4 2019-10-31

Publications (1)

Publication Number Publication Date
WO2021082464A1 true WO2021082464A1 (en) 2021-05-06

Family

ID=75641313

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/096004 WO2021082464A1 (en) 2019-10-31 2020-06-14 Method and device for predicting destination of vehicle

Country Status (2)

Country Link
CN (1) CN112749825B (en)
WO (1) WO2021082464A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114581010A (en) * 2022-03-04 2022-06-03 平安国际融资租赁有限公司 Logistics vehicle industry classification method and device, computer equipment and storage medium

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113379304A (en) * 2021-06-28 2021-09-10 北京百度网讯科技有限公司 Method and device for determining electricity consumption
CN113822709A (en) * 2021-09-15 2021-12-21 摩拜(北京)信息技术有限公司 Travel data processing method and device and server
CN116415701A (en) * 2021-12-28 2023-07-11 北京嘀嘀无限科技发展有限公司 Method and system for predicting arrival time of vehicle
CN114462695B (en) * 2022-01-27 2024-05-03 东南大学 Vehicle safety exposure analysis method based on road safety model
CN114724121A (en) * 2022-03-23 2022-07-08 中交信息技术国家工程实验室有限公司 Driving behavior prediction method
CN115083147B (en) * 2022-05-10 2023-05-09 广州汽车集团股份有限公司 Destination prediction method and device and vehicle
CN115759383B (en) * 2022-11-11 2023-09-15 桂林电子科技大学 Destination prediction method and system with branch network and electronic equipment
CN116431923B (en) * 2023-04-24 2024-02-02 浪潮智慧科技有限公司 Traffic travel prediction method, equipment and medium for urban road

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106327871A (en) * 2016-09-06 2017-01-11 华南理工大学 Highway congestion forecasting method based on historical data and reservation data
CN107480807A (en) * 2017-07-06 2017-12-15 中山大学 Shared bicycle destination Forecasting Methodology and device based on space-time layered perception neural networks
CN108062857A (en) * 2017-12-22 2018-05-22 西南交通大学 For the Forecasting Methodology of cab-getter's trip purpose
CN109389246A (en) * 2018-09-13 2019-02-26 中国科学院电子学研究所苏州研究院 A kind of vehicles destination regional scope prediction technique neural network based
CN109739926A (en) * 2019-01-09 2019-05-10 南京航空航天大学 A kind of mobile object destination prediction technique based on convolutional neural networks

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8543320B2 (en) * 2011-05-19 2013-09-24 Microsoft Corporation Inferring a behavioral state of a vehicle
CN108074415B (en) * 2017-12-19 2020-09-11 广州小鹏汽车科技有限公司 Vehicle destination prediction method and system based on user behaviors
CN109543886B (en) * 2018-11-06 2021-10-08 斑马网络技术有限公司 Destination prediction method, destination prediction device, terminal and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106327871A (en) * 2016-09-06 2017-01-11 华南理工大学 Highway congestion forecasting method based on historical data and reservation data
CN107480807A (en) * 2017-07-06 2017-12-15 中山大学 Shared bicycle destination Forecasting Methodology and device based on space-time layered perception neural networks
CN108062857A (en) * 2017-12-22 2018-05-22 西南交通大学 For the Forecasting Methodology of cab-getter's trip purpose
CN109389246A (en) * 2018-09-13 2019-02-26 中国科学院电子学研究所苏州研究院 A kind of vehicles destination regional scope prediction technique neural network based
CN109739926A (en) * 2019-01-09 2019-05-10 南京航空航天大学 A kind of mobile object destination prediction technique based on convolutional neural networks

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114581010A (en) * 2022-03-04 2022-06-03 平安国际融资租赁有限公司 Logistics vehicle industry classification method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN112749825B (en) 2024-08-02
CN112749825A (en) 2021-05-04

Similar Documents

Publication Publication Date Title
WO2021082464A1 (en) Method and device for predicting destination of vehicle
US10909470B2 (en) Method and apparatus for providing semantic-free traffic prediction
US11699100B2 (en) System for determining traffic metrics of a road network
EP3410348A1 (en) Method and apparatus for building a parking occupancy model
US11663912B2 (en) Method, apparatus, and system for automatic road closure detection
US11335191B2 (en) Intelligent telematics system for defining road networks
CN108021858A (en) Mobile object recognition methods and object flow analysis method
US11341846B2 (en) Traffic analytics system for defining road networks
US11049390B2 (en) Method, apparatus, and system for combining discontinuous road closures detected in a road network
US11335189B2 (en) Method for defining road networks
WO2021036290A1 (en) Method and apparatus for identifying operation behavior of vehicle, and computing device
US20210364307A1 (en) Providing Additional Instructions for Difficult Maneuvers During Navigation
Cui et al. Establishing multisource data-integration framework for transportation data analytics
EP3410362B1 (en) Method and apparatus for next token prediction based on previously observed tokens
CN117194391A (en) Data processing method, device, equipment and computer readable storage medium
KR102302486B1 (en) Urban road speed processing method, urban road speed processing device, device and non-volatile computer storage medium
Haryono et al. Accuracy in Object Detection based on Image Processing at the Implementation of Motorbike Parking on the Street
EP3922947A2 (en) Traffic analytics system for defining road networks
Dabiri Application of deep learning in intelligent transportation systems
Kejriwal et al. Artificial Intelligence (AI) enabled Vehicle Detection and counting using Deep Learning
CN115982306B (en) Method and device for identifying retrograde behavior of target object
EP3913551B1 (en) Method for defining road networks
US20240202218A1 (en) Method, apparatus, and system for providing linear feature detection of cartographic features
Luciani et al. Street direction classification using implicit vehicle crowdsensing and deep learning
EP3919860A1 (en) Intelligent telematics system for defining road networks

Legal Events

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

Ref document number: 20881521

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20881521

Country of ref document: EP

Kind code of ref document: A1