A calibration method and system for aligning a train operation trajectory with a railway track

By constructing a high-precision electronic railway map and improving the map matching algorithm, the problems of train trajectory data drift, redundancy and interruption were solved, and high-precision matching and correction between train operation trajectory and physical track were achieved, improving the reliability and robustness of trajectory data and meeting the high-efficiency processing needs of railway operation and maintenance system.

CN123190886APending Publication Date: 2026-12-01ZHUZHOU CSR TIMES ELECTRIC CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611304707.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-26
Publication Date
2026-12-01

AI Technical Summary

Technical Problem

In existing technologies, train trajectory data suffers from issues such as location point drift, redundancy, and interruption, resulting in severe distortion of the train trajectory in the monitoring interface. This affects the accuracy and reliability of stop duration analysis, off-track detention judgment, and overall transportation time statistics.

Method used

A high-precision electronic railway map is constructed, and an improved map matching algorithm based on topological constraints is applied. By using the KD-Tree index structure, hidden Markov model and Viterbi algorithm, combined with satellite number and quality weights and hard constraints on topological connectivity, high-precision matching and correction of train running trajectories and physical tracks can be achieved.

Benefits of technology

It improves the reliability and robustness of train tracks, solves the matching problem in complex areas such as turnouts, ensures matching accuracy and stability in complex signal areas, improves data processing efficiency, and meets the high concurrency and low latency requirements of railway operation and maintenance systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123190886A_ABST
    Figure CN123190886A_ABST
Patent Text Reader

Abstract

This invention belongs to the field of intelligent operation and maintenance technology for rail transit, and provides a calibration method and system for aligning train running trajectories with railway tracks. The method includes: constructing a KD-Tree spatial index structure using preprocessed GIS railway track point coordinates as nodes; traversing the original train track point set and using the KD-Tree to obtain k points mapped onto the GIS railway track; calculating the weighted observation likelihood and state transition probability of the track points based on a Hidden Markov Model framework, and solving for the optimal matching path using the Viterbi algorithm; filtering redundant points in the matched track data, and performing linear interpolation to fill in points on the matched track segments for track interruption intervals caused by signal loss, to output the calibrated train running trajectory. The advantage of this invention lies in its application of a topology-constrained map matching algorithm to achieve high-precision and robust matching and correction between train running trajectories and physical track lines, taking into account the fixed topology characteristics of railway track networks.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of intelligent operation and maintenance technology for rail transit, and in particular to a calibration method and system for aligning train running trajectory with railway track. Background Technology

[0002] In the intelligent operation and maintenance and safety monitoring system of railways, real-time and accurate train trajectories are the core data foundation for analysis and decision-making. Current 3C system ground data analysis software directly uses raw BeiDou positioning data uploaded by onboard equipment for its trajectory display function. Due to hardware limitations and complex environmental interference, approximately 10%-15% of the geographic location information in the raw data has significant deviations, specifically manifested as follows: (a) Positioning point drift: The position drifts from inside the station to outside the station, or from the line to outside the road, with an error exceeding 50 meters; (ii) Data redundancy: When the equipment is stationed, a large number of invalid data points are generated due to the periodic reporting of the equipment, with a redundancy rate of up to 30%. (iii) Data loss: In areas such as tunnels, signal loss leads to track interruption.

[0003] These problems cause severe distortion of train trajectories in the monitoring interface, making it impossible to guarantee the accuracy and reliability of key business results such as trajectory-based stop duration analysis, off-track detention judgment, and full-process transportation time statistics.

[0004] Currently, mainstream map matching algorithms can be categorized into geometric, topological, probabilistic statistical, and machine learning-based types. General-purpose algorithms are mostly designed for road vehicles that can freely change lanes. However, railway tracks are artificially designed, strongly structured networks, and train operations are strictly constrained by fixed track connections. In typical railway scenarios (such as switch areas, signal loss in tunnels, and track realignment during construction), topological matching algorithms, due to their ability to utilize the connectivity constraints of the road network, represent the optimal solution in these railway scenarios.

[0005] However, existing topology matching algorithms face challenges in engineering implementation, such as computational efficiency, the ability to handle missing data, and how to make full use of the quality of observation data. Summary of the Invention

