iconOpen Access

ARTICLE

Enhancement of the Total Least Squares Method for Feature Extraction in 2D LiDAR Mapped Environments

Natalia Prieto-Fernández1, Martín Bayón-Gutiérrez1,*, Sergio Fernández-Blanco1, Álvaro Fernández-Blanco1, Francisco Carro-De-Lorenzo2, José Alberto Benítez-Andrades1

1 Department of Electrical, Systems and Automatics Engineering, Universidad de León, León, Spain
2 TRESCA Ingeniería S.A., León, Spain

* Corresponding Author: Martín Bayón-Gutiérrez. Email: email

(This article belongs to the Special Issue: Environment Modeling for Applications of Mobile Robots)

Computer Modeling in Engineering & Sciences 2026, 147(2), 35 https://doi.org/10.32604/cmes.2026.080540

Abstract

Feature-based Simultaneous Localization and Mapping (SLAM) using 2D Light Detection and Ranging (LiDAR) in structured indoor environments commonly relies on the extraction of straight segments and corners from raw scan data. The quality of these landmarks depends not only on the fitting algorithm, but also on how uncertainty is modeled and propagated from line estimates to derived corner features. Although the magnitude of LiDAR uncertainty has been widely studied, the influence of line parameterization and geometric conditioning on uncertainty propagation has received less attention. In particular, the scale ambiguity inherent to implicit line representations can degrade numerical conditioning and affect the stability of the propagated covariance estimates. This paper proposes a novel Weighted Conformal Total Least Squares (WCTLS) formulation for line extraction from 2D LiDAR data. Unlike conventional approaches, the proposed method enforces a geometrical normalization that removes scale ambiguity and improves the conditioning of the estimation problem. The method is compared with Unweighted Total Least Squares (UTLS) and Weighted Total Least Squares (WTLS) using real indoor datasets and repeated scans acquired from fixed sensor positions. The results show that all three formulations provide equivalent geometric corner locations, whereas the proposed WCTLS method consistently reduces the propagated uncertainty of the estimated corner coordinates. In addition, repeatability analysis over 100 scans per environment shows that WCTLS yields lower median corner ellipse areas and reduced dispersion across scans, without increasing computational complexity.

Keywords

Feature extraction; geometric primitives; light detection and ranging (LiDAR) mapping; total least squares (TLS)

1  Introduction

Simultaneous Localization and Mapping (SLAM) techniques have become a fundamental research area in autonomous robotics. They enable robots and vehicles to move autonomously in unknown environments, while also building a detailed map of their surroundings in real time. Its field of application spans beyond robotics. It is common to employ SLAM techniques in areas ranging from autonomous driving [13] and augmented reality systems [4] to remote hostile environment exploration [5]. For these purposes, the system must be equipped with appropriate sensors. The most common choices are GNSS (Global Navigation Satellite System), inertial navigation systems, cameras, RADAR (Radio Detection and Ranging), and LiDAR (Light Detection and Ranging). Sensors are selected according to the environmental characteristics to be mapped. In GNSS-denied environments where the satellite signal is lost, LiDAR sensors are a suitable alternative. They generate a two-dimensional representation of the environment from which to accurately estimate the position and orientation of the robotic element in real time. Inertial sensors, which accumulate drift, and cameras, conditioned by visibility, are typically less efficient options [6].

The ability of these sensors to provide accurate and detailed data in real time has led to their use in numerous robotic platforms [68]. The rangefinder that equips the LiDAR sensor emits infrared laser signals that are reflected by the surroundings. Its receiver picks up these reflected waves, and its processor estimates the distance of the target from the sensor [3] by measuring the time-of-flight (TOF) of the signal. Additionally, an encoder provides angle measurement for each observed target. The sensor delivers a raw modulus-phase polar representation of the environment profile, which is processed into a map. LiDAR sensors capture information at high resolution. This contributes significantly to the quality of the generated maps, which is essential in applications that demand a detailed representation of the explored spaces. Recent research, such as [9], Zou et al. [10], and Kim et al. [11], has addressed issues related to the effective integration of LiDAR sensors into SLAM algorithms in order to improve the robustness and accuracy of positioning.

Despite its advantages, processing and storing large volumes of LiDAR data present challenges, especially in terms of computational resources. There are two main approaches regarding the transformation of raw data into usable maps: scan matching or feature extraction [12]. The first option revolves around the comparison of point clouds to complete the profile of the environment, with ICP (Iterative Closest Point) the most commonly used algorithm. These methods are typically overwhelmed by the computational strain as point clouds become larger [13]. In contrast, feature extraction methods extract the geometric features defining the environment, thus reducing the volume of data to be processed during subsequent stages. Such approaches significantly mitigate processing burdens within structured environments, where feature variability is reduced to straight segments, and their intersections [14].

Feature extraction techniques eventually yield a limited number of representative points on the map, which then serve as references for positioning. These points are necessarily obtained with associated estimation uncertainty, which is typically represented through covariance matrices. These covariance matrices are subsequently propagated during the estimation of successive robot poses along a trajectory and to new references generated in successive remapping steps. The estimation of covariance matrices associated with geometric features derived from LiDAR measurement standard deviations has been addressed by several authors [1518], and their propagation to segment intersections has been addressed in [1719]. Methodologies employed significantly condition the final results.

In this article, we propose a framework for estimating lines and corners as well as their uncertainties, which we have called Weighted Conformal Total Least Squares (WCTLS), inspired by the formulation in [20], but extended to explicitly incorporate measurement weighting and geometric normalization. The proposed approach removes scale ambiguity and improves the conditioning of the estimation problem. A comparative evaluation against the classic formulations of Unweighted Total Least Squares (UTLS) and Weighted Total Least Squares (WTLS) demonstrates that WCTLS yields lower corner uncertainty. These results show that the choice of geometric parameterization impacts the propagation of uncertainty and the reliability of landmarks in LiDAR-based SLAM.

