Tree ring segmentation using UNEt TRansformer neural network on stained microsections for quantitative wood anatomy

Front Plant Sci. 2024 Jan 8:14:1327163. doi: 10.3389/fpls.2023.1327163. eCollection 2023.

Abstract

Forests are critical in the terrestrial carbon cycle, and the knowledge of their response to ongoing climate change will be crucial for determining future carbon fluxes and climate trajectories. In areas with contrasting seasons, trees form discrete annual rings that can be assigned to calendar years, allowing to extract valuable information about how trees respond to the environment. The anatomical structure of wood provides highly-resolved information about the reaction and adaptation of trees to climate. Quantitative wood anatomy helps to retrieve this information by measuring wood at the cellular level using high-resolution images of wood micro-sections. However, whereas large advances have been made in identifying cellular structures, obtaining meaningful cellular information is still hampered by the correct annual tree ring delimitation on the images. This is a time-consuming task that requires experienced operators to manually delimit ring boundaries. Classic methods of automatic segmentation based on pixel values are being replaced by new approaches using neural networks which are capable of distinguishing structures, even when demarcations require a high level of expertise. Although neural networks have been used for tree ring segmentation on macroscopic images of wood, the complexity of cell patterns in stained microsections of broadleaved species requires adaptive models to accurately accomplish this task. We present an automatic tree ring boundary delineation using neural networks on stained cross-sectional microsection images from beech cores. We trained a UNETR, a combined neural network of UNET and the attention mechanisms of Visual Transformers, to automatically segment annual ring boundaries. Its accuracy was evaluated considering discrepancies with manual segmentation and the consequences of disparity for the goals of quantitative wood anatomy analyses. In most cases (91.8%), automatic segmentation matched or improved manual segmentation, and the rate of vessels assignment to annual rings was similar between the two categories, even when manual segmentation was considered better. The application of convolutional neural networks-based models outperforms human operator segmentations when confronting ring boundary delimitation using specific parameters for quantitative wood anatomy analysis. Current advances on segmentation models may reduce the cost of massive and accurate data collection for quantitative wood anatomy.

Keywords: UNETR; image segmentation; neural networks; quantitative wood anatomy; tree ring; xylem.

Grants and funding

The author(s) declare financial support was received for the research, authorship, and/or publication of this article. This research was made possible by Grant CNS2022-135319 funded by MCIN/AEI/ 10.13039/501100011033 and by “European Union NextGenerationEU/PRTR”. Grant CGL2017-87309-P (PID2020-118444GA-100; PRE2018-084106) funded by MCIN/AEI/10.13039/501100011033, Grant PID2020-118444GA-100 and CNS2022-135319 by MCIN/AEI/10.13039/501100011033 and ESF “investing in your future” to MG-H; Universidad Politécnica de Madrid (RP200060107) to ÁG-P; Grant CNS2022-135319 funded by MCIN/AEI/10.13039/501100011033 and by “European Union Next GenerationEU/PRTR”, and PID2020-118444GA-100 funded by MCIN/ AEI/10.13039/501100011033 to GS-B. GR and MW have been supported by the European Social Fund (ESF) and the Ministry of Education, Science and Culture of Mecklenburg-Vorpommern (Germany), under the project “DigIT!” (ESF/14-BM-A55-0012/19). Junta de Castilla y León-Consejería de Educación (IR2020-1-UVA08; VA171P20) and EU LIFE Soria Forest Adapt (LIFE19CCA/ES/001181) and UE FEDER Funds. Caja Rural de Soria (CeI Prize 2021) and FUNGE-UVa (26/04/2022 TCUE 2021-2023).