[0006] This invention aims to solve the problems of drift, redundancy and interruption in the original positioning data by constructing a high-precision electronic railway map and applying an improved map matching algorithm based on topological constraints that integrates observation quality weights, thereby achieving high-precision and robust matching and correction between train operation trajectories and physical track lines.

[0007] To achieve the above objectives, the technical solution adopted by the present invention is as follows: A calibration method for aligning a train's trajectory with a railway track includes: Obtain the original train trajectory point set and the corresponding GIS railway trajectory point set, and preprocess the GIS railway trajectory point set; Using the coordinates of preprocessed GIS railway track points as nodes, a KD-Tree spatial index structure is constructed; Traverse the original train trajectory point set, and for each trajectory point in the point set, use KD-Tree to obtain k points mapped to the GIS railway trajectory; and retain points that meet the distance condition based on the preset maximum matching distance threshold to obtain the candidate node set for each original trajectory point; Based on the candidate node set, the weighted observation likelihood and state transition probability of the trajectory points are calculated using the Hidden Markov Model framework, and the optimal matching path is solved using the Viterbi algorithm. Redundant points are filtered out from the matched trajectory data, and linear interpolation is performed on the matched trajectory segments to fill in the gaps caused by signal loss, so as to output the calibrated train running trajectory.

[0008] Furthermore, the GIS railway trajectory point set is preprocessed, including: The spherical distance between adjacent GIS railway track points is calculated using the Haversine formula, and the orientation angle between adjacent GIS railway track points is calculated using the central difference method.

[0009] Furthermore, based on the candidate node set, the weighted observation likelihood of the trajectory points is calculated using a hidden Markov model framework, including: The original train trajectory point set is used as the observation sequence to calculate the matching degree between each original train trajectory point and the candidate node set to obtain the basic geometric likelihood; the matching degree is determined by the difference between the perpendicular distance and the directional angle between the two. Obtain the number of satellites corresponding to each train's original trajectory point, and define the output value of the weighting function based on the number of satellites; The weighted observation likelihood is obtained by multiplying the output value of the weighting function by the basic geometric likelihood.

[0010] Furthermore, based on the candidate node set, the state transition probabilities of the trajectory points are calculated using a Hidden Markov Model framework, including: When calculating the state transition probability, a hard constraint on topological connectivity is introduced; the hard constraint on topological connectivity is expressed as whether two road segments are connected based on a query of a preset railway topology table.

[0011] Furthermore, the state transition probabilities are calculated, including: Determine whether there is a connected path between the road segment corresponding to the state at the previous time step and the road segment corresponding to the state at the current time step; If no connected path exists, the transition probability is set to zero; if a connected path exists, the transition probability is calculated based on the difference between the shortest path length of the two segments in the topology network and the actual displacement of the two trajectory points.

[0012] Furthermore, redundant points are filtered out from the matched trajectory data, including: Iterate through all the determined trajectory points on the optimal matching path and filter out redundant points based on preset time or distance thresholds.

[0013] Furthermore, for the trajectory interruption intervals caused by signal loss, linear interpolation is performed on the matched trajectory segments to fill in the missing points, including: Based on the time and velocity information of the preceding and following valid trajectory points, linear interpolation is performed on the determined trajectory segments on the optimal matching path to insert new trajectory points.

[0014] Furthermore, it also includes: An electronic map of railway tracks containing accurate geometric information and topological connections is constructed based on an open-source railway dataset to obtain a GIS railway track point set.

[0015] Furthermore, based on open-source railway datasets, electronic maps of railway tracks containing precise geometric information and topological connections are constructed, including: The OpenStreetMap open-source railway dataset was used as the original geographic information data; Using QGIS software, the node positions of misaligned lines were corrected based on satellite imagery, and new lines were drawn and their attributes added. The topological structure information of the railway network is extracted using QGIS software to determine the connection relationships between each track segment.

[0016] The present invention also provides a calibration system for aligning train tracks with railway tracks, comprising a processor and a memory, wherein, Memory is used to store computer programs that can run on a processor; A processor is used to execute a computer program in memory to implement the steps of the above method.