2  Related Work

Feature extraction methods perform two separate steps. In a first iteration, raw data is segmented into separate geometric features. Afterwards, the parameters that define each of them are characterized.

2.1 Feature Detection Algorithms

A geometric feature, also known as a geometric primitive, is a set of measured neighbouring points with common properties, such as orientation or density, that identify regions such as walls or flat surfaces. The most common criterion to define these sets is their belonging to the same straight section. This refinement process performed on raw data is known as segmentation [14]. Nguyen et al. [21] collect the classical straight section extraction algorithms: Split-and-Merge [22] based on the detection of new line segments in those points whose distance to the straight line constituted by all of them exceeds a certain threshold, Hough Transform [23], Line-Regression [15], Random Sample Consensus (RANSAC) [24] and Expectation-Maximitation (EM) [25].

Other algorithms for line extraction have been described by Siadat et al. [20]. Iterative End Point Fit (IEPF) [26], a variant of Split-and-Merge where the line is constructed from the first and the last point. Successive Edge Following (SEF) [20] focuses on determining whether the difference between the distance from one point and the distance to the next exceeds a certain threshold. Line Tracking (LT) [20] uses the distance from the point to the segment constituted by the previous points as a segmentation parameter.

These algorithms have been widely used in the mapping process from 2D LiDAR data. The works of Nguyen et al. [21], Borges and Aldon [27], Peter et al. [28], or Prieto-Fernández et al. [17] are examples of research conducted using them as a basis.

Recent advances in LiDAR perception have also explored semantic segmentation of point clouds to identify structural elements of the environment. For example, Li et al. [29] use semantic segmentation to isolate building surfaces for map-based localization, while Deng et al. [30] propose a semantic enhancement network to improve object recognition in LiDAR data under challenging conditions. Although these approaches focus on high-level semantic understanding, they further highlight the importance of reliable feature detection and segmentation in LiDAR-based perception systems.

2.2 Feature Parameterization Algorithms

Once the environment has been segmented, the geometric features that define each segment are extracted along with their associated covariance matrices. This way, a large volume of data is condensed into a reduced number of parameters. The computational burden in subsequent processes is thus significantly reduced [31].

One of the most common methods for feature extraction is line detection, which is considered to be one of the simplest geometric primitives. Using line fitting algorithms, it is possible to identify linear segments in the LiDAR point cloud. This approach is especially useful when linear features are predominant, as happens in indoor environments. Pieces of research such as those conducted by Prieto-Fernández et al. [17], Arras and Siegwart [15], Siadat et al. [20] or Vandorpe et al. [16] contain effective methods for the characterization of straight sections. Line extraction has been used in mapping processes such as those performed by Vandorpe et al. [16], An et al. [32], Pfister et al. [33], or Garulli et al. [34]. Other key points, such as curved sections, have been in the research of Pedraza et al. [35] or Nunez et al. [36], among others. Curve fitting techniques allow algorithms to recognize curvilinear patterns in the point cloud, thus identifying elements such as rounded corners or curved edges.

In this paper, we are particularly concerned with corners. We define a corner as the intersection of line segments. The uncertainty of these geometric features determines overall map quality. This is affected by the accuracy of the data provided by the LiDAR sensor, as well as the effectiveness of the processing algorithms. To tackle the latter, we propose a model for the evaluation of the uncertainty of the representative map points based on the uncertainty levels provided by the LIDAR sensor. For comparison purposes, we use a classical model, presented in [20].

The methodology proposed in this paper extends the approach presented in [17] by reformulating the line characterization in the inverse complex domain within a Weighted Conformal Total Least Squares framework. In the Weighted Conformal LiDAR-Mapping (WCLM) approach [17], straight lines are represented through the coordinates of a generating point Q in the inverted plane obtained by conformal inversion, and the estimation problem is formulated in terms of these coordinates. A related approach was later proposed in [18], where line fitting is performed using a Conditional Weighted Linear Fitting (CWLF) formulation. In that method, the regression model is conditioned on the accuracy of one coordinate axis, leading to an asymmetric estimation framework. In contrast to classical TLS-based line parameterizations, where the implicit model (a,b,c) is defined up to an arbitrary scale factor, the WCTLS formulation proposed in this work directly estimates the parameters of the implicit line equation while exploiting the geometric relationship with the characteristic point Q. By introducing a geometrically motivated normalization derived from the conformal representation, the scale ambiguity of the implicit model is removed. As a result, the estimation problem can be expressed within a total least squares framework with improved numerical conditioning and more stable covariance propagation, particularly during corner estimation.

3  Methodology

This section describes the methodology adopted for extracting straight-line segments and corner features from 2D LiDAR data, together with their associated covariance matrices. The proposed framework operates on the implicit representation of lines, allowing for a compact geometric description and direct propagation of covariance matrices. Starting from raw LiDAR points, straight segments are first estimated using Total Least Squares-based formulations. These segments are represented in implicit form and subsequently intersected to obtain corner features. The covariance matrix associated with line parameters is propagated to the corner estimates, allowing the reliability of the extracted landmarks to be quantified.

Within this framework, three TLS-based estimation strategies are considered. The first corresponds to the classical formulation by Siadat et al. [20]. The second extends this approach by incorporating range-dependent weighting, as justified in [17]. The third method is the Weighted Conformal Total Least Squares formulation proposed in this work, which introduces a geometric constraint to improve the conditioning of the estimation problem.

For clarity, the overall processing pipeline of the proposed method is summarized in Algorithm 1:

images

3.1 Unweighted Total Least Squares (UTLS)

As a baseline, we adopt the classical Unweighted Total Least Squares formulation for line fitting, as described by Siadat et al. [20]. Given a set of 2D points (xi,yi) extracted from the mapped environment, a straight segment is represented using the implicit line equation

ax+by+c=0(1)

where the estimators of the parameters a, b and c are

a=inxiinyi2inyiinxiyi(2)

b=inyiinxi2inxiinxiyi(3)

c=(inxiyi)2inxi2inyi2(4)

Geometrically, the parameters a, b, and c define the straight line containing the detected segment in implicit form. The pair (a,b) determines the direction of the normal vector to the line, while the parameter c specifies the perpendicular distance of the line from the origin when the normal vector is normalized. Therefore, estimating these parameters corresponds to finding the straight line that best represents the set of LiDAR points belonging to the segment.

Beyond parameter estimation, quantifying the covariance matrix of the fitted line is necessary to assess the reliability of subsequent geometric features, such as corners. Assuming (σρ,σθ) are the LiDAR measurement standard deviations, the covariance matrix of the line parameters CU can be obtained through first-order uncertainty propagation

CU=[VaCabCacCabVbCbcCacCbcVc]=JU[σρ2CρθCρθσθ2]JUT(5)

where the Jacobian matrix of line parameters w.r.t. (ρi,θi) is JU and the covariance matrix Cρθ is null.

CU=σρ2i[R12R1R2R1R3R2R1R22R2R3R3R1R3R2R32]+σθ2i[S12S1S2S1S3S2S1S22S2S3S3S1S3S2S32](6)

The expressions we have obtained for these terms are

R1=Nρi(xiY2¯+2yi2X¯yiXY¯2xiyiY¯)(7a)

R2=Nρi(yiX2¯+2xi2Y¯xiXY¯2xiyiX¯)(7b)

R3=2Nρi(2xiyiXY¯xi2Y2¯yi2X2¯)(7c)

S1=N(yiY2¯+2xiyiX¯xiXY¯(xi2yi2)Y¯)(7d)

S2=N(xiX2¯2xiyiY¯+yiXY¯(xi2yi2)X¯)(7e)

S3=2N[(xi2yi2)XY¯+xiyi(Y2¯X2¯)](7f)

where N is the total number of points.

3.2 Weighted Total Least Squares (WTLS)

The UTLS formulation assumes homoscedastic measurements, which is not consistent with the noise characteristics of 2D LiDAR sensors. In actual measurements, LiDAR uncertainty is range-dependent and anisotropic, with variance increasing as a function of the measured distance. This heteroscedastic behaviour is reflected in a weighted formulation following [17].

Each observation is assigned a weighting factor

ωi=1(σρρiσθ)2,(8)

which corresponds to the inverse of the measurement variance derived from the probabilistic model of LiDAR measurements in polar coordinates. Assuming independent Gaussian uncertainties in range ρ (measured by the LiDAR sensor) and angle θ (provided by the internal encoder), the resulting measurement distribution can be modeled as a bivariate Gaussian distribution with a diagonal covariance matrix. The weighting factor corresponds to the inverse of the determinant of this covariance matrix, which represents the dispersion of the measurement distribution [17]. This formulation is equivalent to the first-order propagation of polar measurement uncertainty through the polar-to-Cartesian coordinate transformation. This weighting gives lower influence to distant or noisier measurements and improves the statistical consistency of the estimation.

The weighted implicit line model becomes

awx+bwy+cw=0,(9)

where the parameters (aw,bw,cw) are obtained by solving a Weighted Total Least Squares problem

aw=inωixiinωiyi2inωiyiinωixiyi(10)

bw=inωiyiinωixi2inωixiinωixiyi(11)

cw=(inωixiyi)2inωixi2inωiyi2(12)

As in the UTLS case, the covariance matrix is propagated to quantify the reliability of the estimated line parameters. The covariance matrix of the weighted parameters CW is obtained as

CW=[VawCawbwCawcwCawbwVbwCbwcwCawcwCbwcwVcw]=JW[σρ2CρθCρθσθ2]JWT(13)

where JW is the Jacobian matrix of line parameters C(aw,bw,cw) w.r.t. (ρi,θi).

CW=σρ2i[T12T1T2T1T3T2T1T22T2T3T3T1T3T2T32]+σθ2i[U12U1U2U1U3U2U1U22U2U3U3U1U3U2U32](14)

For these terms, we have obtained the following expressions, where the average values are weighted.

T1=ωiωiρi(xiY2¯+yiXY¯)(15a)

T2=ωiωiρi(yiX2¯+xiXY¯)(15b)

T3=0(15c)

U1=ωiωi(yiY2¯+2xiyiX¯xiXY¯(xi2yi2)Y¯)(15d)

U2=ωiωi(xiX2¯2xiyiY¯+yiXY¯(xi2yi2)X¯)(15e)

U3=2ωiωi[(xi2yi2)XY¯+xiyi(Y2¯X2¯)](15f)

Note that, since ωi1/ρi2 and xi,yiρi, the products ωixi2, ωiyi2, and ωixiyi become independent of ρi. Therefore, cw/ρi=0, which explains why T3=0 in Eq. (15c).

Compared to UTLS, the weighted formulation better reflects the statistical properties of LiDAR measurements. However, the implicit parameterization still retains a scale ambiguity that can affect the conditioning of the estimation problem, as discussed in the following subsection.

3.3 Weighted Conformal Total Least Squares (WCTLS)

