Introduction

The cells within sapwood form a network of interconnected conduits that engage in the transport of water and nutrients from the tree roots to the canopy. Sapwood also acts as a water and carbohydrate storage until its cells die and transform into heartwood. Not all parts of the sapwood must be conductive, in many species only the outermost sapwood engages in the transport of water. Hence, sapwood should be further classified into conductive sapwood (i.e., wood still able to transport water) and storage sapwood (i.e., wood having mainly storage functions) (Lehnebach et al. 2018). In this study, we define sapwood as the conductive wood of the tree. The assessment of sapwood depth is of importance for many applications in forestry, plant physiology and hydrology.

For example, the most established methods to quantify the amount of water transpired by trees are based on heat dissipation. Sensor needles are inserted at discrete points into the sapwood to relate heat dissipation to sap flow velocities (Granier 1987; Marshall 1958; Smith and Allen 1996). For estimating whole tree water use, sap flow velocities must be integrated over the sapwood area, which requires an accurate estimation of sapwood depth. Much work has been done to improve the sap flow estimates, e.g., by reducing the influence of sapwood wounding (Burgess et al. 2001; Green et al. 2008; Vandegehuchte and Steppe 2012), by adaptation to different plant sizes (Clearwater et al. 2009; Hanssens et al. 2013) and by covering wider ranges of sap flow velocities (Forster 2019). However, upscaling of measured velocities remains difficult. Small errors in sapwood depth estimations accumulate during the upscaling process, i.e., upscaling flow velocities to water use of a single tree, single tree water use to a stand and stand water use to the catchment or ecosystem scale. Another challenging aspect of upscaling is radial variation in sap flow velocities (Ford et al. 2007; Oishi et al. 2008). Such radial variation exists because only a part of the sapwood might engage in the transport of fluid. Specifically, sap flow velocities decrease from the outer part to the inner part of the sapwood in many species. Therefore, ideally radial sap flow profiles are considered when sapflow velocities are integrated (Caylor and Dragoni 2009; Reyes-Acosta and Lubczynski 2014; Zhang et al. 2015), as scaling up point estimates of sap flow velocities based on a dichotomization of conductive and non-conductive wood is known to lead to bias in water use estimates (Berdanier et al. 2016; Reyes-Acosta and Lubczynski 2013).

If sapwood depth is successfully determined, it can be used to infer important canopy parameters such as leaf area or biomass (McDowell et al. 2002; van der Sande et al. 2015). The sapwood–heartwood boundary is also of importance when analyzing differences in nutrient concentrations, chemical composition and morphology (Bertaud and Holmbom 2004). Both sapwood (Gartner and Meinzer 2005; Pineda-García et al. 2013) and heartwood (Hu et al. 2018) have been shown to release water to maintain transpiration under dry conditions. Hence, to understand their individual contribution to the total stem water storage a distinction between sap- and heartwood is required.

Several methods have been developed to estimate sapwood depth by locating the sapwood–heartwood boundary. Most commonly increment cores are visually inspected and interpreted based on experience or stained before assessment (to improve sapwood visibility) and the boundary is directly inferred (Wang et al. 2010; Pfautsch et al. 2011; Nakada et al. 2019). However, separation of sapwood from heartwood by visual inspection is not possible for all species (Hoadley 1990) and is subjective, at best. Staining requires a different indicator solution for each species, but suitable solutions are known only for well-studied species (Kutscha and Sachs 1962). Another approach is to inject dye into the conductive stream, i.e., a hole for the injection is drilled into the trunk before an increment core is taken above the injection point. Sapwood can then be identified from the presence of dye on the core. However, additional drilling for the injection point further damages the tree and high transpiration is required for the dye uptake (Gebauer et al. 2008; Gotsch et al. 2010; Brantley et al. 2016). When sapwood vessels transform into heartwood, they become increasingly obstructed and the hydraulic conductivity decreases in some species (Holbrook and Zwieniecki 2005). In this way, identification of the sapwood depth by incident light microscopy is sometimes possible (Pfautsch et al. 2010; Pfautsch 2016). Sapwood depth can potentially be estimated from radial sap flow profiles (Molina et al. 2016). Other approaches utilize advanced technologies. X-ray computed tomography (CT) can detect changes in densities and moisture content (Danvind and Ekevad 2006; Fromm et al. 2001). Similar properties can be measured with electric resistivity tomography (ERT) (Bieker and Rust 2010; Guyot et al. 2013; Wang et al. 2016; Benson et al. 2019). Both approaches require expensive instruments and are inaccessible for most users. Additionally, moisture content is not necessarily different between sapwood and heartwood (Pfautsch and Macfarlane 2016). Near-infrared spectroscopy (NIR) detects changes in chemical composition of materials and can be used to separate sapwood from heartwood, but requires an extensive model calibration for each target species (Pfautsch et al. 2012). Little effort has been invested into developing methods based on thermal imaging.

