1. Introduction
Accurate measurement of forest structure parameters is crucial for ecological monitoring and forest resource management [
1,
2]. However, traditional forestry measurement methods, such as using calipers and clinometers, are labor-intensive, inefficient, and costly, especially in long-term monitoring projects that require extensive and high-precision data. Ground-based Mobile Laser Scanning (MLS) employs high-precision laser scanning and advanced data processing technologies to capture the 3D structure of forests in real time and accurately estimate forest structure parameters [
3,
4,
5]. Compared to traditional forestry measurement methods, it not only improves data collection efficiency but also significantly enhances measurement accuracy and repeatability [
6,
7]. In forestry surveys, MLS has been deployed in various ways, including head-mounted, handheld, backpack-mounted, and vehicle-mounted configurations [
8,
9,
10]. These different deployment methods enable MLS to adapt to varying terrains and measurement requirements.
Simultaneous Localization and Mapping (SLAM) technology, originally developed for robot navigation, has now been applied to MLS systems for rapid and precise forest surveying. SLAM technology can provide accurate device localization and point cloud map generation in dense forest environments where Global Positioning System (GPS) signals are unavailable, allowing researchers to assess forest structure and dynamics more effectively. Tang et al. [
11] explored the application of SLAM-assisted positioning solutions in forest surveys and how to improve the effectiveness of positioning systems. Kuželka et al. [
12] used MLS to survey forests, emphasizing the potential application of SLAM technology in practical forest survey operations. Proudman et al. [
13] discussed methods for real-time forest surveys using handheld Light Detection and Ranging (LiDAR), providing a significant contribution to large-scale forest mapping. Gollob et al. [
8] conducted forest surveys using a novel Personal Laser Scanning (PLS) technique, emphasizing the application of new technology in forest environments. Nevalainen et al. [
14] explored navigation and mapping in forest environments using sparse point clouds, focusing on optimizing data efficiency and accuracy in densely wooded areas. Del Perugia et al. [
15] examined how varying scan densities from Handheld Mobile Laser Scanning (HMLS) impact the precision of single-tree attribute estimation, highlighting the innovative use of adjustable scanning parameters to optimize forest inventory data collection.
Many researchers have developed algorithms for SLAM in forest environments. Shao et al. [
16,
17] introduced a SLAM-based Backpack Laser Scanning (BLS) method for efficient and precise forest plot mapping. Fan et al. [
18] proposed a smartphone-based SLAM system suitable for large-scale forest surveys, highlighting the advantages of using a VIO system rather than a traditional feature-based SLAM. Su et al. [
19] introduced a SLAM-based backpack LiDAR system equipped with dual laser scanners, emphasizing its efficiency in collecting comprehensive canopy point clouds and enhancing forest inventory accuracy. Tremblay et al. [
20] explored the application of SLAM technology to automatically measure tree diameters, showcasing how 3D mapping significantly aids in the forest inventory process. Chen et al. [
21] presented a Semantic LOAM (SLOAM) algorithm to improve SLAM applications in forestry, focusing on enhancing semantic recognition within forest environments. Pan et al. [
22] demonstrated a SLAM-based method for forest plot mapping by integrating an Inertial Measurement Unit (IMU) and self-calibrated dual 3D laser scanners, enhancing the precision and efficiency of forest resource management. Gupta et al. [
23] explored robust scan registration techniques for navigation in forest environments using low-resolution LiDAR sensors, improving the accuracy and reliability of autonomous movement. Faitli et al. [
24] presented a real-time LiDAR-inertial positioning and mapping system for forestry automation, enhancing navigation and operational efficiency. Yang et al. [
25] assessed the performance of handheld laser scanning for creating accurate individual tree maps in urban areas.
The rapid development of LiDAR SLAM technology has laid a solid technical foundation for constructing 3D forest point cloud maps. Researchers are now increasingly focusing on using SLAM technology for forest surveys. However, the point cloud data collected by LiDAR often contain noise, which affects the accuracy of the mapping. Proper pre-processing workflows are critical to ensuring analysis quality and enhancing the efficiency of point cloud data processing. Duanmu et al. [
26] introduced a novel pre-processing algorithm called Annular Neighboring Points Distribution Analysis (ANPDA) to improve diameter at breast height (DBH) estimation accuracy using PLS-based methods. This algorithm examines the distribution of neighboring points in stem point clouds to refine the estimation process, underscoring the importance of pre-processing in improving DBH estimation accuracy. Additionally, Lehtola et al. [
27] proposed a method for the preregistration classification of mobile LiDAR data, utilizing spatial correlations to enhance data accuracy before processing.
Guided point cloud filtering has become an essential technique in various applications such as building detection, surface texture removal, and object recognition. He et al. [
28] first proposed a guided filtering algorithm based on a local linear model while preserving features in 2013. Maltezos et al. [
29] focused on automatically detecting building points from LiDAR and dense image-matching point clouds using simple filtering techniques. Hui et al. [
30] proposed an improved morphological algorithm based on multi-level kriging interpolation to efficiently filter airborne LiDAR point clouds. Han et al. [
31] introduced a guided 3D point cloud filtering method inspired by the guided image filter, which considered point position information for better results. Sun et al. [
32] presented a reliable rolling-guided point normal filtering method for surface texture removal. Lu et al. [
33] proposed a feature-preserving normal estimation method for point cloud filtering that retains geometric features. Han et al. [
34] further enhanced point cloud filtering with the Guided 3D Point Cloud Filter (G3DF) and Iterative Guidance Normal Filter (IGNF) approaches, resulting in high-quality point cloud models. Chen et al. [
35] improved the guide filter, typically used in two-dimensional images, for curved path planning based on 3D vision and water immersion ultrasonic nondestructive testing. Song et al. [
36] utilized statistical and guided filtering methods for local point cloud denoising in the three-dimensional reconstruction and measurement of cattle bodies. Overall, guided point cloud filtering techniques have achieved significant advancements across various fields, improving the accuracy and efficiency of point cloud processing and analysis. Nevertheless, these methods have not yet effectively addressed the issue of errors arising from the registration process in the odometry module of SLAM algorithms. Currently, most existing research performs preprocessing operations after building the point cloud map, which accumulates the noise of each frame of the point cloud. If the preprocessing operations can be performed on a single-frame point cloud in the odometry, the accuracy of the final point cloud map can be improved.
To mitigate point cloud overlap and reduce noise resulting from registration errors in the odometry module of the SLAM algorithm, a novel point cloud adaptive filtering algorithm for LiDAR SLAM in forest environments based on guidance information is proposed by the research. The algorithm corrects errors arising from LiDAR SLAM mapping using guidance information, thereby enhancing the mapping accuracy of the SLAM algorithm. The main contributions of this paper include the following: (1) supporting the current adaptive filtering algorithm framework by establishing the topological relationships among 3D point clouds; (2) constructing a local linear model between the guided point cloud and the output point cloud based on a local loss function; and (3) proposing a smoothness model to determine the intensity weights for the adaptive filtering algorithm and building adaptive models within different neighborhoods. Additionally, an algorithm for extracting vertical forest structure parameters has been developed to process LiDAR data and extract vertical structure parameters, demonstrating the effectiveness of the adaptive filtering algorithm. The proposed novel point cloud adaptive filtering algorithm lays the foundation for subsequent tasks such as extracting forest vertical structure parameters and is of significant importance for precision forest resource inventory.
4. Discussion
4.1. Parameter Selection for Forest Point Cloud
In the adaptive guided point cloud filtering algorithm proposed in the research, the following two critical parameters are involved: the value of the KNN algorithm neighborhood and the parameter that controls the filtering effect in the cost function. These parameters significantly influence the filtering performance, particularly the computation time in the SLAM module. The value of is related to the density of each point cloud frame; the higher the point cloud density, the larger the value of . For the same neighborhood size , a larger value of results in better filtering quality, enabling the filtered points to better align with the feature points.
The point clouds processed in the research are from a SLAM algorithm, with each frame containing approximately 30,000 points. Compared to the original point cloud frame in
Figure 10, as shown in
Figure 11, good filtering results are achieved when
. However, overfitting occurs when
> 10. From the plot with
= 20, it can be observed that local extreme overfitting occurs at the diameter points in each frame, leading to a clustering phenomenon at certain points. When selecting the parameter
, optimal filtering results are obtained when
. Please note that as the parameter
increases, the filtered point cloud frames exhibit an overall shrinkage effect, particularly noticeable when
> 0.05. The shrinkage severely impacts the SLAM mapping performance and the accuracy of subsequent parameter extraction.
Since the filtering algorithm in the research is applied within the SLAM module, it is essential to balance filtering performance and computation time, considering the real-time requirements of SLAM algorithms. The odometry update frequency in mainstream SLAM algorithms ranges from 10 to 20 Hz, corresponding to a processing time of 50 to 100 ms. Considering that the odometry component also needs to execute other tasks, we limit the computation time of the filtering algorithm to under 50 ms.
Table 7 presents the computation times for different threshold values. From the table, it can be observed that for single-frame SLAM point clouds, the interval that satisfies the odometry update frequency and filtering performance of SLAM is within
and
. Specifically, using
= 5 and
= 0.05, our method achieves the optimal balance between filtering effectiveness and computation time.
Computation time and filtering effectiveness are inherently opposing parameters. Selecting smaller parameters can reduce computation time but typically results in suboptimal filtering performance. Conversely, choosing larger parameters can achieve better filtering results, but at the cost of increased computation time. If the parameters are excessively large, it may lead to over-shrinking of the model, thereby reducing the precision of parameter extraction in forests. Accurate parameter settings can significantly enhance the performance of the adaptive guided point cloud filtering algorithm. Moreover, a precise point cloud map lays a solid foundation for subsequent accurate parameter extraction.
4.2. The Robustness of the Adaptive Guided Point Cloud Filtering across Different Slopes
To better test the robustness of the adaptive guided point cloud filtering algorithm, slope factors were considered when selecting the sample plots. The slope range of the nine sample plots was between 9° and 30°. In previous studies, the RMSE for DBH estimation using backpack LiDAR ranged from 1 to 4 cm [
44,
45,
46], while the RMSE for tree height estimation ranged from 0.5 to 3 m [
47,
48]. However, good estimation accuracy could only be achieved on relatively flat plots. Without using the adaptive guided point cloud filtering algorithm, it is challenging to maintain high accuracy in DBH and tree height measurements (
Figure 12). As the slope increases, the walking path of the operators becomes more unstable, significantly challenging the robustness of the SLAM algorithm. The jitter in the walking path and emergency evasive maneuvers for safety can easily cause odometry loss in the SLAM algorithm, reducing the accuracy of the final point cloud mapping.
As shown in
Figure 12, the estimation errors before and after applying the adaptive guided point cloud filtering algorithm exhibit significant changes. Prior to using the adaptive guided point cloud filtering algorithm, the errors in DBH and tree height displayed considerable fluctuations and tended to increase with the slope gradient. After employing the adaptive guided point cloud filtering algorithm, the error fluctuations in DBH were significantly reduced, and the accuracy was unaffected by changes in slope. Meanwhile, the error fluctuations in tree height remained relatively stable; although there was a slight upward trend in error with increasing slope, it remained within an acceptable range. The application of the adaptive guided point cloud filtering algorithm improved the estimation accuracy of both DBH and tree height, reaching and, in some cases, exceeding the accuracy of previous studies, thereby demonstrating the robustness of the algorithm in different slope environments.
4.3. The Performance of the Adaptive Guided Point Cloud Filtering across Different DBH Intervals
As shown in
Figure 13, the accuracy of the DBH significantly improved after filtering,
reaching 0.95 with an error in RMSE of only 1.40 cm. To better analyze the performance of the filtering algorithm in the horizontal direction, a detailed classification discussion on the horizontal DBH slices was conducted by the researchers. The DBH was classified by the research into five groups, i.e., small
, medium
, relatively large
, large
, and extra-large
. Each group was evaluated for its accuracy accordingly.
From
Figure 14, it can be observed that the DBH accuracy significantly improves after filtering for the small, medium, and relatively large DBH groups. Specifically, the accuracy for the small DBH group after filtering is 1.32 cm, reflecting an improvement of 80.87%. For the medium DBH group, the post-filtering accuracy is 1.34 cm, an improvement of 61.36%, and for the relatively large DBH group, the accuracy is 1.78 cm, showing an improvement of 43.15%. In the DBH range
, the filtering effect in the research is significant, with substantial accuracy enhancements. However, for the large and extra-large DBH groups, the improvement in DBH accuracy before and after filtering is moderate. The accuracy for the large DBH group after filtering is 1.79 cm, an improvement of 13.57%, and for the extra-large DBH group, the accuracy is 1.49 cm, reflecting an improvement of 33.56%.
By grouping the data based on DBH, we found that the filtering algorithm significantly improved the accuracy of DBH extraction, particularly for small, medium, and relatively large DBH groups. Although the performance improvement for the large DBH group was not exceptionally significant, the algorithm still demonstrated good robustness and reliability. The DBH groups of large and extra-large may be more dependent on the threshold settings of the filtering algorithm. Therefore, it is crucial to carefully select threshold parameters tailored to the acquisition device and the specific characteristics of the sample plots when using the filtering algorithm. Future work can focus on more automated filtering algorithm research to further enhance the accuracy of DBH measurements across various groups.
4.4. The Performance of the Adaptive Guided Point Cloud Filtering across Different Tree Height Intervals
As shown in
Figure 15, the accuracy of tree height has been significantly improved after filtering,
reaching an accuracy of 0.97 with an error in RMSE of 0.50 m. The performance of the filtering algorithm in the vertical direction is also analyzed in the research, along with a discussion on tree height classification. Tree heights were classified into three groups, i.e., low trees
, medium trees
, and tall trees
. The accuracy of each group was evaluated accordingly.
After applying the filtering algorithm, the data points moved toward a lower standard deviation and a higher correlation coefficient. This indicates that the filtering algorithm effectively improved the accuracy of tree height estimation by reducing the standard deviation and enhancing the correlation between the estimated and actual values. In the research, due to the insufficient sample size of short trees in the group
, samples in this group were not considered in the classification discussion. As shown in
Figure 16, the accuracy of tree height for medium and tall trees improved after filtering. The accuracy for medium trees after filtering was 0.52 m, an improvement of 48.01%, and for tall trees, the accuracy was 0.43 m, an improvement of 56.39%.
Compared to the improvement in DBH accuracy, the enhancement in tree height accuracy was less significant. This is primarily due to the maximum scanning range and maximum scanning angle of the LiDAR, and more importantly, the degree of mutual occlusion among the leaves. If the degree of leaf occlusion is high and the canopy closure is dense, the LiDAR may not be able to scan the tree tops, making it difficult for any filtering algorithm to achieve high accuracy. In plots where the LiDAR can scan the tree tops, the adaptive filtering algorithm proposed in the paper can effectively improve the accuracy of vertical tree height, particularly for tall trees over 15 m.
4.5. Adaptability of Adaptive Guided Point Cloud Filtering
When employing BLS to scan forest plots, SLAM algorithms are typically used to assist in constructing forest point cloud maps, which helps in reducing significant errors during point cloud registration. However, some sources of error are not solely limited to the precision of hardware and algorithms. Factors such as mutual occlusion between trees and shrubs, the shedding of pine bark, and decreased point cloud density due to scanning angles also contribute to inaccuracies. In this context, the adaptive guided point cloud filtering algorithm demonstrates good adaptability to the accuracy losses caused by these factors.
Figure S2 demonstrates the performance of the adaptive guided point cloud filtering algorithm on different types of forest point cloud data concerning DBH. This includes normal DBH slices (full circles), DBH slices with shrub noise, and incomplete DBH slices (semi-circles). Before filtering, the point cloud slices are sparse and scattered, containing significant noise, which greatly affects subsequent parameter extraction. After filtering, the DBH slices retain complete structural information and display a clearer and more coherent point cloud. The noise points are substantially reduced, and the filtered point cloud more accurately reflects the actual DBH surface. Despite the presence of shrub noise, the filtering effect remains unaffected, effectively separating the DBH slices from shrubs and intersecting branches. For the incomplete DBH slices, the filtering algorithm maintains stable performance without any observed degradation, even under unchanged algorithm threshold conditions. These results indicate that the filtering algorithm exhibits good adaptability across different DBH slices.
Figure 17 illustrates the performance of the adaptive guided point cloud filtering algorithm on different types of forest point cloud data concerning tree height. This includes dense single-tree point clouds, single-tree point clouds with ground noise, and sparse single-tree point clouds. After filtering, noise in the stem section of the single-tree point clouds is reduced, and the contours of the stem and branches become clearer (
Figure 17a). The point cloud of the tree canopy remains unchanged by the filtering algorithm, preserving the complete tree shape. Despite the presence of ground noise, the filtering effect remains robust, with the stem section well separated from the ground, avoiding any merging of stem and ground point clouds (
Figure 17b). Filtering also allows for the visibility of the growth patterns of shrubs. In sparse single-tree point clouds, the algorithm maintains a good tree shape, ensuring effective filtering without causing clumping of the point cloud (
Figure 17c).
In summary, the adaptive guided point cloud filtering algorithm demonstrates excellent adaptability to point clouds of different forest types and densities in terms of both DBH and tree height. The filtering algorithm holds promise for providing robust technical support for forest resource management and environmental monitoring.
5. Conclusions
A novel point cloud adaptive filtering algorithm for LiDAR SLAM in forest environments based on guidance information was proposed by the research. The algorithm aimed to reduce the impact of odometry errors on the estimation of forest structural parameters during the forest SLAM mapping process. It constructs a linear model based on the original point cloud and the filtered point cloud, determining the parameters of the linear model by minimizing a cost function, thereby building a point cloud filter. The point cloud filter is integrated into the SLAM system module to perform adaptive guided filtering on each frame of the point cloud. The algorithm is applicable to MLS-based forest SLAM systems, offering a new approach for forest SLAM mapping.
The results indicate that the proposed adaptive guided filtering algorithm exhibits high robustness under various slope conditions in forested areas. For small, medium, and relatively large DBH groups, as well as for medium and tall tree height groups, the adaptive guided filtering algorithm performs better, improving DBH accuracy by 80.87%, 61.36%, and 43.15%, and tree height accuracy by 48.01% and 56.39%. The adaptive guided filtering algorithm is also suitable for processing single-tree data with varying point cloud densities, particularly noisy point clouds containing shrubs and shedding bark fragments. It is important to note that when using the adaptive guided filtering algorithm, the data from different LiDAR sensors should be considered, as the point cloud data density and structure can vary significantly between sensors. Appropriate parameter thresholds need to be selected when applying the adaptive guided filtering algorithm to different sensors.