1 Introduction

Rural areas are the main mining areas of mineral resources in China, and the low brick-concrete buildings are the primary components of buildings in rural areas. Such brick-concrete buildings have a simple design. They do not possess any accessory structures, except for doors and windows, and are relatively low-cost [1]. However, such buildings are easily affected by the movement of the surface rock strata, especially which caused by frequent mining activities [2, 3]. Therefore, it is crucial to monitor the deformation of such buildings to assess the extent of their structural damage.

Traditionally, total stations are used for the deformation monitoring of brick-concrete buildings. However, only a few discrete points can be measured using a total station, making it a time-consuming and laborious process. New monitoring methods based on differential interferometric synthetic aperture radar (DInSAR), unmanned aerial vehicle (UAV) photogrammetry, and terrestrial laser scanning (TLS) have gradually emerged with the advancement of surveying and mapping technology [4,5,6]. Currently, TLS is the most widely used technique because it represents object surface information in the form of massive high-precision point clouds, unlike DInSAR and UAV photogrammetry [7, 8].

Building deformation monitoring using TLS can be divided into two categories: (1) monitoring using established models and (2) monitoring using customized indices. Examples of category (1) include the study by Nieto-Julián et al., who proposed a building information model (BIM) to calculate the change in displacement of a building between two measurements [9]. In addition, Rolin et al. proposed a BIM to determine the change in displacement and stress of a building under applied gravity [10]. Moreover, Lian et al. used a finite element model to estimate the change in wall principal stress and shear stress of a building under mining conditions [11]. Examples of category (2) include the study by Batur et al., who considered the displacement of a building as a monitoring index and used the cloud-to-cloud method to register and filter the point cloud data for deformation monitoring [12]. Li et al. considered wall subsidence cracks and horizontal displacement as indices for conducting deformation monitoring in combination with a subsidence prediction model [13]. Furthermore, Yang et al. considered wall inclination and crack depth as deformation monitoring indices in combination with a triangular mesh vector model developed using the alpha shape algorithm [14]. Thus, compared to established models, customized indices provide more flexibility for monitoring the deformation of buildings under different scenarios.

Subsidence, inclination, curvature, horizontal displacement, and horizontal deformation are the most common indices used for monitoring deformation of brick-concrete building in Chinese mining areas [15, 16]. Subsidence and horizontal displacement are primarily caused by a change in the groundwater level and do not cause major structural damage to the buildings. In practice, other three deformations is typically measured by placing artificial signs on buildings, especially those found in coal-mining regions. However, this work need to be registered for the same coordinates [17, 18]. This requires considerable manpower and material resources and also introduces a lot of errors. When the structural damage caused by above three deformations reaches a certain level, cracks appear on the walls, which in turn changes the length of the walls. Therefore, this study conducted measurements of brick-concrete buildings using a terrestrial laser scanning and adopted the wall length as a deformation monitoring index, which, can measure the change in the length of the building walls due to the deformation caused by mining activities.

The remainder of this paper is organized as follows. Section 2 introduces the basic principles and methods used in this study. Section 3 presents a case study, including: an overview; details of the monitoring process; the method for determining the thickness of the wall-point clouds; and the results of the wall length calculations and corresponding deformation analysis. Section 4 compares different boundary point estimation methods, discusses the effect of different weight functions on the wall length, and evaluates the accuracy of the proposed method. Finally, Sect. 5 summarizes the conclusions of this study.

2 Methodology

2.1 Basic principles

In this study, the random sample consensus (RANSAC) and weighted iterative least squares (WILS) algorithms were used to calculate the length of the building walls [19, 20].

2.1.1 RANSAC algorithm

When a given dataset can be clearly described by a specific model and contains no significant errors or outliers, then the least squares (LS) method can be used to determine the model parameters using the following equation [21]:

$$X = (B^{T} PB)^{ - 1} B^{T} PL$$
(1)

where X is the matrix of model parameters, B is the coefficient matrix, L is the matrix of measured values, and P is the weight matrix for the measured values (Pij = 0 if i ≠ j). Note that in the absence of any errors or outliers, P is a unit matrix.