In this case, the water stored in the xylem starts to evaporate when exposed to unsaturated air. When a water molecule near the surface absorbs enough energy to overcome the vapor pressure, it will evaporate into the surrounding air as a gas. The energy removed by the vaporized molecule will reduce the temperature of the water and hence cool down the surface. Following this physical law, varying rates of evaporation between sapwood and heartwood would produce a temperature difference. The magnitude of evaporative cooling mostly depends on the relative humidity of the surrounding air (vapor pressure), the temperature of the water (kinetic energy of the molecules), and the amount of water and surface area available for evaporation. In many species, especially conifers, the water content is higher within sapwood compared to heartwood. The temperature difference might be detected by a thermal camera. This approach was first described in a semi-industrial application by analyzing thermal images of crosscut pine saw logs (Gjerdrum and Høibø 2004). Differences in water content are often less pronounced for hardwood species (Peck 1959). Therefore, a difference at the sapwood–heartwood boundary in the evaporation rate and consequently a change in temperature can be caused by either a difference in moisture content or by a change of hydraulic conductivity. The hydraulic conductivity of trees decreases towards the heartwood due to the formation of tyloses and gum deposition (Lehnebach et al. 2018). We, therefore, hypothesize that the location of the highest temperature gradient occurs at the sapwood–heartwood boundary.

In this study, we developed a new method to determine sapwood depth based on thermal infrared imaging of tree increment cores. Therefore, we used an uncooled thermal sensor developed for mobile devices. These cameras are inexpensive (ca. 200–500 USD), easily deployable (can be attached directly to a smartphone) and are receiving increasing attention in the scientific community (García-Tejero et al. 2018; Petrie et al. 2019; Noguera et al. 2020). Our objectives are to (i) test if a temperature difference across increment cores is detectable with a low-cost thermal camera, (ii) propose an objective procedure to calculate a sapwood–heartwood boundary based on the detected temperature difference, (iii) analyze if the detected sapwood–heartwood boundary is comparable to a boundary determined by staining and dye injection and (iv) evaluate the applicability of our method on a range of temperate and tropical species, i.e., English oak (Q. robur), Scots pine (P. sylvestris), Caoba (S. macrophylla), Guacimo (G. ulmifolia), Guapinol (H. courbaril), Tempisque (S. capiri) and Ronron (A. graveolens).

Materials and methods

Study areas and sampling

Increment cores were taken at two sites; a humid temperate forest and a tropical dry forest. For each studied site, a random selection of healthy, mature trees was sampled. In total, seven species were investigated. Quercus robur and P. sylvestris were sampled in mid-October 2019 around Hannover, Lower Saxony, Germany (52° 18′ 56″ N, 9° 35′ 09″ E, 63°m a.s.l.). The tropical dry forest species S. macrophylla, G. ulmifolia, H. courbaril, S. capiri and A. graveolens were sampled in June 2021 during the wet season (first rain event in April, leaf unfurling in May) near Liberia, Guanacaste, Costa Rica (10° 42′ 46″ N, 85° 35′ 46″ W, 100°m a.s.l.). Sapwood depths estimated by our method were validated against increment core staining and dye injection. The European species were dyed by staining the cores with an indicator solution and the sapwood–heartwood boundary was inferred afterwards by visual assessment. Tropical dry forest species were dyed by injecting dye into the conductive stream as no applicable dyeing solution for these species was known. In total, 32 increment cores originating from seven different species were evaluated.