[0017] Compared with the prior art, the present invention has at least the following beneficial effects: (1) This invention directly embeds a hard constraint mechanism for topological connectivity into the Viterbi dynamic programming algorithm, and forces the verification of physical connectivity between road segments when calculating the state transition probability. If they are not connected, the transition probability is set to zero directly, thereby eliminating all paths that violate the physical connection relationship of railways from the root of the algorithm logic. This completely solves the problem of matching parallel rails or crossing obstacles in complex areas such as turnouts and stations, and greatly improves the credibility of the output trajectory. (2) This invention integrates the number of satellites as a dynamic weighting factor into the observation probability model of the Viterbi algorithm, constructs a nonlinear mapping function between the number of satellites and the credibility, realizes the algorithm’s intelligent perception and adaptation to the quality of the original data, significantly enhances the matching robustness in areas with complex and variable signals such as tunnel entrances and exits and urban canyons, avoids the interference of low-quality data on the global matching results, and ensures the stability of the overall accuracy. (3) This invention designs a post-processing mechanism for thinning and supplementing points based on a bound path. After the initial matching is completed, linear interpolation is performed to supplement points in the trajectory interruption interval caused by signal loss, strictly based on the confirmed correct matching track segments. Using the determined correct track line as the spatial reference for supplementing points, high-fidelity trajectory reconstruction under signal blind zone is realized, ensuring that even in GNSS-denied environments such as long-distance tunnels, the reconstructed trajectory segments can absolutely fit the real physical track, effectively solving the problems of trajectory interruption and spatial distortion; (4) In the preprocessing stage, the present invention constructs a KD-Tree spatial index structure for high-precision railway track network and uses its efficient spatial partitioning capability to perform nearest neighbor search, which greatly improves the processing efficiency of massive road network data, enabling the algorithm to cope with massive real-time trajectory data streams at the national road network level and meet the strict engineering performance requirements of railway operation and maintenance system for high concurrency and low latency. (5) This invention uses the OpenStreetMap open-source dataset as the base map, and uses QGIS software combined with high-resolution satellite imagery to perform geometric correction on the track nodes, and manually draws the newly added lines and extracts the topological connection relationships. This method can quickly construct a dedicated electronic map covering the national road network with accurate geometric information and topological connection relationships at extremely low cost, ensuring that the map data can reflect physical changes such as construction and rerouting in a timely manner, and providing an accurate and vivid data foundation for subsequent topological constraint matching. Attached Figure Description

[0018] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the accompanying drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without any creative effort.

[0019] Figure 1 This is a schematic diagram of the steps for railway train track calibration provided in this embodiment; Figure 2 This is a schematic diagram illustrating the construction and maintenance process of the electronic railway track map provided in this embodiment; Figure 3This is a schematic diagram of the trajectory correction optimization effect provided in this embodiment. Detailed Implementation

[0020] The following are specific embodiments of the present invention, and the technical solutions of the present invention will be further described in conjunction with the accompanying drawings. However, the present invention is not limited to these embodiments.

[0021] like Figure 1 As shown, this embodiment provides a solution for high-precision matching and correction of railway train tracks, which includes: S01. Construct an electronic map of railway tracks containing accurate geometric information and topological connections based on an open-source railway dataset to obtain a GIS railway trajectory point set; S02. Obtain the original train trajectory point set and the corresponding GIS railway trajectory point set, and preprocess the GIS railway trajectory point set; S03. Using the preprocessed GIS railway track point coordinates as nodes, construct a KD-Tree spatial index structure; S04. Traverse the original train trajectory point set. For each trajectory point in the point set, use KD-Tree to obtain k points mapped to the GIS railway trajectory. And retain the points that meet the distance conditions based on the preset distance threshold to obtain the candidate node set for each original trajectory point. S05. Based on the candidate node set, calculate the weighted observation likelihood and state transition probability of the trajectory points using the Hidden Markov Model framework, and solve the optimal matching path using the Viterbi algorithm. S06. Redundant points are filtered out from the matched trajectory data, and linear interpolation is performed on the matched trajectory segments to fill in the gaps caused by signal loss, so as to output the calibrated train running trajectory.

[0022] The original train trajectory points include at least information such as timestamp, latitude and longitude, and speed.

