A path matching method based on mobile phone signaling data
By optimizing basic data processing and path correction algorithms, the problems of basic road network complexity and road network overlap in mobile signaling data path matching are solved, achieving efficient and accurate path matching and supporting urban traffic analysis and organization.
Patent Information
- Application Number
- CN202410187354.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-20
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2044-02-20
AI Technical Summary
Existing technologies fail to effectively handle the complexity of basic road networks, unreasonable routes, and overlapping elevated and ground road networks in path matching based on mobile signaling data, resulting in inaccurate matching results.
Through steps such as basic data processing, establishing the correspondence between base stations and road segments, identifying user travel origin-destination (OD) routes, road frequency statistics, and path correction, the A* algorithm is used to optimize path matching, correct unreasonable trajectories and road type conversions, and improve matching accuracy.
It improves the rationality and accuracy of route matching, reduces human and material costs, is applicable to traffic analysis in multiple cities, and supports the development of traffic congestion source tracing and traffic organization plans.
Smart Images

Figure CN117968702B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the fields of mobile signaling data processing and road planning technology, and in particular to a path matching method based on mobile signaling data. Background Technology
[0002] Mobile signaling data can be continuously monitored over long periods, with a large sample size and objective recording during generation and collection, avoiding human influence. It allows for observation of the entire traffic process, thus facilitating the analysis of urban residents' travel and traffic dynamics. Currently, traffic mode identification based on mobile signaling data is a popular research area. Since a user's choice of a particular mode of transportation is strongly correlated with their selected road grade, travel distance, and travel speed, and matching the user's actual travel route based on mobile signaling data directly affects the road grade, travel distance, and travel speed, it significantly impacts the mode identification results. Therefore, route matching is the most crucial and important step in obtaining user traffic mode information from mobile signaling data.
[0003] Chinese invention patent application CN115578860A constructs a technology for extracting urban motorized travel trajectories in dense road network environments. It utilizes spatiotemporal clustering algorithms, Gaussian filtering, and non-uniform rational B-spline curves to achieve refined fitting of travel paths, and then employs a modified probability matching algorithm and a repair algorithm considering direction angles and road network topology for route identification. However, it overlooks matching errors caused by the trajectory being segmented into two or more segments due to a node in the trajectory. Furthermore, because it only performs segmented matching on trajectory points, it neglects to consider whether matching needs to be performed on any of the many parallel roads that are close together, based on the overall trajectory. Additionally, the correction stage only considers whether there is continuous repetition in identification, without taking into account unreasonable inflection points on nearby non-repeating roads.
[0004] Chinese invention patent CN110160538B discloses a map matching method based on mobile phone signaling data. It constructs correspondences between base stations and map information based on the spatial topology of base stations and map information; obtains the trajectory sequence of users occupying base stations by identifying stopping points based on mobile phone signaling data; determines the most likely intersections corresponding to base stations based on road frequency and spatial distance; then, completes the trajectories for unconnected intersections using Dijkstra's shortest path algorithm; finally, it removes ABA-type data from the intersection sequence to obtain a continuous intersection sequence, thus completing the map matching work. However, it does not mention the simplified processing of roads, directly utilizing open-source road networks. Since roads are bidirectional, this makes the processing extremely complex. It also does not handle roads with the same trend, which refers to roads in the same direction that are segmented and named because they exceed 10km or cross districts. This can easily lead to misjudgments when using the probability of road occupancy to confirm the route taken. Summary of the Invention
[0005] The technical problem to be solved by the present invention is to provide a path matching method based on mobile phone signaling data, which comprehensively considers the basic road network, unreasonable paths and the problem of overlapping elevated and ground road networks that affect the path matching results, thereby improving the rationality and accuracy of path matching.
[0006] To solve the above-mentioned technical problems, the present invention adopts the following technical solution: a path matching method based on mobile phone signaling data, comprising the following steps:
[0007] S1. Basic data extraction and analysis, wherein the basic data includes mobile phone signaling basic data and road network basic data;
[0008] S2, Basic Data Processing, including:
[0009] S21. Perform basic road network data processing to reduce road interference with matching and road complexity;
[0010] S22. Process the correspondence between base stations and road segments, and use the spatial topology to establish a correspondence table between base stations and road segments, and between the nearest nodes of base stations and road segments;
[0011] S23. Perform basic mobile signaling data processing, identify user stopping points, and obtain user travel origin (OD);
[0012] S3. Based on user travel origin-destination (OD) data, perform road route matching, including:
[0013] S31. Obtain the road segment corresponding to each base station in the entire trajectory and count the frequency of each road.
[0014] S32. Count the frequency of the road segment corresponding to the current base station and each road, and obtain the road with the highest frequency;
[0015] S33. Calculate the path between non-adjacent nodes, delete the data of the same road segment matching node ABA, and obtain the sequence of road segment nodes;
[0016] S34. Correct unreasonable trajectories that protrude or recede in the trajectory from an overall perspective, as well as unreasonable turning points caused by base station issues when turning.
[0017] S35. Correct the matching between ground roads and elevated roads and between elevated roads and ground roads to complete the path matching.
[0018] Furthermore, the present invention also provides: an electronic device, comprising:
[0019] One or more processors;
[0020] A storage device on which one or more programs are stored;
[0021] When the one or more programs are executed by the one or more processors, the one or more processors implement any of the path matching methods based on mobile phone signaling data described above.
[0022] Furthermore, the present invention also provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the steps in the path matching method based on mobile phone signaling data described in any of the above claims.
[0023] Compared with the prior art, the present invention, employing the above technical solution, has the following technical effects:
[0024] 1. The path matching method of the present invention comprehensively considers the basic road network, unreasonable paths, and the overlapping of elevated and ground road networks that affect the path matching results, so that the matching results have sufficient rationality and accuracy, which plays a significant role in improving the accuracy of mode identification.
[0025] 2. The path matching method of the present invention does not require manual intervention in the identification process, saving manpower and material costs. Moreover, it can analyze the daily passenger flow distribution in the city based on the daily updated mobile phone signaling data, making it convenient and efficient to implement.
[0026] 3. The path matching method of this invention can ensure universal applicability among different cities while adapting to local conditions. It is of great significance for tracing the source of traffic congestion, formulating road traffic organization plans during construction, tracking traffic flow changes before and after the operation of newly built roads, and tracking the origin and destination of subway users. Attached Figure Description
[0027] Figure 1 This is a system flowchart of the path matching method based on mobile phone signaling data of the present invention;
[0028] Figure 2 These are before-and-after comparison images of road treatment according to an embodiment of the present invention;
[0029] Figure 3 This is a diagram showing the correspondence between base stations and roads according to an embodiment of the present invention;
[0030] Figure 4 This is a map showing the highest frequency roads and road nodes corresponding to base stations in this embodiment of the invention;
[0031] Figure 5 This is the result after deleting the data of matching road nodes with the same road as ABA in the embodiment of the present invention, that is, the unreasonable trajectory map without correction of the protrusion;
[0032] Figure 6 This is a matching result diagram of the embodiment of the present invention without overall correction based on the preceding and following trajectories;
[0033] Figure 7 This is a diagram showing the final path matching result of an embodiment of the present invention. Detailed Implementation
[0034] The technical solution of the present invention will be further described in detail below with reference to the accompanying drawings:
[0035] It will be understood by those skilled in the art that, unless otherwise defined, all terms used herein (including technical and scientific terms) have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains. It should also be understood that terms such as those defined in general dictionaries should be understood to have the same meaning as in the context of the prior art, and should not be interpreted in an idealized or overly formal sense unless defined as herein.
[0036] This invention relates to mobile phone signaling data: which refers to a series of control commands generated by the mobile communication network, either actively or passively, periodically or irregularly, to maintain contact with the mobile terminal of the mobile phone user. These commands include fields such as mobile phone identification code, timestamp, event type, base station number, base station latitude and longitude, and number location.
[0037] User trajectory: refers to the trajectory formed by extracting mobile phone signaling data from a user, sorting it by timestamp, and mapping the latitude and longitude of base stations onto a map.
[0038] Path matching refers to matching the mobile phone signaling data generated by a user during communication with the road using a certain model algorithm to obtain the user's travel path on the real road.
[0039] In one embodiment of the present invention, a path matching method based on mobile phone signaling data, such as... Figure 1 As shown, it includes the following steps:
[0040] S1. Basic data extraction and analysis: Based on the mobile phone signaling data generated throughout the day in the target city, obtain the effective travel trajectory of individuals and basic road network data;
[0041] S2. Basic Data Processing: A series of refined processing steps are performed on the matched basic road network, including simplification of the road network and processing of roads with the same trend; based on the spatial relationship between base stations and road networks, the relationship between base stations and road segments, and between base stations and road segment nodes is constructed, and basic mobile signaling data processing is performed to identify user stopping points and obtain user travel origin and destination (OD).
[0042] S3. Based on user travel origin-destination (OD) data, perform road path matching: For a valid trip base station trajectory sequence, determine the possible road segments and nearest nodes of each base station in sequence, and determine the most likely road segments and nearest nodes based on frequency and spatial distance; obtain the path based on the relationship between road segments and their nearest nodes; to reduce computational resources and improve computational efficiency, calculate the path for road segment nodes without adjacent nodes using the A* algorithm and save it for future use, finally obtaining the sequence of road segment nodes. Then, correct unreasonable matching trajectories such as protrusions and intrusions in the path, and further correct the path for some road segments containing elevated roads based on speed, thus completing the path matching.
[0043] In this embodiment, step S1, basic data extraction and analysis, is performed as follows:
[0044] 1.1 First, the signaling data and road network data fields involved in this invention are parsed. The signaling data fields are provided by the operator and mainly include the user unique identifier MSISDN, the current cell number TAC, the current sector number CI, the current base station longitude LON, the current base station latitude LAT, the current base station start timestamp BEGIN_TIME, and the end timestamp END_TIME. The meaning of each field is shown in Table 1 below.
[0045] Table 1. Main fields and meanings of signaling data
[0046]
[0047] 1.2 Road network data is obtained through OpenMap. The main fields include road name ROAD_NAME, road segment number ROAD_ID, travel direction PASS_CODE, and road spatial information. The meaning of each field is shown in Table 2 below.
[0048] Table 2 Road Information
[0049]
[0050]
[0051] In this embodiment, step S2, basic data processing, includes road basic data processing and signaling basic data processing, and the method is as follows:
[0052] 2.1 Road Basic Data Processing
[0053] Since roads in OpenMap do not distinguish between travel directions and their names are real road names, road processing is needed to reduce interference and complexity in matching. For example... Figure 2 As shown.
[0054] 2.1.1 Treat two roads with the same name but different directions of traffic on the same road segment as one road without direction distinction.
[0055] Preferably, in this implementation, QGIS is used to obtain the road centerline.
[0056] 2.1.2 Roads with the same route but different names due to regional division or other reasons will be uniformly marked.
[0057] Calculate if there is a road with the same name as the previous road among all the roads connected to the previous road segment. If not, calculate the angle between the previous road segment and the following road. If the angle is less than 20 degrees, mark the two roads as having the same trend.
[0058] 2.2 Processing of Base Station Road Correspondence
[0059] Utilizing spatial topology, this embodiment statistically analyzes roads within a 500m coverage area of a base station and generates a base station-road mapping table, such as... Figure 3 As shown.
[0060] Wherein, base represents the base station number, base_lon represents the base station longitude, base_lat represents the base station latitude, road_name represents the re-marked road name, road_id represents the number of the nearest road segment to the base station, node represents the number of the nearest node to the nearest road segment, node_lon represents the longitude of the nearest node to the nearest road segment, node_lat represents the latitude of the nearest node to the nearest road segment, base_node_distance represents the distance between the base station and the nearest node, and base_road_distance represents the distance between the base station and the nearest node.
[0061] 2.3. Basic data processing for mobile phone signaling, including:
[0062] 2.3.1 Delete signaling data that resulted in communication failures or missing key fields;
[0063] 2.3.2 Merging data from consecutive identical base stations;
[0064] 2.3.3. Merge ping-pong handover data;
[0065] 2.3.4. Eliminate drift data.
[0066] 2.4. Identify user stop points based on mobile phone signaling data to obtain travel OD;
[0067] For the cleaned mobile phone signaling data, identify user stop points based on base station dwell time and service radius. When a user stays within the service radius threshold radius_range centered on a certain base station for a duration exceeding the stop time threshold min_stay_time, this base station is taken as the user's stop point, and then travel OD is obtained according to the travel stop points.
[0068] Preferably, radius_range can be 800m~1500m, and min_stay_time is 40min. In this embodiment, step S3, road path matching, is performed as follows:
[0069] 3.1. Obtain the road corresponding to each base station in the entire trajectory, and count the occurrence frequency of each road, including the road name and road occurrence frequency.
[0070] 3.2. Obtain the road corresponding to the current base station and the frequency of each road.
[0071] 3.3. Obtain the road with the highest frequency:
[0072] If multiple roads have the same highest frequency, preferentially obtain the road with the same name as the road corresponding to the previous base station. For roads corresponding to non-starting base station points, if the road occurrence frequency is 1, delete this base station point. If a road is matched, obtain the road and road nodes corresponding to the base station, as Figure 4 shown.
[0073] 3.4. According to road topology data, calculate the path between non-adjacent front and rear nodes using the A* algorithm:
[0074] The A* algorithm is a rough path planning algorithm based on sampling search. Use the A* algorithm to calculate respectively the path P1 from the nearest node on the road segment corresponding to the current base station to the nearest node on the nearest road corresponding to the next base station, and the path P2 from the far node on the road segment corresponding to the current base station to the nearest node on the nearest road segment corresponding to the next base station. If P1 < P2, the path is P1; otherwise, the path is the current road segment plus P2.
[0075] 3.5. Delete data where the matched road nodes of the same road are ABA:
[0076] Use letters A and B to represent two nodes respectively. If node B is preceded and followed by node A, the front and rear nodes are repeated, which is called an ABA node.
[0077] In this embodiment, the result after deleting data with matching road nodes of the same road being ABA, but without correcting the bulging and unreasonable trajectory map, is as follows: Figure 5 As shown.
[0078] The nearest road nodes matched by three adjacent base stations are P i-1 P i P i+1 If P i-1 and P i+1 If they are nodes on the same road segment, then delete P. i-1 and P i The corresponding base station.
[0079] 3.6 Correcting unreasonable trajectories that bulge out in the trajectory:
[0080] If the current node N1 is at an intersection, calculate the number of nodes N1 that follow within the range R1. i The corresponding road set M i N1 corresponds to the road set M1, and the first road segment p after N1 is the road name. If the road name after deleting p from M1 is the same as M1, then... i If there are duplicate road names, recalculate N1 and N. i If the new path is shorter than the original path, replace the original path with the new path. Figure 6 As shown.
[0081] Preferably, R1 is 2000 meters.
[0082] 3.7 Correcting unreasonable turning points caused by base station issues during turns:
[0083] If the current node N1 is an intersection, calculate the intersection N within the range R2 (1100m) after N1. j The road section preceding N1 is named Q1, N j The road name for the next section is Q. i If Q1 and Q i Two roads intersect at point N, and point N is not between N1 and N2. j In the path, N1 to N are recalculated. j Furthermore, if the distance of the new path after N is less than a preset threshold (the greater distance than the original path), the new path replaces the original path. Figure 7 As shown.
[0084] Preferably, R2 is 1100m and the preset threshold is 100m.
[0085] 3.8 Correcting the matching between ground-level roads and elevated roads:
[0086] Because there is a significant speed difference between elevated and other enclosed roads and open ground roads, if trajectory P i There exists a trajectory P that passes through ground roads. -i1 P -i2 ,...,P -in and enclosed roads such as elevated roads P -j1, P -j2 ,...,P -jn Overlap, and P -i1 To P -in The average speed is greater than P -i1 If the average speed before is higher than the preset ratio, then P will be... -i1 To P -in The trajectory was modified to P -j1 To P -jn .
[0087] Preferably, the preset ratio is 30%.
[0088] 3.9. Correct the matching between elevated roads and ground-level roads:
[0089] If trajectory P j The trajectory P that passes through the elevated road exists. -j1 P -j2 ,...,P -jn and ground roads P -i1, P -i2 ,...,P -in Overlap, and P -j1 To P -jn Average speed and P -j1 If the average speed before the change is not significant (within 10%), then P -j1 To P -jn The trajectory was modified to P -i1 To P -in .
[0090] In summary, the path matching method based on mobile phone signaling data in this invention obtains various traffic flows and the origin and destination of users passing through the corresponding road segments according to user travel trajectories. This is of great significance for tracing traffic congestion sources, formulating road traffic organization plans during construction, tracking traffic flow changes before and after the operation of newly built roads, and tracking the origin and destination of subway users. Furthermore, this method is convenient, efficient, highly accurate, low-cost, provides comprehensive samples with a high update frequency, and has universal applicability across different cities.
[0091] The above description is only a partial embodiment of the present invention. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.
Claims
1. A path matching method based on mobile phone signaling data, characterized in that, Includes the following steps: S1. Basic data extraction and analysis, wherein the basic data includes mobile phone signaling basic data and road network basic data; S2, Basic Data Processing, including: S21. Perform basic road network data processing, including road network simplification and processing of roads with the same trend; S22. Process the correspondence between base stations and road segments, and use the spatial topology to establish a correspondence table between base stations and road segments, and between the nearest nodes of base stations and road segments; S23. Perform basic mobile signaling data processing, identify user stopping points, and obtain user travel origin (OD); S3. Based on user travel origin-destination (OD) data, perform road route matching, including: S31. Obtain the road segment corresponding to each base station in the entire trajectory and count the frequency of each road. S32. Count the frequency of the road segment corresponding to the current base station and each road, and obtain the road with the highest frequency; S33. Calculate the path between non-adjacent nodes using a coarse path planning algorithm based on sampling search, delete duplicate data between matching road segment nodes of the same road, and obtain the sequence of road segment nodes; S34. Correct unreasonable trajectories that protrude or recede in the trajectory from an overall perspective, as well as unreasonable turning points caused by base station issues when turning. Correct unreasonable trajectories that bulge or concave. If the current node N1 is an intersection, the road set corresponding to N1 is M1, and the road name p is the first road segment following N1, calculate the number of nodes N within the range R1 following N1. i The corresponding road set M i If the road name after deleting p in M1 is the same as M... i If the road names are the same, recalculate N1 and N. i If the new shortest path is shorter than the original path, replace the original path with the new shortest path. Correcting unreasonable turning points caused by base station issues during turns: If the current node N1 is an intersection, calculate the intersection N within the range R2 after N1. j The section of road preceding N1 is named Q1, N j The road name for the next section is Q. i If Q1 and Q i Two roads intersect at point N, and N is not between N1 and N2. j In the path, the calculation of N1 to N is repeated. j Furthermore, if the distance of the new path after N is less than the distance of the original path, the new path replaces the original path; S35. Correct the matching between ground roads and elevated roads and between elevated roads and ground roads to complete the path matching.
2. The path matching method based on mobile phone signaling data according to claim 1, characterized in that, In step S1, The basic mobile signaling data is provided by the operator and includes the following fields: user unique identifier MSISDN, current cell number TAC, current sector number CI, current base station longitude LON, current base station latitude LAT, current base station start timestamp BEGIN_TIME and end timestamp END_TIME. The road network basic data is obtained through OpenMap, and the fields include: road name ROAD_NAME, road segment number ROAD_ID, and traffic direction ROAD_ID.
3. The path matching method based on mobile phone signaling data according to claim 1, characterized in that, In step S2, the road network basic data processing is used to reduce road interference with matching and road complexity, specifically as follows: S211. Obtain the road centerline and process two road segments with the same name but different directions of travel into one road segment without direction distinction. S212. Mark road segments with the same trend but different road names in a unified manner: Calculate whether there is a road segment with the same road name as the previous road segment among all the road segments connected by the previous road segment. If not, calculate the angle between the previous road segment and the following road segment. If the angle is less than 20 degrees, mark the two road segments as roads with the same trend.
4. The path matching method based on mobile phone signaling data according to claim 3, characterized in that, In step S2, the basic data processing of mobile phone signaling includes: deleting signaling data with communication failures or missing key fields, merging data from consecutive base stations with the same data, merging data from ping-pong handover, and removing drifting data. For the cleaned mobile signaling data, user stop points are identified based on base station dwell time and service radius. When a user stays at a certain base station for a duration exceeding the dwell time threshold min_stay_time within the service radius threshold radius_range, that base station is taken as the user's travel stop point, and the travel origin-destination (OD) is obtained based on the travel stop point.
5. The path matching method based on mobile phone signaling data according to claim 1, characterized in that, In step S32, the road with the highest frequency is acquired; if multiple roads have the same highest frequency, the road with the same name as the corresponding road segment of the previous base station is preferentially acquired. For the road corresponding to a non-starting base station, if the occurrence frequency of the road is 1, the base station is deleted; if a road segment is matched, the road segment corresponding to the base station and the nearest node of the road segment are acquired.
6. The path matching method based on mobile phone signaling data according to claim 5, characterized in that, In step S33, the A* algorithm is used to calculate the path between non-adjacent nodes: according to the road topology data, the path P1 between the nearest node of the road segment corresponding to the current base station and the nearest node of the road segment corresponding to the next base station is calculated, and the path P2 between the far node of the road segment corresponding to the current base station and the nearest node of the road segment corresponding to the next base station is calculated. If P1 < P2, the path is P1; otherwise, the path is the current road segment plus P2. Delete data where the matching road segment node is ABA: the nearest road nodes matched by three adjacent base stations are P. i-1 P i P i+1 If P i-1 and P i+1 If they are nodes on the same road segment, then delete P. i-1 and P i The corresponding base station.
7. The path matching method based on mobile phone signaling data according to claim 6, characterized in that, In step S35, the matching between the ground road and the elevated road is corrected: there is a speed difference between the closed elevated road and the open ground road, if trajectory P i There exists a trajectory P that passes through ground roads. -i1 , P -i2 ,...,P -in and elevated closed road P -j1 , P -j2 ,...,P -jn Overlap, and P -i1 To P -in The average speed is greater than P -i1 If the average speed before is higher than the preset ratio, then P will be... -i1 To P -in The trajectory was modified to P -j1 To P -jn ; Correcting the matching between elevated roads and ground-level roads: if trajectory P j The trajectory P that passes through the elevated road exists. -j1 ,P -j2 ,..., P -jn and ground roads P -i1 , P -i2 ,...,P -in Overlap, and P -j1 To P -jn Average speed and P -j1 If the average velocity change before is less than a preset ratio, then P will be... -j1 To P -jn The trajectory was modified to P -i1 To P -in .
8. An electronic device, characterized in that, comprising: one or more processors; a storage device having one or more programs stored thereon; when the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 7.
9. A computer-readable storage medium, characterized in that, having a computer program stored thereon, wherein the program, when executed by a processor, implements the steps in the path matching method based on mobile phone signaling data according to any one of claims 1 to 7.
Citation Information
Patent Citations
A map matching method based on mobile signaling data
CN110160538B
Vehicle travel path identification method in urban dense road network environment
CN115578860A
Map matching method based on mobile phone signaling data
CN110160538A
Map matching method and system based on global cooperative voting, medium and terminal
CN112988929A
Method, device and equipment for assigning names of starting point and ending point of road section and medium
CN116628119A