The implicit line parameterization used in UTLS and WTLS exhibits an inherent scale ambiguity, since multiplying (a,b,c) by any non-zero scalar represents the same geometric line. This ambiguity can degrade the numerical conditioning of the estimation and affect uncertainty propagation. To address this limitation, the proposed Weighted Conformal Total Least Squares formulation introduces a geometric normalization derived from the inverse complex representation of the line.

The WCTLS formulation builds upon the inverse complex representation of a line derived from the characteristic point Q(xQ,yQ), as introduced in [17]. In this representation, the line passing through the segment can be expressed as

kxQx+kyQy+k=0(16)

where k is an arbitrary scale factor. Instead of leaving this factor undetermined, we impose as a restriction that the orthogonal vector to the straight line containing the segment is unitary. This removes the scale ambiguity and leads to a well-defined geometric parameterization. The normalization factor is therefore chosen as

k2=1xQ2+yQ2(17)

Considering k as positive, the normalized line equation becomes

a˘x+b˘y+c˘=0(18)

where a˘ and b˘ represent the versors (cosine and sine, respectively) of the orthonormal vector, i.e., cosine and sine of the angle that the line segment forms with respect to the OX axis, and c˘ corresponds to the distance between the straight line containing the segment and the origin of coordinates.

a˘=xQxQ2+yQ2(19)

b˘=yQxQ2+yQ2(20)

c˘=1xQ2+yQ2(21)

This parameterization decouples orientation and distance, leading to improved conditioning of the estimation problem and more stable uncertainty propagation.

Following the formulation in WCLM [17], the covariance matrix CWC of the normalized line parameters is obtained from the covariance matrix CQ of point Q through first-order uncertainty propagation

CWC=JWCCQJWCT(22)

where JWC is defined by

JWC=[a˘xQa˘yQb˘xQb˘yQc˘xQc˘yQ]=1(xQ2+yQ2)3/2[yQ2xQyQxQyQxQ2xQyQ](23)

3.4 Corner Estimation

Once straight segments have been estimated, corner features are obtained from the intersection of adjacent lines. Corners constitute salient geometric landmarks in structured environments. The previous three methods define the line containing each segment implicitly from three parameters, obtained by variants of Total Least Squares. The corners of the profile are extracted from these parameters by intersecting adjacent line segments. The procedure followed is the one suggested by [17], using [20] as the basis for straight section characterization.

The corner coordinates (xc,yc) are defined as

xc=bξcξ+1bξ+1cξaξbξ+1aξ+1bξ(24)

yc=aξ+1cξaξcξ+1aξbξ+1aξ+1bξ(25)

where the ξ-th terms correspond to the line parameters containing the first segment, while the ξ+1-th terms refer to the line parameters containing the second segment that forms the corner. Consequently, corner covariance matrices are obtained by propagating the covariance matrices of the parameters corresponding to the involved segments, collected in matrices CU,CW and CWC as per the described methodology. The covariance propagation, therefore, quantifies how the uncertainty of the line estimates is transferred to the corner coordinates, providing a measure of the reliability of the detected feature.

4  Results and Discussion

Analysis and comparison of the Total Least Squares methods discussed in the previous section was performed on data captured by SLAMTEC’s RPLIDAR S1 sensor. It is a two-dimensional sensor with a range of 40 m and a Field-of-View of 360°. According to the manufacturer, its depth accuracy is 5 cm while its angular resolution is 0.391° [37]. This information has been used in the uncertainty as input for the uncertainty propagation algorithms.

The sensor was operated in a stationary configuration and placed on existing furniture within the environment. In environment A, the sensor was positioned at an approximate height of 1 m above the floor, while in environment B, the height was approximately 1.5 m. In both cases, the sensor remained fixed during the acquisition process. For each environment, 100 consecutive LiDAR scans were acquired from the same position using the standard configuration of the RPLIDAR S1 sensor, operating at a scan frequency of 10 Hz.

The experimental evaluation of the UTLS, WTLS, and WCTLS methods has been conducted in two structured environments, which we have identified as environment A and environment B, as shown in Fig. 1. Environment A, characterized by small dimensions, is approximately 4.5 m long and 2.5 m wide. On the contrary, environment B presents larger dimensions, about 18 m long by 9 m wide. Environment A corresponds to a structured indoor domestic space (room-like scenario) where the dominant geometric elements are walls, columns, and a wardrobe. These elements generate several planar surfaces and orthogonal intersections that produce the line segments and corner features used in the experiments. Environment B corresponds to a laboratory mainly composed of cabinets, columns, and partition panels. This configuration creates multiple parallel walls and partial occlusions typical of indoor workspaces, leading to the set of detectable line segments and corner intersections.

images

Figure 1: The datasets used in the experiments have been acquired from the RPLiDAR sensor. The mapped profile points are shown in black while the origin of coordinates corresponds to the position of the sensor (red dot) within the mapped environment. (a) Environment A. (b) Environment B.

The segmentation of raw data has been performed using the Iterative End Point Fit methodology. A threshold distance of 40 mm has been set for the IEPF algorithm. This value corresponds to an intermediate operating point that yields a sufficient number of geometric features to represent the environment while avoiding over-segmentation of the LiDAR scan. A sensitivity analysis over multiple LiDAR scans showed that increasing the threshold reduces the number of detected corners as expected, while the propagated corner uncertainty and the relative performance of UTLS, WTLS, and WCTLS remain consistent across the tested range.

To facilitate the geometric interpretation of the results, a representative scan from each environment is first analyzed in detail. This representative-scan analysis is used to illustrate the extracted line segments, corner locations, and associated propagated covariance ellipses. Subsequently, the statistical consistency of the three methods is assessed over the full set of 100 repeated scans acquired in each environment.

