The very first tests (see
Section 3.1,
Section 3.2 and
Section 3.3) are performed on simulated observations (which were generated in Mathcad 15.0). According to the paper’s objective, it concerns the modeling of 2D structures, specifically the profiles. One considers three modeling cases: a straight-line profile, a fourth-degree polynomial, or a broken line simulating a roof cross-section. Several observation sets are simulated in each test, differing in the proportion of outliers. Some simulation assumptions are common to all three profiles: the share of outliers is 0%, 10%, or 60%; all outliers are positive; and their magnitudes are either
or
, where
is the measurement standard deviation equal to 2 mm (often assumed for TLS data). Regular observations are simulated with normally distributed errors having the assumed standard deviation, whereas outliers are uniformly distributed within given intervals.
The estimation results can be compared by examining the goodness-of-fit of the estimated profiles to the simulated ones, respectively. The root-mean-square deviation (RMSD) is a measure used to assess the quantity in question [
18,
32]. For the paper objective, it can be computed as follows:
where
p is the number of points chosen for the computation, and
and
are estimated and simulated values of height at the chosen profile points, respectively.
To achieve the paper’s objectives, the simulated observation sets are processed in four ways: as a whole set, divided into disjoint intervals, or using a sliding window algorithm or its modification. To assess the impact of the chosen assumptions in the last two approaches, several computational variants are examined, varying the interval range, or window width, and slide width, respectively.
3.1. Straight-Line Profile
Let us consider a profile in the shape of a straight line described by the equation:
where
and it is the distance from the profile beginning. One thousand measurements were simulated under the conditions given in the previous section. Therefore, one considers five observation sets, including 0%, 10%, or 60% outliers of two different magnitudes, respectively. Each set is processed using the basic M
split estimation variants. For comparison, conventional methods are also employed, including LS estimation, the Huber method, and the Tukey method (two robust M-estimation variants). First, the sets are processed as a whole. For the sake of simplicity, that variant, as well as similar ones in the subsequent tests, are denoted as the W variant. Then, they are segmented into intervals (5 m, 10 m, or 20 m long) and processed in such parts. The variants are denoted as I5, I10, and I20, respectively. In the case of the sliding window algorithm, one also considers three variants of the window width (5 m, 10 m, and 20 m); therefore, they are noted as SW5, SW10, and SW20. In each variant, there are
p windows considered, where each center of the window is used in the computation of RMSD (Equation (11)). Finally, the sliding window algorithm modification is applied, where the window width equals 5 m, 10 m, or 20 m, and the slide is 2.5 m, 5 m, or 10 m, respectively (the variants are denoted as SM5, SM10, and SM20). In all variants, the linear model is used to model the profile. In the case of M
split estimation, where one obtains two competitive solutions, the solution lying lower is assumed to describe the profile (the other solution describes the location of outliers in some sense; hence, it is neglected). The goodness-of-fit is described by RMSD, computed using Equation (11), with 60 evenly distributed points. All RMSDs concerning all variants are presented in
Table 1,
Table 2,
Table 3,
Table 4,
Table 5 and
Table 6.
The results presented in
Table 1 show that the conventional methods outperform M
split estimation, which is not a surprise. One might conclude that the most accurate results are usually obtained by processing the whole set. Only AMS estimation provides comparable results for almost all variants. In the case of segmentation, slightly better results are obtained with wider intervals and wider sliding windows.
The observation set is homogeneous; therefore, processing it using M
split estimation is pointless. However, a general property of M
split estimation is that the competitive solutions for processing such sets are symmetrically distributed around the true value. Hence, one can compute the average height of each point from both solutions. The respective RMSDs are presented in
Table 2. In this context, the accuracy of M
split estimation variants is remarkably similar to that of conventional methods (presented in
Table 1). Comparing the results presented in
Table 1 and
Table 2 across different segmentation methods, one can say that for the same width of interval or window, the outcomes of all three approaches to set segmentation are comparable. The sliding window algorithm, however, seems the most accurate.
Table 3 and
Table 4 present results for sets contaminated with outliers. The Huber method yields the most accurate results; however, M
split estimation provides comparable results across many variants. The results of SMS and AMS estimations are almost always better than those of the Tukey method or LS estimation.
Processing the entire set usually provides the best results; however, the differences in accuracy are less pronounced than those shown in
Table 1. Considering set segmentation, the sliding window algorithm yields the best results for lower-magnitude outliers. The proposed modification gives results of similar accuracy, and processing data in intervals is slightly less effective. All three segmentation methods yield similar results for higher-magnitude outliers.
When the outlier share is higher, at 60% (
Table 5 and
Table 6), M
split estimation outperforms all conventional methods (which is not surprising, as conventional methods cannot handle such high proportions). Conventional methods yield the same unsatisfying results regardless of the variants applied. Regarding M
split estimation, the best results are again obtained from the variant W. Among segmentation approaches, the sliding window algorithm usually yields more accurate results. For some variants, better results are provided using the sliding window modification. For lower-magnitude outliers, both M
split estimation variants perform better when the intervals or sliding windows are the narrowest.
In contrast, for the larger outliers, SMS estimation provides the best results for the widest intervals and sliding windows. Regarding AMS estimation, it is hard to conclude the optimal interval width. It is better to widen the sliding windows; however, when one uses segmentation in intervals, the results are optimal for medium-width intervals. In general, processing data in intervals yields slightly worse results than when applying the sliding window algorithm or its modification.
The first test provides general information about the accuracy of modeling linear structures using different segmentation methods. The sliding window algorithm and its modification usually yield better results than segmenting into disjoint intervals. However, the best way is to process the set as a whole. It stems from the shape one deals with, meaning that one can easily take a proper functional model. For the same reason, the best results of processing segmented sets are obtained for the widest intervals or sliding windows. Therefore, in subsequent tests, more complex simulated profiles are used.
The accuracy of the results is crucial, but one should also consider the complexity and time required for the computations. Processing data in intervals is the most time-efficient approach, whereas the sliding window modification takes twice as long. The sliding window algorithm is the most time-consuming, requiring two to six times more time than its modification (depending on the window size).
3.3. Profile of Gable Roof
The last test based on simulated observations differs from the previous ones. The observation set is simulated as a 20 m long profile of a gable roof with two ventilation chimneys and an oriel. Data are simulated as normally distributed 400 ALS measurements with an accuracy of 5 mm [
57,
58]. The simulated observation set is shown in
Figure 2.
The profile’s complex shape and length necessitate a change in the interval or sliding window width; hence, considering the profile’s characteristics, intervals or sliding windows of width equal to 1 m seem adequate. Here, considering the roof shape, one can apply a first-degree polynomial. Processing the observation set at hand, Msplit estimation reveals its natural objective. In many intervals (or sliding windows), there are two (or even three) lines to be modeled. In such cases, one can use competitive Msplit estimates to model both lines simultaneously. In cases where there is only one line to be modeled, one chooses the results that describe the lower-lying line.
The accuracy of the goodness-of-fit model in representing the roof’s true shape is described using the RMSDs given in Equation (11) for
p = 60. RMSDs determined for each estimation method and the three segmentation approaches are given in
Table 11.
Both M
split estimation variants outperform classical methods, stemming from the roof shape. For SMS estimation, the best results are achieved using the sliding window algorithm. The segmentation method proposed in the paper yields results that are less accurate than those of the sliding window algorithm but significantly more accurate than those obtained by processing data segmented into disjoint intervals. AMS estimation gives the best results, with RMSDs that are even twenty times smaller than those of SMS estimation. This probably stems from the fact that in some intervals (or windows), there are observations of three lines. AMS estimation can handle such situations, as it is less sensitive to outliers of moderate magnitude [
19]. For the method in question, the sliding window modification yields the most accurate results.
One can notice that in some intervals (or windows), there is only one line to be estimated. Therefore, as in the example given in
Section 3.1, one can average the results from both competitive models for such intervals or windows. RMSDs computed for such a case are presented in
Table 12. The goodness-of-fit accuracy improves; however, it is more closely related to the AMS estimation.
3.4. Examples of Real Data Processing
Let us consider the estimation of the terrain profile located near Malbork, Poland. ALS data are downloaded from the Polish database Geoportal
https://www.geoportal.gov.pl/ (accessed on 9 July 2024). One can consider two observation sets, from 2022 and 2023. The cutouts of the original ALS point clouds related to a distance
d of 100 m are shown in
Figure 3.
The data shows different accuracy and the vertical shift between 2022 and 2023. It is worth noting that the first subset was obtained in April 2022, while the second one was collected in September 2023. Therefore, the first profile refers to the vegetation cover, while the second one is more or less related to the ground.
The field profiles were estimated under the following assumptions: the width of the interval (or the window) is 20 m, the modeling applies a second-degree polynomial, and finally, the competitive solution related to the lower-located line is taken. The estimated profiles using different estimation methods are presented in separate figures. For the sake of comparison, the profiles based on the raw data are also presented.
Figure 4 shows the profiles obtained for segmentation into disjoint intervals (I).
Figure 5 presents the profiles determined by the sliding window algorithm (SW), while
Figure 6 shows the profiles obtained by modifying the sliding window algorithm (SM).
The estimated profiles from 2023 are all similar to each other and to the profile obtained from the raw data, regardless of the segmentation method applied. The profiles obtained in 2022 are more diverse; however, the profiles obtained using classical methods are similar to one another. Even a simple graphical analysis reveals that the most vivid differences are between the profiles obtained by using SMS estimation. To illustrate these differences more explicitly, the discrepancies between profiles obtained using the same estimation method but different segmentation approaches are shown in
Figure 7 and
Figure 8. The profiles obtained by segmentation into disjoint intervals or the sliding window algorithm modification are compared with those obtained by the sliding window algorithm. It stems from previous tests, where the sliding window algorithm typically yields the most accurate results.
Figure 7 clearly shows that SMS estimation is most sensitive to the choice of segmentation approach. In contrast, the classical methods provide very similar profiles for all segmentation methods. The differences obtained for AMS estimation are of moderate magnitude. In general, one can say that the SM approach yields results more similar to those of the sliding window algorithm than segmentation into disjoint intervals does.
The differences between the estimated models obtained from 2023 (
Figure 8) are significantly smaller; nonetheless, the conclusions remain very similar. SMS estimation remains the most sensitive method to the segmentation approach. For that estimation method, applying the SM approach yields results that are more comparable to those obtained with the original approach. For classical methods and AMS estimation, the differences in results obtained using different segmentation methods are often negligible.