Next Article in Journal
Long-Term Nitrogen Addition Regulates Plant-Soil 15N–13C Coupling Through Species Traits and Temporal-Spatial Dynamics in a Temperate Forest
Previous Article in Journal
Post-Harvest Evaluation of Logging-Induced Compacted Soils and the Role of Caucasian Alder (Alnus subcordata C.A.Mey) Fine-Root Growth in Soil Recovery
Previous Article in Special Issue
Quantitative Impacts of Socio-Economic Changes on REDD+ Benefits in Xishuangbanna Rainforests
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Comparative Evaluation of Threshold Segmentation and LiDAR for Sawmill Residue Volume Estimation

by
Carlos Borrego-Núñez
1,
Juan de Dios García-Quezada
2,
Leonardo Vásquez-Ibarra
3,4,
Pablito Marcelo López-Serrano
5,
Pedro Antonio Domínguez-Calleros
6,
Artemio Carrillo-Parra
5 and
Jorge Luis Compeán-Aguirre
1,*
1
Programa Institucional de Doctorado en Ciencias Agropecuarias y Forestales, Universidad Juárez del Estado de Durango, Durango 34120, Mexico
2
Laboratorio de Investigación en Biomasa y Energía Renovable (LIBER), Universidad Juárez del Estado de Durango, Durango 34120, Mexico
3
Department of Computing and Industries, Faculty of Engineering Sciences, Universidad Católica del Maule, Av. San Miguel 3605, Talca 3480112, Chile
4
Centro de Innovación en Ingeniería Aplicada (CIIA), Faculty of Engineering Sciences, Universidad Católica del Maule, Av. San Miguel 3605, Talca 3480112, Chile
5
Instituto de Silvicultura e Industria de la Madera, Universidad Juárez del Estado de Durango, Durango 34120, Mexico
6
Facultad de Ciencias Forestales y Ambientales, Universidad Juárez del Estado de Durango, Durango 34120, Mexico
*
Author to whom correspondence should be addressed.
Forests 2025, 16(7), 1045; https://doi.org/10.3390/f16071045
Submission received: 8 May 2025 / Revised: 6 June 2025 / Accepted: 20 June 2025 / Published: 22 June 2025

Abstract

The sawn timber production process generates up to 63% of residues during primary processing in sawmills. For this industry, the devaluation and disposal of these residues remain significant challenges; proper management requires a more accurate quantification of the volume. This study evaluates and compares two indirect methods for estimating the volume of stacked residues: one based on image processing and the other on terrestrial LiDAR technology. Residues of Pinus spp. from a sawmill were used, with their actual volume determined using a xylometer. The image-based method, which uses threshold-based segmentation, achieved a R2 = 0.64 and RMSE = 0.006 m3. In contrast, the LiDAR-based method, which derives measurements directly from 3D reconstruction, obtained an R2 = 0.506 and RMSE = 0.009 m3. Despite these differences, ANOVA testing (p > 0.05) indicated no statistically significant differences between the methods. The results suggest that both approaches may serve as preliminary tools for forest residue quantification and provide a solid foundation for future research aimed at developing field-applicable technological solutions.

1. Introduction

The world has 4.1 billion of hectares of the land area dedicated to forest, representing 31% of the worldwide area, equivalent to 0.52 ha·person−1 [1]. More than half of this area is concentrated in just five countries: Russia, Brazil, Canada, the United States, and China [2]. In Mexico, forested land accounts for 66.6 million hectares [3], positioning it as the country with the 12th highest land area. In the country, the states of Chihuahua, Sonora, Coahuila, Durango, and Baja California Sur account for 49% of the national area altogether [4]. Particularly, the state of Durango encompasses 5.8 million hectares of forested area [5]. These forests host rich biodiversity, with three dominant genera: Pinus, with 22 species; Quercus, with 44 species; and Arbutus, with 7 species [6]. The structure of these forests is heterogeneous, both in terms of the spatial distribution of trees (vertical and horizontal irregularity) and in the variation of tree and stand ages [7]. The importance of these ecosystems extends beyond their environmental dimension; they also support a forest industry that is vital for economic development. Despite facing challenges such as illegal logging and the need for sustainable management, this activity remains a strategic pillar of local economies. In this context, the wood production chain relies heavily on sawmills, which operate under various forest management schemes aimed at improving efficiency and minimizing environmental impact.
The sawmilling agroindustry, present throughout Mexico, has a strong concentration in states with extensive forest cover, such as the state of Durango. At the national level, sawn wood production reaches 3.362 million cubic meters, representing 0.7% of global output, and it serves as a vital source of income for rural and indigenous communities that depend on forest management. However, despite accounting for more than two-thirds of total timber production, the sector has shown a slightly negative trend in both output and economic value, indicating a deterioration that requires urgent attention [8].
The sawn timber process generates over 63% residues, with 10 to 15% produced at logging sites and 40 to 50% during primary processing. Sawmill residues can account for nearly 55% of the log feedstock volume, depending on the log diameter and sawing pattern [9]. In Mexico, timber harvesting and processing operations, such as felling, transportation, and sawing, generate significant volumes of residues that often hold minimal commercial value [10,11].
Sawmill residues that are not collected or utilized can generate several problems, such as social, economic, and environmental ones [12,13]. For instance, they are a potential source of fire generation, and their decomposition produces odors that affect the population as well as greenhouse gases that exacerbate global warming [14,15]. Therefore, one of the ways to utilize these residues is in the power industry, where they account for the largest portion of solid biomass used in combined heat and power plants and heat-generating facilities, primarily in the form of chips. This results in an increasing global demand for this material, highlighting the importance of understanding the characteristics and variability of sawmill biofuels [9], and requires a detailed knowledge of the volumes and qualities of these residues [11,16].
The estimation of solid wood volume from stacked wood is a common practice across global forestry sectors, where conversion or stacking factors are applied to relate gross (apparent) volume to solid content. These factors, extensively used in countries such as Romania, Norway, Spain, and Canada, are essential for biomass estimation, transportation logistics, and commercial transactions involving pulpwood and firewood [17].
The estimation of firewood, chips, and sawdust volume in the forest industry traditionally relies on stacking methods [18]. Approaches such as stere-based estimation or xylometry, although accurate, are time-consuming and operationally restrictive. These conditions highlight the need for practical, efficient, and scalable alternatives that can be adapted to diverse forest contexts, especially in developing regions where infrastructure is limited. In this sense, the development of visual and digital tools to estimate residue volume more reliably contributes to standardizing metrics and improving the economic valuation of forest by-products across the value chain [17,19].
To overcome the disadvantages of manual measurement, researchers have proposed automated measurement methods, which employ photoelectric, optical, or laser-based technologies to calculate the volume [20]. Modern aerial and terrestrial remote sensing platforms equipped with camera and/or light detection and ranging (LiDAR) units have been increasingly popular for conducting high-fidelity geometric measurements [21]. Although these methods achieve satisfactory detection accuracy, their widespread adoption is limited due to the lack of portability of the equipment [20].
Image segmentation plays a critical role in computer vision and pattern recognition. As a core component of modern image processing systems, computer vision-based object detection and recognition depend heavily on accurate segmentation to ensure reliable and effective analysis of visual data [22,23,24]. To improve the portability and efficiency of the measurement, researchers utilize computer vision to automatically detect wood and measure it [20]. Thresholding is the simplest method of image segmentation. The input to a thresholding operation is typically a grayscale or color image. In the simplest implementation, the output is a binary image representing the segmentation. This method of segmentation applies a single fixed criterion to all pixels in the image simultaneously. The advantage of obtaining a binary image first is that it reduces the complexity of the data and simplifies the process of recognition and classification [25]. Threshold segmentation is an efficient method for estimating the volume of a residue pile from the stacking coefficient from images [16].
Given the limited literature on standardized methods for quantifying sawmill residues (particularly in regions such as Latin America), this study adopts an exploratory approach to compare the accuracy of two indirect methods for estimating the volume of stacked forest residues: one based on image segmentation and the other employing terrestrial LiDAR scanning for residues 3D reconstruction. To evaluate the performance of both methods, reference volumes were obtained using a xylometer.