The scans yielded by the sensor show a section of both environments in polar coordinates. The origin of coordinates is defined by the sensor position. Environment A is defined by 935 points, which are condensed to 21 segments and 18 corners. Environment B is defined by 36 straight segments and 23 corners, extracted from the 887 points provided by the laser rangefinder. In Fig. 2, both locations are shown with the corners numbered clockwise, since this is the rotational direction of the laser rangefinder.

images

Figure 2: The black triangles represent the corners extracted from the intersection of the environments’ straight sections. Environment A has 18 corners while environment B is characterized by 23 corners. (a) Environment A. (b) Environment B.

Tables 1 and 2 show the standard deviations of the estimated corner coordinates obtained by UTLS, WTLS, and the proposed WCTLS formulation for a representative scan in environments A and B, respectively. For both environments, UTLS and WTLS yield nearly identical standard deviation values for all corners. Differences between both methods remain below a few percent and do not alter the overall magnitude of the uncertainty, confirming that the introduction of measurement weighting alone does not significantly improve the reliability of the extracted corner features.

images

images

In contrast, the proposed WCTLS formulation reduces the standard deviations of the corner coordinates. In environment A (Table 1), the standard deviations σxc and σyc obtained with WCTLS are typically reduced by factors ranging from approximately 3 to 6 with respect to UTLS and WTLS. For instance, corner 1 exhibits a reduction from (42.02,35.08)mm with UTLS to (13.43,10.43)mm with WCTLS, while corner 18 decreases from (156.12,174.29)mm to (59.12,66.36)mm. Similar reductions are observed across the remaining corners, including those associated with comparatively large coordinate standard deviations.

A comparable trend is observed in environment B (Table 2), which presents a more challenging geometric configuration with larger distances and several partial occlusions. While UTLS and WTLS again yield virtually identical results, WCTLS achieves a systematic reduction in the standard deviations of the corner coordinates. Typical reductions range between factors of 2 and 4, depending on the local corner geometry. These results indicate that the improvement introduced by WCTLS is consistent across different indoor environments and not restricted to a particular spatial configuration.

To provide an intuitive visualization of the uncertainty associated with the corner estimates, Fig. 3 shows the covariance ellipses obtained for a scan in both experimental environments. The ellipses represent the propagated covariance of the estimated corner coordinates and are displayed with an expansion factor of 10 to improve visual interpretation. As observed in the figure, the uncertainty ellipses obtained with UTLS and WTLS are nearly identical in most cases, confirming that both formulations lead to similar uncertainty estimates when applied to the considered datasets. A small discrepancy can be observed in corner 1 of Environment A, where the two methods produce slightly different ellipse sizes. However, these differences remain minor compared to the overall uncertainty scale. In contrast, the proposed WCTLS formulation consistently produces smaller uncertainty ellipses for all detected corners in both environments. This reduction indicates that the proposed normalization strategy improves the conditioning of the estimation problem and leads to more stable covariance propagation in the corner estimation process. Consequently, although all methods provide equivalent geometric corner locations, WCTLS achieves a consistent reduction in the estimated positional uncertainty of the extracted features. This visual result is fully consistent with the numerical values reported in Tables 1 and 2.

images

Figure 3: Corner uncertainty ellipses obtained from a LiDAR scan in the two experimental environments: (a) Environment A and (b) Environment B. Ellipses correspond to UTLS (blue), WTLS (green), and WCTLS (red) and are shown with a scaling factor of 10 for visualization.

Although the representative-scan analysis is useful to visualize the geometric behavior of the three methods, it does not by itself characterize scan-to-scan variability. For this reason, an additional repeatability analysis was conducted using 100 consecutive scans acquired from a fixed sensor position in each environment. For each scan, the median area of the uncertainty ellipses corresponding to the detected corners was computed. This per-scan median ellipse area provides a compact scalar measure of the typical propagated corner uncertainty while ensuring that each scan contributes equally to the statistical analysis, independently of the number of corners detected in that scan. Fig. 4 shows the statistical distribution of these per-scan median ellipse areas for the three estimation methods. Each box represents the interquartile range, corresponding to the interval between the first and third quartiles and therefore containing the central 50% of the scans. The horizontal line inside each box denotes the median value, while the whiskers extend to 1.5 times the interquartile range. Outliers, corresponding to scans with unusually large uncertainty values, are represented by circles. A logarithmic scale is used in the vertical axis to facilitate the visualization of relative differences in uncertainty magnitude.

images

Figure 4: Distribution of the median corner uncertainty ellipse area per scan obtained from 100 repeated scans in two indoor environments: (a) Environment A and (b) Environment B. Each value corresponds to one scan and represents the median ellipse area of the corners detected in that scan. The vertical axis is displayed in logarithmic scale.

In environment A, the box plots in Fig. 4a show that UTLS and WTLS yield very similar uncertainty levels across the repeated scans. The median ellipse area per scan is approximately 4.5×103mm2 for both methods, with values of 4498.5±330.3mm2 and 4594.7±355.0mm2, respectively. In contrast, the proposed WCTLS formulation produces a substantial reduction in the typical uncertainty, yielding a median ellipse area per scan of 626.2±178.7mm2. This corresponds to an approximate sevenfold reduction in the typical per-scan median ellipse area with respect to the classical TLS formulations. The box plot also reveals a noticeably smaller dispersion of the uncertainty values for WCTLS, indicating a more stable behavior across repeated scans.

A similar trend is observed in environment B, as shown in Fig. 4b. In this case, UTLS and WTLS again exhibit nearly identical behavior, with median ellipse areas per scan of 8125.3±914.1mm2 and 8123.6±911.1mm2, respectively. The WCTLS method consistently produces lower uncertainty values, with a median ellipse area per scan of 3468.5±640.9mm2. Although the improvement is less pronounced than in environment A, WCTLS still reduces the typical uncertainty by a factor of approximately 2.3. The box plot distributions further show that this reduction is systematic across the repeated scans, rather than being driven by a small number of favorable cases.