Increment cores (5.15 mm diameter) were taken at breast height (1.3 m) with an increment borer (10-100-1031, Haglöf Sweden 2018). On average the cores had a length of 9.4 cm, the smallest being 2.4 cm and the largest 14.2 cm. Immediately after extracting the increment core, it was placed into a bag without removing the core from the extractor. The sample removal from the trunk was done in way to preserve wood structure orientation, i.e., the surface that included open vessels within the sapwood pointed towards the camera. After 10 min the sample was placed in a custom-made core holder (Fig. 1) that was placed 35 cm below a thermal camera (TE-M1, I3-System 2019). The time between sample removal and thermal imaging allowed the dissipation of heat introduced by the coring process, i.e., for homogenizing the increment core. The camera was focused once on the increment core and a calibration step was applied for each sample, i.e., flat field correction (FFC) was performed by closing the lens with a cap and the FFC procedure was executed in the camera’s mobile app. Subsequently, a thermal image of the sample was taken every 3 s over a period of 1 min. For the tropical dry forest species, a second set of images with increased evaporation rate was taken. Preliminary studies showed no detectable temperature difference between sapwood and heartwood without artificially increasing evaporation. Therefore, to increase evaporation, samples were exposed to a cold and hot air stream from a hairdryer. To ensure a uniform air stream on the sample the stream was applied from a distance of ca. 1 m with a small waving motion. Thermal images were taken during and after the air stream every 3 s for 1 min. The total recording time for one sample took about 5 min.

Fig. 1
figure 1

Experimental setup; low-cost thermal camera, mobile device, sample holder, increment corer, dyeing solution and dye injection

A second increment core was taken to analyze the effect of the moisture content profile on our method; the second core was required as cores were exposed to evaporation for up to 5 min. Each core was sliced into 20 mm sections. For each section, the fresh and dry weight (oven dried for 48 h at 100 °C) was determined. The water content in percent was calculated as the difference between fresh and dry weight, divided by dry weight.

Increment core staining and dye injection

Sapwood depths estimated by our method were validated against two established methods; Increment core staining and dye injection. Whenever possible increment core staining was chosen as it is straightforward if staining solutions for the target species are known. In case that no applicable staining solution was found (tropical dry forest species) dye injection was chosen.

Each sample of Q. robur and P. sylvestris was visually inspected after thermal images were recorded. A methyl orange solution was applied to the Q. robur samples; it produced contrasting colors between sapwood and heartwood due to difference in pH (Kutscha and Sachs 1962).

Tropical dry forest species were dyed by injecting dye (Brilliantblau FCF, C.I. No. 42090, Omikron, Germany) into the conductive stream below the sampling point, following (Gebauer et al. 2008). For this, a sunny day was chosen to ensure high transpiration rates and therefore high sapflow velocities to reach a sufficient dye transport. In the morning (7 AM) a hole (diameter 3.5 mm, depth 7.5 cm) was drilled into the tree trunk at a slight angle 2 cm below breast height. Immediately after the drilling, dye was injected into the hole with a syringe applying slight pressure until excess dye started to leak. Afterwards a syringe was attached to the hole and additional dye was injected every 30 min for the next 3 h. After 6 h increment cores were taken 2 cm above the injection point. The dyed sapwood–heartwood boundary was visually determined by noting the position at which no more dye was visible on the core (Fig. 2a).

Fig. 2
figure 2

Study workflow; a dye is either injected into the tree trunk (dry forest species) or the core is stained by an indicator solution (European species). The sapwood–heartwood boundary is estimated by visual assessment of dye coloring on the increment core. b The temperature profile is extracted across the increment core (i.e., along the white arrow) from the thermal image. The sapwood–heartwood boundary is estimated by locating the global maximum in the temperature gradient (vertical red dashed line). c A second increment core is sliced into small sections. The water content profile is determined from the fresh and dry weight of each section. The final result consists of the increment core temperature profile (red line), the sapwood–heartwood boundary determined by thermal imaging (vertical red dashed line) and by dyeing (vertical blue dashed line), the temperature transition zone (light red) and the cores water content profile (light blue)

Thermal image processing

Thermal images were directly saved on the connected mobile device in the Comma-Separated Values (CSV) format. Each cell in the tabular file represented one pixel of the thermal image (240 × 180 pixel); it contained the measured temperature value in degrees Celsius. All recorded files were loaded and further processed with a custom toolFootnote 1 written in Python 3.9 (Python Core Team 2019). A median filter with a kernel size of 3 pixels was applied over all images to reduce sensor noise and all pixels across the center of the increment core were extracted using bilinear interpolation from the thermal images. This resulted in a temperature profile across the length of the core.