[0023] This embodiment addresses the fixed topology characteristics of railway track networks by constructing a high-precision electronic railway map and applying an improved map matching algorithm based on topological constraints that incorporates observation quality weights. This solves the drift, redundancy, and interruption problems existing in the original positioning data, achieving high-precision and robust matching and correction between train trajectories and physical track lines.

[0024] Specifically, the implementation of this solution relies on a high-precision electronic map of railway tracks containing accurate geometric and topological information. The construction and maintenance process of this map is as follows: Figure 2 As shown, it includes: The OpenStreetMap (OSM) open-source railway dataset was used as the original geographic information data; In QGIS software, the node positions of misaligned lines were corrected based on satellite imagery, and new lines were manually drawn and attributes were added. The topological structure information of the railway network is extracted using QGIS software to determine the connection relationships between each track segment.

[0025] OSM (Organization of the World Map) is a free and open-source world map database created and maintained collaboratively by users worldwide. In this embodiment, it serves as the primary source of geographic information data for constructing the initial high-precision electronic map of railway tracks.

[0026] QGIS is a free and open-source Geographic Information System (GIS) application software. In step S01 of this embodiment, it is used as a core tool to load, edit, and correct OSM railway data, draw new lines, and extract network topology information. It is a key tool for constructing dedicated base maps.

[0027] In step S02 of this embodiment, preprocessing the GIS railway trajectory point set is fundamental to ensuring subsequent matching accuracy. This preprocessing process primarily involves transforming the original trajectory point coordinates to the same coordinate system as the GIS railway trajectory point set.

[0028] The preprocessing then involves calculating the spherical distance between adjacent railway track points. Preferably, this embodiment uses the Haversine formula to accurately calculate the great circle distance between two points on the Earth's surface. This formula takes into account the curvature of the Earth, and its specific expression is: ; Where r is the Earth's average radius, and (lon1,lat1) and (lon2,lat2) are the latitude and longitude of the preceding and following points, respectively. This formula generates a cumulative distance array, assigning a precise kilometer marker to each trajectory point.

[0029] Next, the preprocessing process also includes calculating the orientation angle of each trajectory point. In this embodiment, the central difference method is used to calculate the orientation angle θ of adjacent railway trajectory points, and the calculation formula is: θ=atan2(lat2-lat1, lon2-lon1); Here, atan2(y,x) is a two-parameter arctangent function that determines the quadrant of the angle based on the signs of x and y, thus obtaining a complete direction angle within the range of -π to π. For the starting and ending points of the trajectory, the direction angles of their adjacent points are used to fill in the information, ensuring that all points have direction information.

[0030] The distance and direction information obtained from this preprocessing will serve as an important basis for calculating the observation likelihood in subsequent matching algorithms.

[0031] In step S03 of this embodiment, constructing a spatial index is a crucial step in efficiently processing massive amounts of track data at the national road network level. This embodiment uses the preprocessed railway track point coordinates (lon, lat) as a basis to construct a KD-Tree (k-dimensional tree) spatial index structure. A KD-Tree is a data structure used to organize points in k-dimensional space; it recursively divides the space along different coordinate axes to form a binary tree.

[0032] In this embodiment, each KD-Tree node not only stores the two-dimensional geographic coordinates (lon, lat) but also the cumulative mileage t of that point, forming a three-dimensional coordinate system (lon, lat, t). By constructing this KD-Tree index, the complexity of searching for the nearest neighbor globally can be significantly reduced from a linear level of O(N) to a logarithmic level of O(log N), thereby enabling fast range searching for each train's original trajectory point. This allows the system to handle track maps at the national road network scale and massive real-time trajectory data streams, meeting the performance requirements of engineering systems for real-time processing.

[0033] In step S04 of this embodiment, calculating candidate nodes is a key step in narrowing the matching search space. The search is performed with the coordinates of trajectory point P_i as the center and a preset maximum matching distance threshold D_max as the radius. Among the railway trajectory points falling within this range, the k closest points are selected as the candidate point set for the original trajectory point P_i; if there are fewer than k points within the range, all points falling within the range are selected.

[0034] The search quickly identifies all points on the railway track that fall within the circular area. Ultimately, the set of points that satisfy the distance condition constitutes the candidate node set C_i for the original track point P_i. This set represents, geometrically speaking, the most likely track segments where the train's current position is located.

