Vehicle trajectory guided geographic spatiotemporal feature visualization analysis platform
By applying the STOP/RUN model and Oracle network data model to the moving vehicle trajectory data, a geographical spatiotemporal correlation feature trajectory database is constructed, which solves the problem of insufficient semantic information storage and analysis capabilities of traditional databases and achieves efficient management of vehicle trajectory data. and analysis to support traffic flow and urban planning needs.
Patent Information
- Application Number
- CN202111605380.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-24
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2041-12-24
AI Technical Summary
Existing technologies have shortcomings in storing and analyzing moving vehicle trajectory data. In particular, traditional databases have limited storage and analysis capabilities for semantic information. They cannot effectively combine semantic information to query spatiotemporal feature patterns, and the semantic information analysis capabilities of trajectory data are weak. , unable to meet the needs of traffic flow analysis and urban planning.
A geographical spatio-temporal associated feature trajectory database based on the STOP/RUN model is designed. Combining the Oracle network data model and OSM open source data, a geographically associated trajectory database is constructed. The vehicle trajectory data is managed through the Stop/Run model to realize the geographical spatio-temporal associated feature trajectory. The database table structure supports three types of spatio-temporal feature pattern queries such as location-time, location-sequence, and location-relationship, and analyzes popular points of interest.
It achieves effective storage and management of moving vehicle trajectory data, enhances the analysis capabilities of semantic information, provides a powerful data set to support traffic flow analysis and urban planning, and improves the efficiency of urban traffic management.
Smart Images