The experimental results show that this improvement in WCTLS does not come from the weighting of measurements, which is already present in WTLS, but from the elimination of the scale ambiguity inherent in the implicit line representation used in classical TLS formulations. In UTLS and WTLS, the parameters (a,b,c) are not uniquely defined, which negatively affects numerical conditioning and amplifies the propagated covariance associated with the corner estimates. By enforcing a geometrical normalization, the WCTLS formulation decouples orientation and distance parameters and yields better-conditioned covariance matrices. This results in smaller and less anisotropic error ellipses, as evidenced both by the per-corner uncertainty values and by the global ellipse area distributions.

5  Conclusions

Simplifying the 2D LiDAR SLAM process by extracting geometric primitives from the mapped environment is becoming increasingly common. In this paper we have analyzed different variants of the Total Least Squares method for obtaining geometric features in the mapping process, proposing a method that improves the conditioning of the estimation problem and the reliability of the extracted geometric features.

Experimental results obtained from two real indoor environments show that all analyzed TLS variants (UTLS, WTLS, and WCTLS) yield equivalent geometric positions for the extracted corners. This confirms that the proposed method does not alter the underlying geometric structure of the map. However, significant differences arise in the associated covariance-based uncertainty estimates. While UTLS and WTLS provide nearly identical uncertainty values, the proposed WCTLS formulation consistently achieves a reduction in the standard deviations of the estimated corner coordinates. The standard deviations of the corner coordinates obtained with WCTLS are reduced by factors ranging from approximately 3 to 6 in environment A and between 2 and 4 in environment B when compared to UTLS and WTLS. This improvement is further supported by the analysis of the propagated error ellipse areas computed over 100 repeated scans acquired from fixed sensor positions. In this repeatability analysis, WCTLS significantly reduces the typical ellipse area and exhibits lower dispersion across scans, indicating a more stable behavior of the propagated uncertainty estimates.

These results demonstrate that the improvement achieved by WCTLS is not driven by measurement weighting alone, but by the elimination of the scale ambiguity inherent to the implicit line representation used in conventional TLS approaches. By enforcing a geometric normalization, WCTLS yields better-conditioned covariance matrices and more compact uncertainty estimates for derived corner features.

Despite these promising results, the proposed formulation has been validated in structured indoor environments, where geometric primitives such as lines and corners are clearly observable. Further investigation will be necessary to assess whether the approach can be generalized to more complex or less structured scenarios. It should be noted that no external ground-truth measurements of the true corner positions were available in the considered environments. Consequently, the experimental results demonstrate a consistent reduction in the propagated uncertainty associated with the extracted corners, but they do not directly establish an improvement in absolute geometric accuracy with respect to an external reference.

Future work will focus on exploiting the improved corner uncertainty provided by WCTLS in downstream SLAM tasks, such as data association, map optimization, and robot localization, assessing its potential impact on overall navigation accuracy and robustness.

Acknowledgement: The authors would like to express their sincere gratitude to the University of León for its institutional support and to TRESCA Ingeniería S.A. for its collaboration and support in the development of this research.

Funding Statement: This research was supported by TRESCA Ingeniería S.A. within the framework of the Research Project on Survey Systems for Hostile Structured Environments Using Simultaneous Localization and Mapping (SLAM) Systems with Lidar Technology. The project was co-financed by the ERDF, Thematic Objective 1, which seeks to promote technological development, innovation and quality research, and in part by the Regional Government of Castilla y León, through the institute for the Business Competitiveness of Castilla y León (ICE).

Author Contributions: Conceptualization, Natalia Prieto-Fernández and Martín Bayón-Gutiérrez; methodology, Natalia Prieto-Fernández, Sergio Fernández-Blanco and Álvaro Fernández-Blanco; software, Martín Bayón-Gutiérrez; validation, José Alberto Benítez-Andrades; formal analysis, Natalia Prieto-Fernández, Sergio Fernández-Blanco and Álvaro Fernández-Blanco; investigation, Natalia Prieto-Fernández; resources, Francisco Carro-De-Lorenzo; data curation, Natalia Prieto-Fernández; writing—original draft preparation, Natalia Prieto-Fernández, Álvaro Fernández-Blanco and Martín Bayón-Gutiérrez; writing—review and editing, Sergio Fernández-Blanco, Francisco Carro-De-Lorenzo and José Alberto Benítez-Andrades; visualization, Martín Bayón-Gutiérrez; supervision, Francisco Carro-De-Lorenzo and José Alberto Benítez-Andrades; project administration, Natalia Prieto-Fernández; funding acquisition, Natalia Prieto-Fernández. All authors reviewed and approved the final version of the manuscript.

Availability of Data and Materials: Data available on request from the authors.

Ethics Approval: Not applicable.

Conflicts of Interest: The authors declare no conflicts of interest.

References

1. Cheng J, Zhang L, Chen Q, Hu X, Cai J. A review of visual SLAM methods for autonomous driving vehicles. Eng Appl Artif Intell. 2022;114(5):104992. doi:10.1016/j.engappai.2022.104992. [Google Scholar] [CrossRef]

2. Singandhupe A, La HM. A review of slam techniques and security in autonomous driving. In: 2019 Third IEEE International Conference on Robotic Computing (IRC). Piscataway, NJ, USA: IEEE; 2019. p. 602–7. [Google Scholar]

3. Bastos D, Monteiro PP, Oliveira AS, Drummond MV. An overview of LiDAR requirements and techniques for autonomous driving. In: 2021 Telecoms Conference (ConfTELE). Piscataway, NJ, USA: IEEE; 2021. p. 1–6. [Google Scholar]

