Skip to Content
MachinesMachines
  • Article
  • Open Access

7 January 2026

18 Pages

SERail-SLAM: Semantic-Enhanced Railway LiDAR SLAM

,
,
,
,
,
,
,
and
1
GNSS Research Center, Wuhan University, Wuhan 430079, China
2
Hubei Luojia Laboratory, Wuhan University, Wuhan 430079, China
3
School of Geodesy and Geomatics, Wuhan University, Wuhan 430079, China
*
Author to whom correspondence should be addressed.

Abstract

Reliable state estimation in railway environments presents significant challenges due to geometric degeneracy resulting from repetitive structural layouts and point cloud sparsity caused by high-speed motion. Conventional LiDAR-based SLAM systems frequently suffer from longitudinal drift and mapping artifacts when operating in such feature-scarce and dynamically complex scenarios. To address these limitations, this paper proposes SERail-SLAM, a robust semantic-enhanced multi-sensor fusion framework that tightly couples LiDAR odometry, inertial pre-integration, and GNSS constraints. Unlike traditional approaches that rely on rigid voxel grids or binary semantic masking, we introduce a Semantic-Enhanced Adaptive Voxel Map. By leveraging eigen-decomposition of local point distributions, this mapping strategy dynamically preserves fine-grained stable structures while compressing redundant planar surfaces, thereby enhancing spatial descriptiveness. Furthermore, to mitigate the impact of environmental noise and segmentation uncertainty, a confidence-aware filtering mechanism is developed. This method utilizes raw segmentation probabilities to adaptively weight input measurements, effectively distinguishing reliable landmarks from clutter. Finally, a category-weighted joint optimization scheme is implemented, where feature associations are constrained by semantic stability priors, ensuring globally consistent localization. Extensive experiments in real-world railway datasets demonstrate that the proposed system achieves superior accuracy and robustness compared to state-of-the-art geometric and semantic SLAM methods.
Keywords:
SLAM; railway; semantic

1. Introduction

Robust and precise state estimation is the cornerstone of autonomous railway operation and infrastructure maintenance [1]. In Global Navigation Satellite Systems (GNSSs), denied environments such as tunnels, valleys, and urban canyons, establishing a consistent global trajectory remains a formidable challenge. While multi-sensor fusion systems based on GNSSs and Inertial Measurement Units (IMUs) are the industry standard, they suffer from drift during prolonged GNSS outages. Consequently, LiDAR-based Simultaneous Localization and Mapping (SLAM) has emerged as a promising solution to provide continuous ego-motion estimation and environmental mapping [2].
Despite the success of LiDAR SLAM in automotive [3] and robotics domains [4], directly transplanting these frameworks to railway environments presents unique and severe challenges. First, the specific geometric structure of railway corridors often leads to degeneracy. Unlike urban roads rich in distinct geometric features, railway tracks are characterized by repetitive linear structures and feature-scarce surroundings, making frame-to-frame matching prone to longitudinal drift. Second, the high operational speed of trains exacerbates point cloud sparsity. Conventional SLAM front-ends typically employ uniform voxel-grid filtering to downsample data. However, in high-speed railway scenarios, this rigid downsampling inadvertently discards thin but structurally critical features—such as overhead contact system (OCS) poles and rails—while retaining bulky but unstable vegetation, thereby compromising registration accuracy. Third, environmental noise significantly impacts robustness. Railway distinctively features a mix of highly stable static objects (rails, fences) and semi-static or dynamic interference (bushes, shrubs) [5]. Purely geometric methods, which treat all points equally during optimization, fail to distinguish between reliable landmarks and unstable clutter.
To overcome these limitations, integrating semantic information into the SLAM pipeline has become a vital trend [6]. Semantic SLAM can theoretically filter out dynamic objects and improve loop closure. However, most existing semantic approaches rely on discrete labels, ignoring the variable reliability of semantic segmentation networks and the varying structural stability of different static categories [7,8].
Motivated by these observations, this paper proposes a Semantic-Enhanced LiDAR-SLAM framework tailored for the challenging railway environment. Unlike traditional approaches that rely solely on geometric constraints or binary semantic masking, our system deeply couples semantic uncertainty with geometric attributes throughout the mapping and estimation process. We introduce a novel semantic-enhanced adaptive voxel map that utilizes eigen-analysis to partition space based on local geometric distribution rather than fixed grids. This ensures that fine-grained structures like rails are preserved, while redundant planar surfaces are compressed. Furthermore, addressing the noise issue, we propose a confidence-aware filtering strategy. Instead of blindly trusting semantic labels, we leverage the raw probability outputs from the segmentation network to adaptively weight input points, effectively suppressing vegetation noise while preserving stable features. Finally, in the back-end optimization, a category-weighted constraint is formulated, where feature associations are weighted according to the structural reliability of their semantic class, thereby ensuring a tightly coupled optimization of IMU, LiDAR, and GNSS data.
The main contributions of this work are summarized as follows:
  • We propose a tightly coupled multi-sensor fusion framework specifically designed to handle the geometric degeneracy and high-speed sparsity of railway environments.
  • We develop a Semantic-Enhanced Adaptive Voxel Map that dynamically subdivides space based on geometric eigenvalues and semantic consistency, significantly improving the descriptiveness of local features while maintaining retrieval efficiency.
  • We introduce a probabilistic filtering and category-weighted matching strategy. By incorporating segmentation confidence and semantic stability priors into the optimization cost function, the system effectively mitigates the impact of environmental noise and segmentation errors.