[0035] Preferably, when a certain original trajectory point has no candidate points within the range of D_max, the point is marked as a failed match point, and the road segment where the nearest valid match point is located is marked with low confidence in the subsequent output.

[0036] In step S05 of this embodiment, the Viterbi globally optimal matching, which incorporates observation quality weighting, is the core of the entire solution. This step aims to find a globally optimal, topologically feasible matching path that fully relies on high-quality observation data from all possible paths.

[0037] This embodiment models this problem as a Hidden Markov Model (HMM), where the original train trajectory point sequence is considered as the observation sequence O = {o1, ..., o}. NThe actual sequence of track segments traveled by the train is the hidden state sequence S = {s1, ..., s}. N The goal is to find the hidden state sequence S* that is most likely to produce the observed sequence O.

[0038] The matching process involves calculating two core probabilities. The first is the weighted observation likelihood calculation. This measures the likelihood of an observation point o. i The degree of matching with a candidate road segment s.

[0039] This embodiment first calculates a fundamental geometric likelihood. It comprehensively considers the vertical distance d from the observation point to the road segment. ⊥ The relationship between the angle difference |Δθ| between the directions can be expressed as: ; Here, α and β are adjustment parameters used to balance the weights of distance and direction factors.

[0040] Unlike existing technologies, this embodiment innovatively introduces an observation quality weighting mechanism. It acquires the observation quality weighting mechanism for each original trajectory point o. i The corresponding number of BeiDou satellites S i This value directly reflects the reliability of the location.

[0041] Next, a predefined, monotonically increasing weighting function ω(S) between the number of satellites and the confidence level is used. i This function maps the number of satellites to a weighting factor. The design principle of this function is: when the number of satellites S... i When the number is small (e.g., ≤3), the weight ω(S) i The number of satellites approaches a lower limit, indicating low confidence; when the number of satellites S... i When there are many (e.g., ≥12), the weight ω(S) i The value approaches the saturation value of 1, indicating high reliability.

[0042] Finally, the mass weights are multiplied by the fundamental geometric likelihood to obtain the weighted observation likelihood: .

[0043] This design gives higher weight to high-quality observation points with more satellites in the matching decision, while effectively suppressing the influence of low-quality points with fewer satellites, thereby enhancing the robustness of the algorithm in areas with complex signals, such as tunnel entrances and exits and urban canyons.

[0044] The second step is the calculation of state transition probabilities. This embodiment introduces hard constraints on topological connectivity at this stage. In graph theory and network analysis, topological connectivity is usually represented by the existence of a path connecting two nodes or edges. In this embodiment, it specifically refers to whether there is a physical passage relationship between two track segments in a railway track network, connected by track equipment such as turnouts or crossovers, allowing trains to pass directly.

[0045] In traditional HMM models, the state transition probability is usually a soft constraint. Even between two physically disconnected road segments, there may be a very small transition probability, which may lead to errors in the matching results, such as matching through walls or matching parallel tracks, which do not conform to physical reality.