4. Zhou X, Huang R. A state-of-the-art review on SLAM. In: International Conference on Intelligent Robotics and Applications. Cham, Switzerland: Springer; 2022. p. 240–51. [Google Scholar]

5. Ebadi K, Bernreiter L, Biggie H, Catt G, Chang Y, Chatterjee A, et al. Present and future of SLAM in extreme environments: the DARPA subT challenge. IEEE Trans Robot. 2023;40(2):936–59. doi:10.1109/tro.2023.3323938. [Google Scholar] [PubMed] [CrossRef]

6. Belkin I, Abramenko A, Yudin D. Real-time lidar-based localization of mobile ground robot. Procedia Comput Sci. 2021;186:440–8. doi:10.1016/j.procs.2021.04.164. [Google Scholar] [CrossRef]

7. Francis S, Anavatti SG, Garratt M, Abbass HA. Real-time multi-obstacle detection and tracking using a vision sensor for autonomous vehicle. In: Communication and Intelligent Systems: Proceedings of ICCIS 2020. Cham, Switzerland: Springer; 2021. p. 873–83. [Google Scholar]

8. Koval A, Kanellakis C, Nikolakopoulos G. Evaluation of Lidar-based 3D SLAM algorithms in SubT environment. IFAC-PapersOnLine. 2022;55(38):126–31. doi:10.1016/j.ifacol.2023.01.144. [Google Scholar] [CrossRef]

9. Khan MU, Zaidi SAA, Ishtiaq A, Bukhari SUR, Samer S, Farman A. A comparative survey of LiDAR-SLAM and lidar based sensor technologies. In: 2021 Mohammad Ali Jinnah University International Conference on Computing (MAJICC). Piscataway, NJ, USA: IEEE; 2021. p. 1–8. [Google Scholar]

10. Zou Q, Sun Q, Chen L, Nie B, Li Q. A comparative analysis of LiDAR SLAM-based indoor navigation for autonomous vehicles. IEEE Trans Intell Transport Syst. 2021;23(7):6907–21. doi:10.1109/tits.2021.3063477. [Google Scholar] [PubMed] [CrossRef]

11. Kim G, Yun S, Kim J, Kim A. SC-LiDAR-SLAM: a front-end agnostic versatile lidar slam system. In: 2022 International Conference on Electronics, Information, and Communication (ICEIC). Piscataway, NJ, USA: IEEE; 2022. p. 1–6. [Google Scholar]

12. Li Y, Olson EB. Extracting general-purpose features from LIDAR data. In: 2010 IEEE International Conference on Robotics and Automation. Piscataway, NJ, USA: IEEE; 2010. p. 1388–93. [Google Scholar]

13. Ali W, Liu P, Ying R, Gong Z. A feature based laser SLAM using rasterized images of 3D point cloud. IEEE Sens J. 2021;21(21):24422–30. doi:10.1109/jsen.2021.3113304. [Google Scholar] [PubMed] [CrossRef]

14. Núñez P, Vázquez-Martín R, Del Toro J, Bandera A, Sandoval F. Natural landmark extraction for mobile robot navigation based on an adaptive curvature estimation. Robot Autonom Syst. 2008;56(3):247–64. doi:10.1016/j.robot.2007.07.005. [Google Scholar] [CrossRef]

15. Arras KO, Siegwart RY. Feature extraction and scene interpretation for map-based navigation and map building. In: Mobile robots XII. Vol. 3210. Bellingham, WA, USA: SPIE; 1998. p. 42–53. [Google Scholar]

16. Vandorpe J, Van Brussel H, Xu H. Exact dynamic map building for a mobile robot using geometrical primitives produced by a 2D range finder. In: Proceedings of IEEE International Conference on Robotics and Automation. Piscataway, NJ, USA: IEEE; 1996. Vol. 1, p. 901–8. [Google Scholar]

17. Prieto-Fernández N, Fernández-Blanco S, Fernández-Blanco Á, Benítez-Andrades JA, Carro-De-Lorenzo F, Benavides C. Weighted conformal LiDAR-mapping for structured SLAM. IEEE Trans Instrument Measur. 2023;72:1–10. doi:10.1109/tim.2023.3284143. [Google Scholar] [PubMed] [CrossRef]

18. Prieto-Fernández N, Fernández-Blanco S, Fernández-Blanco Á, Benítez-Andrades JA, Carro-De-Lorenzo F, Benavides C. Conditional weighted linear fitting for 2D-LiDAR-mapping of indoor SLAM. IEEE Trans Indust Inform. 2024;20(7):9579–87. [Google Scholar]

19. Yan RJ, Wu J, Yuan Q, Yuan C, Luo LP, Shin KS, et al. Natural corners-based SLAM with partial compatibility algorithm. Proc Instit Mech Eng Part I J Syst Control Eng. 2014;228(8):591–611. doi:10.1177/0959651814533533. [Google Scholar] [CrossRef]

20. Siadat A, Kaske A, Klausmann S, Dufaut M, Husson R. An optimized segmentation method for a 2D laser-scanner applied to mobile robot navigation. IFAC Proc Vol. 1997;30(7):149–54. doi:10.1016/s1474-6670(17)43255-1. [Google Scholar] [CrossRef]

21. Nguyen V, Gächter S, Martinelli A, Tomatis N, Siegwart R. A comparison of line extraction algorithms using 2D range data for indoor mobile robotics. Autonom Rob. 2007;23:97–111. [Google Scholar]

22. Pavlidis T, Horowitz SL. Segmentation of plane curves. IEEE Trans Comput. 1974;100(8):860–70. [Google Scholar]