3. Methodology

In this section, we propose a semantic-enhanced SLAM framework designed for railway environments. As illustrated in Figure 1, the system integrates multi-source data from an IMU, LiDAR, and GNSS. The IMU measurements are first pre-integrated to provide prior state information. The point clouds are then processed by a deep learning-based semantic segmentation network, where each point is assigned a semantic label. Leveraging this semantic information, adaptive filtering is performed on the point cloud, followed by a feature matching strategy that incorporates category-based grouping and adaptive weight assignment. Finally, accurate state estimation of the railway vehicle is achieved through a joint optimization that tightly couples LiDAR odometry, inertial pre-integration, and GNSS constraints.
Figure 1. System Overview.

3.1. IMU Preintegration Factor

The IMU is widely used in the field of state estimation, capable of providing prior poses in a passive manner. However, its measurements are inevitably affected by sensor bias and stochastic noise. The angular velocity  ω ^ t  and acceleration  a ^ t  measured by the IMU at time t can be modeled as:
ω ^ t = ω t + b ω , t + n ω , t
a ^ t = R t T ( a t − g ) + b a , t + n a , t
where  ω ^ t  and  a ^ t  are defined as the raw measurements in the body frame  B , whereas  ω t  and  a t  denote the corresponding true values. The terms  b ω , t  and  b a , t  represent the gyroscope and accelerometer biases, respectively, which evolve slowly over time. The noise components  n ω , t  and  n a , t  are modeled as Gaussian white noise, with  n a , t ∼ N ( 0 , σ a 2 ) ,  n ω , t ∼ N ( 0 , σ ω 2 ) . The rotation matrix  R t ∈ S O ( 3 )  represents the orientation of the body frame  B  with respect to the world frame  W  (i.e.,  R W B t ).
The velocity, position, and orientation of the vehicles at time  t + Δ t  can be obtained by integrating the IMU measurements. It is assumed that the angular velocity and acceleration remain constant during the integration interval  Δ t .
v t + Δ t = v t + g Δ t + R t ( a ^ t − b a , t − n a , t ) Δ t
p t + Δ t = p t + v t Δ t + 1 2 g Δ t 2 + 1 2 R t ( a ^ t − b a , t − n a , t ) Δ t 2
R t + Δ t = R t exp ω ^ t − b ω , t − n ω , t Δ t
where  R t = R W B t = ( R B W t ) T  is the rotation matrix from the body frame  B  to the world frame  W .
Directly using these equations within a factor graph optimization framework is computationally inefficient. Each time the state estimate at time t is updated during optimization, all subsequent IMU measurements must be re-integrated. To circumvent this issue, we employ the IMU pre-integration technique [29]. This method compounds the IMU measurements between two consecutive keyframes, k and  k + 1 , into a single relative motion constraint that is independent of the initial state.
The pre-integrated measurements of rotation  Δ R k , velocity  Δ v k , and position  Δ p k  are computed in the local frame of keyframe k:
Δ R ^ k = R k T R k + 1
Δ v ^ k = R k T ( v k + 1 − v k − g Δ t k , k + 1 )
Δ p ^ k = R k T ( p k + 1 − p k − v k Δ t k , k + 1 − 1 2 g Δ t k , k + 1 2 )
These pre-integrated terms depend only on the IMU measurements and the bias estimates at keyframe k.
To constrain the optimization problem, we formulate an IMU factor based on the residual between the pre-integrated measurements and the relative motion predicted by the current state estimates of keyframes k and  k + 1 . The residual vector  r I k  for the measurements between these consecutive keyframes is defined as:
r I k = r Δ p r Δ v r Δ R r b a r b ω = R k T ( p k + 1 − p k − v k Δ t k , k + 1 − 1 2 g Δ t k , k + 1 2 ) − Δ p ^ k R k T ( v k + 1 − v k − g Δ t k , k + 1 ) − Δ v ^ k Log ( Δ R ^ k ) T R k T R k + 1 b a , k + 1 − b a , k b ω , k + 1 − b ω , k
The rotation residual is defined using the logarithm map  Log ( · ) , which maps an  S O ( 3 )  element to its corresponding vector in  so ( 3 ) . The bias residuals model the random walk assumption. This residual vector, weighted by its associated covariance matrix, is incorporated into the overall non-linear least-squares optimization problem as an IMU factor.

3.2. Semantic-Enhanced Adaptive Voxel Map