2. Materials and Methods

2.1. Study Area

The study was conducted at a private sawmill located in the municipality of Durango, Mexico, a region with a temperate climate, average annual temperatures ranging from 16 to 20 °C, and precipitation between 500 and 800 mm [26] (Figure 1a). The sawmill produces a variety of wood products, including boards, planks, and beams, in a wide range of dimensions. These products are obtained through mechanical wood processing under controlled conditions, ensuring compliance with technical quality standards. The resulting physical and dimensional properties make them suitable for both structural and non-structural applications, particularly in the fields of construction, carpentry, and manufacturing. During the sawing process, wood residues such as sawdust, bark, and offcuts are also generated (Figure 1b).

2.2. Materials

The residues utilized in this study, derived from Pinus spp., were generated during the primary sawing process using a main bandsaw. These materials, which are often discarded or incinerated without energy recovery, reflect common waste management practices in sawmills across the region (Figure 2a). To quantify the volume of these residues, twelve control piles were constructed, arranged in three groups of four piles each. The piles were trapezoidal in shape, with a uniform base length of 1.2 m and a width of 0.5 m. However, the height of the piles varied (Figure 2b).

2.3. Workflow Diagram

A workflow diagram (Figure 3) was developed to summarize the main stages involved in estimating the volume of sawmill residues using two indirect methods: 2D image analysis and LiDAR technology. The process begins with the arrangement of Pinus spp. residues in trapezoidal piles. The real volume is first determined using the xylometer method, which serves as a reference for validating the indirect estimations.
In the first approach, 2D images are captured using Nikon and iPhone cameras. The apparent volume is calculated using the trapezoidal volume formula. A threshold-based segmentation is then applied to distinguish pixels corresponding to solid wood and voids. This information is used to compute a stacking coefficient, representing the proportion of solid wood within the total pile volume. The estimated volume is then obtained by applying this coefficient to the apparent volume.
In the second approach, a LiDAR scanner is used to generate 3D point clouds. From these, a rasterization process is performed to derive the stacking coefficient. The apparent volume is calculated from the point cloud and adjusted using the stacking coefficient to estimate the volume.
Finally, both indirect estimations are compared against the reference volume to assess their accuracy and effectiveness.

2.4. Xylometer Method and Real Volume

The reference volume of residue piles was determined using the water displacement method (xylometer), a commonly used and reliable approach for irregularly shaped materials [27]. This method involves submerging a porous solid in water within a graduated cylinder and measuring the difference between initial and final water levels to calculate the bulk volume (Figure 4). Although it requires careful execution, it is considered one of the most accurate methods for approximating real volume [28]. The obtained results were used as a control in this study.
To determine the volume, a 220 L cylinder with a diameter of 0.568 m was used. An internal tape measure was attached to the cylinder to measure the displacement of water during immersion. The twelve piles were separated into samples that allowed immersion in the cylinder. The volume of the samples was calculated using Equation (1).
V = π × r 2 × h
where
  • V = volume (m3);
  • r2 = radius squared (m);
  • h = height (m).
After obtaining the volume of each individual sample through water displacement, the values were summed to determine the total reference volume of each pile.

2.5. Volume Estimation from 2D Images

To estimate the volume of the piles, a comprehensive image processing pipeline was developed. This pipeline consists of several steps: image acquisition, calculation of apparent volume in piles, color space conversion, semantic segmentation, calculation of the stacking coefficient, and the subsequent estimation of the volume. The entire process was implemented using Python version 3.11.11, with image processing by the OpenCV library version 4.10.0 and NumPy version 1.26.4.

2.5.1. Image Acquisition