Figure CN114265833B
Abstract
Description
Technical Field
[0001] The present application relates to a geographic spatiotemporal feature visualization analysis platform, and in particular to a vehicle trajectory guidance geographic spatiotemporal feature visualization analysis platform, belonging to the field of geographic spatiotemporal visualization analysis technology. Background Art
[0002] In recent years, the urbanization process has accelerated, and more and more cars are driving on urban roads, which has led to the continuous deterioration of road traffic conditions and caused many social problems. How to alleviate urban traffic pressure and improve the traffic environment has attracted widespread attention.
[0003] With the continuous development and integration of satellite positioning technology, mobile communication technology, sports equipment and sensor network technology, the gradual rise and popularization of applications such as the Internet of Things, smart cities and intelligent transportation systems, the real-time acquisition and storage of location information of massive moving objects (such as buses, taxis, people, etc.) can be well realized. As a typical spatiotemporal data, the motion trajectory data of mobile vehicles integrates time and location information, and has the characteristics of frequent location updates and rich information. With the continuous accumulation of trajectory data, people gradually realize that the analysis and utilization of motion trajectory data provides a new idea for solving urban transportation and planning problems. As a typical representative of the big data era, the motion vehicle trajectory data implies various social activity information such as people's travel behavior in the city, and provides an effective data set for traffic flow analysis and urban planning. How to store and manage these moving entities is an emerging research and application field.
[0004] On the one hand, traditional databases of the prior art, such as Oracle and SQL Server, have very limited capabilities for storing and analyzing initial trajectory data; on the other hand, existing trajectory data models, such as DOMINO and SECONDO, rarely involve the storage and analysis of semantic information. The trajectory data models of the prior art all require the expansion of the existing SQL syntax. These databases will have some shortcomings when storing and analyzing the semantic information of moving vehicles. Currently, there is an increasing demand for a data management model with a reasonable design that can combine semantic information analysis and only use pure SQL language to query trajectory spatiotemporal feature patterns.
[0005] The development of the moving vehicle database has become increasingly mature. In terms of trajectory data organization models, it can be roughly divided into two management methods. A direct and effective method is to expand the point / line / surface types of the existing spatial modules in the database system to express and organize the point string data of the trajectory; however, the correlation between the data model and the semantic information is not obvious.
[0006] The existing technology takes into account both transaction processing and online analysis requirements, and proposes a trajectory organization model that integrates the ER model and the Star model to manage the driving trajectory of trucks. This method of organizing trajectory data through a trajectory concept model conforms to people's natural understanding of moving vehicles and is easy to integrate semantic annotation information. However, in the above trajectory data model, the traditional SOL language needs to be expanded to achieve the query purpose. Starting from the conceptual model, this application analyzes the complex spatiotemporal correlation relationship of the expression trajectory relative to multiple types of geographic spatial elements, and establishes a spatiotemporal correlation trajectory model associated with geographic spatial information. For this model, three typical problems are analyzed, and an example of completing query analysis in pure SQL language is given.
[0007] In general, the existing technology for visual analysis of spatiotemporal characteristics of moving entities has obvious deficiencies, and its main defects and design difficulties include:
[0008] First, as a typical spatiotemporal data, the motion trajectory data of mobile vehicles integrates time and location information, with frequent location updates and rich information. As a typical representative of the big data era, the motion trajectory data of mobile vehicles contains various social activity information such as people's travel behavior in the city, and provides an effective data set for traffic flow analysis and urban planning. However, the existing technology lacks tools to store and manage these moving entities and provide effective support for traffic flow analysis, urban planning, geographic spatiotemporal characteristics and hot spot analysis.
[0009] Second, the ability of traditional databases in the prior art, such as Oracle and SQL Server, to store and analyze initial trajectory data is very limited; existing trajectory data models, such as DOMINO and SECONDO, rarely involve the storage and analysis of semantic information. The trajectory data models in the prior art all require the expansion of the existing SQL syntax. These databases will have some shortcomings when storing and analyzing the semantic information of moving vehicles. Currently, there is a lack of a data management model with a reasonable design that can combine semantic information analysis and only use pure SQL language to query the spatiotemporal feature patterns of trajectories;
[0010] Third, in terms of the moving vehicle trajectory data organization model, a direct and effective method is to expand the point / line / surface types of the existing spatial modules in the database system to express and organize the point string data of the trajectory; however, the association between the data model and the semantic information is not obvious; the existing technology takes into account both transaction processing and online analysis requirements, and proposes a trajectory organization model that integrates the ER model and the Star model to manage the driving trajectory of trucks, but both require the expansion of the traditional SOL language to achieve the query purpose, and cannot analyze the complex spatiotemporal correlation relationship between the expression trajectory and multiple types of geographic spatial elements. There is a lack of spatiotemporal correlation trajectory models associated with geographic spatial information, and there is a lack of examples of completing query analysis in pure SQL language;
[0011] Fourth, trajectory data is growing explosively. Various existing databases always have their own limitations in the semantic storage and analysis of trajectory data. Either the ability to store and analyze raw trajectory data is very limited, or the storage and management of semantic information is rarely involved. Existing databases have obvious disadvantages in storing and analyzing initial trajectory data. At the same time, they have weak analysis capabilities for the semantic information contained in the trajectory. There is a lack of a geographically correlated trajectory database based on the STOP / RUN model, and it is impossible to combine the stop-movement-stop behavior of moving vehicles in the real world, and it is impossible to build and fill a geographically correlated trajectory database. It is impossible to expand the three types of trajectory spatiotemporal feature pattern queries such as location-time, location-sequence, and location-relationship, as well as hot points of interest analysis, and it is impossible to provide an effective data set management and analysis platform for traffic flow analysis, urban planning, and hot scenic spots analysis. Summary of the invention
[0012] In view of the shortcomings of the prior art, this application designs and implements the library and table structure of a geographic spatiotemporal correlation feature trajectory database based on the Oracle network data model and the Stop / Run model, including the association between geographic spatial data and the stop and movement behaviors in the trajectory data, constructs an Oracle NDM road network model based on OSM open source data, performs map matching on vehicle trajectory data, obtains the stop and movement information of the vehicle during driving according to the matching results, and associates it with point / line spatial elements with the spatial connection method, thereby constructing and filling a geographic correlation trajectory database; finally, taking a typical retrieval request as an example, three types of trajectory spatiotemporal feature pattern queries such as location-time, location-sequence, and location-relationship are carried out, as well as analysis of popular points of interest, which provides a new idea for solving urban traffic and planning problems, provides an effective data set for traffic flow analysis, urban planning, etc., and realizes the effective storage and management of these motion entities, providing strong support for traffic flow analysis, urban planning, and analysis of popular attractions.
[0013] In order to achieve the above technical effects, the technical solutions adopted in this application are as follows:
[0014] The vehicle trajectory guides the visualization analysis platform of geographic spatiotemporal features. Based on the urban road data and urban vehicle trajectory data, a geographic correlation trajectory database based on the STOP / RUN model is established. Combined with the stop-move-stop behavior of moving vehicles in the real world, a trajectory data management method based on the Stop / Run model is proposed; the library table structure of the geographic spatiotemporal correlation feature trajectory database is designed and implemented, including the association between geographic spatial data and stop and movement behaviors in trajectory data, and several typical spatiotemporal pattern queries and hot interest point analysis are realized, including:
[0015] First, the design of geographic space-time correlation feature trajectory database includes: first, the organization of space-time trajectory correlation road network model, second, the organization of geographic space-time trajectory data, third, the geographic space-time correlation organization, and fourth, the geographic space-time correlation feature trajectory database model;
[0016] Combined with the stop-move-stop behavior of moving vehicles in the real world, this behavior of moving vehicles is associated with geospatial data, and a geo-associated trajectory database is designed to store, query and analyze the semantic information in the trajectory data;
[0017] Second, construct a geographic spatiotemporal correlation feature trajectory database, including: first, geographic spatiotemporal data storage, including trajectory data preprocessing, road network data acquisition and model construction, interest point acquisition and road network association processing; second, trajectory stop extraction, including trajectory map matching, feature time interpolation, and Stop extraction;
[0018] First, an urban network data model for network analysis is constructed based on the OSM data structure. Second, the point of interest data in the network map is obtained through the network map API and associated with the road network model. Finally, the trajectory data is associated with the geographic spatial data after map matching, time interpolation, and Stop / Run extraction, completing the construction of the geographic spatiotemporal correlation feature trajectory database.
[0019] Third, visual query analysis of spatiotemporal correlation trajectory database: design and propose three types of typical spatiotemporal pattern queries: location-time, location-sequence, and location-relationship queries, as well as pure SQL query processing methods, to analyze the passenger flow of popular attractions and hotels through the correlation information between parked vehicles and points of interest;
[0020] Fourth, trajectory spatiotemporal characteristic pattern analysis system: The trajectory spatiotemporal characteristic pattern query system is developed and implemented using the Spring framework, and based on Oracle's MapViewer middleware, the query and visualization of three types of typical analysis are completed.
[0021] The vehicle trajectory guides the visualization analysis platform of geographic spatiotemporal features. Further, the geographic spatiotemporal association organization: the vehicle trajectory points are divided into two categories: key points and non-key points according to the vehicle driving status. The key points are divided into the following categories:
[0022] (1) The starting and ending points of the trajectory: including the starting and ending points of the sub-trajectory formed after interruption, which respectively represent the starting and ending points of a vehicle journey. The time of the starting point of the trajectory is used to obtain the start and end time of the trajectory and the total time of the movement process;
[0023] (2) Stop points: A series of trajectory points with small or even constant position changes during the vehicle's driving process are all stop points. From these stop points, a point is abstracted and its start and end time is recorded to provide a reference for subsequent query analysis;
[0024] From the perspective of vehicles, a complete vehicle trajectory is divided into starting point-movement-stop-…-stop-movement-end point, and the Stop table and Run table are used to store the stopped and moving vehicles in the vehicle trajectory respectively. The Stop table is also used to store the starting point and end point of the vehicle trajectory;
[0025] The relationship between the moving vehicle and the point of interest corresponds to the semantic Pass, and the Pass table is used to store this semantic relationship;
[0026] The Trj_Run table is used to store the association between moving vehicles and roads in geographic space, that is, to store the entry and exit time and sequence of all roads that the vehicle passes through during the movement;
[0027] If the vehicle moves through the entire road, the POSIT field value is 1. If the vehicle moves only through a portion of the road, the POSIT field indicates the vehicle's position on the road numbered LINKID at that time. The range of POSIT is -1 to 1. When the vehicle's driving direction is opposite to the direction from the start point to the end point of the road, the value of POSIT is negative.
[0028] When the distance between the Stop position and the POI is less than 30 meters, the relationship between the Stop vehicle and the POI corresponds to the semantic Stay, and the Stay table is used to store this relationship;
[0029] When the distance between the Stop position and the POI is greater than 30 meters and less than 100 meters, the relationship between the Stop vehicle and the POI corresponds to the semantic Close, and the Close table is used to store this relationship;
[0030] The relationship between the trajectory data and the line elements in the geographic space is expressed as the location of the Stop vehicle on the road, and the Trj_Stop table is used to store this relationship.
[0031] The vehicle trajectory guides the visualization analysis platform of geographic spatiotemporal features. Furthermore, the geographic spatiotemporal data is stored in the database: including trajectory data, urban points of interest data and urban road network data;
[0032] Trajectory data preprocessing: GPS trajectory data is used to generate C trajectories from vehicle B in city A, with a total of D records. The average sampling time interval of the GPS trajectory is more than 40 seconds, which is a low sampling frequency trajectory. The average distance between the two sampling points is more than 500 meters. The trajectory data is stored in the Oracle database;
[0033] Finally, the trajectory data is stored in the Oracle database for management. The trajectory data is stored in the Trj_original table, where SDO_GEOMETRY is filled with known longitude and latitude data through the Oracle Spatial Java API.
[0034] The vehicle trajectory guides the visualization analysis platform of geographic spatiotemporal features. Further, the road network data acquisition and model construction: first extract the node (Node) and road (Way) elements in OSM, distinguish them when obtaining road network information, and eliminate unnecessary information. At the same time, after extracting the Node and Way information, the road data Way is segmented according to the Node information in the Way. In order to facilitate the acquisition of road data, a tool is designed to parse OSM data into text-type associated feature intermediate data. The text data results obtained by this parsing tool can be imported into the Oracle database to form a road network model, and can also be used through ArcEngine for secondary development to generate Shape data;
[0035] (1) Extracting Node information: including the id number of the node and its spatial location information, storing it in a text file as an intermediate data storage. The Node information format is: Node (id, lat, lng), where id is the Node number, lat and lng represent the latitude and longitude of the node respectively. The text information structure is obtained by parsing the Node information in OSM. While reading the Node text data, the point data in the Oracle spatial database is constructed based on the Java API provided by Oracle Spatial. Then, SQL statements are used to batch insert the data into the node table. After the insertion is completed, a spatial index is established for the spatial field in the node table to improve the efficiency of spatial query.
[0036] (2) Extract complete Way information: Query the longitude and latitude information in the Node table according to the number, and finally record the required information in text data. The format is: Way (ID, Node_num, Node1, ..., Tag_num, Tagl_key, Tagl_v, ...), where ID is the road number, Node_num indicates the number of nodes on this road, Node1 is the number of all nodes that make up this road, Tag_num is the number of tag information of this road, and Tag1_key, Tagl_value, etc. are road tag key-value pairs;
[0037] (3) Road segmentation: The extracted Way elements are segmented. The specific process is as follows:
[0038] Step 1: Traverse the WAY information and find all repeated nodes;
[0039] Step 2: Re-traverse the WAY information. For roads containing repeated nodes in the previous step, if the repeated nodes are not at the starting and ending points of the road, segment them to form two new roads.
[0040] Step 3: The segmented roads are stored in text format as intermediate files. The road records formed by the segments are in the form of Way (ID, Length, StartNode, EndNode, Name, OneWay, Type, Lon1, Lat1, ...), where ID indicates the number of the segmented road, Length indicates the length of the segmented road, StartNode indicates the number of the starting node of the segmented road, EndNode indicates the number of the ending node of the segmented road, Name is the name of the road, Type is the type of the road, and Lon1, Lat1, etc. record the longitude and latitude of the nodes that constitute the segmented road in sequence;
[0041] The road table (Link) required for building Oracle NDM is filled according to the text information of the segmented roads. While reading the text data of the segmented roads, the corresponding data is filled into the Link table respectively. The spatial data of the Link is generated by reading the longitude and latitude data with the help of the Java API provided by Oracle Spatial, and finally inserted into the Link table in batches through SQL statements.
[0042] Vehicle trajectory guides the visualization analysis platform of geographic spatiotemporal features. Further, the points of interest are obtained and associated with the road network: the points of interest come from the network map, and the search method in the JavaScript API provided by the network map is used to extract the points of interest. The detailed steps are as follows:
[0043] Step 1: The web map JavaScript API specifically provides a search class LocalSearch. Create a search instance through the constructor of this class. The amount of interest point data captured each time does not exceed 800. The city is divided into 20×10 small rectangles. Each small rectangle is searched with the regional search method SearchInBounds of the search class to obtain a result of the LocalResult type.
[0044] Step 2: The search results of the first step include many pages, and then the POI information of all LocalResult POI types in each page is obtained one by one by using the get POI method of LocalResult, and finally the POI information of LocalResult POI type is extracted;
[0045] Step 3: Only extract the name, address, longitude and latitude and telephone information of the POI, select 9 keywords for retrieval respectively, and obtain the corresponding POI information, including scenic spots, gas stations, hotels, shopping, schools, hospitals, government facilities, transportation and banking information;
[0046] Step 4: On the one hand, according to the standard of establishing Oracle road network data model in Oracle Spatial, on the other hand, to facilitate analysis and query, element tables of nine types of points of interest and a total element table including the nine types of points of interest and their corresponding relationship tables were established;
[0047] Step 5: Construct the Feature_Relation table to store the relationship between the POI data and the road network model. The NET_ELEM_ID field stores the road network segment associated with the current POI, and START_PERCENTAGE stores the relative position of the road segment where the projection point of the current POI is located.
[0048] The vehicle trajectory guides the geographic spatiotemporal feature visualization analysis platform. Further, trajectory stop extraction: establish a geographic spatiotemporal correlation feature trajectory database to manage and store trajectory data, manage trajectory data through the Stop / Run model, first correct all trajectory points to the correct road position through the spatiotemporal correlation feature trajectory map matching method, and then infer the time when the vehicle enters and leaves each road through the matched position and time, and then infer the vehicle's stop and movement process;
[0049] 1. Track map matching
[0050] Correct a series of GPS track points collected in reality that are affected by various factors and not accurate to the correct position, and obtain the track points and driving routes of the moving target in reality. This application designs a time-space correlation feature track map matching method;
[0051] The process of map matching of spatiotemporal correlation feature trajectories mainly includes three parts: determining valid points, obtaining the most likely route, and post-processing of map matching;
[0052] (1) Determine the effective point
[0053] Separate valid points from invalid points by:
[0054] 1) Buffer distance limit: Determine whether there is a road in the track point buffer. If there is no road, it is considered to be GPS noise data;
[0055] 2) Time limit: If the time interval between the current trajectory point and the previous valid point exceeds a certain critical value (15 minutes in the embodiment), the trajectory is segmented and the matching process is interrupted;
[0056] 3) Distance limit of adjacent points: If the great circle distance between the current track point and the previous valid point is less than the distance limit of the adjacent points, the position of the current track point cannot be accurately determined considering the drift of the GPS point;
[0057] 4) Speed limit: If the great circle distance from the current track point to the previous valid point / the time interval between the two points is greater than the speed threshold, the GPS sampling process is disturbed and the current track point is invalid;
[0058] (2) Find the most likely route
[0059] In the process of determining each valid point, for all candidate points of this valid point, the Viterbi algorithm is used to calculate the optimal path to each candidate point, and the id of the section where this candidate point is located, the probability of the trajectory point projected on this trajectory point, and the projection position of the previous valid point on this optimal path are recorded;
[0060] When the matching is interrupted, the probability of each candidate point of the last node of the matching tree is compared to obtain the candidate point with the highest probability, which is the end point of this segment of the trajectory. At the same time, the projection position of the previous valid point of this candidate point is obtained from this point, and so on, the sequence of projection positions of the entire trajectory can be obtained.
[0061] (3) Map matching post-processing
[0062] A complete trajectory may be broken into many segments, and post-processing will make the trajectory as complete as possible;
[0063] Step 1: For points without roads within the buffer range, disconnect the trajectory;
[0064] Step 2: For the trajectory point that exceeds the speed critical value, determine whether there is a valid point behind it: 1) If there is no valid point, the projection point of this trajectory point is itself; 2) If there is a valid point, calculate the shortest path between its previous valid point and the next valid point, and determine whether it exceeds the speed limit based on this shortest path. If it exceeds the speed limit, interrupt the matching process; otherwise, determine the projection point position of the trajectory point based on whether the minimum distance from this trajectory point to the shortest path exceeds the buffer distance limit;
[0065] Step 3: For the adjacent point, the projection point of its previous valid point is used as the projection point;
[0066] At this point, the projection points of all trajectory points are obtained, and the projection point data are stored in the Trj_matched table in the geographic spatiotemporal correlation feature trajectory database. The vehicle driving route can be obtained based on the shortest path between adjacent valid projection points. Such data is stored in the Trj_Link table in the geographic spatiotemporal correlation feature trajectory database.
[0067] The vehicle trajectory guides the visualization analysis platform of geographic spatiotemporal features. Further, feature time interpolation: the premise of interpolating the time when a vehicle enters and leaves the road is to assume that the vehicle moves at a constant speed between the two valid trajectory points before and after, and the time when the vehicle enters and leaves the road is calculated by a linear interpolation algorithm. The specific process is as follows:
[0068] Step 1: Get the reference point for calculation: If there are multiple trajectory points on a road, find the first and last trajectory points as references for calculation; if there is only one trajectory point, use this point as the reference point for calculation;
[0069] Step 2: Perform time interpolation: Based on the above reference points, assuming that the vehicle moves at a constant speed between the reference points, calculate the time when the vehicle enters and leaves the road in sequence;
[0070] Step 3: Insert the calculated results into the Trj_Link table in batches.
[0071] The vehicle trajectory guides the geographic spatiotemporal feature visualization analysis platform. Further, the Stop extraction method is summarized as follows:
[0072] Step 1: Traverse the constituent sections (L1, L2, ...) of a complete trajectory in the Trj_Link table in turn, and calculate the average speed of the vehicle in the current section. If the average speed is less than the set critical value, proceed to the next step of judgment;
[0073] Step 2: Check whether the vehicle has stopped during driving on this road, that is, check whether there are trajectory points with zero speed in the Trj_Original table. If there are trajectory points with zero speed, abstract them, extract one point as the stop position, and record the start time and end time of this stop behavior; if there is no point with zero speed, no processing is done;
[0074] Step 3: From the perspective of vehicles, associate the parked vehicles with the vehicles at the points of interest and the vehicles on the road, that is, determine whether the parked vehicles are in a Stay or Close behavior during the stay period, and describe the possible behaviors of the vehicles during the stay period in the Stay and Close tables respectively; secondly, store the location of the parked vehicles and their start and end times in the Trj_Stop table;
[0075] Step 4: Analyze the relationship between vehicle movement vehicles and points of interest and road objects from an object-oriented perspective. Use the Pass table to store the relationship between moving vehicles and points of interest, that is, the time when the vehicle passes the point of interest. Use the Trj_Run table to store the relationship between vehicle movement vehicles and road vehicles, that is, the vehicle's driving route in the road network, including the entry and exit time and sequence of each road, and the length of driving.
[0076] The vehicle trajectory guides the geographic spatiotemporal feature visualization analysis platform. Further, the trajectory spatiotemporal feature pattern analysis system framework: using the Spring framework, based on Oracle's MapViewer middleware to complete the query and visualization of three types of typical analysis, Oracle Maps JavaScript client works on the map tile server and FOI server. The browser-based map rendering engine obtains and displays the map from the map tile server in the browser, sends FOI requests to the FOI server and displays the results on the map tile layer, and provides feedback on the user's operation;
[0077] Oracle application server includes map tile server, FOI server and map rendering engine. It serves as middleware to complete map rendering and data loading and caching. The map tile server obtains, caches and provides pre-generated map tiles of fixed size. The map image cache engine receives the request for map image of fixed position at a certain level sent by the client and feeds back the tile of the specified position to the client. The FOI server runs in the Java servlet inside MapViewer. When the client makes a request, it first queries the information in the database, then draws and renders the query results, and finally feeds back the rendered results to the client. The map rendering engine processes the request sent by the client, queries the database according to the request to obtain the corresponding information, then constructs the map tile in the form of picture (PNG, GIF, JPEG format), and finally feeds back the map tile to the client.
[0078] The database stores the required spatial data, and based on the MapBuilder tool, tile maps can be quickly created by defining styles, fonts, and colors.
[0079] The vehicle trajectory guides the geographic spatiotemporal feature visualization analysis platform. Further, the trajectory spatiotemporal feature pattern analysis system module includes three parts: map control module, trajectory spatiotemporal feature pattern query module and hot interest point analysis module;
[0080] (1) Map control module: The displayed map mainly includes the base map, initial track points, matched track points and matched route layers. The base map mainly includes the OSM map and the tile map constructed according to the city Oracle NDM.
[0081] (2) Trajectory spatiotemporal feature pattern query: query three types of patterns: location-time pattern, location-sequence pattern, and location-relationship pattern. These three types of analysis add restriction conditions in the two-dimensional space-time in trajectory data query. For the three typical analyses, query statements are designed based on SQL language, and the query results are visualized and displayed based on the Oracle component MapViewer.
[0082] 1) Location-time query, which limits the location information in space and gives a time limit;
[0083] 2) Position-order analysis, which gives multiple position constraints in space and implicitly proposes time constraints through the order in which the positions appear;
[0084] 3) Position-relation analysis, which limits the position information in space and gives the temporal topological conditions between trajectories relative to the position;
[0085] (3) Popular Points of Interest Analysis: Displays the analysis results of popular attractions and popular hotels in the city, and analyzes the popularity of city attractions by individual and category.
[0086] Compared with the prior art, the innovations and advantages of this application are:
[0087] First, as a typical representative of the big data era, mobile object trajectory data implies various social activity information such as people's travel behavior in the city, providing an effective data set for traffic flow analysis, urban planning, popular attractions analysis, etc. This application solves the problem of storing and managing these mobile entities, and greatly improves the ability to store and analyze original trajectory data. The design of the data model involves the storage and management of semantic information, which makes up for the disadvantages of existing databases in storing and analyzing initial trajectory data, and also strengthens the analysis of semantic information contained in the trajectory. According to urban road data and urban vehicle trajectory data, a geographical correlation trajectory database based on the STOP / RUN model is established. Combined with the stop-movement-stop behavior of moving vehicles in the real world, a trajectory data management method based on the Stop / Run model is proposed, which not only conforms to people's natural understanding of the behavior of moving vehicles, but also easily integrates the semantic behavior information of moving vehicles. The retrieval of geographic spatiotemporal feature content has a high degree of match with actual needs and has good practical value.
[0088] Second, this application first designs and implements the database table structure of the geographic spatiotemporal correlation feature trajectory database based on the Oracle network data model and the Stop / Run model, including the association between the geographic spatial data and the stop and movement behaviors in the trajectory data, builds the Oracle NDM road network model based on the OSM open source data, performs map matching on the vehicle trajectory data, obtains the stop and movement information of the vehicle during driving according to the matching results, and uses the spatial connection method to associate it with the point / line spatial elements, thereby building and filling the geographic correlation trajectory database; finally, taking the typical retrieval request as an example, the three types of trajectory spatiotemporal feature pattern queries such as location-time, location-sequence, and location-relationship, as well as the analysis of popular points of interest, provide a new idea for solving urban traffic and planning problems, provide an effective data set for traffic flow analysis and urban planning, and realize the effective storage and management of these motion entities, providing strong support for traffic flow analysis, urban planning, and popular scenic spot analysis;
[0089] Third, the four significant innovations of this application are: First, the design of a geographic space-time correlation feature trajectory database. Combining the stop-move-stop behavior of moving vehicles in the real world, such behavior of moving vehicles is associated with geographic spatial data, and a geographic correlation trajectory database is designed to store, query and analyze the semantic information in the trajectory data; second, a geographic space-time correlation feature trajectory database is constructed, and an urban network data model for network analysis is constructed based on the OSM data structure. The point of interest data in the network map is obtained through the network map API and associated with the road network model; finally, the trajectory data is processed through map matching, time interpolation, Stop / Run After extraction and processing, it is associated with geographic spatial data to complete the construction of the geographic spatiotemporal correlation feature trajectory database; third, the visualization query analysis of the spatiotemporal correlation trajectory database: three types of typical spatiotemporal pattern queries are designed and proposed: location-time, location-sequence, and location-relationship queries, and their pure SQL query processing methods, and the passenger flow of popular attractions and hotels is analyzed through the association information between parked vehicles and points of interest; fourth, the trajectory spatiotemporal feature pattern analysis system: the trajectory spatiotemporal feature pattern query system is developed and implemented using the Spring framework, and the query and visualization of three types of typical analysis are completed based on Oracle's MapViewer middleware;
[0090] Fourth, the present application overcomes the limitations of various databases in the prior art in the semantic storage and analysis of trajectory data, has a strong ability to store and analyze raw trajectory data, and is directly related to the storage and management of semantic information. The database has obvious advantages in storing and analyzing initial trajectory data, and has a strong ability to analyze the semantic information contained in the trajectory. It realizes a geographically associated trajectory database based on the STOP / RUN model, combines the stop-movement-stop behavior of moving vehicles in the real world, builds and fills a geographically associated trajectory database, and carries out three types of trajectory spatiotemporal feature pattern queries, such as location-time, location-sequence, and location-relationship, as well as analysis of popular points of interest, providing an effective data set management and analysis platform for traffic flow analysis, urban planning, and popular scenic spots analysis, etc., which plays an important role and has great application value in enhancing user experience and improving the efficiency of map services and geographic information utilization. BRIEF DESCRIPTION OF THE DRAWINGS
[0091] Figure 1 It is a schematic diagram of the database table structure of geographic spatiotemporal correlation feature trajectory.
[0092] Figure 2 This is an example of locating complex areas of a map based on PNG data.
[0093] Figure 3 This is the Node table structure diagram of the road network model module.
[0094] Figure 4 This is the Link table structure diagram of the road network model module.
[0095] Figure 5 This is the structure diagram of the points of interest table of the road network model module.
[0096] Figure 6 It is a structural diagram of the Trj_original table that organizes geographic spatiotemporal trajectory data.
[0097] Figure 7 It is a schematic diagram of the vehicle stop situation in real life organized by geographical and spatial associations.
[0098] Figure 8 It is a schematic diagram of the relationship between vehicle moving objects, geographic spatial points of interest and road elements.
[0099] Fig. 9 This is a schematic diagram of the input image group of Experiment 2 of this application.
[0100] Fig.10 It is a structural diagram of the module for associating trajectory data with geospatial data.
[0101] Fig.11 It is a table structure diagram of the geographic spatiotemporal correlation feature trajectory database designed by integrating three major modules.
[0102] Fig.12 It is a schematic diagram of the position-sequence query results of the trajectory spatiotemporal feature pattern analysis system.
[0103] Fig.13 It is a schematic diagram of the position-relationship query results of the trajectory spatiotemporal feature pattern analysis system.
[0104] Fig.14 This is a schematic diagram of the ranking effect of a single scenic spot analysis in the popular points of interest analysis. Specific implementation methods
[0105] The following, in conjunction with the accompanying drawings, further describes the technical solution of the vehicle trajectory guided geographic spatiotemporal feature visualization analysis platform set up in the present application, so that technical personnel in the field can better understand the present application and implement it.
[0106] With the continuous development and integration of satellite positioning technology, sports equipment and sensor network technology, various trajectory data are widely collected, resulting in an explosive growth of trajectory data. Various existing databases always have their own limitations in the semantic storage and analysis of trajectory data. As a typical representative of the big data era, mobile object trajectory data implies various social activity information such as people’s travel behavior in the city, providing an effective data set for traffic flow analysis, urban planning, popular attractions analysis, etc. How to store and manage these mobile entities is crucial in this emerging field. On the one hand, the ability of existing databases such as Oracle and SQL Server to store and analyze raw trajectory data is very limited; on the other hand, existing data models in related fields such as DOMINO and SECONDO rarely involve the storage and management of semantic information. In order to make up for the disadvantages of existing databases in storing and analyzing initial trajectory data, and to strengthen the analysis of semantic information contained in the trajectory, a geographically associated trajectory database based on the STOP / RUN model is established according to urban road data and urban vehicle trajectory data. Combined with the stop-move-stop behavior of moving vehicles in the real world, a trajectory data management method based on the Stop / Run model is proposed, which not only conforms to people's natural understanding of the behavior of moving vehicles, but also is easy to integrate the semantic behavior information of moving vehicles.
[0107] This application first designs and implements the database table structure of the geographic spatiotemporal correlation feature trajectory database based on the Oracle network data model and Stop / Run model, including the association between geographic spatial data and the stop and movement behaviors in the trajectory data, and then implements several typical spatiotemporal pattern queries and hot interest point analysis on this basis. Specifically, it includes:
[0108] First, the design of geographic space-time correlation feature trajectory database includes: first, the organization of space-time trajectory correlation road network model, second, the organization of geographic space-time trajectory data, third, the geographic space-time correlation organization, and fourth, the geographic space-time correlation feature trajectory database model;
[0109] Combined with the stop-move-stop behavior of moving vehicles in the real world, this behavior of moving vehicles is associated with geospatial data, and a geo-associated trajectory database is designed to store, query and analyze the semantic information in the trajectory data;
[0110] Second, construct a geographic spatiotemporal correlation feature trajectory database, including: first, geographic spatiotemporal data storage, including trajectory data preprocessing, road network data acquisition and model construction, interest point acquisition and road network association processing; second, trajectory stop extraction, including trajectory map matching, feature time interpolation, and Stop extraction;
[0111] First, an urban network data model for network analysis is constructed based on the OSM data structure. Second, the point of interest data in the network map is obtained through the network map API and associated with the road network model. Finally, the trajectory data is associated with the geographic spatial data after map matching, time interpolation, and Stop / Run extraction, completing the construction of the geographic spatiotemporal correlation feature trajectory database.
[0112] Third, visual query analysis of spatiotemporal correlation trajectory database: design and propose three types of typical spatiotemporal pattern queries: location-time, location-sequence, and location-relationship queries, as well as pure SQL query processing methods, to analyze the passenger flow of popular attractions and hotels through the correlation information between parked vehicles and points of interest;
[0113] Fourth, trajectory spatiotemporal characteristic pattern analysis system: The trajectory spatiotemporal characteristic pattern query system is developed and implemented using the Spring framework, and based on Oracle's MapViewer middleware, the query and visualization of three types of typical analysis are completed.
[0114] 1. Design of geographic spatiotemporal correlation feature trajectory database
[0115] The driving behavior of a moving vehicle is abstracted into a start-stop-stop-…-move-end sequence consisting of a start-stop, a move point, and a stop point. This application abstracts the trajectory information into a trajectory object consisting of trajectory points from an object-oriented perspective, including the start point, run, stop, and end point, and associates these types of objects with points of interest and roads in the geographic space, and designs a geographic spatiotemporal correlation feature trajectory database, whose database table structure is as follows: Figure 1 As shown, the database structure explicitly associates the trajectory object with the location vehicle in the geospatial data, giving the trajectory object explicit semantic information, which helps to analyze and mine the behaviors and patterns contained in the trajectory data.
[0116] The database table structure of geographic spatiotemporal correlation feature trajectory includes three modules: road network model module, trajectory data and its matching information module, geographic correlation information and its correlation relationship module.
[0117] 1. ...
[0118] Considering that this application is based on the association analysis of vehicle trajectory data of the Oracle road network model and data in the geographic space, the geographic spatiotemporal association feature trajectory database is constructed in accordance with the Oracle road network model construction standard, using node tables and road tables to complete the road network model construction for network analysis. In addition, the road network model part includes point information in the geographic space used for association analysis - the point of interest table and its association table with the road network model. Figure 2 It shows the key fields of the tables in the road network model module and the relationships between the tables.
[0119] The various tables that make up the road network model module are introduced in detail below.
[0120] (1) Node table: Construct the node table of OracleNDM, its structure is as follows Figure 3 shown.
[0121] (2) Link table: Constructs the Oracle NDM road table, whose structure is as follows Figure 4 shown.
[0122] (3) Point of interest table: It stores nine types of points of interest in geographic space. Each type of point of interest is stored as a feature in its own feature table and associated with the road network model. The structure of these nine feature tables is the same, as shown in the following figure: Figure 5 shown.
[0123] To facilitate the query of POIs in the prototype system, the Features table is used to store all POIs. The difference between the Features table and the ordinary feature table is that it has two more fields: FEATURELAYER_ID and FEATURELAYER_NAME, which respectively represent the number and name of the layer to which the current POI belongs. The numbers range from 1 to 9, and the corresponding layer names are catering, shopping, transportation, attractions, schools, hospitals, banks, and government office facilities.
[0124] (4) POI_Relation table: stores the relationship between each point of interest and the Node element or Link element in the road network model.
[0125] 2. Organization of geographic spatiotemporal trajectory data
[0126] By analyzing the position, time and speed information of the trajectory data, the trajectory data is associated with the location data in the geographic space. Based on this, the structure of the table Trj_original that stores the trajectory data is designed as follows: Figure 6 shown.
[0127] First, the trajectory data is processed by map matching and time interpolation in turn. The Trj_matched table is used to store the results of matching the initial trajectory points to the road network, and the Trj_Link is used to store the vehicle's driving route. The Trj_Link table also stores the results of time interpolation, that is, the entry and exit time of the vehicle on the driving road.
[0128] 3. Geographical and spatial temporal associations
[0129] Figure 7 The real-life vehicle stop situation is presented, where the black solid dots represent the trajectory points and the five-pointed stars represent the points of interest. When the vehicle stops, its trajectory data is represented by the appearance of continuous points with similar distances on the same road. According to the vehicle's driving status, the vehicle trajectory points are divided into two categories: key points and non-key points. The key points are as follows:
[0130] (1) The starting and ending points of the trajectory: including the starting and ending points of the sub-trajectory formed after interruption, which respectively represent the starting and ending points of a vehicle journey. The start and end time of the trajectory and the total time of the movement process are obtained through the time of the starting point of the trajectory.
[0131] (2) Stop points: A series of trajectory points with small or even unchanged continuous position changes during the vehicle's driving process are all stop points. One point is abstracted from these stop points and its start and end time is recorded to provide a reference for subsequent query analysis.
[0132] From the vehicle-oriented perspective, a complete vehicle trajectory is divided into starting point-movement-stop-…-stop-movement-end point, and the Stop table and Run table are used to store the stopped and moving vehicles in the vehicle trajectory respectively. The Stop table is also used to store the starting point and end point of the vehicle trajectory.
[0133] exist Figure 7 In the process of vehicle movement, there are many points of interest. Figure 8 The relationship between the vehicle moving object and the points of interest and road elements in the geographic space is clearly shown, where the thick lines and arrows represent the vehicle's route and direction. The relationship between the moving vehicle and the points of interest corresponds to the semantic Pass, and the Pass table is used to store this semantic relationship.
[0134] The Trj_Run table is used to store the association between moving vehicles and roads in geographic space, that is, to store the entry and exit time and sequence of all roads that the vehicle passes through during the movement.
[0135] like Figure 8 As shown, if the vehicle moves through the entire road (such as link2), the POSIT field value is 1. If the vehicle moves only on a part of the road, the POSIT field indicates the vehicle's position on the road numbered LINKID at that time (usually the position of the starting point / end point of the trajectory on the road to which it belongs, or the position of the parked vehicle that serves as the starting point / end point of the moving vehicle on the road to which it belongs). The range of POSIT is -1 to 1. When the vehicle's driving direction is opposite to the direction from the start point to the end point of the road, the value of POSIT is negative (that is, the percentage of the current position on the road multiplied by -1).
[0136] exist Figure 7 In the case of a vehicle stopping, it will stop at a point of interest or approach a point of interest. Fig. 9 shown.
[0137] When the distance between the Stop position and the POI is less than 30 meters, the relationship between the Stop vehicle and the POI corresponds to the semantic Stay, and the Stay table is used to store this relationship.
[0138] When the distance between the Stop position and the point of interest is greater than 30 meters and less than 100 meters, the relationship between the Stop vehicle and the point of interest corresponds to the semantics "Close", and the Close table is used to store this relationship.
[0139] The relationship between the trajectory data and the line element (road) in the geographic space is expressed as the position of the Stop vehicle on the road (recorded as the percentage of the length from the starting point of the road to the total length of the road), and the Trj_Stop table is used to store this relationship.
[0140] In summary, the structure of the module for associating trajectory data with geographic spatial data in the geographic spatiotemporal correlation feature trajectory database of the present application is as follows: Fig.10 shown.
[0141] 4. Geographical spatiotemporal correlation feature trajectory database model
[0142] The table structure of the geographic spatiotemporal correlation feature trajectory database designed by integrating the three modules is as follows: Fig.11 shown.
[0143] The initial trajectory data does not include semantic information, but a geographic spatiotemporal correlation feature trajectory database is designed by processing the trajectory data through map matching and association. Based on this, simple semantic queries can be performed, such as "Which scenic spots did the vehicle pass through?", "Which scenic spots did the vehicle stop at?", etc., as well as complex semantic queries, such as "Which vehicles stopped at point A first and then at point B?", "Which vehicles stopped at point A at 8 am and passed point B at 12 noon?", etc.
[0144] 2. Building a database of geographic spatiotemporal correlation feature trajectories
[0145] It includes GIS data preprocessing and trajectory stop extraction algorithm design. The GIS data preprocessing process is aimed at the initial trajectory data in the geographic spatiotemporal correlation feature trajectory database, OSM data and point of interest data obtained from the network map. The trajectory stop extraction algorithm specifically includes trajectory matching algorithm, travel time interpolation algorithm (i.e. calculation of vehicle entering and leaving road time) and Stop extraction algorithm.
[0146] 1. Geographical and spatiotemporal data storage
[0147] Including trajectory data, urban point of interest data and urban road network data.
[0148] 1. Trajectory data preprocessing
[0149] The GPS trajectory data used comes from C trajectories generated by B vehicles driving in city A, with a total of D records. The average sampling time interval of the GPS trajectory is more than 40 seconds, which is a low sampling frequency trajectory. The average distance between the two sampling points is more than 500 meters. The trajectory data is stored in the Oracle database, which also facilitates the subsequent processing and analysis of the trajectory data. Before the trajectory data is stored in the database, the data is preprocessed first, mainly because of the errors that occur during the trajectory sampling, such as repeated points and noise points in the trajectory.
[0150] Finally, the trajectory data is stored in the Oracle database for management. The trajectory data is stored in the Trj_original table, where SDO_GEOMETRY is filled with known longitude and latitude data through the Oracle Spatial Java API.
[0151] 2. Road network data acquisition and model construction
[0152] In order to build the Oracle road network model, the node and road elements in OSM are first extracted. In view of the fact that the node and road elements contain a lot of unnecessary information, such as administrative boundaries, buildings, green spaces and water systems, they are distinguished when obtaining the road network information and unnecessary information is removed. At the same time, the Way element records the natural road information in the real world. After extracting the Node and Way information, the road data Way is segmented according to the Node information in the Way. In order to facilitate the acquisition of road data, a tool is designed to parse OSM data into text-type associated feature intermediate data. The text data results obtained by this parsing tool can be imported into the Oracle database to form a road network model, and can also be used for secondary development through ArcEngine to generate Shape data.
[0153] (1) Extracting Node information: including the node ID and its spatial location information, and storing them in a text file as an intermediate data storage. The Node information format is: Node (id, lat, lng), where id is the Node ID, lat and lng represent the latitude and longitude of the node, respectively. The text information structure is obtained by parsing the Node information in OSM. While reading the Node text data, the point data in the Oracle spatial database is constructed based on the Java API provided by Oracle Spatial. Then, SQL statements are used to batch insert the data into the node table. After the insertion is completed, a spatial index is established for the spatial field in the node table to improve the efficiency of spatial query.
[0154] (2) Extract complete Way information: Query the longitude and latitude information in the Node table according to the number, and finally record the required information in text data. The format is: Way (ID, Node_num, Node1, ..., Tag_num, Tagl_key, Tagl_v, ...), where ID is the road number, Node_num indicates the number of nodes on this road, Node1 is the number of all nodes that make up this road, Tag_num is the number of tag information for this road, and Tag1_key, Tagl_value, etc. are road tag key-value pairs.
[0155] (3) Road segmentation: Segment the extracted Way elements. The specific process includes:
[0156] Step 1: Traverse the WAY information and find all repeated nodes;
[0157] Step 2: Re-traverse the WAY information. For roads containing repeated nodes in the previous step, if the repeated nodes are not at the starting and ending points of the road, segment them to form two new roads.
[0158] Step 3: The segmented roads are stored in text format as intermediate files. The segmented road records are in the form of Way (ID, Length, StartNode, EndNode, Name, OneWay, Type, Lon1, Lat1, ...), where ID represents the number of the segmented road, Length represents the length of the segmented road, StartNode represents the number of the starting node of the segmented road, EndNode represents the number of the ending node of the segmented road, Name is the name of the road, Type is the type of the road, and Lon1, Lat1, etc. record the longitude and latitude of the nodes that constitute the segmented road in sequence.
[0159] The road table (Link) required for building Oracle NDM is filled according to the text information of the segmented roads. While reading the text data of the segmented roads, the corresponding data is filled into the Link table respectively. The spatial data of the Link is generated by reading the longitude and latitude data with the help of the Java API provided by Oracle Spatial, and finally inserted into the Link table in batches through SQL statements.
[0160] 3. Acquisition of points of interest and association with road network
[0161] The points of interest come from the web map. The search method in the JavaScript API provided by the web map is used to extract the points of interest, obtain the points of interest data, and associate the points of interest data with the urban road network data. The detailed steps are as follows:
[0162] Step 1: The web map JavaScript API specifically provides a search class LocalSearch. Create a search instance through the constructor of this class. The amount of interest point data captured each time does not exceed 800. The city is divided into 20×10 small rectangles. Each small rectangle is searched with the regional search method SearchInBounds of the search class to obtain a result of the LocalResult type.
[0163] Step 2: The search results of the first step include many pages, and then the POI information of all LocalResult POI types in each page is obtained one by one by using the get POI method of LocalResult, and finally the POI information of LocalResult POI type is extracted;
[0164] Step 3: Only extract the name, address, longitude and latitude and telephone information of the POI, select 9 keywords for retrieval respectively, and obtain the corresponding POI information, including scenic spots, gas stations, hotels, shopping, schools, hospitals, government facilities, transportation and banking information;
[0165] Step 4: On the one hand, according to the standard of establishing Oracle road network data model in Oracle Spatial, on the other hand, to facilitate analysis and query, element tables of nine types of points of interest and a total element table including the nine types of points of interest and their corresponding relationship tables were established;
[0166] Step 5: Construct the Feature_Relation table to store the relationship between the POI data and the road network model. The NET_ELEM_ID field stores the road network segment associated with the current POI, and START_PERCENTAGE stores the relative position of the road segment where the projection point of the current POI is located.
[0167] (II) Trajectory stop extraction
[0168] The trajectory data is managed and stored by establishing a geographic spatiotemporal correlation feature trajectory database and managed by the Stop / Run model. All trajectory points are first corrected to the correct road position through the spatiotemporal correlation feature trajectory map matching method, and then the time when the vehicle enters and leaves each road is inferred based on the matched position and time, thereby inferring the vehicle's stay and movement process.
[0169] 1. Track map matching
[0170] A series of GPS trajectory points collected in reality that are affected by various factors and not in accurate positions are corrected to the correct positions, and the trajectory points and driving routes of the moving target in reality are obtained. Considering that the time interval for trajectory data collection in this application is relatively large, in order to ensure the efficiency of the matching process and the balance and correctness of the matching results, this application designs a spatiotemporal correlation feature trajectory map matching method.
[0171] The process of map matching of spatiotemporal correlation feature trajectories mainly includes three parts: determining valid points, obtaining the most likely route, and map matching post-processing.
[0172] (1) Determine the effective point
[0173] Due to the delay in the process of acquiring trajectory points and the influence of buildings, tunnels, etc., the trajectory data is not all valid data. Therefore, this application separates valid points and invalid points through the following method.
[0174] 1) Buffer distance limit: Determine whether there is a road in the track point buffer. If there is no road, it is considered to be GPS noise data;
[0175] 2) Time limit: If the time interval between the current trajectory point and the previous valid point exceeds a certain critical value (15 minutes in the embodiment), the trajectory is segmented and the matching process is interrupted.
[0176] 3) Distance limit of adjacent points: If the great circle distance between the current track point and the previous valid point is less than the distance limit of the adjacent points, the position of the current track point cannot be accurately determined considering the drift of the GPS point;
[0177] 4) Speed limit: If the great circle distance from the current track point to the previous valid point / the time interval between the two points is greater than the speed threshold, the GPS sampling process is disturbed and the current track point is invalid.
[0178] (2) Find the most likely route
[0179] In the process of determining each valid point, for all candidate points of this valid point, the Viterbi algorithm is used to calculate the optimal path to each candidate point, and the section id of this candidate point, the probability of the trajectory point projected on this trajectory point, and the projection position of the previous valid point on this optimal path are recorded.
[0180] When the matching is interrupted, the probability of each candidate point of the last node of the matching tree is compared to obtain the candidate point with the highest probability. This point is the end point of this trajectory. At the same time, the projection position of the previous valid point of this candidate point is obtained from this point, and so on, the sequence of projection positions of the entire trajectory can be obtained.
[0181] (3) Map matching post-processing
[0182] A complete trajectory may be broken into many segments, and post-processing will make the trajectory as complete as possible.
[0183] Step 1: For points without roads within the buffer range, disconnect the trajectory;
[0184] Step 2: For the trajectory point that exceeds the speed critical value, determine whether there is a valid point behind it: 1) If there is no valid point, the projection point of this trajectory point is itself; 2) If there is a valid point, calculate the shortest path between its previous valid point and the next valid point, and determine whether it exceeds the speed limit based on this shortest path. If it exceeds the speed limit, interrupt the matching process; otherwise, determine the projection point position of the trajectory point based on whether the minimum distance from this trajectory point to the shortest path exceeds the buffer distance limit;
[0185] Step 3: For adjacent points, the projection point of its previous valid point is used as the projection point.
[0186] At this point, the projection points of all trajectory points are obtained, and the projection point data are stored in the Trj_matched table in the geographic spatiotemporal correlation feature trajectory database. The vehicle driving route can be obtained based on the shortest path between adjacent valid projection points. Such data is stored in the Trj_Link table in the geographic spatiotemporal correlation feature trajectory database.
[0187] 2. Feature time interpolation
[0188] The premise of this application to interpolate the time when a vehicle enters and leaves the road is to assume that the vehicle moves at a constant speed between the two valid trajectory points before and after, and to calculate the time when the vehicle enters and leaves the road through a linear interpolation algorithm. The specific process is as follows:
[0189] Step 1: Get the reference point for calculation: If there are multiple trajectory points on a road, find the first and last trajectory points as references for calculation; if there is only one trajectory point, use this point as the reference point for calculation;
[0190] Step 2: Perform time interpolation: Based on the above reference points, assuming that the vehicle moves at a constant speed between the reference points, calculate the time when the vehicle enters and leaves the road in sequence;
[0191] Step 3: Insert the calculated results into the Trj_Link table in batches.
[0192] 3.Stop extraction
[0193] The Stop extraction method is summarized as follows:
[0194] Step 1: Traverse the constituent sections (L1, L2, ...) of the driving route of a complete trajectory in the Trj_Link table in turn, and calculate the average speed of the vehicle in the current section (such as L1). If the average speed is less than the set critical value (3 meters per second), proceed to the next step of judgment;
[0195] Step 2: Check whether the vehicle has stopped during driving on this road, that is, check whether there are any track points with zero speed (the value of Speed field is 0) in Trj_Original table. If there are track points with zero speed, abstract them, extract one point as the stop position, and record the start time and end time of this stop behavior; if there is no point with zero speed, no processing is done;
[0196] Step 3: From the perspective of vehicles, associate the parked vehicles with the vehicles at the points of interest and the vehicles on the road, that is, determine whether the parked vehicles are in a Stay or Close behavior during the stay period, and describe the possible behaviors of the vehicles during the stay period in the Stay and Close tables respectively; secondly, store the location of the parked vehicles and their start and end times in the Trj_Stop table;
[0197] Step 4: Analyze the relationship between vehicle movement vehicles and points of interest and road objects from an object-oriented perspective. Use the Pass table to store the relationship between moving vehicles and points of interest, that is, the time when the vehicle passes the point of interest. Use the Trj_Run table to store the relationship between vehicle movement vehicles and road vehicles, that is, the vehicle's driving route in the road network, including the entry and exit time and sequence of each road, and the length of driving.
[0198] 3. Visual Query Analysis of Spatiotemporal Correlation Trajectory Database
[0199] There are three main types of typical spatiotemporal pattern queries: location-time pattern, location-sequence pattern, and location-relationship pattern. These three types of analysis all add some restrictions to the spatiotemporal two-dimensional aspects of trajectory data queries.
[0200] (1) Location-time query: First, the location information is limited in the spatial dimension, and the restriction conditions in the time dimension are given;
[0201] (2) Position-order analysis: multiple position constraints are given in space, and time constraints are implicitly proposed through the order in which the positions appear;
[0202] (3) Position-relation analysis: spatially define the position information and give the temporal topological conditions between trajectories relative to the position;
[0203] After building the geographic spatiotemporal correlation feature trajectory database, the semantically relevant spatiotemporal feature pattern query can be completed simply through SQL statements.
[0204] 4. Trajectory spatiotemporal characteristic pattern analysis system
[0205] Using the Spring framework and Oracle-based MapViewer middleware, we completed the query and visualization of three types of typical analysis.
[0206] 1. System Framework
[0207] The infrastructure of the web map application developed based on Oracle Maps, where the client is implemented based on the JavaScript API provided by OracleMapViewer. The Oracle Maps JavaScript client works on the browser-based map rendering engine on top of the map tile server and FOI server, obtains and displays the map from the map tile server in the browser, sends FOI requests to the FOI server and displays the results on the map tile layer, and gives feedback to user operations such as dragging, panning, zooming, and clicking on FOI.
[0208] The Oracle application server includes a map tile server, a FOI server, and a map rendering engine. It acts as middleware to complete map rendering and data loading and caching. The map tile server obtains, caches, and provides pre-generated, fixed-size map tiles. The map image cache engine receives requests from clients for map images at fixed locations at a certain level and feeds back tiles at the specified location to the client. The FOI server runs in the Java servlet inside MapViewer. When a client makes a request, it first queries the information in the database, then draws and renders the query results, and finally feeds back the rendered results to the client. The map rendering engine processes the requests sent by the client, queries the database according to the requests to obtain the corresponding information, then constructs map tiles in the form of pictures (PNG, GIF, JPEG format), and finally feeds back the map tiles to the client.
[0209] The database stores the required spatial data, and based on the MapBuilder tool, tile maps can be quickly created by defining styles, fonts, and colors.
[0210] (1) Trajectory spatiotemporal characteristic pattern analysis system
[0211] Based on the B / S architecture, the client is implemented with the help of the JavaScript API provided by Oracle MapViewer, mainly considering the following three types of queries: location-time query, location-sequence query, and location-relationship query.
[0212] The server completes the interaction with the client, including Oracle service middleware and Apache Tomcat. The Oracle middleware used is the map server MapViewer, and the server implements the corresponding trajectory spatiotemporal feature pattern query and analysis.
[0213] The database mainly stores the contents of the geographic spatiotemporal correlation feature trajectory database, including the Oracle road network model part, the trajectory part, and the STOP / RUN and its correlation with geographic elements.
[0214] (II) System Module
[0215] The trajectory spatiotemporal characteristic pattern analysis system module consists of three parts: map control module, trajectory spatiotemporal characteristic pattern query module and hot interest point analysis module.
[0216] (1) Map control module: The displayed map mainly includes the base map, initial track points, matched track points and matched route layers. The base map mainly includes the OSM map and the tile map constructed according to the city Oracle NDM. Other layers will be displayed as needed after the query is completed.
[0217] (2) Trajectory spatiotemporal feature pattern query: Three types of patterns are queried: location-time pattern, location-sequence pattern, and location-relationship pattern. These three types of analysis add restrictions in the two dimensions of space and time in trajectory data query. For the three typical analyses, query statements are designed based on the SQL language, and the query results are visualized and displayed based on the Oracle component MapViewer.
[0218] 1) Location-time query, which limits the location information in space and gives a time limit;
[0219] 2) Position-order analysis: multiple position constraints are given in space, and time constraints are implicitly proposed through the order of position appearance. Fig.12 The position-order query results are shown;
[0220] 3) Position-relationship analysis, which limits the position information in space and gives the temporal topological conditions between trajectories relative to the position. Fig.13 The location-relationship query results are shown;
[0221] (3) Analysis of popular points of interest
[0222] The analysis results of popular attractions and popular hotels in the city are displayed. First, the popularity of city attractions is analyzed by individual and category, including the ranking of single attraction analysis, such as Fig.14 As shown, the analysis results of popular hotels are ranked according to the statistical ranking of tourist attractions categories.
Claims
1. The vehicle trajectory guides the geographic spatiotemporal feature visualization analysis platform, which is characterized by: Based on urban road data and urban vehicle trajectory data, a geographically correlated trajectory database based on the STOP / RUN model is established. Combined with the stop-move-stop behavior of moving vehicles in the real world, a trajectory data management method based on the Stop / Run model is proposed. Design and implement the database table structure of the geographic spatiotemporal correlation feature trajectory database, including the association between geographic spatial data and the stay and movement behaviors in the trajectory data, and implement several types of typical spatiotemporal pattern queries and hot interest point analysis, including: First, the design of geographic space-time correlation feature trajectory database includes: first, the organization of space-time trajectory correlation road network model, second, the organization of geographic space-time trajectory data, third, the geographic space-time correlation organization, and fourth, the geographic space-time correlation feature trajectory database model; Combined with the stop-move-stop behavior of moving vehicles in the real world, this behavior of moving vehicles is associated with geospatial data, and a geo-associated trajectory database is designed to store, query and analyze the semantic information in the trajectory data; Second, construct a geographic spatiotemporal correlation feature trajectory database, including: first, geographic spatiotemporal data storage, including trajectory data preprocessing, road network data acquisition and model construction, interest point acquisition and road network association processing; second, trajectory stop extraction, including trajectory map matching, feature time interpolation, and Stop extraction; First, an urban network data model for network analysis is constructed based on the OSM data structure. Second, the point of interest data in the network map is obtained through the network map API and associated with the road network model. Finally, the trajectory data is associated with the geographic spatial data after map matching, time interpolation, and Stop / Run extraction, completing the construction of the geographic spatiotemporal correlation feature trajectory database. Third, visual query analysis of spatiotemporal correlation trajectory database: design and propose three types of typical spatiotemporal pattern queries: location-time, location-sequence, and location-relationship queries, as well as pure SQL query processing methods, to analyze the passenger flow of popular attractions and hotels through the correlation information between parked vehicles and points of interest; Fourth, trajectory spatiotemporal characteristic pattern analysis system: The trajectory spatiotemporal characteristic pattern query system is developed and implemented using the Spring framework, and based on Oracle's MapViewer middleware, the query and visualization of three types of typical analysis are completed.
2. According to claim 1, the vehicle trajectory guided geographic spatiotemporal feature visualization analysis platform is characterized in that: Geographical and spatiotemporal association organization: According to the vehicle driving status, the vehicle trajectory points are divided into two categories: key points and non-key points. The key points are divided into the following categories: (1) The starting and ending points of the trajectory: including the starting and ending points of the sub-trajectory formed after interruption, which respectively represent the starting and ending points of a vehicle journey. The time of the starting point of the trajectory is used to obtain the start and end time of the trajectory and the total time of the movement process; (2) Stop points: A series of trajectory points with small or even constant position changes during the vehicle's driving process are all stop points. From these stop points, a point is abstracted and its start and end time is recorded to provide a reference for subsequent query analysis; From the perspective of vehicles, a complete vehicle trajectory is divided into starting point-movement-stop-…-stop-movement-end point, and the Stop table and Run table are used to store the stopped and moving vehicles in the vehicle trajectory respectively. The Stop table is also used to store the starting point and end point of the vehicle trajectory; The relationship between the moving vehicle and the point of interest corresponds to the semantic Pass, and the Pass table is used to store this semantic relationship; The Trj_Run table is used to store the association between moving vehicles and roads in geographic space, that is, to store the entry and exit time and sequence of all roads that the vehicle passes through during the movement; If the vehicle moves through the entire road, the POSIT field value is 1. If the vehicle moves only through a portion of the road, the POSIT field indicates the vehicle's position on the road numbered LINKID at that time. The range of POSIT is -1 to 1. When the vehicle's driving direction is opposite to the direction from the start point to the end point of the road, the value of POSIT is negative. When the distance between the Stop position and the POI is less than 30 meters, the relationship between the Stop vehicle and the POI corresponds to the semantic Stay, and the Stay table is used to store this relationship; When the distance between the Stop position and the POI is greater than 30 meters and less than 100 meters, the relationship between the Stop vehicle and the POI corresponds to the semantic Close, and the Close table is used to store this relationship; The relationship between the trajectory data and the line elements in the geographic space is expressed as the location of the Stop vehicle on the road, and the Trj_Stop table is used to store this relationship.
3. According to claim 1, the vehicle trajectory guided geographic spatiotemporal feature visualization analysis platform is characterized in that: Geographical spatiotemporal data storage: including trajectory data, urban points of interest data and urban road network data; Trajectory data preprocessing: GPS trajectory data is used to generate C trajectories from vehicle B in city A, with a total of D records. The average sampling time interval of the GPS trajectory is more than 40 seconds, which is a low sampling frequency trajectory. The average distance between the two sampling points is more than 500 meters. The trajectory data is stored in the Oracle database; Finally, the trajectory data is stored in the Oracle database for management. The trajectory data is stored in the Trj_original table, where SDO_GEOMETRY is filled with known longitude and latitude data through the Oracle Spatial Java API.
4. According to claim 1, the vehicle trajectory guided geographic spatiotemporal feature visualization analysis platform is characterized in that: Road network data acquisition and model building: First, extract the node (Node) and road (Way) elements in OSM, distinguish them when obtaining road network information, and remove unnecessary information. At the same time, after extracting the Node and Way information, segment the road data Way according to the Node information in the Way. To facilitate the acquisition of road data, design a tool that parses OSM data into text-type associated feature intermediate data. The text data results obtained by this parsing tool can be imported into the Oracle database to form a road network model, and can also be used through ArcEngine for secondary development to generate Shape data; (1) Extracting Node information: including the id number of the node and its spatial location information, storing it in a text file as an intermediate data storage. The Node information format is: Node (id, lat, lng), where id is the Node number, lat and lng represent the latitude and longitude of the node respectively. The text information structure is obtained by parsing the Node information in OSM. While reading the Node text data, the point data in the Oracle spatial database is constructed based on the Java API provided by Oracle Spatial. Then, SQL statements are used to batch insert the data into the node table. After the insertion is completed, a spatial index is established for the spatial field in the node table to improve the efficiency of spatial query. (2) Extract complete Way information: Query the longitude and latitude information in the Node table according to the number, and finally record the required information in text data. The format is: Way (ID, Node_num, Node1, ..., Tag_num, Tagl_key, Tagl_v, ...), where ID is the road number, Node_num indicates the number of nodes on this road, Node1 is the number of all nodes that make up this road, Tag_num is the number of tag information of this road, and Tag1_key and Tagl_value are the road tag key-value pairs; (3) Road segmentation: The extracted Way elements are segmented. The specific process is as follows: Step 1: Traverse the WAY information and find all repeated nodes; Step 2: Re-traverse the WAY information. For roads containing repeated nodes in the previous step, if the repeated nodes are not at the starting and ending points of the road, segment them to form two new roads. Step 3: The segmented roads are stored in text format as intermediate files. The segmented road records are in the form of Way (ID, Length, StartNode, EndNode, Name, OneWay, Type, Lon1, Lat1, ...), where ID indicates the segmented road number, Length indicates the length of the segmented road, StartNode indicates the number of the starting node of the segmented road, EndNode indicates the number of the ending node of the segmented road, Name is the name of the road, Type is the type of the road, and Lon1 and Lat1 record the longitude and latitude of the nodes that constitute the segmented road in sequence; The road table (Link) required for building Oracle NDM is filled according to the text information of the segmented roads. While reading the text data of the segmented roads, the corresponding data is filled into the Link table respectively. The spatial data of the Link is generated by reading the longitude and latitude data with the help of the Java API provided by Oracle Spatial, and finally inserted into the Link table in batches through SQL statements.
5. According to claim 1, the vehicle trajectory guided geographic spatiotemporal feature visualization analysis platform is characterized in that: Obtaining points of interest and associating them with the road network: Points of interest come from the web map. The search method in the JavaScript API provided by the web map is used to extract points of interest. The detailed steps are as follows: Step 1: The web map JavaScript API specifically provides a search class LocalSearch. Create a search instance through the constructor of this class. The amount of interest point data captured each time does not exceed 800. The city is divided into 20×10 small rectangles. Each small rectangle is searched with the regional search method SearchInBounds of the search class to obtain a result of the LocalResult type. Step 2: The search results of the first step include many pages, and then the POI information of all LocalResult POI types in each page is obtained one by one by using the get POI method of LocalResult, and finally the POI information of LocalResult POI type is extracted; Step 3: Only extract the name, address, longitude and latitude and telephone information of the POI, select 9 keywords for retrieval respectively, and obtain the corresponding POI information, including scenic spots, gas stations, hotels, shopping, schools, hospitals, government facilities, transportation and banking information; Step 4: On the one hand, according to the standard of establishing Oracle road network data model in Oracle Spatial, on the other hand, to facilitate analysis and query, element tables of nine types of points of interest and a total element table including the nine types of points of interest and their corresponding relationship tables were established; Step 5: Construct the Feature_Relation table to store the relationship between the POI data and the road network model. The NET_ELEM_ID field stores the road network segment associated with the current POI, and START_PERCENTAGE stores the relative position of the road segment where the projection point of the current POI is located.
6. The vehicle trajectory guided geographic spatiotemporal feature visualization analysis platform according to claim 1 is characterized in that: Trajectory stop extraction: Establish a geographic spatiotemporal correlation feature trajectory database to manage and store trajectory data. Manage trajectory data through the Stop / Run model. First, use the spatiotemporal correlation feature trajectory map matching method to correct all trajectory points to the correct road position. Then, use the matched position and time to infer the time when the vehicle enters and leaves each road, and then infer the vehicle's stop and movement process.
1. Track map matching Correct a series of GPS track points collected in reality that are affected by various factors and not accurate to the correct position, obtain the track points and driving routes of the moving target in reality, and design a time-space correlation feature track map matching method; The process of map matching of spatiotemporal correlation feature trajectories includes three parts: determining valid points, obtaining the most likely route, and post-map matching processing; (1) Determine the effective point Separate valid points from invalid points by: 1) Buffer distance limit: Determine whether there is a road in the track point buffer. If there is no road, it is considered to be GPS noise data; 2) Time limit: If the time interval between the current trajectory point and the previous valid point exceeds a certain critical value, the trajectory will be segmented and the matching process will be interrupted; 3) Distance limit of adjacent points: If the great circle distance between the current track point and the previous valid point is less than the distance limit of the adjacent points, the position of the current track point cannot be accurately determined considering the drift of the GPS point; 4) Speed limit: If the great circle distance from the current track point to the previous valid point / the time interval between the two points is greater than the speed threshold, the GPS sampling process is disturbed and the current track point is invalid; (2) Find the most likely route In the process of determining each valid point, for all candidate points of this valid point, the Viterbi algorithm is used to calculate the optimal path to each candidate point, and the id of the section where this candidate point is located, the probability of the trajectory point projected on this trajectory point, and the projection position of the previous valid point on this optimal path are recorded; When the matching is interrupted, the probability of each candidate point of the last node of the matching tree is compared to obtain the candidate point with the highest probability, which is the end point of this segment of the trajectory. At the same time, the projection position of the previous valid point of this candidate point is obtained from this point, and so on, the sequence of projection positions of the entire trajectory can be obtained. (3) Map matching post-processing A complete trajectory may be broken into many segments, and post-processing will make the trajectory as complete as possible; Step 1: For points without roads within the buffer range, disconnect the trajectory; Step 2: For the trajectory point that exceeds the speed critical value, determine whether there is a valid point behind it: 1) If there is no valid point, the projection point of this trajectory point is itself; 2) If there is a valid point, calculate the shortest path between the previous valid point and the next valid point, and determine whether it is speeding based on this shortest path. If it is speeding, interrupt the matching process; otherwise, determine the projection point position of the trajectory point based on whether the minimum distance from this trajectory point to the shortest path exceeds the buffer distance limit; Step 3: For the adjacent point, the projection point of its previous valid point is used as the projection point; At this point, the projection points of all trajectory points are obtained, and the projection point data are stored in the Trj_matched table in the geographic spatiotemporal correlation feature trajectory database. The vehicle driving route can be obtained based on the shortest path between adjacent valid projection points. Such data is stored in the Trj_Link table in the geographic spatiotemporal correlation feature trajectory database.
7. The vehicle trajectory guided geographic spatiotemporal feature visualization analysis platform according to claim 1 is characterized in that: Characteristic time interpolation: The premise of interpolating the time when a vehicle enters and leaves the road is to assume that the vehicle moves at a constant speed between the two valid trajectory points before and after. The time when the vehicle enters and leaves the road is calculated by a linear interpolation algorithm. The specific process is as follows: Step 1: Get the reference point for calculation: If there are multiple trajectory points on a road, find the first and last trajectory points as references for calculation; if there is only one trajectory point, use this point as the reference point for calculation; Step 2: Perform time interpolation: Based on the above reference points, assuming that the vehicle moves at a constant speed between the reference points, calculate the time when the vehicle enters and leaves the road in sequence; Step 3: Insert the calculated results into the Trj_Link table in batches.
8. The vehicle trajectory guided geographic spatiotemporal feature visualization analysis platform according to claim 1 is characterized in that: The Stop extraction method is summarized as follows: Step 1: Traverse the constituent sections (L1, L2, ...) of a complete trajectory in the Trj_Link table in turn, and calculate the average speed of the vehicle in the current section. If the average speed is less than the set critical value, proceed to the next step of judgment; Step 2: Check whether the vehicle has stopped during driving on this road, that is, check whether there are trajectory points with zero speed in the Trj_Original table. If there are trajectory points with zero speed, abstract them, extract one point as the stop position, and record the start time and end time of this stop behavior; if there is no point with zero speed, no processing is done; Step 3: From the perspective of vehicles, associate the parked vehicles with the vehicles at the points of interest and the vehicles on the road, that is, determine whether the parked vehicles are in a Stay or Close behavior during the stay period, and describe the possible behaviors of the vehicles during the stay period in the Stay and Close tables respectively; secondly, store the location of the parked vehicles and their start and end times in the Trj_Stop table; Step 4: Analyze the relationship between vehicle movement vehicles and points of interest and road objects from an object-oriented perspective. Use the Pass table to store the relationship between moving vehicles and points of interest, that is, the time when the vehicle passes the point of interest. Use the Trj_Run table to store the relationship between vehicle movement vehicles and road vehicles, that is, the vehicle's driving route in the road network, including the entry and exit time and sequence of each road, and the length of driving.
9. The vehicle trajectory guided geographic spatiotemporal feature visualization analysis platform according to claim 1 is characterized in that: Trajectory spatiotemporal feature pattern analysis system framework: Using the Spring framework, Oracle-based MapViewer middleware is used to complete the query and visualization of three types of typical analysis. The Oracle Maps JavaScript client is a browser-based map rendering engine that works on top of the map tile server and FOI server. It obtains and displays maps from the map tile server in the browser, sends FOI requests to the FOI server and displays the results on the map tile layer, and provides feedback on user operations. The Oracle application server includes a map tile server, a FOI server, and a map rendering engine. As middleware, it completes map rendering and data loading and caching. The map tile server obtains, caches, and provides pre-generated, fixed-size map tiles. The map image cache engine receives requests from clients for map images of fixed locations at a certain level and feeds back tiles of the specified location to the client. The FOI server runs in the Java servlet inside MapViewer. When a client makes a request, it first queries the information in the database, then renders the query results, and finally feeds back the rendered results to the client. The map rendering engine processes the requests sent by the client, queries the database according to the requests to obtain the corresponding information, then constructs map tiles in the form of images, and finally feeds back the map tiles to the client. The database stores the required spatial data, and based on the MapBuilder tool, tile maps can be quickly created by defining styles, fonts, and colors.
10. The vehicle trajectory guided geographic spatiotemporal feature visualization analysis platform according to claim 1, characterized in that: The trajectory spatiotemporal characteristic pattern analysis system module consists of three parts: map control module, trajectory spatiotemporal characteristic pattern query module and hot interest point analysis module; (1) Map control module: Displays the map including the base map, initial track points, matched track points, and matched route layers. The base map includes the OSM map and the tile map constructed based on the city Oracle NDM. (2) Trajectory spatiotemporal feature pattern query: query three types of patterns: location-time pattern, location-sequence pattern, and location-relationship pattern. These three types of analysis add restriction conditions in the two-dimensional space-time in trajectory data query. For the three typical analyses, query statements are designed based on SQL language, and the query results are visualized and displayed based on the Oracle component MapViewer. 1) Location-time query, which limits the location information in space and gives a time limit; 2) Position-order analysis, which gives multiple position constraints in space and implicitly proposes time constraints through the order in which the positions appear; 3) Position-relation analysis, which limits the position information in space and gives the temporal topological conditions between trajectories relative to the position; (3) Popular Points of Interest Analysis: Displays the analysis results of popular attractions and popular hotels in the city, and analyzes the popularity of city attractions by individual and category.
Citation Information
Patent Citations
Road network-based spatio-temporal trajectory clustering method
CN106383868A
Mobile user trajectory map matching method based on hidden Markov model
CN111343585A
GPS trajectory data matching and complementing method
CN111862659A
Mining trajectory for spatial temporal analytics
US20140164389A1
Precision Adaptive Vehicle Trajectory Query Plan Optimization
US20170091272A1