Sapwood–heartwood boundary detection based on thermal imaging

Similar to previous work using ERT (Benson et al. 2019; Guyot et al. 2013; Wang et al. 2016), a polynomial regression was fitted to the data points of each extracted temperature profile. The fitted polynomial with the highest R2 value was then used to determine the location of the global maximum in the temperature gradient. On average, a polynomial of degree 8 was fitted to 130 temperature observations (i.e., average increment core length in pixel). Border effects at the transition to ambient temperature of 1 cm at the beginning and end of the temperature profile were not considered.

The transformation from sapwood to heartwood occurs gradually, therefore a locally precise sapwood–heartwood boundary may not exist. We used the sharpness of the temperature increase to define a temperature transition zone, i.e., the section were the temperature increases from a lower temperature (assumedly sapwood temperature) to higher temperature (assumedly heartwood temperature). The temperature transition zone is defined as the continuous temperature increase around the maximum of the temperature gradient, over which the temperature gradient does not fall below 85% of its relative maximum value (Fig. 2b) and was calculated by the function peak_widths from the scipy.signal package (Virtanen et al. 2020). The relative height was chosen iteratively such that the transition zone spans over the temperature increase at the detected sapwood–heartwood boundary for all samples.

Linear regression analysis between dyed and thermal sapwood boundaries was done with statsmodels 0.13.2 (Seabold and Perktold 2010). We used the following metrics to compare the overall agreement between thermal imaging and dyeing methods: the coefficient of determination R2 to describe random deviations from the linear regression (Fig. 4a), the mean signed difference and the mean absolute difference to describe systematic deviations (Table 1). Systematic deviations and the limit of agreement was further analyzed in a Bland–Altman plot (Bland and Altman 1986) (Fig. 4b).

Table 1 Summary statistics of thermal imaging and dyed sapwood–heartwood boundaries for each species

Results

Dye injection and staining

Separation of sapwood and heartwood was possible in 30 of 32 tested cores using dye injection (tropical species) and staining (European species). In two cores (S. capiri) either no dye was present on the core or dye was present until the pith (Fig. 3d, f). Samples from other species showed a varying degree of dye uptake. While cores of G. ulmifolia and S. capiri displayed a high amount of dye uptake, H. courbaril and A. graveolens cores showed a lower and discontinuous dye uptake, i.e., dotted pattern including gaps (Fig. 3). Only one of the tropical species (S. macrophylla) showed a visible color difference between sapwood and heartwood, i.e., all other species required a dedicated method to separate sapwood from heartwood. The bright-colored sapwood in S. macrophylla was the only section where injected dye was present and subsequently was identified as sapwood (Fig. 3a–c). The sapwood of P. sylvestris was distinguishable without staining (Fig. 3p, q, f). Quercus robur showed a distinctive reddish colored heartwood compared to an orange-colored sapwood after staining (Fig. 3s–u). Across all species and tree sizes, the average estimated sapwood depth was 3.5 ± 2.0 cm (mean ± standard deviation) while the smallest sapwood depth was 2.0 ± 0.5 cm (H. courbaril) and the largest was 6.1 ± 2.0 cm (S. capiri) (Table 1).

Fig. 3
figure 3

Temperature profiles of increment cores taken by thermal imaging. Three examples are shown for each of the seven analyzed species. A polynomial (red line) was fitted to the raw temperature signal (gray line). The sapwood–heartwood boundary was determined by dyeing and thermal imaging. The thermal boundary (vertical red dashed line) was detected by locating the highest temperature increase in the temperature profile. The zone of the temperature increase is highlighted in light red. The dyed boundary (vertical blue dotted dashed line) was determined by locating the point at which no more dye is present on the increment core. For each tropical dry forest species an increment core was sliced into sections to determine a water content profile (gray bars)

Thermal imaging