Images from two sides (front and rear faces) of the stacks were acquired with a Nikon HD digital SLR camera (Nikon, Tokyo, Japan) at a resolution of 6000 × 4000 pixels. Additional images were also captured with an iPhone SE 2022 (Apple Inc., Cupertino, CA, USA), which has a 12 MP wide-angle rear camera and ƒ/1.8 aperture (Figure 5). All images were captured under natural daylight to reduce potential lighting-induced bias and to ensure consistency across data. To reduce perspective distortion and optimize image resolution and feature detail, the camera was positioned perpendicular to the pile face, with the field of view adjusted to encompass the largest possible portion of the stack within the frame.

2.5.2. Apparent Volume in Piles

The piles were assumed to have a trapezoidal shape, and their volume was calculated using the formula for a regular prism (Equation (2)).
V o l = b 1 + b 2 × h 2 × H
where
  • V o l = apparent volume (m3);
  • b 1 = length of the first base (m);
  • b 2 = length of the second base (m);
  • h = height (perpendicular distance) between the two parallel bases of the trapezoid (m);
  • H = length of the prism (m).

2.5.3. Threshold Segmentation

Semantic segmentation involves classifying each pixel in an image into predefined categories [29]. Among various segmentation methods, thresholding is the simplest. It transforms grayscale or color images into binary outputs by comparing the intensity of each pixel to a defined threshold value [25,30,31]. This operation is defined in the following Equation (3):
I m x , y = 255 I m x , y > t h r e s h o l d 0 I m x , y < t h r e s h o l d
where
  • Im′ (x, y) = new image with the classified pixels;
  • Im (x, y) = original image;
  • threshold = value that allows to differentiate the objects present in the image.
In this study, the pixel values in Im′ (x, y) were used to represent semantic classes, where 255 (white) corresponds to wood, and 0 (black) indicates holes or absence of wood. Figure 6 illustrates a representative result of the threshold segmentation applied to a 2D image, highlighting the distinction between solid wood and void areas. Threshold segmentation was applied to both image sets to compare the accuracy of a smartphone camera with a professional camera.
To improve the robustness of the threshold segmentation method against variations in lighting conditions, image processing was performed in the CIELAB color space. This color space is designed to be perceptually uniform and device-independent, making it more stable under different illumination scenarios compared to RGB [32]. Developed by the International Commission on Illumination (CIE) in 1976, it represents all human-perceptible colors within a three-dimensional space consisting of three channels: “L” for luminance and “a” and “b” for chromaticity. Unlike RGB and CMYK color models, CIE Lab is designed to approximate human vision, achieving perceptual uniformity by closely aligning the “L” component with human perception of lightness. This allows for precise color balance adjustments and lightness contrast corrections. Additionally, its ability to perform segmentation independently of brightness fluctuations makes it particularly useful in variable environmental conditions during image capture [33,34].

2.5.4. Stacking Coefficient Images

To obtain the stacking coefficient, the segmented images Im′ (x, y) are used, in which the pixels corresponding to wood (value 255) are counted and divided by the total number of pixels in the image. In other words, the percentage of solid wood is calculated. This procedure is summarized in Equation (4).
S c i m = W p   T p
where
  • S c i m = stacking coefficient;
  • W p = wood pixels;
  • T p = total pixels.
The stacking coefficient for each pile is then determined as the average of the coefficients for the front and rear faces.

2.5.5. Estimated Volume Images

Finally, the estimated volume from each pile is obtained by multiplying the apparent volume by the stacking coefficient according to Equation (5) [35].
E V o l = V o l · S c ¯
where
  • E V o l = estimated volume (m3);
  • V o l = apparent volume (m3);
  • S c ¯ = average stacking coefficient.

2.6. Volume Estimatation Using Light Detection and Ranging (LiDAR)

For volume estimation using a terrestrial laser scanning (TLS), the pipeline involved several key steps. First, the concave hull was used to obtain the areas of the slices from the point cloud piles, which were then summed to estimate the apparent volume of each pile. Next, the stackings coefficients were computed through rasterization, which involved converting the point cloud sides into a raster format to estimate the percentage of solid wood. Finally, the estimated volume was calculated by applying the stacking coefficient to the apparent volume derived from the LiDAR data. The entire process was implemented using R software ver. 2023.12.1 Build 402 [36], which facilitated the processing and analysis of the LiDAR point cloud data.

2.6.1. Point Cloud Acquisition

In this study, TLS data were acquired using a FARO Focus Laser Scanner M70 (FARO, Lake Mary, FL, USA), which has a maximum range of 70 m and a measurement accuracy of ±3 mm. The scanner was configured with the “interior” profile, using a 1/4 resolution and 4× quality settings. This configuration resulted in an average point density of 234,679 points per square meter and a resolution of 10,310 × 4268 points.
To obtain a point cloud of the piles, a LiDAR scanner was positioned within a designated area of 4 × 4.5 m. Five scans were performed: four from each corner of the area and one from the center. This scanning arrangement was designed to capture a comprehensive dataset from multiple angles, ensuring an accurate representation of the pile dimensions and volume. The scanning angles were set to 300 degrees vertically and 360 degrees horizontally (Figure 7).
After scanning, the five scans were merged with eight reference targets distributed throughout the site, with the merging process completed using FARO® SCENE software ver. 5.5.3.16. and for segmentation of each pile. We used Cloud Compare software ver. 2.12.4.

2.6.2. Apparent Volume in LiDAR Data

For apparent volume, each point cloud was divided into 100 uniform levels along the z-axis, generating cross-sections with quasi-quadrangular geometries.
The areas of these sections were calculated using the Concaveman package [37], which constructs a concave hull fitted to the distribution of points in each plane, ensuring accuracy in surface representation. The volume between consecutive levels was estimated by multiplying the calculated area by the height between the levels, and the total volume of each pile was obtained by summing the volumes of all sections. This procedure ensured accuracy in representing the surface of each section (Figure 8).

2.6.3. Projected Area Calculation