This paper adopts a frame-to-map registration strategy, which estimates the incremental relative pose by aligning the de-skewed and filtered current point cloud frame with a locally built point cloud map. This approach has been widely demonstrated to offer superior stability compared to frame-to-frame methods. To support efficient point cloud retrieval and matching, a voxel-based method is employed for local map management.
Conventional voxel maps typically partition the point cloud space into uniform grids with side length v. Although straightforward to implement, fixed-resolution voxels often fail to adequately represent complex geometric structures in the environment, thereby limiting the descriptive capability of local features. To address this issue, we propose a semantic-enhanced adaptive voxel map representation that improves the expressiveness of environmental structures while maintaining high retrieval efficiency. Here, geometric reliability refers to the degree of local geometric observability provided by a voxel, which is quantitatively characterized by the eigenvalue distribution of its covariance matrix. Figure 2 provides a conceptual illustration of this rail-to-ground mismatching phenomenon and its impact on point-to-plane residual construction.
Figure 2. Conceptual illustration of rail-to-ground mismatching and its impact on residual construction in railway environments. (a) Geometry-only mismatch: a query point originating from the rail surface may be incorrectly associated with a nearby ground surface when only geometry-based nearest-neighbor association is applied, due to local geometric similarity in repetitive railway scenes. (b) Wrong surface normal selection: once such mismatching occurs, the point-to-plane residual is constructed with respect to the ground surface, and the corresponding ground normal is used instead of the true rail surface normal. (c) Biased residual in optimization: the residual computed using the incorrect surface normal introduces a systematic bias in the optimization process, which continuously degrades pose estimation rather than acting as zero-mean noise. (d) Semantic-consistent association: by enforcing semantic consistency, the association is restricted within reliable rail structures, preventing rail-to-ground mismatching and enabling correct residual construction.
The proposed method proceeds as follows, as summarized in Algorithm 1. First, the input point cloud is initially segmented into voxels of side length v. For each voxel, it contains point cloud  p i ( i = 1 , … , N ) , the centroid of the points within it is computed, followed by the calculation of the covariance matrix A.
p ¯ = 1 N ∑ i = 1 N p i
A = 1 N ∑ i = 1 N ( p i − p ¯ ) ( p i − p ¯ ) T
Eigen-decomposition of A yields three eigenvalues  λ 1 , λ 2 , λ 3  and their corresponding eigenvectors. The distribution of these eigenvalues reveals the geometric structure of the points inside the voxel: in the case of a planar structure, the two larger eigenvalues are significantly greater than the smallest one; for a linear structure, the largest eigenvalue is much greater than the other two; if the points are scattered without a dominant structure, the three eigenvalues exhibit no significant difference. Figure 3 provides a schematic illustration of these three typical voxel structure cases.
Figure 3. Schematic illustration of three typical voxel structure cases used in the proposed semantic-enhanced adaptive voxel map.
Based on the above criterion, an adaptive splitting rule is applied: if the points inside a voxel exhibit a distinct linear or planar structure, the voxel is retained; otherwise, it is subdivided into eight child voxels, and the evaluation is repeated recursively. If the maximum recursion depth is reached and no dominant structure is identified, the points within that voxel are discarded, as they are considered geometrically unreliable and provide limited observability for pose estimation.
Algorithm 1: Semantic-Enhanced Adaptive Voxel Map Construction
Machines 14 00072 i001
To incorporate semantic information, semantic labels associated with each point are utilized to compute the distribution of semantic categories inside each voxel. The category with the highest proportion is assigned as the dominant semantic label, and its corresponding probability is recorded. To enhance registration reliability, a probability threshold  τ s e m  is applied: only voxels whose dominant semantic probability exceeds a set threshold are considered valid semantic units. Voxels with a uniform label distribution—indicating classification ambiguity—are likely to introduce noise during matching and are therefore excluded. During nearest-neighbor search and data association, correspondences are preferentially established between voxels sharing the same semantic type and having high probability, thereby improving matching robustness.
Upon successful subdivision, the geometric attributes of the leaf voxels are cached to accelerate the matching process. Specifically, for planar voxels, the eigenvector corresponding to the smallest eigenvalue is stored as the surface normal  n ; for linear voxels, the eigenvector corresponding to the largest eigenvalue is stored as the line direction  v . These pre-computed attributes allow for direct calculation of geometric residuals (Equations (14) and (15)) without repeated eigen-decomposition during the registration phase.

3.3. LiDAR Odometry Factors

Due to the axial ranging errors observed at both short and long distances, points that are excessively close or overly distant are removed from the LiDAR point cloud as a preprocessing step.

3.3.1. Semantic-Aware Filtering

In conventional LiDAR-based SLAM frameworks, voxel-grid filtering is widely adopted to mitigate computational burdens. However, in high-speed railway scenarios, standard voxelization treats all points equally within a grid, often discarding sparse but critical geometric features while retaining noise from volumetric vegetation. This indiscriminate downsampling compromises the signal-to-noise ratio required for robust registration. To resolve this, we propose an adaptive semantic–probabilistic sampling strategy that prioritizes structurally stable features. Let  P = { ( p i , l i , s i ) }  denote the input point cloud, where each point  p i  is associated with a semantic label  l i ∈ C  and a segmentation confidence score  s i ∈ [ 0 , 1 ] . We introduce a stability coefficient  β ( c )  for each semantic class c, which serves as a semantic filtering prior reflecting its long-term geometric consistency and localization value in railway environments. In our implementation, vegetation points are assigned a lower stability weight ( β = 0.5 ) compared to other categories ( β = 1.5 ), reflecting their lower geometric stability and weaker pose observability in railway environments (Table 1). An importance weight  w ( p i )  is formulated to integrate both semantic stability and segmentation uncertainty:
w ( p i ) = β ( l i ) · s i
Table 1. The key parameters list of the SERail-SLAM approach.
Unlike simple thresholding, we utilize this weight to guide the downsampling process. Points are filtered based on an adaptive threshold  τ , ensuring that only high-confidence measurements from stable structures are preserved:
P ′ = { p i ∈ P ∣ w ( p i ) > τ f i l t e r }
where  τ f i l t e r ∈ ( 0 , 1 )  is a tunable hyperparameter. This strategy effectively suppresses unstable measurements from dynamic objects or vegetation while preserving the sparsity integrity of critical railway infrastructure.