23. Duan D, Xie M, Mo Q, Han Z, Wan Y. An improved Hough transform for line detection. In: 2010 International Conference on Computer Application and System Modeling (ICCASM 2010). Piscataway, NJ, USA: IEEE; 2010. Vol. 2, p. V2-354–7. [Google Scholar]

24. Fischler MA, Bolles RC. Random sample consensus: a paradigm for model fitting with applications to image analysis and automated cartography. Communicat ACM. 1981;24(6):381–95. doi:10.1145/358669.358692. [Google Scholar] [CrossRef]

25. Liu Y, Emery R, Chakrabarti D, Burgard W, Thrun S. Using EM to learn 3D models of indoor environments with mobile robots. In: The Eighteenth International Conference on Machine Learning. Burlington, MA, USA: Morgan Kaufmann; 2001. p. 329–36. [Google Scholar]

26. Duda RO, Hart PE. Pattern classification and scene analysis. Vol. 3. New York, NY, USA: Wiley; 1973. [Google Scholar]

27. Borges GA, Aldon MJ. Line extraction in 2D range images for mobile robotics. J Intell Robot Syst. 2004;40(3):267–97. doi:10.1023/b:jint.0000038945.55712.65. [Google Scholar] [CrossRef]

28. Peter M, Jafri S, Vosselman G. Line segmentation of 2D laser scanner point clouds for indoor slam based on a range of residuals. ISPRS Ann Photogramm Remote Sens Spat Inform Sci. 2017;4:363–9. [Google Scholar]

29. Li Z, Zuo R, Wang Y, Ding F, Wei C, Wu M. Odometry-assisted LiDAR-openstreetmap matching method for vehicle global positioning. IEEE Internet Things J. 2026;13(8):16303–17. doi:10.1109/jiot.2026.3659142. [Google Scholar] [PubMed] [CrossRef]

30. Deng B, He Y, Shen Z, Zhang Y, Deng Q, Nie Z, et al. YCNNet: road target recognition method by fusion of LiDAR and thermal infrared camera. IEEE Sen J. 2025;26(2):3278–88. [Google Scholar]

31. Park SH, Yi SY. Least-square matching for mobile robot SLAM based on line-segment model. Int J Cont Autom Syst. 2019;17:2961–8. [Google Scholar]

32. An SY, Kang JG, Lee LK, Oh SY. SLAM with salient line feature extraction in indoor environments. In: 2010 11th International Conference on Control Automation Robotics & Vision. Piscataway, NJ, USA: IEEE; 2010. p. 410–6. [Google Scholar]

33. Pfister ST, Roumeliotis SI, Burdick JW. Weighted line fitting algorithms for mobile robot map building and efficient data representation. In: 2003 IEEE International Conference on Robotics and Automation (Cat. No. 03CH37422). Piscataway, NJ, USA: IEEE; 2003. Vol. 1, p. 1304–11. [Google Scholar]

34. Garulli A, Giannitrapani A, Rossi A, Vicino A. Mobile robot SLAM for line-based environment representation. In: Proceedings of the 44th IEEE Conference on Decision and Control. Piscataway, NJ, USA: IEEE; 2005. p. 2041–6. [Google Scholar]

35. Pedraza L, Rodriguez-Losada D, Matia F, Dissanayake G, Miró JV. Extending the limits of feature-based SLAM with B-splines. IEEE Trans Robot. 2009;25(2):353–66. doi:10.1109/tro.2009.2013496. [Google Scholar] [PubMed] [CrossRef]

36. Nunez P, Vazquez-Martin R, Bandera A, Sandoval F. An algorithm for fitting 2-D data on the circle: applications to mobile robotics. IEEE Signal Process Lett. 2008;15:127–30. doi:10.1109/lsp.2007.912964. [Google Scholar] [PubMed] [CrossRef]

37. Slamtec. RPLIDAR S1 Datasheet. 2021 [cited 2026 Mar 20]. Available from: http://bucket.download.slamtec.com/f19ea8efcc2bb55dbfd5839f1d307e34aa4a6ca0/LD601_SLAMTEC_rplidar_datasheet_S1_v1.4_en.pdf. [Google Scholar]


Cite This Article

APA Style
Prieto-Fernández, N., Bayón-Gutiérrez, M., Fernández-Blanco, S., Fernández-Blanco, Á., Carro-De-Lorenzo, F. et al. (2026). Enhancement of the Total Least Squares Method for Feature Extraction in 2D LiDAR Mapped Environments. Computer Modeling in Engineering & Sciences, 147(2), 35. https://doi.org/10.32604/cmes.2026.080540
Vancouver Style
Prieto-Fernández N, Bayón-Gutiérrez M, Fernández-Blanco S, Fernández-Blanco Á, Carro-De-Lorenzo F, Benítez-Andrades JA. Enhancement of the Total Least Squares Method for Feature Extraction in 2D LiDAR Mapped Environments. Comput Model Eng Sci. 2026;147(2):35. https://doi.org/10.32604/cmes.2026.080540
IEEE Style
N. Prieto-Fernández, M. Bayón-Gutiérrez, S. Fernández-Blanco, Á. Fernández-Blanco, F. Carro-De-Lorenzo, and J. A. Benítez-Andrades, “Enhancement of the Total Least Squares Method for Feature Extraction in 2D LiDAR Mapped Environments,” Comput. Model. Eng. Sci., vol. 147, no. 2, pp. 35, 2026. https://doi.org/10.32604/cmes.2026.080540


cc Copyright © 2026 The Author(s). Published by Tech Science Press.
This work is licensed under a Creative Commons Attribution 4.0 International License , which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
  • 373

    View

  • 88

    Download

  • 0

    Like

Share Link