For each pile, both of its sides were segmented using CloudCompare software ver. 2.13.0, and the x coordinate was discarded to project the points onto a (y, z) plane. The Concaveman [37] and Geometry [38] packages were then reapplied to calculate the area enclosed by the contour generated by concave hull.
Subsequently, a gridded mesh with a resolution of 0.00001225 m2 was generated to cover the spatial boundary of the point cloud. Grid cells were classified as either occupied or empty based on their intersection with the point cloud. The adjusted area was calculated by multiplying the number of occupied cells by the area of each cell [39,40]. This process is illustrated in Figure 9.
The accuracy of this method depends on the grid resolution: finer resolutions improve void detection but may approach the resolution limit of the laser scanner; in contrast, coarser resolutions reduce processing time but may underestimate voids. This combined geometric and rasterization approach enables accurate and reproducible surface estimations by incorporating both pile contours and internal voids (Figure 9).

2.6.4. Stacking Coefficient LiDAR Data

The stacking coefficient was calculated by dividing the area occupied by the wood by the total projected area of the plane.
S c L i D A R = W a T a
where
  • S c L i D A R = stacking coefficient;
  • W a = wood area;
  • T a = total area.

2.6.5. Estimated Volume of LiDAR Data

Finally, the estimated volume from each pile is obtained by multiplying the apparent volume by the stacking coefficient according to Equation (7) [35].
E V L i D A R = V L i D A R S c ¯ L i D A R
where
  • E V L i D A R = estimated volume (m3);
  • V L i D A R = apparent volume in LiDAR data (m3);
  • S c ¯ L i D A R = average stacking coefficient of two sides.

2.7. Data Analysis

The methods were statistically compared using a completely randomized experimental design, the normality of the data was evaluated with Shapiro–Wilk test, and variance homogeneity was assessed with Levene’s test. When the assumptions were met (p > 0.05), an analysis of variance (ANOVA) was performed, followed by Tukey’s test; otherwise (p < 0.05), a Kruskal–Wallis test with Dunn’s post hoc test was applied. Additionally, to assess the accuracy and the relationship between the studied methods and the reference method, the root mean square error (RMSE) and the coefficient of determination (R2) were calculated with Equations (8) and (9), respectively:
R M S E = 1 n i = 1 n y i y i ^ 2
where
  • n = number of observations;
  • yi = observed values;
  • ŷi = predicted values.
R 2 = i = 1 n y i y i ^ 2 i = 1 n y i y ¯ 2
where
  • yi = observed values;
  • ŷi = predicted values;
  • y ¯ = mean of observed values.
These metrics are useful for identifying the magnitude of the error and the proportion of variance explained, respectively. All the analyses were conducted using R software ver. 2023.12.1 Build 402 [36].

3. Results

3.1. Apparent Volume

The analysis of apparent volumes obtained using LiDAR and the trapezoidal formula demonstrated high consistency across both methods, as shown in Table 1. While the Shapiro–Wilk test indicated that the LiDAR data followed a normal distribution (p > 0.05), the trapezoidal formula data did not (p < 0.05). Kruskal–Wallis test (p = 0.7727) revealed no statistically significant differences between the methods. Furthermore, statistical grouping with Bonferroni correction [41] confirmed that both methods belonged to the same group, labeled as “a”.

3.2. Estimated Volume

The statistical analyses of volume obtained via iPhone (Apple Inc., Cupertino, CA, USA), Focus M70 (FARO, Lake Mary, FL, USA), Nikon (Nikon, Tokyo, Japan), and xylometer (Figure 10) showed no significant deviations from normality (Shapiro–Wilk, p > 0.05) or variances (Levene’s, p = 0.3403). ANOVA found no significant differences among methods (p = 0.0977), and Tukey’s test grouped all methods in the same category (“a”).

3.3. Evaluation of R2 and RMSE

The relationship between the control method (xylometer) and the iPhone, LiDAR, and Nikon methods was evaluated by calculating the coefficients of determination (R2) and the root mean square error (RMSE), as presented in Figure 11.

4. Discussion