We detected a prominent temperature increase (i.e., peak in the gradient of the fitted polynomial) in all analyzed temperature profiles. On average the temperature at the peak increased 0.5 ± 0.5 °C/cm while S. capiri (0.2 ± 0.1 °C/cm), Q. robur (0.2 ± 0.0 °C/cm) and P. sylvestris (0.2 ± 0.1 °C/cm) showed a lower increase compared to a higher increase in G. ulmifolia (0.8 ± 0.8 °C/cm) and A. graveolens (0.8 ± 0.5 °C/cm) (Table 1). Estimated sapwood sections by dyeing corresponded to a local minimum in temperature (Fig. 3). S. capiri and G. ulmifolia showed slight temperature variations elsewhere in the sapwood as well (Fig. 3). On average, the detected sapwood section over all species was 0.6 ± 0.4 °C colder than the heartwood. G. ulmifolia and A. graveolens showed the highest temperature difference between heartwood and sapwood (0.7 ± 0.6 and 0.7 ± 0.5 °C) and S. capiri the lowest (0.2 ± 0.1 °C) (Table 1).

Increment core water content analysis

No obvious change in water content was detected at the dyed sapwood–heartwood boundaries (Fig. 3). On average over all samples the water content was 53.3 ± 11.6%. S. macrophylla and G. ulmifolia had the highest water content (63.0 ± 11.0% and 64.0 ± 9.0%) compared to the lowest water content in A. graveolens (39.0 ± 8.0%) (Table 1).

Comparison of thermal and dyed estimated sapwood depths

Sapwood–heartwood boundaries detected by our method were comparable to the dyed boundaries (R2 = 0.84; Fig. 4). The boundary depth estimates fell nearly on the 1:1 line (Fig. 4a). On average the difference between the dyed sapwood depth and thermal detected was 0.2 ± 0.8 cm with an absolute difference of 0.6 ± 0.6 cm over all analyzed cores (Fig. 4; Table 1). Absolute differences between both methods were lower than 0.5 cm for S. macrophylla (0.4 ± 0.3 cm), G. ulmifolia (0.3 ± 0.2 cm) and H. courbaril (0.4 ± 0.3 cm) and 1 cm for Q. robur (1.2 ± 1.1 cm) and S. capiri (1.0 ± 0.0 cm) (Table 1). The highest absolute difference (> 2 cm) between the two methods was reached by a Q. robur (2.4 cm) (Fig. 3d) and a A. graveolens (− 2.3 cm) (Fig. 3s); both these samples lay outside of the 95% confidence interval (Fig. 4b). Limit of agreement analysis between both methods (Fig. 4b) indicated that dyed sapwood depths may be underestimated by 1.5 cm (lower 95% confidence interval) or overestimated by 1.8 cm (upper 95% confidence interval) when compared to sapwood depths detected by thermal imaging. In 19 out of 30 samples the dyed sapwood–heartwood boundary was within the temperature transition zone (Table 1). Sapwood areas calculated from validated sapwood depths were 20% greater for Q. robur (20.9 ± 26.6%) and P. sylvestris (19.8 ± 13.1%) and 10% less for G. ulmifolia (-10.6 ± 18.6%) and A. graveolens (− 8.9 ± 22.1%) when compared to areas calculated from thermal sapwood depths. On average over all samples the sapwood area differed by 2.2 ± 20.6% (Table 1). The length of the temperature transition zone (i.e., sharpness of the temperature increase at the thermal boundary) increased with tree diameter independently of the species (R2 = 0.74; Fig. 5).

Fig. 4
figure 4

Comparison of sapwood–heartwood boundaries detected by dyeing and thermal imaging. In total 30 increment cores over seven different species were compared. The thermal boundary was detected by locating the highest temperature increase in the temperature across the increment core. The dyed boundary was determined by either injecting dye into the conductive stream (dry forest species) or by staining cores with a dyeing solution (European species). Thermal imaging of increment cores is a statistically significant predictor of dyed sapwood depths (t (28) = 11.89, p < 0.001). The linear regression model explained 84% of the variances within dyed sapwood depths and is statistically significant (R2 = 0.84, F (1, 28) = 141.3, p < 0.001)

Fig. 5
figure 5

Relationship of tree diameter and the length of the temperature transition zone. The temperature transition zone is defined as the temperature gradient peak width, in which the temperature increases from a lower sapwood temperature to higher heartwood temperature. The length of the transition zone significantly increased with increasing tree diameter (t (29) = 10.09, p < 0.001)

Discussion

In this study, we developed and tested a novel method to estimate the sapwood depth of trees using thermal imaging of increment cores. Analyzed temperature profiles showed a clearly detectable temperature increase at the sapwood–heartwood boundary, i.e., a significant positive peak in the temperature gradient at the boundary of sap- and heartwood. We speculate that this sharp change in temperature is associated with a sharp decrease in hydraulic conductivity of the wood.

A comparison between dyed- and thermal boundaries revealed a very good agreement for the seven investigated species. Estimated sapwood depths agreed with dye estimates (R2 = 0.84; Fig. 4). The average absolute difference across all species was 0.61 cm (Table 1). Absolute differences between both methods were lower than 0.5 cm for S. macrophylla, G. ulmifolia and H. courbaril and 1 cm for Q. robur and S. capiri. On average sapwood areas calculated from dyed- and thermal boundaries only differ by 2%. Sapwood areas of P. sylvestris and Q. robur calculated from thermal boundaries were around 20% smaller. ERT measurements show similar systematic deviation of sapwood depths by staining solutions in P. sylvestris (Bieker and Rust 2010). In the case of Q. robur temperature variations within the sapwood can cause large difference between the sapwood depth detected by dyeing and thermal imaging (Fig. 3d). Quercus robur is known to carry 95% of its water in the two outermost annual rings (Cermák et al. 1992), which potentially caused the detected temperature variation within the sapwood. At the other extreme, we detected a temperature increase which clearly indicated a sapwood–heartwood boundary but a change in dye coloring was not present (Fig. 3l). Dye injection methods require transport of dye away from the injection point to stain the increment core taken above the injection point. In environmental condition with low transpiration rates and therefore low sap flow the uptake of dye can be limited (Brantley et al. 2016). We observed similar effects in preliminary tests where in some cases no dye uptake took place or only an insufficient coloring was present.

A perfect agreement between both methods over a wide range of species is unlikely as an exact boundary between sapwood and heartwood does not exist in general. Instead, the process of transforming sapwood into heartwood happens gradually and ends with the death of parenchyma cells (Bamber 1976). Similar, the conductivity of sapwood progressively declines inward until it completely ceases when it transforms into heartwood (Pfautsch 2016). This decline in conductivity was also revealed by injecting dye in the conductive stream, i.e., a stronger dye uptake was present at the outermost sapwood for H. courbaril and G. ulmifolia (Fig. 3). In contrast, visual assessment of increment cores (with or without staining) does not necessarily correspond to the conductive sapwood, especially for ring-porous species (Lehnebach et al. 2018).

The width of the temperature transition zone increased with increasing tree diameter (R2 = 0.74; Fig. 5). Similarly, the sap flow profile of tropical dry forest species is known to be dependent on the tree size (Link et al. 2020). In a future study, a potential relationship between the transition zone (or in general the temperature profile of increment cores) and the sap flow profile should be analyzed.

Other methodologies to assess sapwood depth (ERT, CT), depend on a gradient in moisture content between sapwood and heartwood. However, this requirement is not met for all species, e.g., Eucalyptus (Pfautsch et al. 2012) and other hardwood species (Peck 1959). Our results show a similar pattern as no consistent difference in moisture content between sapwood and heartwood was present in any of the analyzed tropical dry forest species. Nevertheless, a temperature difference between sapwood and heartwood was still detectable by thermal imaging. We argue that increment cores in which sapwood and heartwood have equal moisture content still can create a temperature gradient as a higher conductive sapwood can supply water to the evaporating surface more quickly than the less conductive heartwood.

While a sapwood–heartwood separation based on thermal images was previously demonstrated (Gjerdrum and Høibø 2004), we have extended the application to multiple species and used increment cores instead of crosscut logs. This opens up the possibility for an easy to use and general applicable method for sapwood depth detection. Further studies should analyze the environment effects on the method as the tropical dry forest samples (relative humidity > 90%) required an artificial increase in evaporation to strengthen the temperature signal. This was done using a standard hairdryer while other means are certainly possible, e.g., briefly heating increment cores in an oven before imaging or using air-conditioned rooms during imaging.

The possibility to rapidly detect the conductive sapwood will enable researchers to improve water balance estimations on larger scales. In future work, a potential relationship between radial sap flow profiles and temperature profiles derived from thermal images of increment cores should be investigated.