[0046] To address this issue, this embodiment calculates the state s from the previous time step. i-1 (Road segment A) transitions to the current state s i The probability P of (road segment B) trans (s i |s i-1 When performing this step, the system first queries the railway topology database constructed in step S01.

[0047] If road segment A and road segment B are explicitly recorded in the database as having no connected path, then the transition probability P is forcibly increased. trans (s i |s i-1 The constraint is set to 0. This hard constraint completely eliminates all physically infeasible paths at the source. Only when there is a connected path between the two segments will the shortest path length L in the topology be used as the basis for selection. path The actual displacement L of the two trajectory points obs The transition probability is calculated based on the difference between the two values, and the relationship can be expressed as: ; Where γ is the adjustment parameter.

[0048] After calculating the weighted observation likelihood and the state transition probabilities satisfying the hard constraints, this embodiment uses the Viterbi dynamic programming algorithm to solve for the globally optimal path. This algorithm finds the state sequence that maximizes the cumulative probability through recursive calculation.

[0049] Specifically, using δ i(s) The maximum cumulative probability among all paths with state s up to time i is represented by ψ. i(s) Record order δ i(s) The state at the moment before the maximum value is reached: ; By traversing all time points and all candidate states, and finally backtracking ψ... i(s)This yields the globally optimal matching path sequence S* = (s 1* , ..., s N* ).

[0050] Preferably, when the cumulative probability of all candidate states at a certain time in the Viterbi recursion is zero, the system reverts to the optimal state at the previous time and outputs a topology discontinuity alarm flag.

[0051] In step S06 of this embodiment, the thinning and patching of points is a post-processing step to ensure the quality of the output trajectory. After the matching in step S05, the original trajectory has been bound to the correct track, but there may still be issues of data redundancy or interruption.

[0052] The first step is data thinning. The system iterates through all the data points that have been bound to a track and filters out a large number of dense and redundant points caused by train stops or other reasons, based on preset time or distance thresholds, in order to reduce the amount of data. In this embodiment, track binding is short for the process of matching trajectory points with track segments. It refers to using algorithms to calculate and associate each positioning point in the original trajectory with the most likely actual track segment in a high-precision railway electronic map.

[0053] Secondly, there is the point supplementation process. For signal loss and trajectory interruption intervals caused by GNSS rejection environments such as trains entering tunnels, this embodiment does not perform simple spatiotemporal linear interpolation. Instead, it strictly follows the correctly matched track segment confirmed in step S05, combines the time and speed information of the effective data points before and after, and performs linear interpolation on the specific track geometry of that segment to generate new trajectory points.

[0054] Preferably, for the trajectory interruption interval caused by signal loss, the previous valid trajectory point P is used as the reference. a and the next valid trajectory point P b Based on the timestamp and speed information, the number N of points to be inserted is determined. For the j-th point to be inserted, the time ratio λ is used as the basis for determining the number of points to be inserted. j =(t j -t a ) / (t b -t a ), in P a With P b Within the mileage range of the corresponding track segment on the optimal matching path, the position of the point is obtained by linear interpolation of the mileage, and its coordinates and the ID of the segment to which it belongs are output.

[0055] This method ensures that even in the absence of data, the reconstructed trajectory segment perfectly matches the real physical track, achieving high-fidelity trajectory reconstruction.

[0056] Ultimately, as Figure 3As shown, the output is a high-precision, continuous, and smooth correction trajectory obtained after processing through all the above steps. This data is a continuous sequence of coordinate points, each point precisely mapped to a specific railway line and mileage location. This trajectory data not only contains the precise sequence of coordinate points but may also include information such as the specific segment ID and mileage marker matched to each point.

[0057] In the diagram, red represents the original trajectory, and blue represents the trajectory after correction. The corrected trajectory closely matches the actual line and is continuous without interruption.

[0058] Preferably, the core algorithm in this embodiment can be encapsulated as an independent microservice, deployed in an Algorithm as a Service (AaaS) model with clearly defined input and output interfaces. This loosely coupled architecture design allows for easy integration with upper-level business systems such as train monitoring and operation and maintenance analysis, improving the system's reusability, maintainability, and horizontal scalability, and providing key technical components for building a unified intelligent processing platform for railway spatiotemporal data.

[0059] The specific embodiments described herein are merely illustrative of the spirit of the invention. Those skilled in the art to which this invention pertains may make various modifications or additions to the described specific embodiments or use similar methods to substitute them, without departing from the spirit of the invention or exceeding the scope defined by the appended claims.

[0060] It should be noted that, in this invention, unless otherwise explicitly specified and limited, the terms "connection," "fixation," etc., should be interpreted broadly. For example, "fixation" can mean a fixed connection, a detachable connection, or an integral part; it can mean a mechanical connection or an electrical connection; it can mean a direct connection or an indirect connection through an intermediate medium; it can mean the internal communication of two components or the interaction between two components, unless otherwise explicitly limited. Those skilled in the art can understand the specific meaning of the above terms in this invention according to the specific circumstances.

[0061] Furthermore, the technical solutions of the various embodiments of the present invention can be combined with each other, but only if they are based on the ability of those skilled in the art to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be considered that such combination of technical solutions does not exist and is not within the scope of protection claimed by the present invention.

Claims

1. A calibration method for aligning a train's trajectory with a railway track, characterized in that, include: Obtain the original train trajectory point set and the corresponding GIS railway trajectory point set, and preprocess the GIS railway trajectory point set; Using the coordinates of preprocessed GIS railway track points as nodes, a KD-Tree spatial index structure is constructed; Traverse the original train trajectory point set, and for each trajectory point in the point set, use KD-Tree to obtain k points mapped to the GIS railway trajectory; and retain points that meet the distance condition based on the preset maximum matching distance threshold to obtain a candidate node set for each original trajectory point; Based on the candidate node set, the weighted observation likelihood of the trajectory points and the state transition probability between adjacent time states are calculated using the Hidden Markov Model framework, and the optimal matching path is solved using the Viterbi algorithm. Redundant points are filtered out from the matched trajectory data, and linear interpolation is performed on the matched trajectory segments to fill in the gaps caused by signal loss, so as to output the calibrated train running trajectory.

2. The calibration method for aligning train running trajectory with railway track according to claim 1, characterized in that, Preprocessing of the GIS railway trajectory point set includes: The spherical distance between adjacent GIS railway track points is calculated using the Haversine formula, and the orientation angle between adjacent GIS railway track points is calculated using the central difference method.

3. The calibration method for aligning train running trajectory with railway track according to claim 1, characterized in that, Based on the candidate node set, the weighted observation likelihood of the trajectory points is calculated using a hidden Markov model framework, including: The original train trajectory point set is used as an observation sequence to calculate the matching degree between each original train trajectory point and the candidate node set to obtain the basic geometric likelihood; the matching degree is determined by the difference between the perpendicular distance and the directional angle between the two. Obtain the number of satellites corresponding to each original trajectory point of the train, and define the output value of the weighting function based on the number of satellites; The weighted observation likelihood is obtained by multiplying the output value of the weighting function with the basic geometric likelihood.

4. The calibration method for aligning train running trajectory with railway track according to claim 1, characterized in that, Based on the candidate node set, the state transition probabilities of trajectory points are calculated using a Hidden Markov Model framework, including: When calculating the state transition probability, a hard constraint on topological connectivity is introduced; the hard constraint on topological connectivity is expressed as whether two road segments are connected based on a query of a preset railway topology table.

5. The calibration method for aligning a train's running trajectory with a railway track according to claim 4, characterized in that, Calculating the state transition probability includes: Determine whether there is a connected path between the road segment corresponding to the state at the previous time step and the road segment corresponding to the state at the current time step; If no connected path exists, the transition probability is set to zero; if a connected path exists, the transition probability is calculated based on the difference between the shortest path length of the two segments in the topology network and the actual displacement of the two trajectory points.

6. The calibration method for aligning train running trajectory with railway track according to claim 1, characterized in that, Redundant points are filtered out from the matched trajectory data, including: Traverse all determined trajectory points on the optimal matching path and filter redundant points according to a preset time or distance threshold.

7. The calibration method for aligning train running trajectory with railway track according to claim 1, characterized in that, For trajectory interruptions caused by signal loss, linear interpolation is performed on the matched trajectory segments to fill in the missing points, including: Based on the time and speed information of the preceding and following valid trajectory points, linear interpolation is performed on the determined trajectory segments on the optimal matching path to insert new trajectory points.

8. The calibration method for aligning train running trajectory with railway track according to claim 1, characterized in that, Also includes: An electronic map of railway tracks containing precise geometric information and topological connections is constructed based on an open-source railway dataset to obtain the GIS railway track point set.

9. A calibration method for aligning a train's running trajectory with a railway track according to claim 8, characterized in that, An electronic map of railway tracks containing accurate geometric information and topological connections was constructed based on an open-source railway dataset, including: The OpenStreetMap open-source railway dataset was used as the original geographic information data; Using QGIS software, the node positions of misaligned lines were corrected based on satellite imagery, and new lines were drawn and their attributes added. The topological structure information of the railway network is extracted using QGIS software to determine the connection relationships between each track segment.

10. A calibration system for aligning train running trajectory with railway track, characterized in that, Including processor and memory, among which, The memory is used to store computer programs that can run on the processor; The processor is configured to execute the computer program in the memory to implement the steps of the method according to any one of claims 1-9.