These results suggest that, although all methods demonstrate a moderate ability to model the observed data, the Nikon method stands out for its accuracy, while the iPhone method offers an acceptable balance between R2 and RMSE. In contrast, the LiDAR method showed the lowest performance in both metrics (R2 = 0.506, RMSE = 0.009), which could be attributed to methodological differences or limitations in the processed data. LiDAR is a highly versatile tool that, based on the information obtained, enables the generation of diverse representations and the application of techniques to ensure reliable results, even when faced with limitations in data acquisition, such as unfavorable angles or objects obstructing the complete capture of information. In this case, the LiDAR allowed us to approximate the reference volume using the same principle as the threshold segmentation method through the use of the stacking coefficient.
The results of the comparative analysis indicate that the threshold segmentation method outperformed the LiDAR approach in estimating the volume of wood residue piles, achieving an R2 of 0.64 with an RMSE of 0.006 when using smartphone images. This method’s portability and ability to analyze images captured with smartphones demonstrate its efficiency in extracting features for object recognition and classification, making it a practical and reliable approach. Moreover, the widespread availability and inherent portability of mobile devices such as the iPhone not only facilitate real-time decision making through rapid on-site data acquisition and processing but also demonstrate great potential for integration into low-cost, smartphone-based applications that provide accurate and reliable information for the sawmill industry. Regarding image acquisition, although the CIELAB color space helps reduce sensitivity to variations in lighting conditions, these can still affect the quality of volume estimations. It is recommended that users ensure consistent and neutral lighting, preferably close to the CIE D65 standard (midday illumination), to avoid systematic errors. The influence of lighting on the results remains an open research topic, which could focus on developing a fixed lighting protocol or using color calibration charts to improve the reliability of the proposed methods. In addition to lighting conditions, camera calibration during image acquisition plays a critical role, as it directly affects the overall performance of volume estimations. Proper calibration ensures geometrically accurate projections and improves the precision of spatial measurements [42].
Although LiDAR-based methods are gaining attention due to their ability to produce accurately scaled models and their integration into smartphones and tablets [43,44], in this study, the LiDAR method achieved a lower R2 of 0.50 with an RMSE of 0.009. While LiDAR provides high precision, this method can significantly increase field measurement times (depending on the number of scans) and processing steps (depending on the number of targets and the method used for their detection in the point cloud) [45]. For example, Feifan et al. [46] reported a method using a mobile phone with a rangefinder that reached a measurement accuracy of 98.2%, highlighting the potential of emerging technologies. However, the effectiveness, processing time, and cost of these methods still depend on advancements in technology. An aspect that deserves attention in future work is the consideration of labor costs associated with the implementation of these methods, which was not addressed in this study. While equipment and accuracy are key factors, the time and effort required for preparing the residue piles, capturing consistent images, and processing data can represent significant costs. Regarding LiDAR, the time invested in each scan and the high computational cost impact its implementation. Evaluating these costs will provide a more comprehensive view of the economic feasibility and operational efficiency of each method in industrial contexts. Therefore, it is recommended that detailed analyses of labor costs be included in future research to strengthen the practical applicability of the proposed techniques. There will always be a need for faster, more accurate, and more cost-effective estimation methods, which highlights the importance of continuous improvement and ongoing testing. Accurately understanding sawmill residue volumes is essential for biomass assessment and optimizing resource management.
It is crucial to emphasize that using a xylometer as a reference to evaluate a LiDAR system is a paradoxical practice. The xylometer exhibits greater measurement uncertainty due to factors such as visual reading, limited resolution, and operator influence [47,48]. In contrast, LiDAR, as an advanced electronic device, offers significantly higher precision and stability in its measurements. Therefore, relying on a traditional method as a benchmark introduces an inherent discrepancy in the measurement process. This situation highlights the importance of carefully selecting an appropriate reference standard, especially in the estimation of forest residues. The results obtained may be biased due to this methodological choice, yet they still show great potential for improving accuracy in future studies.
Finally, this study shows that more accurately identifying the amount of sawmill residues allows not only an improvement of operational efficiency for the industry but also a better performance for determining circular indicators. Similar conclusions were reached by Krigstin et al. [49], who emphasized the importance of reliable data on sawmill residues for developing sustainable biomass supply chains. In this context, the sawmill industry plays a key role in achieving sustainable development, and technologies such as smartphones and pattern recognition are crucial for identifying and quantifying by-products. This contributes to the proposal of well-defined circular indicators to enhance the sustainable performance of the industry.

5. Conclusions

This study demonstrates that the threshold segmentation method is a practical and efficient approach for estimating the volume of residue piles from images, particularly those captured by smartphones. This method shows great potential for integration into low-cost, smartphone-based applications, providing accurate and reliable information for the sawmill industry. Additionally, Light Detection and Ranging (LiDAR)-based geospatial field data acquisition using smartphones and tablets can also produce accurate volume estimations, but its widespread adoption is limited because not all smartphones are equipped with this technology. Therefore, it is recommended to continue testing the threshold segmentation method against LiDAR-equipped smartphones and explore its application in low-cost smartphone-based solutions. Moreover, as smartphone camera technology continues to advance, it is possible that the accuracy of the threshold segmentation method could improve with higher-resolution sensors and enhanced image processing capabilities. The implementation of these smartphone-based solutions not only facilitates better decision making but also helps to promote more sustainable practices in the sawmill industry by reducing uncertainty regarding the amount and type of sawmill residues. Future work should focus on further refining the threshold segmentation method by testing and validating it in various operational environments to assess its robustness across different sawmill settings and residue types.

Author Contributions

Conceptualization, C.B.-N., A.C.-P. and J.L.C.-A.; methodology, C.B.-N., J.L.C.-A. and P.M.L.-S.; software, J.L.C.-A.; validation, C.B.-N. and J.L.C.-A.; investigation, C.B.-N., A.C.-P. and J.L.C.-A.; data curation, C.B.-N., A.C.-P., J.L.C.-A. and P.M.L.-S.; writing—original draft preparation, C.B.-N.; writing—review and editing, C.B.-N., A.C.-P., J.L.C.-A. and P.M.L.-S.; supervision, P.A.D.-C., L.V.-I. and J.d.D.G.-Q. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

The data presented in this study are available on request from the corresponding author.

Acknowledgments