In reality, the complete absence of outliers in a dataset cannot be guaranteed; moreover, it is difficult to separate the outliers from the relevant data or “inliers” effectively. For a given dataset that can be fitted using a model, RANSAC solves this problem of data separation as follows.

  1. (1)

    n data points are randomly selected from the dataset and Eq. (1) is used to solve for the model parameters.

  2. (2)

    The geometric distance between the data point and estimated model is calculated and only those data points whose distance is less than the distance threshold are retained.

  3. (3)

    The above two steps are iteratively repeated. After a fixed number of iterations, the data points that fit the model well are considered to be the inliers.

In addition, the RANSAC algorithm estimates the parameters of the best fit model. The final model is considered to be the one corresponding to the maximum number of inliers.

2.1.2 WILS method

The presence of outliers in the dataset affects both the LS and RANSAC algorithms. This is mitigated by the WILS method, which adjusts the weights of the outliers using an appropriate weight function.

Considering the IGG weight function (given by Eq. (3)) as an example, the WILS algorithm solves for the model parameters as follows [22].

  1. (1)

    The model parameters for a given dataset are obtained using Eq. (1).

  2. (2)

    The residual value for each measurement is calculated using Eq. (2). The weight matrix of the measured values is then updated according to Eq. (3).

  3. (3)

    The above two steps are iteratively repeated. The parameters of the best fit model are obtained after a fixed number of iterations.

    $$V = BX - L,$$
    (2)

where V is the residual matrix for each measurement and