3.3.2. Group-Wise Matching and Adaptive Weight Assignment

The proposed adaptive voxel map stores not only geometric attributes (centroid, covariance, principal directions) but also aggregated semantic statistics at the voxel level. During map construction, all points falling into voxel  V j  contribute their semantic labels and segmentation confidences. A dominant category is then assigned to the voxel based on confidence-weighted voting, together with a voxel-level semantic reliability score. This voxel-level semantic fusion suppresses point-wise classification noise and provides a consistent representation for subsequent correspondence grouping.
Different semantic categories exhibit distinct levels of geometric stability and localization value. By keeping semantic statistics within each voxel, correspondences can be grouped by semantic category before geometric matching, enabling category-specific priors to be embedded into the optimization.
For each scan point  p k W  in the global frame, we first locate its corresponding voxel  V j  and retrieve the precomputed geometric structure. Geometric residuals are formulated following standard point-to-plane and point-to-line definitions. For planar features, the residual is
d ρ k = ( p k W − μ j ) ⊤ n j ,
where  μ j  is the voxel centroid, and  n j  is the normal vector associated with the smallest eigenvalue  λ 3  of the covariance. For edge features, the point-to-line distance is computed using the principal direction vector  v j  (corresponding to  λ 1 ):
d E k = ( p k W − μ j ) × v j .
Importantly, semantic and geometric attributes are decoupled: semantic class determines the group to which the correspondence belongs, while the geometric feature type is determined purely from PCA of the voxel geometry. This separation prevents semantic labels from overriding actual geometric evidence and ensures robust feature extraction even under occasional segmentation errors.
Semantic constraints are then applied during association. A correspondence is considered valid only if the semantic label of  p k W  matches the dominant semantic category of voxel  V j , preventing spurious associations such as rail-to-ground or pole-to-vegetation matches. For voxels with low semantic confidence, we apply a relaxed criterion to avoid over-filtering.
Finally, all correspondences are grouped by semantic category, and category-dependent weights  α c  are introduced as semantic residual weight within the optimization cost function, allowing structurally reliable categories to exert stronger influence during pose estimation while suppressing unstable or ambiguous classes. In particular, poles and pillars are assigned a higher weight ( α = 5.0 , while other categories use  α = 1.0  by default), as specified in Table 1, due to their high structural stability and strong observability, especially for mitigating longitudinal degeneracy in railway scenes. Let  α c  denote the weight assigned to semantic class c. The aggregated residual for LiDAR odometry is expressed as:
r L k = ∑ c ∈ C α c ∑ i = 1 N ε c ( d E i c ) 2 + ∑ j = 1 N ρ c ( d ρ j c ) 2 ,
where  N ε c  and  N ρ c  denote the number of edge and planar correspondences within category c.
This voxel-level semantic grouping effectively amplifies the influence of structurally stable and geometrically reliable features, while suppressing the contribution of noisy or dynamic objects. It unifies segmentation trust and semantic residual weight into a single optimization framework. As a result, the proposed semantic-aware weighting enhances registration robustness, particularly in the geometrically degenerate and visually ambiguous environments commonly encountered in high-speed railway scenarios.

3.4. GNSS Factor

Since the GNSS can provide absolute positioning information in open environments, it is commonly employed to introduce absolute constraints into SLAM systems during long-term operation. In the domain of satellite-based positioning, real-time kinematic (RTK) technology, enabled by virtual reference stations, offers highly accurate and stable localization.
To integrate GNSS measurements into the optimization framework, we define a GNSS residual that constrains the absolute position of the vehicle. Let  z k GNSS ∈ R 3  denote the GNSS observation in the world frame  W , and let  p k  represent the estimated position of the vehicle at time step k. The residual of the GNSS factor is expressed as
r G k = p k − z k GNSS
This residual formulation enforces global consistency of the trajectory by anchoring the SLAM estimates to the absolute GNSS measurements while adaptively leveraging the reliability of RTK solutions.
In situations where GNSS measurements are unavailable or deemed unreliable, such as during temporary outages or severe interference, GNSS factors are not incorporated into the estimator, and the system continues to operate in a tightly coupled LiDAR–IMU SLAM mode, which helps maintain local trajectory continuity. When GNSS measurements become available again and pass basic consistency checks, the corresponding GNSS factors can be incorporated to assist with global alignment, while the overall estimation remains stable due to the semantic-stable railway structures and LiDAR–IMU constraints.
Finally, all factors are jointly optimized in a nonlinear least-squares framework:
min X ∑ k | | r I k | | 2 + ∑ k | | r L k | | 2 + ∑ k | | r G k | | 2
where  X  represents the state variables of all keyframes. This formulation tightly couples IMU, LiDAR and GNSS information within a unified optimization framework.

4. Experiments

4.1. Experimental Setup