We extend our gratitude to the National Council of Humanities, Sciences, and Technologies (CONAHCYT) for the scholarship provided to pursue the Ph.D. We also express our thanks to the Durango State Council of Science and Technology (COCYTED) for their support. The authors thank the Laboratorio Nacional CONAHCYT de Biocombustibles Sólidos (BIOENER) (ApoyoLNC-2023-40).

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. FAO. Global Forest Resources Assessment 2020—Key Findings; Food and Agriculture Organization: Rome, Italy, 2020. [Google Scholar] [CrossRef]
  2. FAO. El Estado de los Bosques del Mundo 2024: Innovaciones en el Sector Forestal Para Lograr Un Futuro Más Sostenible; Food and Agriculture Organization: Rome, Italy, 2024. [Google Scholar] [CrossRef]
  3. CONAFOR. Principales Indicadores del Sector Forestal en México. Data Bosques. Available online: https://databosques.cnf.gob.mx/inicio/ (accessed on 3 June 2025).
  4. CONAFOR. Estado que Guarda el Sector Forestal en México; Comisión Nacional Forestal: Zapopan, Mexico, 2020.
  5. CONAFOR. Principales Indicadores Forestales, Ciclo 2015–2020; Comisión Nacional Forestal: Zapopan, Mexico, 2020. Available online: https://snmf.cnf.gob.mx/principaleindicadoresforestalesciclo-2015-2020/ (accessed on 24 January 2025).
  6. González-Elizondo, M.S.; González-Elizondo, M.; Tena-Flores, J.A.; Ruacho-González, L.; López-Enríquez, I.L. Vegetación de la Sierra Madre Occidental, México: Una síntesis. Acta Bot. Mex. 2012, 100, 351–403. [Google Scholar] [CrossRef]
  7. Wehenkel, C.; Corral-Rivas, J.J.; Hernández-Díaz, J.C.; von Gadow, K. Estimating balanced structure areas in multi-species forests on the Sierra Madre Occidental, Mexico. Ann. For. Sci. 2011, 68, 385–394. [Google Scholar] [CrossRef]
  8. Moctezuma López, G.; Ramírez Sánchez, E.U.; Pérez Miranda, R.; Ramírez García, A.G.; Rodríguez Sauceda, E.N. Evolución del producto interno bruto (PIB) de la industria del aserrío: Ícono del sector forestal mexicano (1995–2019). Rev. Ra Ximhai 2021, 17, 265–284. [Google Scholar] [CrossRef]
  9. Dudziec, P.; Stachowicz, P.; Stolarski, M.J. Diversity of properties of sawmill residues used as feedstock for energy generation. Renew. Energy 2023, 202, 822–833. [Google Scholar] [CrossRef]
  10. Moreno-Lopez, M.; Alarcón-Herrera, M.T.; Martin-Dominguez, I.R. Feasibility of pelletizing forest residues in Northern Mexico. Waste Biomass Valorization 2017, 8, 923–932. [Google Scholar] [CrossRef]
  11. Fregoso-Madueño, J.N.; Goche-Télles, J.R.; Rutiaga-Quiñones, J.G.; González-Laredo, R.F.; Bocanegra-Salazar, M.; Chávez-Simental, J.A. Usos alternativos de los desechos de la industria del aserrío. Rev. Chapingo Ser. Cienc. For. Y Del Ambient. 2017, 23, 243–260. [Google Scholar] [CrossRef]
  12. Fagbenro, O.K.; Abdulfatai, K. Review on the Environmental Impact of Saw Mill Waste Discharges in Nigeria. J. Civ. Environ. Stud. 2018, 1, 75–81. [Google Scholar] [CrossRef]
  13. Olawuni, P.O.; Okunola, O.H. Socioeconomic Impacts of Sawmill Industry on Residents: A Case Study of Ile-Ife, Nigeria. J. Econ. Dev. Stud. 2014, 2, 167–176. [Google Scholar] [CrossRef]
  14. Tian, J.; Yu, F.; Guo, Z.; Yan, Y.; Xie, Y.; Ma, Z.; Li, Q.; Fousseni, F.; Liu, W. Forest residues contribute significantly to climate change in China. Resour. Conserv. Recycl. 2023, 198, 107157. [Google Scholar] [CrossRef]
  15. Costa Pinto, L.; Sousa, S.; Valente, M. Forest bioenergy as a land and wildfire management tool: Economic valuation under different informational contexts. Energy Policy 2022, 161, 112765. [Google Scholar] [CrossRef]
  16. Borrego-Núñez, C.; López-Serrano, P.M.; Domínguez-Calleros, P.A.; Compeán-Aguirre, J.L.; Carrillo-Parra, A. Use of the threshold segmentation method as an alternative for estimating the volume of forest industry residues. J. For. Sci. 2024, 70, 135–143. [Google Scholar] [CrossRef]
  17. Câmpu, V.R.; Dumitrache, R.; Borz, S.A.; Timofte, A.I. The impact of log length on the conversion factor of stacked wood to solid content. Wood Res. 2015, 60, 503–518. [Google Scholar]
  18. Rondeux, J. Medición de Árboles y Masas Forestales; Mundi-Prensa Libros: Madrid, Spain, 2010. [Google Scholar]
  19. Antunes Santana, O.; Imaña Encinas, J.; Riesco Muñoz, G. Stacking factor in transporting firewood produced from a mixture of Caatinga biome species in Brazil. Int. J. For. Eng. 2023, 34, 54–63. [Google Scholar] [CrossRef]
  20. Yu, C.; Sun, Y.; Cao, Y.; He, J.; Fu, Y.; Zhou, X. A Novel Wood Log Measurement Combined Mask R-CNN and Stereo Vision Camera. Forests 2023, 14, 285. [Google Scholar] [CrossRef]
  21. Manish, R.; Hasheminasab, S.M.; Liu, J.; Koshan, Y.; Mahlberg, J.A.; Lin, Y.C.; Ravi, R.; Zhou, T.; McGuffey, J.; Wells, T.; et al. Image-aided LiDAR mapping platform and data processing strategy for stockpile volume estimation. Remote Sens. 2022, 14, 231. [Google Scholar] [CrossRef]
  22. Hartl, A.; Arth, C.; Schmalstieg, D. Instant segmentation and feature extraction for recognition of simple objects on mobile phones. In Proceedings of the 2010 IEEE Computer Society Conference on Computer Vision and Pattern Recognition-Workshops, San Francisco, CA, USA, 13–18 June 2010; pp. 17–24. [Google Scholar]
  23. Ganesan, P.; Rajini, V.; Rajkumar, R.I. Segmentation and edge detection of color images using CIELAB color space and edge detectors. In Proceedings of the INTERACT-2010, Chennai, India, 3–5 December 2010; pp. 393–397. [Google Scholar]
  24. Yu, Y.; Wang, C.; Fu, Q.; Kou, R.; Huang, F.; Yang, B.; Yang, T.; Gao, M. Techniques and challenges of image segmentation: A review. Electronics 2023, 12, 1199. [Google Scholar] [CrossRef]
  25. Bhargavi, K.; Jyothi, S. A survey on threshold-based segmentation technique in image processing. Int. J. Innov. Res. Dev. 2014, 3, 234–239. [Google Scholar]
  26. García, E. Modificaciones al Sistema de Clasificación Climática de Köppen, 5th ed.; Instituto de Geografía, Universidad Nacional Autónoma de México: Ciudad de México, Mexico, 2004. [Google Scholar]
  27. Robert, U.W.; Etuk, S.E.; Agbasi, O.E. Bulk volume determination by modified water displacement method. Iraqi J. Sci. 2019, 60, 1704–1710. [Google Scholar] [CrossRef]
  28. Pásztory, Z.; Heinzmann, B.; Barbu, M.-C. Manual and automatic volume measuring methods for industrial timber. IOP Conf. Ser. Earth Environ. Sci. 2018, 159, 012019. [Google Scholar] [CrossRef]
  29. Minaee, S.; Boykov, Y.; Porikli, F.; Plaza, A.; Kehtarnavaz, N.; Terzopoulos, D. Image segmentation using deep learning: A survey. IEEE Trans. Pattern Anal. Mach. Intell. 2022, 44, 3523–3542. [Google Scholar] [CrossRef]
  30. Sezgin, M.; Sankur, B.L. Survey over image thresholding techniques and quantitative performance evaluation. J. Electron. Imaging 2004, 13, 146–168. [Google Scholar]
  31. Bradski, G.; Kaehler, A. Learning OpenCV: Computer Vision with the OpenCV Library; O’Reilly Media, Inc.: Sebastopol, CA, USA, 2008. [Google Scholar]
  32. Luo, M.R. CIELAB. In Encyclopedia of Color Science and Technology; Shamey, R., Ed.; Springer: Cham, Switzerland, 2023. [Google Scholar] [CrossRef]
  33. Rico-Fernández, M.P.; Rios-Cabrera, R.; Castelán, M.; Guerrero-Reyes, H.-I.; Juarez-Maldonado, A. A contextualized approach for segmentation of foliage in different crop species. Comput. Electron. Agric. 2019, 156, 378–386. [Google Scholar] [CrossRef]
  34. Pare, S.; Kumar, A.; Singh, G.; Bajaj, V. Image segmentation using multilevel thresholding: A research review. Iran. J. Sci. Technol. Trans. Electr. Eng. 2019, 44, 1–29. [Google Scholar] [CrossRef]
  35. Galán Larrea, R.; Pérez Galeana, J.C.; Rivera Nava, J.L.; Valera Venegas, G. Volumen y rentabilidad de la leña en un acahual intervenido con roza, tumba y quema en la región costa de Oaxaca. Cienc. Mar 2014, 54, 3–18. [Google Scholar]
  36. RStudio Team. RStudio (Version 2023.12.1 Build 402) [Software]. Available online: https://posit.co/products/open-source/rstudio/ (accessed on 15 May 2025).
  37. Gombin, J.; Vaidyanathan, R.; Agafonkin, V.; Mapbox. Package Concaveman (Version 1.1.0) [R Package]. Available online: https://cran.r-project.org/web/packages/concaveman/index.html (accessed on 15 May 2025).
  38. Roussel, J.-R.; Barber, C.B.; Habel, K.; Grasman, R.; Gramacy, R.B.; Mozharovskyi, P.; Sterratt, D.C. Package Geometry (Version 0.5.1) [R Package]. Available online: https://cran.r-project.org/web/packages/geometry/index.html (accessed on 15 May 2025).
  39. Xie, P.; Liu, Y.; He, Q.; Zhao, X.; Yang, J. An efficient vector-raster overlay algorithm for high-accuracy and high-efficiency surface area calculations of irregularly shaped land use patches. ISPRS Int. J. Geo-Inf. 2017, 6, 156. [Google Scholar] [CrossRef]
  40. Feng, H.; Chen, Y.; Luo, Z.; Sun, W.; Li, W.; Li, J. Automated extraction of building instances from dual-channel airborne LiDAR point clouds. Int. J. Appl. Earth Obs. Geoinf. 2022, 114, 103042. [Google Scholar] [CrossRef]
  41. Haynes, W. Bonferroni correction. In Encyclopedia of Systems Biology; Dubitzky, W., Wolkenhauer, O., Cho, K.-H., Yokota, H., Eds.; Springer: New York, NY, USA, 2013; p. 154. [Google Scholar] [CrossRef]
  42. Heikkila, J.; Silvén, O. A Four-Step Camera Calibration Procedure with Implicit Image Correction. In Proceedings of the IEEE Computer Society Conference on Computer Vision and Pattern Recognition, San Juan, PR, USA, 17–19 June 1997; pp. 1106–1112. [Google Scholar] [CrossRef]
  43. Corradetti, A.; Seers, T.; Mercuri, M.; Calligaris, C.; Busetti, A.; Zini, L. Benchmarking different SfM-MVS photogrammetric and iOS LiDAR acquisition methods for the digital preservation of a short-lived excavation: A case study from an area of sinkhole related subsidence. Remote Sens. 2022, 14, 5187. [Google Scholar] [CrossRef]
  44. Gülci, S.; Yurtseven, H.; Akay, A.O.; Akgul, M. Measuring tree diameter using a LiDAR-equipped smartphone: A comparison of smartphone- and caliper-based DBH. Environ. Monit. Assess. 2023, 195, 678. [Google Scholar] [CrossRef]
  45. Dassot, M.; Constant, T.; Fournier, M. The use of terrestrial LiDAR technology in forest science: Application fields, benefits and challenges. Ann. For. Sci. 2011, 68, 959–974. [Google Scholar] [CrossRef]
  46. Yan, F.; Feng, Z.; Li, T.; Wang, M. Research on the method of log scaling by mobile phone combined with rangefinder. For. Grassl. Res. Res. 2016, 6, 120. [Google Scholar]
  47. Cordero, R.R.; Seckmeyer, G.; Labbe, F. Effect of the Resolution on the Uncertainty Evaluation. Metrologia 2006, 43, L33. [Google Scholar] [CrossRef]
  48. Zakharov, I.; Botsiura, O.; Semenikhin, V. Study of Reading Errors When Calibrating Analog Ohmmeters. Ukr. Metrol. J. 2024, 1, 17–22. [Google Scholar] [CrossRef]
  49. Krigstin, S.; Hayashi, K.; Tchórzewski, J.; Wetzel, S. Current inventory and modelling of sawmill residues in Eastern Canada. For. Chron. 2012, 88, 626–635. [Google Scholar] [CrossRef]