$$p_{ii} = \left\{ {\begin{array}{*{20}c} 1 & {\left| {v_{i} } \right| < s_{1} \sigma_{0} } \\ {s_{1} \sigma_{0} /\left| {v_{i} } \right|} & {s_{1} \sigma_{0} < \left| {v_{i} } \right| < s_{2} \sigma_{0} } \\ 0 & {\left| {v_{i} } \right| > s_{2} \sigma_{0} } \\ \end{array} } \right.$$
(3)

where vi is the residual of the i-th measurement; s1 and s2 are the threshold coefficients to ensure robustness; and σ0 is the standard deviation of the residual. In this study, s1 and s2 were taken to be 1.0 and 2.5, respectively.

2.2 Acquisition of individual wall-point cloud data

Walls are the basic units of a building, and the objective of the present study is to calculate the length of a wall under deformation. However, in addition to the point clouds representing the walls of the building, the TLS obtains point clouds representing other objects in its scanning field. Therefore, the point cloud data of the building consists of overlapping point clouds corresponding to the walls. In this section, we discuss the steps associated with the point cloud data acquisition.

2.2.1 Segmentation of building-point cloud data

Let us consider a building composed of four walls that are perpendicular to the XOY plane, as shown in Fig. 1. In this figure, single wall is represented by a straight line in the XOY plane, and the building is represented by the intersection of multiple straight lines in 3D space. In this study, we employed RANSAC for segmenting the 3D point cloud data.

Fig. 1
figure 1

Point clouds corresponding to a building in 3D space and single wall in 2D plane

First, the 3D point cloud data of the building was projected onto the XOY plane to decompose the data into four wall units. Next, RANSAC was used to determine the model corresponding to the maximum number of inlier points representing the point cloud of single wall. Subsequently, the dataset was updated by deleting the point cloud data of this wall from that of the entire building. These steps were repeated until the point cloud data corresponding to all four walls were extracted.

The corresponding B, X, and L matrices are shown in Fig. 1. Note that to prevent the straight lines representing the four walls from overlapping on the XOY plane, the distance threshold should be greater than the thickness of the wall-point cloud. The method for determining the point cloud thickness is described in Sect. 3.2.

2.2.2 Redistribution of composite wall-point cloud data

Although considering a distance threshold greater than the point cloud thickness of the walls prevents the straight lines from overlapping on the XOY plane, it leads to over-segmentation of the 3D point cloud data.

Over-segmentation leads to the following issues: (1) the composite point cloud of the first wall extracted using RANSAC also includes the data points corresponding to the two adjacent walls; (2) the composite point cloud of the last wall extracted using RANSAC does not include the data points corresponding to the two adjacent walls; and (3) the composite point clouds of the second and third walls extracted using RANSAC include the data points corresponding to one adjacent wall but not the other. Therefore, the data points of the composite point clouds of all four walls need to be redistributed following the segmentation of the building-point cloud, as described below.

First, the true point cloud of a wall was extracted from its composite point cloud using RANSAC. Next, the difference between the composite point cloud and true point cloud of this wall was obtained. Subsequently, the distance from each data point of this wall to all other walls was determined. Finally, if this distance was less than the distance threshold, then the data point was assigned to the point cloud of the concerned wall.

The corresponding B, X, and L matrices are shown in Fig. 2. Note that in this case, the distance threshold needs to be equal to the thickness of the wall-point cloud so that the same data point can be assigned to multiple walls.

Fig. 2
figure 2

Estimation of the boundary points of single wall

2.3 Estimation of boundary points

The boundary points of a point cloud are generally estimated using normal vectors [23]. Let us consider a 3D coordinate system to describe a point cloud consisting of a point Pi and its neighbors. The boundary and non-boundary points in the XOY plane of the coordinate system are determined with respect to the point Pi. This method considers two types of neighborhoods for each point, which are used to calculate the normal and transformed coordinates of the data points, and consequently, estimate the boundary points of the cloud. The larger the neighborhood, more accurate is the boundary estimation; however, longer is the estimation time.

In a 3D coordinate system, when the parameters describing two planes are known, one plane can be rotated to become parallel to the other. Assuming XA and XB to be the model parameters of planes A and B, respectively, then the angle of rotation θ is given by

$$\theta = {{{\text{Arccos}} (X_{A} X_{B} } \mathord{\left/ {\vphantom {{{\text{Arccos}} (X_{A} X_{B} } {\left| {X_{A} } \right|\left| {X_{B} } \right|}}} \right. \kern-0pt} {\left| {X_{A} } \right|\left| {X_{B} } \right|}})$$
(4)

where | | denotes the modulus of the model parameters.

In this study, we assumed that all the data points of a point cloud representing a single wall lie approximately in the same plane. Moreover, we modified the above boundary point estimation method to improve the estimation time, namely, the boundary points were estimated after rotating the wall-point cloud such that it was parallel to the XOY plane. The rotation process can be divided into two steps (see Eq. (5)):

  1. (1)

    The wall-point cloud about the Z-axis was rotated such that it was parallel to the XOZ plane.

  2. (2)

    The wall-point cloud about the X-axis was rotated such that it was parallel to the XOY plane.

    $$\left[ {\begin{array}{*{20}c} {x^{\prime } } \\ {y^{\prime } } \\ {z^{\prime } } \\ \end{array} } \right] = \left[ {\begin{array}{*{20}c} 1 & 0 & 0 \\ 0 & {\cos \theta_{2} } & { - \sin \theta_{2} } \\ 0 & {\sin \theta_{2} } & {\cos \theta_{2} } \\ \end{array} } \right]\left[ {\begin{array}{*{20}c} {\cos \theta_{1} } & { - \sin \theta_{1} } & 0 \\ {\sin \theta_{1} } & {\cos \theta_{1} } & 0 \\ 0 & 0 & 1 \\ \end{array} } \right]\left[ {\begin{array}{*{20}c} x \\ y \\ z \\ \end{array} } \right]$$
    (5)

where (x, y, z) and (x′, y′, z′) are the coordinates before and after rotation, respectively; and θ1 and θ2 are the angles of rotation corresponding to steps (1) and (2), respectively.

The boundary point estimation method used in this study can be described as follows. First, the WILS method was used to solve for the model parameters of the planes. Next, the angle between the point cloud of a single wall and the XOY plane was calculated. The point cloud was then rotated such that it was parallel to the XOY plane, as described by Eq. (5). Figure 2 shows how the data point Pi is connected to its neighboring points in the new coordinate system. Subsequently, the angles between the adjacent connecting lines were calculated. Next, the difference between adjacent angles was calculated. If this difference was greater than the angle threshold, then point Pi was considered to be a boundary point. Finally, the inverse transformation of Eq. (5) was performed to return the boundary point to its original position prior to the rotation.

2.4 Fitting of top boundary line

The boundary points of a wall can be of two types: inner and outer. Inner boundary points arise due to the presence of doors, windows, or point cloud cavities and were ignored in our calculations. A boundary line is a straight line connecting the outer boundary points, which are again of two types: vertical and horizontal. In this study, we focused on the horizontal boundary lines along the roof, namely, the top boundary lines.

Note that the top boundary lines connecting two adjacent walls have a common intersection point, as shown in Fig. 3. The aforementioned boundary point estimation method is likely to introduce significant errors, which tend to negatively affect the LS and RANSAC methods. Therefore, the WILS method was used to find the best-fit model for the top boundary lines by imposing the constraint of intersection points, as outlined below.

Fig. 3
figure 3

Model parameters for the projected top boundary lines

First, a top boundary line was projected onto the XOY plane, and the WILS method was used to solve for the model parameters of the line. The corresponding B, X and L matrices are shown in Fig. 3. The angles between the plane containing the top boundary line and the XOZ and YOZ planes were calculated using Eq. (4). Next, the top boundary line was projected onto either the XOZ or YOZ plane at a smaller angle, and the model parameters of the line was again determined using the WILS method. The corresponding B, X, and L matrices are shown in Fig. 3. The top boundary lines A and B and their intersection points can be described by Eqs. (6) and (7), respectively. All the top boundary lines obey the following constraint: two adjacent boundary lines intersect at a point. If points (xa, ya, za) and (xb, yb, zb) represent the two intersection points of line A, then line A can be fitted by Eq. (8).

$$k_{1} x + b_{1} = y = (z - b_{2} )/k_{2}$$
(6)
$$k_{3} x + b_{3} = y = (z - b_{4} )/k_{4}$$
(7)
$$\frac{x - f}{g} = \frac{{x - x_{a} + {\raise0.7ex\hbox{${(x_{a} - x_{b} )}$} \!\mathord{\left/ {\vphantom {{(x_{a} - x_{b} )} {(y_{a} - y_{b} )}}}\right.\kern-0pt} \!\lower0.7ex\hbox{${(y_{a} - y_{b} )}$}}y_{a} }}{{{\raise0.7ex\hbox{${(x_{a} - x_{b} )}$} \!\mathord{\left/ {\vphantom {{(x_{a} - x_{b} )} {(y_{a} - y_{b} )}}}\right.\kern-0pt} \!\lower0.7ex\hbox{${(y_{a} - y_{b} )}$}}}}\, = \,y\, = \frac{{z - z_{a} + {\raise0.7ex\hbox{${(z_{a} - z_{b} )}$} \!\mathord{\left/ {\vphantom {{(z_{a} - z_{b} )} {(y_{a} - y_{b} )}}}\right.\kern-0pt} \!\lower0.7ex\hbox{${(y_{a} - y_{b} )}$}}y_{a} }}{{{\raise0.7ex\hbox{${(z_{a} - z_{b} )}$} \!\mathord{\left/ {\vphantom {{(z_{a} - z_{b} )} {(y_{a} - y_{b} )}}}\right.\kern-0pt} \!\lower0.7ex\hbox{${(y_{a} - y_{b} )}$}}}} = \frac{z - h}{l}$$
(8)

2.5 Calculation of wall length

To calculate the length of a wall, the corresponding top boundary line was first translated downward by a step size of H, and a interest-region of height 2H was defined about the translated boundary line.

The vertical boundary points are intercepted by the interest-region, as shown in Fig. 4. Because the boundary point estimation was performed on a single wall, the boundary points along a vertical boundary line were divided into two groups: those located on the same wall and those located on the adjacent wall. Therefore, first, the vertical boundary points were merged into one group; subsequently, the WILS method was used to determine the model parameters of the vertical boundary line in the interest-region. The corresponding B, X and L matrices are shown in Fig. 3. The vertical boundary line can be described by Eq. (9). The top boundary line A after the i-th translation can be described by Eq. (10). Assuming that points (xa, ya, za) and (xb, yb, zb) are the two intersection points in the interest-region, the length of the wall can be calculated using Eq. (11).

$$k_{5} x + b_{5} = k_{6} y + b_{6} = z$$
(9)
$$(x - f)/g = y = (x - h - HI)/l$$
(10)
$$L = \sqrt {(x_{a} - x_{b} )^{2} + (y_{a} - y_{b} )^{2} + (z_{a} - z_{b} )^{2} }$$
(11)

where L is the length of the wall at a interest-region.

Fig. 4
figure 4

Calculation of wall length at a interest-region

3 Case study

3.1 Overview and monitoring process

A case study was conducted in Jianglou Village, Bozhou City, China. Figure 5a shows the geographical location of the village. This village mainly consists of brick-concrete buildings, which get frequently damaged owing to perennial coal seam mining.

Fig. 5
figure 5

Overview of the case study

During the monitoring period, two measurements were performed at an interval of approximately seven months. The parameters and specifications of the TLS are shown in Fig. 5b, and the point cloud of the measured region is shown in Fig. 5c. In December 2021, the working face has not been mined below the buildings, which has little impact, so the first measurement was made. According to the mining plan, in January 2022, the mining of the working face has stopped, and the working face has been advanced to the building. After the mining stopped, the surface was still deformed. Therefore, after the deformation becomes stable, the second measurement was made in July 2022.

As show in in Fig. 6, after denoising, downsampling, and ground filtering the point cloud data, the point cloud sizes of first and second measurement are 2.6 and 3.5 points/cm2 respectively. Then, we performed a building deformation analysis based on the length of the walls.

Fig. 6
figure 6

Building deformation monitoring process

3.2 Calculation of wall-point cloud thickness

Assuming that a point cloud can be modeled by a plane, its thickness can be estimated using the distance between the points in the cloud and the plane. We randomly selected N points from the point cloud data of a single wall obtained from the first measurement and defined a neighborhood of radius R around each point to estimate the point cloud thickness of the walls.

Note that not all points in the neighborhood of a given point were retained. First, for every neighborhood, the distance between each point and the neighborhood plane was calculated. Next, considering the presence of noise, only those points were retained whose distance from the plane was less than the corresponding mean square distance. Thus, neighborhood-point cloud thickness can be obtained using Eq. (12). Subsequently, the wall-point cloud thickness was calculated, as shown by Eq. (13).

$$\begin{gathered} TH_{Nei} = \sum\nolimits_{i = 1}^{n} {d_{i} } /n,\,d_{1} \le d_{2} \le \ldots \le d_{i} \, \le \ldots \, \le d_{n} \, \hfill \\ \le RMSE1 + d_{mean} = [\sum\nolimits_{j = 1}^{m} {(d_{j} - d_{mean} )^{2} } /m] + d_{mean} \hfill \\ \end{gathered}$$
(12)

where d = [d1, d2, …, di, …, dn] and D = [d1, d2, …, dj, …, dm] are the distance set between original and retained data points and the plane in a neighborhood, respectively; n and m are the number of points which in d and D, respectively; and dmean is the mean distance in D.

$$\begin{gathered} TH_{Wall} = \sum\nolimits_{i = 1}^{N} {TH_{Nei}^{i} } /M,\,TH_{Nei}^{1} \le TH_{Nei}^{2} \le \ldots \, \le TH_{Nei}^{i} \le \ldots \, \le TH_{Nei}^{N} \hfill \\ \, \le RMSE2 + TH_{Nei}^{mean} = [\sum\nolimits_{j = 1}^{M} {(TH_{Nei}^{j} - TH_{Nei}^{mean} )^{2} } /M] + TH_{Nei}^{mean} \hfill \\ \end{gathered}$$
(13)

where thNei = [TH 1 Nei, TH 2 Nei, …, TH j Nei, …, TH N Nei] and THNei = [TH 1 Nei, TH 2 Nei, …, TH i Nei, …, TH M Nei] are the neighborhood-point cloud thickness set of original and retained neighborhoods, respectively; N and M are the number of neighborhoods which in thNei and THNei; and TH mean Nei is the mean neighborhood-point cloud thickness in THNei.

In this study, N was set to 40. The value of R was set to be in the range 5–20 cm and was increased in steps of 5 cm. Figures 7a–d show that the thickness of the neighborhood point clouds, and consequently, that of the wall-point cloud increase with R. However, for R = 15 cm, the change in the thickness of the point clouds was not noticeable. Therefore, we also performed the calculations for R = 30 and 40 cm.

Fig. 7
figure 7

Calculation results of wall-point cloud thickness

Figures 7c–f show that for R ≥ 15 cm, the thickness of the retained neighborhood point clouds did not change significantly and was approximately 3 cm. The thickness of the wall-point cloud calculated using the neighborhood point clouds also showed no significant change and was approximately 1.7 cm. Therefore, in this study, a wall-point cloud thickness of 1.7 cm corresponding to N = 40 and R = 15 cm was used as the benchmark to determine the distance threshold.

3.3 Deformation analysis based on wall length

As mentioned in Sect. 2.2, the distance thresholds for point cloud data segmentation and redistribution needs to be greater than or equal to the thickness of the wall-point cloud. Based on the results presented in Sect. 3.2, the distance thresholds for data segmentation and redistribution were determined to be 4.0 and 1.7 cm, respectively. The point cloud data of the building is shown in Fig. 8a. Because there were trees near wall D, the point cloud data of wall D (green point cloud) are missing in some areas. However, the point cloud data of the other walls were completely acquired.

Fig. 8
figure 8

Point cloud data at different steps of our calculation

Next, we estimated the boundary points of all the wall-point clouds. The outline of the building composed of the boundary points is shown in Fig. 8b. Owing to the measurement conditions, the boundary point data of wall D was slightly noisy; however, the inner and outer boundary points could be clearly distinguished, and hence, the subsequent analysis was not affected.

Subsequently, we fitted the top boundary line based on the top boundary points. We also calculated the intersection points of the boundary lines. Figure 8c shows that the intersection points are in perfect alignment with the vertical boundary lines. Thus, the fitted line is consistent with the actual data.

Finally, we calculated the lengths of all the walls. The height of the interest-region was considered to be H = 0.25 m, and the top boundary line was translated 20 times toward the bottom of the wall. The intersection points and length of the walls corresponding to each interest-region are shown in Fig. 8d and Table 1, respectively.

Table 1 Wall length before and after deformation

Information regarding the deformation of the building can be obtained by measuring the difference in the lengths of the walls before and after deformation, as shown by Eq. (14). The results of the deformation analysis are shown in Fig. 9.

$$L_{e} = L_{2} - L_{1}$$
(14)

where Le denotes the structural deformation of the walls, L1 is the length of the wall measured at a particular position during the first measurement, and L2 is the length of the wall measured at the same position during the second measurement.

Fig. 9
figure 9

Results of the deformation analysis based on the wall lengths

From Table 1 and Fig. 9, we observe that the variation in the length of the walls with translation is quite similar for the two measurements. The deformation of wall A was in the range 34–48 mm. If the 10th translation (i.e., the position 2.5 m below the roof) is considered to be the central reference point, then the deformation of wall A increased away from this point on both sides. Comparing these results with the photograph of wall A shown in Fig. 10a, we observe that the width of the crack on wall A gradually decreased from the roof toward the ground, but the number of cracks increased from one to two. Thus, the variation of the crack width is consistent with our deformation analysis. The deformation of wall B was small and in the range 0–12 mm. This is consistent with the fact that no cracks were observed on wall B during the site investigation. The deformation of wall C was in the range – 18 to 12 mm, which was slightly larger than that of wall B. Only one fine crack was observed on wall C that extended from the top to the bottom of the wall, as shown in Fig. 10b. The deformation of wall D was in the range 0–36 mm. Comparing Figs. 5c and 10c, we observe that wall D contains the main sources of lighting for the building, namely, the doors and windows; consequently, cracks were observed on the non-wall areas of wall D. Note that the deformation of wall D did not fluctuate appreciably with translation, unlike that of wall A.

Fig. 10
figure 10

Photographs of the walls

4 Discussion

4.1 Comparison of boundary point estimation methods

In Sect. 2.3, we introduced a few changes to the traditional boundary point estimation method based on normal vectors. In this section, we compare the method proposed in this study with the method based on normal vectors. The boundary point estimation time and the corresponding results obtained using the point cloud data of the first measurement are shown in Table 2 and Fig. 11, respectively.

Table 2 Boundary point estimation time
Fig. 11
figure 11

Comparison of boundary point estimation results

Table 2 shows that the method in this study is approximately 10 times faster than the method based on normal vectors. This is because the proposed method avoids re-calculating the neighborhood normal vectors, and hence, does not need to re-estimate the coordinates of each neighborhood point cloud. It only calculates the neighborhood normal vectors once, and subsequently transforms the coordinate system once. As shown in Fig. 11, both the methods successfully estimated the boundary points of the walls. To further compare the boundary point estimation results, we calculated the absolute error introduced in the wall length at the same location for both the methods. The maximum error was approximately 8 mm, and the average error was in the range 0–5 mm, as shown in Fig. 12.

Fig. 12
figure 12

Error in the wall length estimates introduced by the boundary point estimation method

Our results confirm that although the boundary points estimated by both the methods are accurate, the estimation time of the method proposed in this study is significantly shorter than that of the method based on normal vectors.

4.2 Effect of weight function on wall length

In addition to IGG, Huber and Hampel are also commonly used weighting function. Unlike the IGG weight function, which divides the data into three segments, the Huber weight function divides the data into two segments, as shown by Eq. (16); whereas, the Hampel weight function divides the data into four segments, as shown by Eq. (17). We calculated the wall lengths based on the boundary points obtained from the first measurement for these three weight functions. In addition, we compared the wall lengths calculated using the three weight functions and obtained the corresponding errors.

As shown in Fig. 13, the absolute error value between Huber and IGG for wall A was about 6 mm at one position. In the absolute error value between Hampel and IGG, that for wall B was about 7 mm at one position. The absolute errors at other positions were in the range 0–5 mm. This difference in the absolute errors is mainly owing to the different behaviors of the three weight functions. However, the weight function did not have a significant influence on the final results, and the error introduced by it was below 5 mm.

$$p_{ii} = \left\{ {\begin{array}{*{20}c} 1 & {\left| {v_{i} } \right| < s\sigma_{0} } \\ {s\sigma_{0} /\left| {v_{i} } \right|} & {\left| {v_{i} } \right| > s\sigma_{0} } \\ \end{array} } \right.$$
(16)

where s is the threshold coefficient to ensure robustness, which was set to 1.5 in this study.

$$p_{ii} = \left\{ {\begin{array}{*{20}c} 1 & {\left| {v_{i} } \right| < s_{1} \sigma_{0} } \\ {s_{1} \sigma_{0} /\left| {v_{i} } \right|} & {s_{1} \sigma_{0} < \left| {v_{i} } \right| < s_{2} \sigma_{0} } \\ {s_{1} (s_{2} \sigma_{0} - \left| {v_{i} } \right|)/(s_{1} - s_{2} )/\left| {v_{i} } \right|} & {s_{2} \sigma_{0} < \left| {v_{i} } \right| < s_{3} \sigma_{0} } \\ 0 & {\left| {v_{i} } \right| > s_{3} \sigma_{0} } \\ \end{array} } \right.$$
(17)

where s1, s2, and s3 are the threshold coefficients used to ensure robustness, which were set to 1.5, 2.0, and 3.0, respectively.

Fig. 13
figure 13

Error in wall length measurement introduced by different weight functions

4.3 Accuracy of wall length calculations

To determine the accuracy of our wall length calculations, we performed an additional measurement on wall A on the day of the second measurement. Considering distance thresholds of 4.0 and 1.7 cm and H = 0.25 m, we calculated the length of wall A. Next, we calculated the ratio between the absolute value of the deformation and length of the wall (i.e., the deformation degree), as shown in Table 3.

Table 3 Accuracy of the wall length calculations

The second and additional measurements were performed consecutively on the same day. Note that ideally the difference in the deformation values between these two measurements should be 0; therefore, the deformation values given in Table 3 can be regarded as the error and the deformation degree as the error rate for evaluating the accuracy of our calculations. The deformation values for the two consecutive measurements were in the range – 6 to + 6 mm. This arises mainly due to the measurement error of the TLS, registration error of the multi-station data, and other accidental errors. The deformation degree for the proposed method did not exceed 5/10000; thus, our method exhibits good performance while achieving millimeter-level accuracy.

5 Conclusions

In this study, we proposed a wall length-based deformation monitoring method of brick-concrete buildings in mining area using terrestrial laser scanning. And the main conclusions are as follows. The deformation estimated using the proposed method was consistent with the actual deformation of the building as revealed by the wall cracks. The boundary point estimation method used in this study not only estimated the wall boundary points accurately but was also 10 times faster than the conventional method based on normal vectors. In the absence of any variable factors, the absolute error in the wall length did not exceed 8 mm and was mostly confined in the range 0–5 mm. In the WILS method, the weight function is a variable factor. Considering the IGG weight function as the reference, the absolute error in the wall lengths obtained using the Huber and Hampel weight functions was in the range of 0–5 mm. Keeping in mind that the difference in deformation between two consecutive measurements within a short interval of time should be ideally 0, the absolute error in the wall length obtained using the proposed method was in the range – 6 to + 6 mm. This confirms that our proposed method can achieve millimeter-level accuracy.