To validate the proposed framework, we established a customized data acquisition platform, as shown in Figure 4, equipped with a hybrid LiDAR setup (integrating Livox solid-state and mechanical spinning units) and an Xsens MTi-680G GNSS/INS (Xsens Technologies B.V., Enschede, The Netherlands) module. Rigorous microsecond-level hardware synchronization among all sensors is achieved via a u-blox EVK-M8T timing kit using Pulse Per Second (PPS) triggering. The algorithms are executed on a high-performance onboard computer (Intel i7-14700KF, NVIDIA GTX 4080S, 32 GB RAM) running Ubuntu and ROS, ensuring real-time processing capabilities. Two representative railway datasets were collected for evaluation, whose basic statistics are summarized in Table 2. Table 2 reports the duration and travel distance of each dataset, which characterize the evaluation scale, motion length, and trajectory complexity of the experiments. We conducted experiments on representative railway lines, utilizing an industrial-grade M39 GNSS/INS system to record reference data; the ground truth trajectories were subsequently generated through post-processing kinematic (PPK) analysis combined with RTK corrections. This post-processing procedure provides a continuous and globally consistent reference trajectory and is independent of real-time GNSS availability during online operation.
Figure 4. This figure illustrates the specialized railway vehicles and the sensor mounting configurations used to collect the two representative datasets. (a) The Hefei Railway Data Acquisition Vehicle. (b,c) The exterior sensor mounting configuration. (d) The Inner Mongolia Railway Data Acquisition Vehicle.
Table 2. Details of the two selected datasets.
For the confidence-aware filtering weight  β ( · )  in Equation (12), we assign a higher weight to points belonging to vegetation compared to other objects to ensure they are effectively suppressed during the filtering process. Conversely, during the LiDAR odometry phase, we assign a higher weight to poles/pillars than to other objects in the category-weighted constraint (Equation (14)) to emphasize their structural significance in the registration process and mitigate longitudinal drift. Regarding semantic segmentation, point-level predictions are generated by a SparseUNet model [30]. This model was first pre-trained on a proprietary railway point cloud semantic segmentation dataset, which comprises 20 distinct railway scenes. The segmentation network outputs predictions for seven categories: vegetation, poles/pillars, wires, support structures, rails, ground, fences, and others. During model training, we employed a cross-validation strategy where the data was split into a ratio of Training Set:Testing Set:Validation Set = 6:2:2. This allocation ensures that the testing sequences remain untouched during the training phase, thereby enhancing the consistency and relevance of the experimental results with real-world application scenarios. The main hyperparameters used in SERail-SLAM are summarized in Table 1. This table reports the key configuration settings of the proposed system and is provided to ensure reproducibility of the experimental results.

4.2. Filtering Performance Evaluation

To validate the robustness of the proposed filtering module against environmental noise, we conducted a comparative analysis using the Inner Mongolia railway dataset. As depicted in Figure 5a, this scenario is characterized by dense vegetation (bushes and shrubs) flanking the tracks. These objects are inherently unstructured and susceptible to airflow disturbances caused by high-speed trains, making them unreliable landmarks for precise registration. Figure 5 presents a qualitative comparison of different filtering strategies. First, Figure 5c shows the output of conventional Voxel Grid Filtering. Since this method downsamples data based solely on spatial distribution without semantic awareness, it retains a significant volume of vegetation noise (green points). In the subsequent optimization phase, these unstable points can generate erroneous point-to-plane residuals, leading to drift in the estimated trajectory. Second, Figure 5d illustrates the result of a Hard-Threshold Semantic Filter (direct masking based on labels). While this approach removes the majority of the vegetation, it exhibits limitations at object boundaries. Due to the limited receptive field and resolution of segmentation networks, points at the transition zones between vegetation and static structures are often misclassified. As highlighted by the red boxes, noise points that are incorrectly labeled as “static” are preserved. These “outliers” are particularly dangerous because they are treated as valid constraints in the registration. Finally, Figure 5e demonstrates the efficacy of our semantic-aware filtering. Instead of relying on a binary decision, our method leverages the raw probability output from the segmentation network. Points located at fuzzy boundaries typically possess lower classification confidence. By mapping this confidence to the filtering weight  β ( · ) , our system adaptively suppresses these ambiguous features. As a result, the proposed method yields the cleanest point cloud, effectively stripping away clutter while preserving the integrity of stable structures like rails and OCS poles. This high-quality pre-processing is crucial for minimizing false correspondences in the subsequent registration steps.
Figure 5. This figure illustrates the efficacy of the proposed semantic-aware filtering methods compared to conventional techniques. The green colored points consistently represent the point cloud categorized as vegetation (noise). (a) The camera image provides visual context of the surveyed railway corridor, characterized by dense vegetation along the trackside. (b) The raw, un-downsampled point cloud. (c) The point cloud after conventional Voxel Grid Filtering. (d) The result of simple binary filtering based on semantic labels. The red boxes indicate unfiltered noise point clouds. (e) The result of the proposed Confidence-Aware Weighted Semantic Filtering.

4.3. Mapping Performance Evaluation