Figure 1. (a) Location of the study site in Durango, Mexico. (b) Transportation of residues from the sawmill.
Figure 1. (a) Location of the study site in Durango, Mexico. (b) Transportation of residues from the sawmill.
Forests 16 01045 g001
Figure 2. (a) Wood residues. (b) Control piles.
Figure 2. (a) Wood residues. (b) Control piles.
Forests 16 01045 g002
Figure 3. Methodological workflow of this study. The estimated volume is the product of the apparent volume and the stacking coefficient. In the figure, this operation is represented by the blue multiplication symbol.
Figure 3. Methodological workflow of this study. The estimated volume is the product of the apparent volume and the stacking coefficient. In the figure, this operation is represented by the blue multiplication symbol.
Forests 16 01045 g003
Figure 4. Scheme of the application of the xylometer to determine the reference volume of the piles.
Figure 4. Scheme of the application of the xylometer to determine the reference volume of the piles.
Forests 16 01045 g004
Figure 5. Images of both sides of pile number 5, captured with the Nikon® HD digital SLR camera (Nikon, Tokyo, Japan) and iPhone® SE 2022 (Apple Inc., Cupertino, CA, USA) camera.
Figure 5. Images of both sides of pile number 5, captured with the Nikon® HD digital SLR camera (Nikon, Tokyo, Japan) and iPhone® SE 2022 (Apple Inc., Cupertino, CA, USA) camera.
Forests 16 01045 g005
Figure 6. (a) Image of front pile number 5, with the background removed. (b) Image segmented (background lines included to enhance visualization).
Figure 6. (a) Image of front pile number 5, with the background removed. (b) Image segmented (background lines included to enhance visualization).
Forests 16 01045 g006
Figure 7. LiDAR scanning setup showing the sensor positions within the designated 4 × 4.5 m area. The arrows illustrate the horizontal and vertical movement of the LiDAR. The laser beam is shown in red, and the yellow dots indicate the device’s positions.
Figure 7. LiDAR scanning setup showing the sensor positions within the designated 4 × 4.5 m area. The arrows illustrate the horizontal and vertical movement of the LiDAR. The laser beam is shown in red, and the yellow dots indicate the device’s positions.
Forests 16 01045 g007
Figure 8. Concave hulls of cross-sections from three representative levels among the 100 uniform levels along the z-axis. Black circles denote points from the sectioned point cloud on planar slices. The blue line represents the traced concave hull.
Figure 8. Concave hulls of cross-sections from three representative levels among the 100 uniform levels along the z-axis. Black circles denote points from the sectioned point cloud on planar slices. The blue line represents the traced concave hull.
Forests 16 01045 g008
Figure 9. Process from points cloud, surface area calculation, and grid cells. The point cloud uses a Viridis colormap associated with height. In the planar slices, points are shown in black, and the concave hull is represented in blue.
Figure 9. Process from points cloud, surface area calculation, and grid cells. The point cloud uses a Viridis colormap associated with height. In the planar slices, points are shown in black, and the concave hull is represented in blue.
Forests 16 01045 g009
Figure 10. Box plot comparing volume estimates (m3) from iPhone, LiDAR, Nikon, and xylometer methods. The black lines represent medians, boxes indicate the interquartile range, and whiskers show data dispersion. Letters denote statistical groupings.
Figure 10. Box plot comparing volume estimates (m3) from iPhone, LiDAR, Nikon, and xylometer methods. The black lines represent medians, boxes indicate the interquartile range, and whiskers show data dispersion. Letters denote statistical groupings.
Forests 16 01045 g010
Figure 11. Comparison between observed volume values (measured with a xylometer) and predicted values from the (a) iPhone, (b) Nikon, and (c) LiDAR methods. Each panel includes the coefficient of determination (R2) and root mean square error (RMSE) as model performance metrics.
Figure 11. Comparison between observed volume values (measured with a xylometer) and predicted values from the (a) iPhone, (b) Nikon, and (c) LiDAR methods. Each panel includes the coefficient of determination (R2) and root mean square error (RMSE) as model performance metrics.
Forests 16 01045 g011
Table 1. Descriptive statistics of apparent volume.
Table 1. Descriptive statistics of apparent volume.
MethodMinimunMedianMeanMaximumSD
LiDAR0.08480.09870.09850.10700.0056
Trapezoidal formula0.08790.10050.09900.10310.0044
SD = standard deviation.
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Borrego-Núñez, C.; García-Quezada, J.d.D.; Vásquez-Ibarra, L.; López-Serrano, P.M.; Domínguez-Calleros, P.A.; Carrillo-Parra, A.; Compeán-Aguirre, J.L. A Comparative Evaluation of Threshold Segmentation and LiDAR for Sawmill Residue Volume Estimation. Forests 2025, 16, 1045. https://doi.org/10.3390/f16071045