As illustrated in Figure 6, the proposed semantic-enhanced adaptive voxel map provides a substantial improvement over conventional fixed-resolution voxel grids. The fixed-grid representation (Figure 6a,c) inevitably introduces coarse discretization, causing thin and elongated railway structures—such as overhead wires—to be partially truncated or ambiguously represented unless an excessively small voxel size is selected. In contrast, our adaptive strategy (Figure 6b,d) dynamically refines the voxel resolution according to local geometric complexity and semantic consistency. The close-up view demonstrates that the voxel subdivision process preserves the topology of the pole–wire junction and allocates finer voxels only where necessary. Moreover, the pre-computed eigenvectors stored within each voxel encode the principal geometric directions, enabling stronger and more discriminative constraints during subsequent registration.
Figure 6. This figure illustrates the benefits of the proposed semantic-enhanced adaptive voxel map against a conventional fixed-resolution map, focusing on the fidelity of geometric feature representation. (a) Global view of a local map constructed using a Traditional Fixed-Resolution Voxel Map. (c) A close-up view of the area indicated by the red box in (a). (b) Global view of the proposed Semantic-Enhanced Adaptive Voxel Map. (d) A close-up view of the corresponding area marked in (b).
The large-scale mapping results generated by SERail-SLAM are shown in Figure 7. The reconstructed 3D corridor exhibits high continuity and structural completeness across diverse railway environments. The inset views further highlight the system’s ability to recover complex infrastructure details. The top-left inset shows the faithful reconstruction of a building structure; the top-right inset captures the rail–ballast geometry with clear separation of functional elements; and the bottom inset reveals the delicate and sparsely distributed overhead contact system. Consequently, the generated map achieves high structural fidelity and compactness, forming a reliable foundation for downstream applications such as railway inspection, asset management, and high-definition map production.
Figure 7. This figure provides a comprehensive visualization of the 3D point cloud map constructed by the proposed SERail-SLAM framework along the test railway corridor.

4.4. Positioning Performance Evaluation

To further evaluate the robustness and accuracy of the proposed framework, Figure 8 presents a trajectory comparison on a real railway line in Hefei, where several segments fall into RTK-denied environments. For fairness, FAST-LIO2 is equipped with the same RTK-based backend used in our system. The two zoom-in regions highlight the behavior of each system during temporary RTK outages of approximately 200 m. Due to the extended loss of RTK correction, both LIO-SAM and FAST-LIO2+RTK exhibit noticeable drift. In contrast, the proposed method maintains trajectory consistency even when RTK is unavailable, owing to the integration of surrounding semantic structures as long-term constraints. The right-most plots illustrate the per-axis drift in a full no-RTK scenario. Since FAST-LIO2 relies solely on LiDAR odometry without global correction, substantial drift—particularly along the Z-axis—accumulates over long-distance motion. In comparison, our approach preserves significantly higher stability, demonstrating its strong capability for GNSS-denied railway navigation.
Figure 8. This figure shows the full 3D trajectories of the proposed method, Fast-LIO2, LIO-SAM, FAST-LIO2+rtk and the groundtruth reference. The two zoom-in subfigures highlight sections where RTK signals temporarily failed.The right-most column presents per-axis errors in a full no-RTK setting, where Fast-LIO2 suffers from significant drift, especially along the Z-axis.
Furthermore, to satisfy the stringent requirements of railway navigation for real-time state monitoring, we evaluate the system’s sampling rate and velocity estimation performance. The proposed algorithm provides full state estimates at a sampling rate of 10 Hz, synchronized with the LiDAR scan frequency. Quantitative analysis against the post-processed ground truth shows that the RMSE of the estimated speed is approximately 0.16 m/s. This high-fidelity velocity estimation, combined with the 10 Hz update rate, ensures the reliability of the system for critical tasks such as train braking distance prediction.
A quantitative comparison of positioning accuracy is provided in Table 3, which reports the RMSE and maximum positioning error for FAST-LIO2, FAST-LIO2+RTK, LIO-SAM, and the proposed method. The numerical results in Table 3 consistently support the qualitative observations in Figure 8, confirming the superior accuracy and robustness of our approach.
Table 3. SLAM performance comparison on the dataset (RMSE (m)/MAX (m)).

5. Conclusions

In this paper, we propose SERail-SLAM, a Semantic-Enhanced LiDAR SLAM framework specifically tailored for high-precision mapping of railway environments. The core contribution of this work lies in demonstrating that the strategic integration of environmental semantics can fundamentally improve localization robustness in structurally repetitive and GNSS-challenged scenarios commonly encountered along rail corridors.
By explicitly modeling the structural stability and reliability of different semantic categories, semantic information is incorporated throughout the SLAM pipeline. This enables the development of a confidence-aware filtering mechanism to suppress dynamic and ambiguous clutter, as well as an adaptive voxel map structure that preserves the geometric fidelity of critical railway infrastructure such as rails and catenary-related components.
While the experimental validation in this work focuses on railway environments dominated by relatively flat terrain, it is worth noting that more complex topographic conditions—such as long tunnels, deep valleys, and mountainous corridors—may introduce additional challenges due to reduced geometric diversity and prolonged structurally constrained motion. Addressing such conditions will be an important aspect of future research. Looking ahead, future research will focus on two key directions: developing lightweight, structure-preserving semantic maps for efficient storage and leveraging semantic information to enable robust visual and LiDAR-based semantic relocalization capabilities.

Author Contributions

Conceptualization, W.S. and S.Z. (Shiqi Zheng); Methodology, S.Z. (Shiqi Zheng) and X.D.; Software, S.Z. (Shiqi Zheng), X.D., X.W., Y.W. and Z.W.; Validation, Y.W.; Formal analysis, Y.W.; Investigation, Z.W.; Resources, W.S. and Y.L.; Data curation, X.W. and W.L.; Writing—original draft, S.Z. (Shiqi Zheng); Writing—review & editing, S.Z. (Shiqi Zheng), X.W. and S.Z. (Shujie Zhou); Visualization, S.Z. (Shujie Zhou) and W.L. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded in part by National Key Research and Development Program of China grant number 2023YFB3907301; in part by The National Natural Science Foundation of China grant number U23A20280; in part by Major Scientific and Technological Projects in Hubei Province grant number 2025BAA007 and in part by Major Program (JD) of Hubei Province grant number 2023BAA026.

Data Availability Statement

The datasets presented in this article are not readily available because the railway data used in this study contains confidential operational information. Requests to access the datasets should be directed to the corresponding author and are subject to institutional approval.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Li, K.; Li, M.; Hanebeck, U.D. Towards High-Performance Solid-State-LiDAR-Inertial Odometry and Mapping. IEEE Robot. Autom. Lett. 2021, 6, 5167–5174. [Google Scholar] [CrossRef] [Scilit]
  2. Pan, Y.; Xiao, P.; He, Y.; Shao, Z.; Li, Z. MULLS: Versatile LiDAR SLAM via Multi-Metric Linear Least Square. In Proceedings of the 2021 IEEE International Conference on Robotics and Automation (ICRA), Xi’an, China, 30 May–5 June 2021; pp. 11633–11640. [Google Scholar] [CrossRef] [Scilit]
  3. Jiao, J.; Ye, H.; Zhu, Y.; Liu, M. Robust Odometry and Mapping for Multi-LiDAR Systems with Online Extrinsic Calibration. IEEE Trans. Robot. 2022, 38, 351–371. [Google Scholar] [CrossRef] [Scilit]
  4. Camurri, M.; Ramezani, M.; Nobili, S.; Fallon, M. Pronto: A Multi-Sensor State Estimator for Legged Robots in Real-World Scenarios. Front. Robot. AI 2020, 7, 68. [Google Scholar] [CrossRef] [Scilit]
  5. Wang, Y.; Song, W.; Zhang, Y.; Huang, F.; Tu, Z.; Li, R.; Zhang, S.; Lou, Y. Four years of multimodal odometry and mapping on the rail vehicles. J. Field Robot. 2023, 41, 227–257. [Google Scholar] [CrossRef] [Scilit]
  6. Li, L.; Kong, X.; Zhao, X.; Li, W.; Wen, F.; Zhang, H.; Liu, Y. SA-LOAM: Semantic-Aided LiDAR SLAM with Loop Closure. In Proceedings of the 2021 IEEE International Conference on Robotics and Automation (ICRA), Xi’an, China, 30 May–5 June 2021; pp. 7627–7634. [Google Scholar] [CrossRef] [Scilit]
  7. Li, L.; Kong, X.; Zhao, X.; Huang, T.; Li, W.; Wen, F.; Zhang, H.; Liu, Y. SSC: Semantic Scan Context for Large-Scale Place Recognition. In Proceedings of the 2021 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), Prague, Czech Republic, 27 September–1 October 2021; pp. 2092–2099. [Google Scholar] [CrossRef] [Scilit]
  8. Chen, X.; Milioto, A.; Palazzolo, E.; Giguère, P.; Behley, J.; Stachniss, C. SuMa++: Efficient LiDAR-based Semantic SLAM. In Proceedings of the 2019 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), Macau, China, 3–8 November 2019; pp. 4530–4537. [Google Scholar] [CrossRef] [Scilit]
  9. Biagi, M.; Carnevali, L.; Paolieri, M.; Vicario, E. Performability evaluation of the ERTMS/ETCS—Level 3. Transp. Res. Part C Emerg. Technol. 2017, 82, 314–336. [Google Scholar] [CrossRef] [Scilit]
  10. Deng, Z.; Song, H.; Huang, H.; Li, Y.; Dong, H. Multi-sensor based Train Localization and Data Fusion in Autonomous Train Control System. In Proceedings of the 2020 Chinese Automation Congress (CAC), Shanghai, China, 6–8 November 2020; pp. 5702–5707. [Google Scholar] [CrossRef] [Scilit]
  11. Beugin, J.; Marais, J. Simulation-Based Evaluation of Dependability and Safety Properties of Satellite Technologies for Railway Localization. Transp. Res. Part C Emerg. Technol. 2012, 22, 42–57. [Google Scholar] [CrossRef] [Scilit]
  12. Lu, D.; Schnieder, E. Performance Evaluation of GNSS for Train Localization. IEEE Trans. Intell. Transp. Syst. 2015, 16, 1054–1059. [Google Scholar] [CrossRef] [Scilit]
  13. Reimer, C.; Müller, F.J.; Hinüber, E.L.V. INS/GNSS/odometer data fusion in railway applications. In Proceedings of the 2016 DGON Intertial Sensors and Systems (ISS), Karlsruhe, Germany, 20–21 September 2016; pp. 1–14. [Google Scholar] [CrossRef] [Scilit]
  14. Sánchez-Rodríguez, A.; Soilán, M.; Cabaleiro, M.; Arias, P. Automated Inspection of Railway Tunnels’ Power Line Using LiDAR Point Clouds. Remote Sens. 2019, 11, 2567. [Google Scholar] [CrossRef] [Scilit]
  15. Guo, F.; Qian, Y.; Rizos, D.C.; Suo, Z.; Chen, X. Automatic Rail Surface Defects Inspection Based on Mask R-CNN. Transp. Res. Rec. 2021, 2675, 655–668. [Google Scholar]
  16. Wang, Y.; Song, W.; Lou, Y.; Huang, F.; Tu, Z.; Zhang, S. Simultaneous Localization of Rail Vehicles and Mapping of Environment with Multiple LiDARs. IEEE Robot. Autom. Lett. 2022, 7, 8186–8193. [Google Scholar] [CrossRef] [Scilit]
  17. Wang, Y.; Lou, Y.; Song, W.; Tu, Z.; Wang, Y.; Zhang, S. Simultaneous Localization of Rail Vehicles and Mapping of Surroundings with LiDAR-Inertial-GNSS Integration. IEEE Sens. J. 2022, 22, 14501–14512. [Google Scholar] [CrossRef] [Scilit]
  18. Dai, X.; Lou, Y.; Weiwei, S.; Tang, W.; Wang, Y. LiDAR-Inertial Integration for Rail Vehicle Localization and Mapping in Tunnels. IEEE Sens. J. 2023, 23, 17426–17438. [Google Scholar] [CrossRef] [Scilit]
  19. Zhang, J.; Singh, S. LOAM: Lidar Odometry and Mapping in Real-time. Robot. Sci. Syst. 2014, 2, 1–9. [Google Scholar]
  20. Shan, T.; Englot, B. LeGO-LOAM: Lightweight and Ground-Optimized Lidar Odometry and Mapping on Variable Terrain. In Proceedings of the 2018 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), Madrid, Spain, 1–5 October 2018; pp. 4758–4765. [Google Scholar] [CrossRef] [Scilit]
  21. Lin, J.; Zhang, F. Loam livox: A fast, robust, high-precision LiDAR odometry and mapping package for LiDARs of small FoV. In Proceedings of the 2020 IEEE International Conference on Robotics and Automation (ICRA), Paris, France, 31 May–31 August 2020; pp. 3126–3131. [Google Scholar] [CrossRef] [Scilit]
  22. Shan, T.; Englot, B.; Meyers, D.; Wang, W.; Ratti, C.; Rus, D. LIO-SAM: Tightly-coupled Lidar Inertial Odometry via Smoothing and Mapping. In Proceedings of the 2020 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), Las Vegas, NV, USA, 25–29 October 2020; pp. 5135–5142. [Google Scholar] [CrossRef] [Scilit]
  23. Wang, H.; Wang, C.; Chen, C.L.; Xie, L. F-LOAM: Fast LiDAR Odometry and Mapping. In Proceedings of the 2021 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), Prague, Czech Republic, 27 September–1 October 2021; pp. 4390–4396. [Google Scholar] [CrossRef] [Scilit]
  24. Bai, C.; Xiao, T.; Chen, Y.; Wang, H.; Zhang, F.; Gao, X. Faster-LIO: Lightweight Tightly Coupled Lidar-Inertial Odometry Using Parallel Sparse Incremental Voxels. IEEE Robot. Autom. Lett. 2022, 7, 4861–4868. [Google Scholar] [CrossRef] [Scilit]
  25. Xu, W.; Zhang, F. FAST-LIO: A Fast, Robust LiDAR-Inertial Odometry Package by Tightly-Coupled Iterated Kalman Filter. IEEE Robot. Autom. Lett. 2021, 6, 3317–3324. [Google Scholar] [CrossRef] [Scilit]
  26. Xu, W.; Cai, Y.; He, D.; Lin, J.; Zhang, F. FAST-LIO2: Fast Direct LiDAR-Inertial Odometry. IEEE Trans. Robot. 2022, 38, 2053–2073. [Google Scholar] [CrossRef] [Scilit]
  27. Yuan, C.; Xu, W.; Liu, X.; Hong, X.; Zhang, F. Efficient and Probabilistic Adaptive Voxel Mapping for Accurate Online LiDAR Odometry. IEEE Robot. Autom. Lett. 2022, 7, 8518–8525. [Google Scholar] [CrossRef] [Scilit]
  28. Wu, C.; You, Y.; Yuan, Y.; Kong, X.; Zhang, Y.; Li, Q.; Zhao, K. VoxelMap++: Mergeable Voxel Mapping Method for Online LiDAR(-Inertial) Odometry. IEEE Robot. Autom. Lett. 2024, 9, 427–434. [Google Scholar] [CrossRef] [Scilit]
  29. Li, Y.; Trinh, H.; Haas, N.; Otto, C.; Pankanti, S. Rail Component Detection, Optimization, and Assessment for Automatic Rail Track Inspection. IEEE Trans. Intell. Transp. Syst. 2014, 15, 760–770. [Google Scholar] [CrossRef] [Scilit]
  30. Graham, B.; Engelcke, M.; Maaten, L.v.d. 3D Semantic Segmentation with Submanifold Sparse Convolutional Networks. In Proceedings of the 2018 IEEE/CVF Conference on Computer Vision and Pattern Recognition, Salt Lake City, UT, USA, 18–23 June 2018; pp. 9224–9232. [Google Scholar] [CrossRef] [Scilit]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.