AMA Style

Borrego-Núñez C, García-Quezada JdD, Vásquez-Ibarra L, López-Serrano PM, Domínguez-Calleros PA, Carrillo-Parra A, Compeán-Aguirre JL. A Comparative Evaluation of Threshold Segmentation and LiDAR for Sawmill Residue Volume Estimation. Forests. 2025; 16(7):1045. https://doi.org/10.3390/f16071045

Chicago/Turabian Style

Borrego-Núñez, Carlos, Juan de Dios García-Quezada, Leonardo Vásquez-Ibarra, Pablito Marcelo López-Serrano, Pedro Antonio Domínguez-Calleros, Artemio Carrillo-Parra, and Jorge Luis Compeán-Aguirre. 2025. "A Comparative Evaluation of Threshold Segmentation and LiDAR for Sawmill Residue Volume Estimation" Forests 16, no. 7: 1045. https://doi.org/10.3390/f16071045

APA Style

Borrego-Núñez, C., García-Quezada, J. d. D., Vásquez-Ibarra, L., López-Serrano, P. M., Domínguez-Calleros, P. A., Carrillo-Parra, A., & Compeán-Aguirre, J. L. (2025). A Comparative Evaluation of Threshold Segmentation and LiDAR for Sawmill Residue Volume Estimation. Forests, 16(7), 1045. https://doi.org/10.3390/f16071045

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop