An ecological parameter inversion and growth trend prediction method based on machine learning
By using drones to capture high frame rate video images, identifying tree canopy feature points, calculating vibration propagation characteristic parameters, and using machine learning models to invert xylem density, the problem of non-destructive and efficient measurement of trunk internal density is solved, generating density spatial distribution maps to support forest resource management and carbon sequestration.
Patent Information
- Application Number
- CN202611588255.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-14
- Publication Date
- 2026-11-24
AI Technical Summary
Existing technologies struggle to achieve non-destructive, efficient, and penetrating measurements of xylem density inside tree trunks. Traditional methods damage trees and have low measurement efficiency, while existing UAV remote sensing methods are unable to penetrate the interior of tree trunks to detect deep structural properties.
By using drones to capture high frame rate video images, tree canopy feature points are identified, vibration propagation characteristic parameters such as time delay and amplitude attenuation rate are calculated, xylem density is inverted using machine learning models, and data quality is optimized by combining 3D point cloud data and topology models.
It enables non-contact, high-speed xylem density measurement, generates density spatial distribution maps, supports forest resource management and carbon sequestration, and is suitable for drone measurements in remote forest areas.
Smart Images

Figure CN123160918A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of graphics processing technology, specifically relating to a method for ecological parameter inversion and growth trend prediction based on machine learning. Background Technology
[0002] Xylem density is a key ecological parameter for measuring tree material properties, assessing forest growth quality and carbon sequestration capacity, and directly affects timber quality, the accuracy of biomass estimation, and the reliability of forest carbon sink accounting. Accurate and efficient acquisition of xylem density information at the individual tree and stand scales is of great significance for forest resource surveys, reserve forest quality assessment, and dynamic monitoring of forest carbon under the background of climate change. Currently, obtaining xylem density mainly relies on destructive sampling and laboratory analysis, which involves obtaining core samples by growth cone drilling or felling sample trees and then measuring them using methods such as drainage or X-ray density measurement. While these methods offer high accuracy, they are time-consuming and labor-intensive, cause irreversible damage to trees, and are difficult to implement for high-density sampling over large forest stands, thus limiting the detailed characterization of the spatial heterogeneity of xylem density. To address the aforementioned issues, various non-destructive testing techniques have been explored. Wood testing methods based on stress waves or radar waves infer parameters such as density or elastic modulus by analyzing the wave propagation speed within the wood medium. However, these methods typically require close coupling of contact sensors (such as accelerometers and acoustic probes) to the tree trunk, and a single measurement can only cover a localized area. Therefore, they still face challenges in large-scale forest stand surveys, including complex equipment deployment and low measurement efficiency.
[0003] Furthermore, radar wave methods are highly sensitive to individual tree differences (such as moisture content and heartwood / sapwood structure), limiting the model's generalization ability. In recent years, the combination of UAV remote sensing technology and machine learning has provided a new approach for vegetation parameter inversion. Existing research mainly focuses on visible light, multispectral, or hyperspectral images, extracting spectral indices to invert canopy apparent parameters such as leaf area index, chlorophyll content, and biomass.
[0004] However, spectral remote sensing can only acquire information from the canopy surface and cannot penetrate deep into the trunk to detect deeper structural properties such as wood density. Other studies have attempted to combine tree diameter meters, weather station data, and deep learning to predict tree growth trends, but these still rely on ground-based sensor networks, making it difficult to achieve non-contact, high-throughput stand-scale observations. Therefore, there is an urgent need to develop a non-contact, high-efficiency, non-destructive detection method that can penetrate deep into the trunk to achieve in-situ inversion and spatial mapping of xylem density in living trees. Summary of the Invention
[0005] In view of the above-mentioned defects or deficiencies in the existing technology, a method for ecological parameter inversion and growth trend prediction based on machine learning is provided, including the following steps: High frame rate video images containing the entire canopy area of the target tree were acquired; the high frame rate video images were obtained by a drone hovering and shooting under windy conditions; In consecutive frames of the video image, a first feature point and a second feature point located at different spatial locations in the tree canopy are identified and tracked, wherein the first feature point is located on the windward edge of the tree canopy and the second feature point is located on the leeward or lateral edge of the tree canopy. Based on the displacement trajectories of the first and second feature points in the time series, vibration propagation characteristic parameters between them are calculated, including: Time delay: The lag time of the vibration waveform of the second feature point relative to the vibration waveform of the first feature point; Amplitude attenuation rate: The ratio of the attenuation of the vibration amplitude of the second feature point relative to the vibration amplitude of the first feature point; The time delay and amplitude attenuation rate are input into the xylem density inversion model. This model is a regression model trained with the same vibration propagation characteristic parameters of a large number of sample trees as input and the measured xylem density of the corresponding tree trunk as the label. The model output is the estimated xylem density of the target tree. Repeat the above steps to estimate the xylem density of all or sampled trees in the target reserve forest plot and generate a spatial distribution map of the xylem density of the plot.
[0006] According to the technical solution provided in this application, the calculation of the vibration propagation characteristic parameters between the two includes the following steps: Bandpass filtering was performed on the displacement-time curves of the first and second feature points respectively to extract the frequency components corresponding to the vibration mode of the tree trunk, thus obtaining the filtered first and second vibration signals. Cross-correlation analysis is performed on the first vibration signal and the second vibration signal to calculate the cross-correlation function and peak similarity. If the peak similarity is higher than the first preset threshold, it is determined that the vibration of the second feature point originates from the vibration of the first feature point transmitted through the tree trunk, and the time delay is further determined based on the peak position of the cross-correlation function and the amplitude attenuation rate is determined based on the peak amplitude. If the peak similarity is lower than the first preset threshold, it is determined that the vibration of the second feature point is mainly driven by wind force, and the data set is discarded.
[0007] According to the technical solution provided in this application, the method further includes the following steps: Identify and track at least one third feature point, which is located on the leeward side and at a different height or branch position from the second feature point; Calculate the first delay time from the first feature point to the second feature point, the second delay time from the first feature point to the third feature point, and the third delay time from the second feature point to the third feature point, respectively. The process of inputting the time delay and amplitude attenuation rate into the xylem density inversion model includes the following steps: If the absolute value of the difference between the sum of the first delay duration and the second delay duration and the third delay duration is less than the second preset threshold, and the three sets of vibration signals corresponding to the first delay duration, the second delay duration, and the third delay duration all pass the peak similarity threshold screening, then the time delay and amplitude attenuation rate are input into the xylem density inversion model.
[0008] According to the technical solution provided in this application, after calculating the first delay time from the first feature point to the second feature point, the second delay time from the first feature point to the third feature point, and the third delay time from the second feature point to the third feature point, the method further includes the following steps: If the absolute value of the difference between the sum of the first delay duration and the second delay duration and the third delay duration is greater than or equal to the second preset threshold, then the three-dimensional point cloud data of the target tree is obtained, and the topological structure model of the tree trunk and branches is extracted from the point cloud data. Locate the branch positions of the first feature point and the second feature point in the topological structure model, and calculate the geometric path length of the natural connection path from the first feature point to the second feature point along the trunk and branches; Based on the geometric path length and the first delay duration, the unit path propagation speed is calculated, and the unit path propagation speed is used as an input feature to replace the time delay and input into the xylem density inversion model.
[0009] According to the technical solution provided in this application, the xylem density inversion model has a multi-branch input layer, including: The first input branch is used to receive the time delay and is suitable for scenarios with only video image data. The second input branch is used to receive the unit path propagation speed, which is suitable for scenarios where video image data and 3D point cloud data are acquired simultaneously. The model automatically selects the corresponding input branch for calculation based on the type of input data, and outputs an estimated value of xylem density.
[0010] According to the technical solution provided in this application, before calculating the vibration propagation characteristic parameters between the two, the following steps are also included: In consecutive frames of the video image, the pixel region size of the first feature point and the second feature point is tracked, and the scale change rate of their feature regions in consecutive frames is calculated. If the scale change rate is lower than the third preset threshold, it is determined that the motion of the feature point is mainly parallel to the image plane; The step of calculating the vibration propagation characteristic parameters between the first and second feature points based on their displacement trajectories in the time series includes the following steps: If it is determined that the motion of the feature point is mainly parallel to the image plane, then the vibration propagation characteristic parameters between the first and second feature points are calculated based on their displacement trajectories in the time series.
[0011] According to the technical solution provided in this application, after calculating the scale change rate of its feature region in consecutive frames, the method further includes the following steps: If the scale change rate is higher than the third preset threshold, the real-time attitude parameters of the UAV are obtained. The attitude parameters include the latitude and longitude, altitude, pitch angle, roll angle and yaw angle at the time of shooting. In consecutive frames of the video image, the two-dimensional pixel coordinates of the first feature point and the second feature point in the image coordinate system are identified; Based on the two-dimensional pixel coordinates, the real-time attitude parameters of the UAV and the camera parameters, and combined with the pre-acquired three-dimensional point cloud data of the target tree, the first feature point and the second feature point in each frame are back-projected to the three-dimensional spatial coordinate system to obtain the three-dimensional spatial coordinates of each feature point at each frame time. Based on the three-dimensional spatial coordinates of each feature point in consecutive frames, its corrected displacement trajectory in three-dimensional space is constructed and used to calculate the vibration propagation characteristic parameters.
[0012] According to the technical solution provided in this application, before calculating the geometric path length of the natural connection path from the first feature point to the second feature point along the trunk and branches, the method further includes the following steps: Determine whether there is a non-main branch transmission path in the first branch where the first feature point is located and the second branch where the second feature point is located; The calculation of the geometric path length of the natural connection path from the first feature point to the second feature point along the trunk and branches includes the following steps: If not, calculate the geometric path length of the natural connection path from the first feature point to the second feature point along the trunk and branches.
[0013] According to the technical solution provided in this application, determining whether there is a non-main branch transmission path between the first branch where the first feature point is located and the second branch where the second feature point is located includes the following steps: Obtain the position information of the first branch where the first feature point is located and the second branch where the second feature point is located in three-dimensional space; Calculate the shortest Euclidean distance between the first branch and the second branch in three-dimensional space; If the shortest Euclidean distance is less than the fourth preset threshold, it is determined that there is a non-main branch transmission path between the first branch and the second branch.
[0014] According to the technical solution provided in this application, after determining whether there is a non-main branch transmission path in the first branch where the first feature point is located and the second branch where the second feature point is located, the method further includes the following steps: If so, then the vibration coherence features between the first feature point and the second feature point are extracted. The vibration coherence features include the peak value of the coherence function and the corresponding phase difference within the natural frequency range of the tree trunk. The vibration coherence characteristics are input into the xylem density inversion model, and together with the time delay or amplitude attenuation rate, they are used as input features to output the xylem density estimate.
[0015] Compared with the prior art, the beneficial effects of this application are as follows: First, it enables completely non-contact measurement, improving operational efficiency: By using drones to hover at high altitudes and capture videos of tree canopy vibrations, technicians can enter the complex environment under the forest canopy without contacting or damaging the trees. A single flight of 10-15 minutes can collect data from hundreds of trees. Compared to traditional contact methods, this achieves high-throughput measurement, making it possible to conduct a comprehensive survey of tens of thousands of acres of reserve forests.
[0016] Second, by utilizing natural wind power as an excitation source, we overcome the bottleneck of surface observations being unable to penetrate the tree trunk. Based on the principle of wind-induced vibration transmission: vibration waves generated by wind acting on the tree canopy are transmitted along the trunk, and their propagation speed and energy attenuation are determined by the density of the xylem. By extracting the time delay and amplitude attenuation rate between vibration responses at different locations in the canopy, a mapping relationship with the internal density of the trunk is established, realizing cross-scale information extraction from the apparent vibration of the canopy to the internal material of the trunk.
[0017] Third, it requires no artificial stimulation, and the data collection conditions are relaxed and consistent: it passively receives the inherent vibration response of trees under natural wind force, avoiding operational inconsistencies caused by manual tapping or pulse emission. It only requires wind conditions of level 3-5 to shoot, making it suitable for remote forest areas, nature reserves, and other outdoor environments without power supply or roads.
[0018] Fourth, data quality is ensured and inversion accuracy is guaranteed through signal processing mechanisms: To address the issue that wind drives tree trunk vibration and directly blows the tree crown, bandpass filtering and cross-correlation peak similarity threshold screening are designed to effectively remove invalid data directly driven by wind, ensuring that the feature parameters input to the machine learning model truly reflect the tree trunk conduction characteristics, and making the density inversion results physically interpretable and statistically robust.
[0019] Fifth, output a spatial distribution map of xylem density to support precise management decisions: The final generated density spatial distribution map at the plot scale can intuitively present the distribution of high-quality germplasm resources and areas of density anomalies (such as pests and diseases, drought stress), providing data support for differentiated management of reserve forests, carbon sequestration, and precise improvement of forest quality. Attached Figure Description
[0020] Other features, objects, and advantages of this application will become more apparent from the following detailed description of non-limiting embodiments with reference to the accompanying drawings: Figure 1 A flowchart illustrating the steps of the machine learning-based ecological parameter inversion and growth trend prediction method provided in this application. Detailed Implementation
[0021] The present application will now be described in further detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and not intended to limit it. Furthermore, it should be noted that, for ease of description, only the parts relevant to the invention are shown in the accompanying drawings.
[0022] It should be noted that, unless otherwise specified, the embodiments and features described in this application can be combined with each other. This application will now be described in detail with reference to the accompanying drawings and embodiments.
[0023] As mentioned in the background section, this application proposes a machine learning-based method for ecological parameter inversion and growth trend prediction, such as... Figure 1 As shown, it includes the following steps: S1. Acquire high frame rate video images containing the entire canopy area of the target tree; the high frame rate video images are obtained by a drone hovering and shooting under wind conditions; S2. In consecutive frames of the video image, identify and track a first feature point and a second feature point located at different spatial locations in the tree canopy, wherein the first feature point is located on the windward edge of the tree canopy and the second feature point is located on the leeward or lateral edge of the tree canopy. S3. Based on the displacement trajectories of the first feature point and the second feature point in the time series, calculate the vibration propagation characteristic parameters between them, wherein the vibration propagation characteristic parameters include: Time delay: The lag time of the vibration waveform of the second feature point relative to the vibration waveform of the first feature point; Amplitude attenuation rate: The ratio of the attenuation of the vibration amplitude of the second feature point relative to the vibration amplitude of the first feature point; S4. Input the time delay and amplitude attenuation rate into the xylem density inversion model. This model is a regression model trained with the same vibration propagation characteristic parameters of a large number of sample trees as input and the measured xylem density of the corresponding tree trunk as the label. The model output is the estimated xylem density of the target tree. S5. Repeat the above steps to estimate the xylem density of all or sampled trees in the target reserve forest plot and generate a spatial distribution map of the xylem density of the plot.
[0024] First, the target tree refers to the individual tree for which xylem density monitoring is required. This can be all trees within a reserve forest plot or a representative sample selected according to the sampling plan. The overall canopy area refers to the imaging field of view that completely covers the canopy of the target tree, ensuring that the windward and leeward sides of the canopy, as well as edge feature points in all directions, are clearly captured. High frame rate video footage refers to dynamic footage captured continuously at a high frame rate (e.g., 30, 60, or higher per second). The frame rate selection must ensure that the complete waveform of tree vibration is captured; generally, the sampling frequency should be more than twice the tree's natural vibration frequency. Wind conditions refer to the presence of stable, continuous natural wind capable of driving observable tree vibrations. However, the wind speed should not be too high to avoid image blurring or tree damage; light to moderate wind conditions (wind speed approximately 3-5 on the Beaufort scale) are typically chosen. Hovering photography refers to the drone maintaining a relatively constant spatial position above or to the side of the target tree while filming, ensuring a stable imaging perspective for easy tracking of feature points between subsequent frames. Feature points refer to salient features in tree canopy images that can be uniquely identified and tracked, such as leaf tips, leaf cluster edges, and branch forks—locations with distinct textures or geometric characteristics. The first feature point specifically refers to a feature point located on the windward edge of the canopy, where the wind force is first applied, and the vibration signal is generated earliest. The second feature point specifically refers to a feature point located on the leeward or lateral edge of the canopy, whose vibration signal exhibits a time delay relative to the first feature point. Vibration propagation characteristic parameters describe the changes in the vibration signal as it propagates from the first feature point to the second feature point, primarily including time delay and amplitude attenuation rate. Time delay refers to the lag time of the vibration waveform at the second feature point relative to the vibration waveform at the first feature point, reflecting the time required for vibration to propagate within the trunk. Amplitude attenuation rate refers to the proportion of amplitude decay at the second feature point relative to the vibration amplitude at the first feature point, reflecting the energy lost during propagation due to internal damping within the wood. Xylem density refers to the mass per unit volume of the xylem in a tree trunk, an important indicator for assessing wood quality, mechanical strength, and reserve value, usually expressed in grams per cubic centimeter (g / cm³). The xylem density inversion model is a machine learning regression model trained using vibration propagation characteristic parameters of a large number of sample trees as input and measured xylem density values of the corresponding trees as labels. Models can include support vector regression, random forests, and neural networks. The xylem density spatial distribution map is a two-dimensional distribution map generated by spatially interpolating the estimated xylem density values of all monitored trees within the target reserve forest plot. It is used to visually demonstrate the heterogeneity of timber quality within the plot.
[0025] The specific implementation steps are as follows: The first step is to acquire high-frame-rate video footage encompassing the entire canopy area of the target tree. Choose weather conditions with suitable wind, operate the drone to the vicinity of the target tree, and adjust the drone's attitude so that the camera's field of view completely covers the entire canopy area. Keep the drone hovering and activate high-frame-rate video recording mode, continuously acquiring video footage for at least 30 seconds. During recording, ensure that the windward and leeward sides of the canopy, as well as edge feature points in all directions, are clearly captured, and that there are no significant obstructions in the footage. If there are multiple trees in the target forest area that need monitoring, a flight path can be planned to hover and film each tree sequentially, or a more efficient shooting method can be adopted (such as covering multiple trees in a single flight, but ensuring the image quality of each tree). After recording, store the video footage and transmit it to the processing system.
[0026] The second step involves identifying and tracking first and second feature points located at different spatial positions within the tree canopy in consecutive frames of the video footage. The high frame rate video is decomposed into an image sequence frame by frame, and each frame is analyzed. Feature point detection algorithms from computer vision (such as SIFT, SURF, or deep learning-based feature point detection networks) are used to automatically identify multiple candidate feature points in the first frame. Combining the tree's orientation information (which can be determined through wind direction data or the direction of canopy swaying in the image), feature points located on the windward edge of the canopy are manually or automatically selected as the first feature point, and feature points located on the leeward or lateral edge of the canopy are selected as the second feature point. Then, feature point tracking algorithms (such as KLT optical flow or deep learning-based point tracking networks) are used to track the positions of these two feature points in all consecutive frames, recording their pixel coordinates in each frame. If a feature point is occluded or lost in tracking in some frames, interpolation or discarding of that data segment can be used. Finally, the two-dimensional displacement trajectories of the first and second feature points over time are obtained.
[0027] The third step is to calculate the vibration propagation characteristic parameters between the first and second feature points based on their displacement trajectories over time. First, the displacement trajectories of the two feature points are converted into displacement-time curves, representing the displacement at each moment (horizontal, vertical, or combined displacement). Then, these two curves are analyzed. The vibration propagation characteristic parameters mainly include two core indicators. The first is the time delay, which is the lag time of the vibration waveform at the second feature point relative to the vibration waveform at the first feature point. This can be achieved by calculating the cross-correlation function of the two curves and finding the time offset that maximizes the cross-correlation value; this offset is the time delay. The time delay reflects the time required for the vibration signal to travel from the windward side of the canopy to the leeward side. This time is related to the path length and propagation speed of the vibration within the trunk, and the propagation speed is closely related to the xylem density. The second is the amplitude attenuation rate, which is the ratio of the attenuation of the vibration amplitude at the second feature point relative to the vibration amplitude at the first feature point. This can be obtained by comparing the peak amplitudes of the two curves and calculating (amplitude of the first feature point - amplitude of the second feature point) / amplitude of the first feature point. The amplitude attenuation rate reflects the energy lost during vibration propagation due to internal damping in the wood, and the magnitude of damping is closely related to the density of the xylem. These two parameters together constitute the vibration propagation characteristics that characterize the internal physical properties of the tree trunk.
[0028] The fourth step involves inputting the time delay and amplitude attenuation rate into the xylem density inversion model. The model outputs an estimated xylem density for the target tree. The xylem density inversion model is a pre-trained machine learning model. The training process is as follows: A large number of representative sample trees are selected, covering different tree species, forest ages, and site conditions. For each sample tree, high-frame-rate video images are collected following the steps described above, and vibration propagation characteristic parameters (time delay and amplitude attenuation rate) are calculated. Simultaneously, the xylem density of the sample tree is measured using traditional methods (such as core drilling with a growth cone) as a label. The vibration propagation characteristic parameters are used as input features, and the measured xylem density is used as the output label to train a regression model (such as support vector regression, random forest, neural network, etc.). After training, the model has mastered the mapping relationship from vibration characteristics to xylem density. In actual monitoring, inputting the vibration propagation characteristic parameters of the target tree into the model quickly yields an estimated xylem density.
[0029] Fifth, repeat the above steps to estimate the xylem density of all or sampled trees within the target reserve forest plot, generating a spatial distribution map of xylem density for that plot. Following the pre-set monitoring plan, perform steps one through four for each target tree within the plot to obtain an estimated xylem density value for each tree. Associate all estimated values with their corresponding tree spatial coordinates to form a discrete point dataset. Use spatial interpolation methods (such as Kriging interpolation or inverse distance weighted interpolation) to interpolate the discrete points, generating a continuous spatial distribution map of xylem density. This map visually demonstrates the spatial heterogeneity of xylem density within the plot; high-density areas may correspond to areas with better timber quality, while low-density areas may correspond to areas requiring special attention or priority thinning.
[0030] The technical principle of this solution lies in utilizing the natural vibrations of trees under wind as a detection signal, and inferring xylem density by analyzing the propagation characteristics of these vibrations within the tree trunk. The propagation speed of vibration within the trunk is related to the elastic modulus and density of the wood, while the energy attenuation during propagation is related to the internal damping of the wood. When wind acts on the tree crown, the branches and leaves on the windward side vibrate first, and this vibration is transmitted through the trunk to the leeward side. The time delay and amplitude attenuation during transmission carry information about the internal properties of the wood. By establishing a mapping relationship between these vibration characteristics and xylem density through machine learning, non-contact, non-destructive, and efficient xylem density monitoring can be achieved. Its beneficial effects are: no destructive sampling of trees is required, protecting the integrity and growth of trees; large-scale and rapid monitoring is possible, meeting the needs of refined management at the reserve forest plot level; and the generated spatial distribution map of xylem density directly serves timber reserve value assessment and management decisions.
[0031] In a preferred embodiment, calculating the vibration propagation characteristic parameters between the two includes the following steps: Bandpass filtering was performed on the displacement-time curves of the first and second feature points respectively to extract the frequency components corresponding to the vibration mode of the tree trunk, thus obtaining the filtered first and second vibration signals. Cross-correlation analysis is performed on the first vibration signal and the second vibration signal to calculate the cross-correlation function and peak similarity. If the peak similarity is higher than the first preset threshold, it is determined that the vibration of the second feature point originates from the vibration of the first feature point transmitted through the tree trunk, and the time delay is further determined based on the peak position of the cross-correlation function and the amplitude attenuation rate is determined based on the peak amplitude. If the peak similarity is lower than the first preset threshold, it is determined that the vibration of the second feature point is mainly driven by wind force, and the data set is discarded.
[0032] The specific implementation steps are as follows: The first step involves bandpass filtering the displacement-time curves of the first and second feature points to extract the frequency components corresponding to the tree trunk vibration modes, resulting in the filtered first and second vibration signals. First, the original displacement-time curves of the first and second feature points are obtained. These curves contain all the information about tree vibration, but are also mixed with high-frequency noise (such as local leaf shaking, image registration errors, etc.) and low-frequency drift (such as slight drone shaking). To extract the core vibration components related to trunk conduction, the original signals need to be filtered. According to tree mechanics, the natural vibration frequency of the tree trunk is usually in the range of 1-5 Hz, varying depending on the tree species and height. The trunk vibration frequency range of the target tree species can be determined in advance through spectrum analysis or literature review. A bandpass filter is designed, with the passband set to this frequency range (e.g., 1-5 Hz) and the stopband set below 0.5 Hz and above 10 Hz. The displacement-time curve of the first feature point is input into this filter to remove irrelevant frequency components, obtaining the first vibration signal. The same filtering process is performed on the displacement-time curve of the second feature point to obtain the second vibration signal. The filtered signal is cleaner, highlighting the vibration components related to trunk conduction.
[0033] The second step involves performing cross-correlation analysis on the first and second vibration signals to calculate the cross-correlation function and peak similarity. Cross-correlation analysis is a standard method for measuring the similarity between two signals. For two discrete signals x(t) and y(t), their cross-correlation function Rxy(τ) is defined as Rxy(τ) = Σ x(t) y(t+τ), where τ is the time offset. During calculation, the first vibration signal is used as a reference, and the second vibration signal is shifted along the time axis. The sum of the products of the overlapping portions of the two signals is calculated for each shift step. By iterating through all possible values of τ (usually limited to the vibration period), a curve showing the cross-correlation function as a function of τ is obtained. The maximum value of this curve is the peak similarity, which reflects the degree of similarity between the two signals when optimally aligned. A higher peak similarity indicates that the waveforms of the two signals are more similar, and they are more likely to originate from the same vibration source. Simultaneously, the τ value corresponding to the position where the peak occurs is the time offset required to align the two signals, i.e., the time delay.
[0034] The third step involves determining that if the peak similarity is higher than a first preset threshold, the vibration of the second feature point originates from the vibration of the first feature point transmitted through the tree trunk. The time delay is further determined based on the peak position of the cross-correlation function, and the amplitude attenuation rate is determined based on the peak amplitude. A first preset threshold is set, for example, 0.7 or 0.8 (the specific value needs to be adjusted according to the actual signal quality). If the calculated peak similarity is higher than this threshold, it indicates that the waveforms of the two vibration signals are highly similar. This means that the vibration of the second feature point is indeed transmitted from the vibration of the first feature point through the tree trunk, rather than being a local vibration directly driven by wind. In this case, the τ value corresponding to the peak of the cross-correlation function is the time delay required for the vibration to propagate from the first feature point to the second feature point. Simultaneously, the peak amplitudes (or root mean square amplitudes) of the first and second vibration signals are compared, and the amplitude attenuation rate is calculated as (A1 - A2) / A1, where A1 is the amplitude of the first vibration signal and A2 is the amplitude of the second vibration signal. These two parameters will be used for subsequent xylem density inversion.
[0035] Fourth, if the peak similarity is lower than a first preset threshold, it is determined that the vibration of the second feature point is mainly driven directly by wind, and this set of data is discarded. If the peak similarity is lower than the threshold, it indicates that the waveforms of the two signals are significantly different, and the vibration of the second feature point is likely not transmitted from the vibration of the first feature point through the tree trunk, but rather is an independent vibration caused directly by wind. In this case, the calculated time delay and amplitude attenuation rate have no physical meaning and cannot be used for xylem density inversion. Therefore, the algorithm discards this set of data and suggests that it may be necessary to reselect feature points or reacquire video images. This filtering mechanism ensures that the data input into the inversion model has high quality and reliability.
[0036] In a preferred embodiment, the method further includes the following steps: Identify and track at least one third feature point, which is located on the leeward side and at a different height or branch position from the second feature point; Calculate the first delay time from the first feature point to the second feature point, the second delay time from the first feature point to the third feature point, and the third delay time from the second feature point to the third feature point, respectively. The process of inputting the time delay and amplitude attenuation rate into the xylem density inversion model includes the following steps: If the absolute value of the difference between the sum of the first delay duration and the second delay duration and the third delay duration is less than the second preset threshold, and the three sets of vibration signals corresponding to the first delay duration, the second delay duration, and the third delay duration all pass the peak similarity threshold screening, then the time delay and amplitude attenuation rate are input into the xylem density inversion model.
[0037] The specific implementation steps are as follows: The first step is to identify and track at least one third feature point. This third feature point is located on the leeward side of the tree and at a different height or on a different branch than the second feature point. Building upon the previous steps, in addition to the first and second feature points, an extra feature point is selected as the third feature point. This point is selected based on the following criteria: it is located on the leeward side of the tree canopy, but at a different height or on a different branch than the second feature point. For example, it could be located on a higher leaf cluster or at the end of another branch. The purpose of this is to verify the consistency of vibration propagation by examining the propagation time relationships along different paths. Using the same feature point tracking method as before, the position of the third feature point is identified and tracked in consecutive frames of the video image, and its displacement trajectory is recorded.
[0038] The second step involves calculating the first delay time from the first feature point to the second feature point, the second delay time from the first feature point to the third feature point, and the third delay time from the second feature point to the third feature point. Bandpass filtering is then applied to the displacement-time curves of each feature point to obtain their respective vibration signals. Next, cross-correlation analysis is performed on the first and second vibration signals to calculate the first delay time; cross-correlation analysis is performed on the first and third vibration signals to calculate the second delay time; and cross-correlation analysis is performed on the second and third vibration signals to calculate the third delay time. Simultaneously, the peak similarity of these three sets of cross-correlation analyses is recorded for subsequent filtering.
[0039] The third step is to perform geometric consistency verification. Calculate the sum of the first and second delay durations, and subtract the third delay duration from the absolute value of the difference. If this absolute value is less than a second preset threshold (e.g., 0.02 seconds or 2-3 times the signal sampling interval), and the peak similarity of the three sets of vibration signals corresponding to the first, second, and third delay durations all pass the first preset threshold screening, then the vibration propagation time of the three feature points satisfies the geometric consistency condition. This means that the vibration signal does indeed propagate along the natural connection path of the tree, and the three points are located on the same vibration propagation path. In this case, it can be assured that the first delay duration and amplitude attenuation rate are reliable and can be input into the xylem density inversion model.
[0040] Fourth, if the absolute value of the difference is greater than or equal to the second preset threshold, it indicates that the vibration propagation time of the three feature points does not meet the geometric consistency condition. This may be because the selected feature points are located on different vibration branches, or there are other interfering factors. In this case, this set of data cannot be directly used for inversion.
[0041] Its beneficial effects are reflected in the following aspects: it provides an automated quality control mechanism to further screen out high-quality vibration data; it ensures that the time delay parameter input into the inversion model has a clear physical meaning, that is, the propagation time of vibration along the natural path of the trunk and branches; it improves the accuracy and robustness of xylem density inversion and avoids errors caused by improper selection of feature points.
[0042] In a preferred embodiment, after calculating the first delay duration from the first feature point to the second feature point, the second delay duration from the first feature point to the third feature point, and the third delay duration from the second feature point to the third feature point, the method further includes the following steps: If the absolute value of the difference between the sum of the first delay duration and the second delay duration and the third delay duration is greater than or equal to the second preset threshold, then the three-dimensional point cloud data of the target tree is obtained, and the topological structure model of the tree trunk and branches is extracted from the point cloud data. Locate the branch positions of the first feature point and the second feature point in the topological structure model, and calculate the geometric path length of the natural connection path from the first feature point to the second feature point along the trunk and branches; Based on the geometric path length and the first delay duration, the unit path propagation speed is calculated, and the unit path propagation speed is used as an input feature to replace the time delay and input into the xylem density inversion model.
[0043] The specific implementation steps are as follows: The first step is to determine if the geometric consistency verification has failed. The sum of the first and second delay times is calculated, and the absolute value of the difference between the sum and the third delay time is subtracted. If this absolute value is greater than or equal to a second preset threshold, it indicates that the vibration propagation time of the three feature points does not meet the geometric consistency condition. This may be because the first, second, and third feature points are not located on the same continuous vibration propagation path. For example, the first feature point may be located on the main branch, the second on branch A, and the third on branch B. The vibration propagation from the main branch to branch A and to branch B are two independent paths, and do not satisfy the additive relationship. In this case, time delays cannot be directly used for inversion; more precise path information needs to be introduced.
[0044] The second step is to acquire 3D point cloud data of the target tree. Before or after video acquisition, perform 3D LiDAR scanning or multi-view photogrammetry on the target tree to obtain high-precision 3D point cloud data. The point cloud data should record in detail the spatial position and geometric shape of the tree trunk and each branch. The point cloud density should be high enough to clearly distinguish the direction and connection points of each branch. If it is not possible to obtain the point cloud of the entire tree, 3D tree modeling software can be used to generate an approximate 3D structural model based on a few key parameters.
[0045] The third step is to extract the topological structure model of the tree trunk and branches from the point cloud data. The 3D point cloud data is processed first by separating the point clouds of the trunk and each branch using a point cloud segmentation algorithm. Then, a skeleton extraction algorithm is used to extract the centerlines of the trunk and each branch, forming a linear skeleton structure of the tree. The connection points between each branch and the trunk, as well as the direction and length of the branches, are recorded. Finally, a tree-like topological structure model is generated, which includes the 3D coordinates of all key nodes and their connections.
[0046] The fourth step is to locate the branch positions of the first and second feature points in the topological model and calculate the geometric path length of the natural connection path from the first feature point to the second feature point along the trunk and branch. First, it's necessary to map the two-dimensional feature points in the video image to their spatial positions in the three-dimensional point cloud. This can be done by using the image coordinates of the feature points and the camera parameters at the time of capture, combined with triangulation principles, to back-project the two-dimensional feature points into three-dimensional space and find their corresponding points in the point cloud. Alternatively, the positions corresponding to the feature points in the video can be manually marked in the point cloud model. After determining the three-dimensional positions of the two feature points, the shortest connection path from the first feature point to the second feature point is searched in the topological model. This path must travel along the centerline of the trunk and branch and cannot cross straight lines in space. For example, if the first feature point is located on the upper part of the trunk and the second feature point is located at the end of a side branch, the path would be to first descend along the trunk to the side branch connection point, and then along the side branch centerline to reach the second feature point. The sum of the lengths of each segment on the path is calculated to obtain the geometric path length L, in meters.
[0047] Fifth, based on the geometric path length L and the first delay time Δt, calculate the unit path propagation velocity v = L / Δt. This velocity v reflects how fast the vibration signal propagates along the actual path inside the tree and is a direct characterization of the wood properties. A faster velocity generally means a higher elastic modulus and potentially greater density in the wood.
[0048] Step 6: Replace the time delay with the unit path propagation velocity as the input feature and input it into the xylem density inversion model. When training the xylem density inversion model, two input features can be used simultaneously: time delay (suitable for scenarios where 3D point clouds are unavailable) and unit path propagation velocity (suitable for scenarios where 3D point clouds are available). The model needs to learn the mapping relationship between these two features and xylem density. In this step, since the 3D point cloud has already been acquired and the accurate propagation path length has been calculated, using the unit path propagation velocity, which has a clearer physical meaning and smaller error, as the input feature can improve the inversion accuracy.
[0049] In a preferred embodiment, the xylem density inversion model has a multi-branch input layer, including: The first input branch is used to receive the time delay and is suitable for scenarios with only video image data. The second input branch is used to receive the unit path propagation speed, which is suitable for scenarios where video image data and 3D point cloud data are acquired simultaneously. The model automatically selects the corresponding input branch for calculation based on the type of input data, and outputs an estimated value of xylem density.
[0050] The specific implementation steps are as follows: The first step is to construct a xylem density inversion model with a multi-branch input structure. The model adopts a multi-branch architecture, setting up two independent sub-network branches in the input layer. The first input branch has an input dimension of 1, receiving time delay values (scalar or vector). This branch can consist of several fully connected layers, performing preliminary feature transformation on the time delay. The second input branch also has an input dimension of 1, receiving unit path propagation velocity values. This branch also consists of several fully connected layers, performing feature transformation on the velocity values. The output feature vectors of the two branches can have the same or different dimensions. Subsequently, a feature fusion layer (such as concatenation or addition) is used to merge the features of the two branches before inputting them into subsequent hidden layers, ultimately outputting the predicted value of xylem density. During the model training phase, two types of training samples are needed: one type has only time delay features (no 3D point cloud data), and the other type has both time delay and unit path propagation velocity features (with 3D point cloud data). For samples with only time delay, the second input branch is set to zero or masked during training, and forward propagation and error backpropagation are performed only through the first input branch; for samples with both types of features, both branches participate in training simultaneously. In this way, the model learns to make accurate predictions under different input conditions.
[0051] The second step, in actual monitoring, is to automatically select the corresponding input branch for computation based on the type of input data. When processing data for a target tree, the system first determines whether 3D point cloud data of the tree can be obtained and whether the unit path propagation velocity has been successfully calculated. If 3D point cloud data cannot be obtained (e.g., due to limitations in equipment or operational efficiency requirements), only the time delay feature is available. In this case, the time delay feature is input into the second input branch of the model (or the input to the second input branch is set to zero), and the model automatically performs computation through the first input branch, outputting an estimated xylem density value. If 3D point cloud data is obtained and the unit path propagation velocity is calculated, the unit path propagation velocity is input into the second input branch, and the model automatically performs computation through the second input branch (the first input branch can simultaneously input the time delay as an auxiliary feature, or not input it at all), outputting an estimated xylem density value. The forward propagation process of the model dynamically activates the corresponding branch network based on the actual availability of the input features.
[0052] The third step is for the model to output an estimated xylem density. Regardless of which input branch is used, the model's final output is an estimated xylem density of the target tree, typically expressed in grams per cubic centimeter. Since the model has learned the mapping relationship between the two features and xylem density during training, it can guarantee prediction accuracy in any scenario. Furthermore, because the two branches share subsequent hidden layer parameters, the model can also learn common essential information from the two features, improving its overall generalization ability.
[0053] Its beneficial effects are reflected in the following aspects: a single model can adapt to application scenarios with various data conditions, simplifying model deployment and management; it makes full use of data from different sources, allowing for more accurate input features in data-rich scenarios and prediction based on basic features in data-limited scenarios; it improves the practicality and flexibility of the model, enabling the xylem density monitoring method to be widely applied to reserve forest plots with different equipment conditions and operational requirements.
[0054] In a preferred embodiment, before calculating the vibration propagation characteristic parameters between the two, the following steps are further included: In consecutive frames of the video image, the pixel region size of the first feature point and the second feature point is tracked, and the scale change rate of their feature regions in consecutive frames is calculated. If the scale change rate is lower than the third preset threshold, it is determined that the motion of the feature point is mainly parallel to the image plane; The step of calculating the vibration propagation characteristic parameters between the first and second feature points based on their displacement trajectories in the time series includes the following steps: If it is determined that the motion of the feature point is mainly parallel to the image plane, then the vibration propagation characteristic parameters between the first and second feature points are calculated based on their displacement trajectories in the time series.
[0055] The specific implementation steps are as follows: The first step involves tracking the pixel region sizes of the first and second feature points across consecutive frames of the video image, and calculating the scale change rate of their feature regions across the frames. Previously, inter-frame tracking of the first and second feature points was performed, recording their pixel coordinates in each frame. In addition to coordinate information, the size of the local neighborhood of each feature point can also be recorded. For deep learning-based feature point detection methods, the scale information of the feature points is typically output. Using traditional methods, a fixed-size window can be defined around each feature point, and the scale can be estimated using the gradient information of the pixels within the window, or by estimating the scale using the distance between the feature point and the camera. After obtaining the scale value for each frame, the scale change rate over time is calculated, i.e., the relative change in scale per unit time. For example, the scale ratio between adjacent frames can be calculated, or the slope of the scale-time curve can be fitted to obtain the average scale change rate.
[0056] The second step is to determine whether the scale change rate is lower than a third preset threshold. A third preset threshold is set, for example, 0.01 or 0.02 (i.e., scale change per frame does not exceed 1%-2%). The specific value needs to be determined comprehensively based on factors such as the camera's frame rate, the amplitude of tree vibration, and distance. If the calculated scale change rate is lower than this threshold, it means that the motion of the feature points in the direction perpendicular to the image plane is negligible; their motion mainly manifests as two-dimensional motion parallel to the image plane. In this case, the two-dimensional displacement trajectory can accurately reflect the actual motion of the feature points and can be directly used for subsequent vibration analysis.
[0057] Third, if it is determined that the motion of the feature point is mainly parallel to the image plane, then the vibration propagation characteristic parameters between the first and second feature points are calculated based on their displacement trajectories in the time series. Since it has been confirmed that the motion is mainly parallel to the image plane, the calculated time delay and amplitude attenuation rate are less affected by perspective projection errors and can be considered reliable.
[0058] The technical principle of this solution lies in using feature point scale changes to detect motion components perpendicular to the image plane. When trees sway in the wind, their motion is three-dimensional, including both left-right swaying parallel to the image plane and forward-backward swaying perpendicular to it. If only two-dimensional displacement trajectories are considered, motion perpendicular to the image plane will be incorrectly mapped as scaling or displacement within the two-dimensional plane, thus introducing errors. By analyzing the changes in feature point scale, cases with significant vertical motion components can be identified, and these data can be specially processed or eliminated. Its beneficial effects are: providing a quality control mechanism for the motion dimension in vibration analysis, ensuring that only feature points with motion directions suitable for two-dimensional analysis are used in core calculations; reducing time delays and amplitude attenuation rate calculation deviations caused by perspective projection errors, thus improving inversion accuracy.
[0059] In a preferred embodiment, after calculating the scale change rate of its feature region in consecutive frames, the method further includes the following steps: If the scale change rate is higher than the third preset threshold, the real-time attitude parameters of the UAV are obtained. The attitude parameters include the latitude and longitude, altitude, pitch angle, roll angle and yaw angle at the time of shooting. In consecutive frames of the video image, the two-dimensional pixel coordinates of the first feature point and the second feature point in the image coordinate system are identified; Based on the two-dimensional pixel coordinates, the real-time attitude parameters of the UAV and the camera parameters, and combined with the pre-acquired three-dimensional point cloud data of the target tree, the first feature point and the second feature point in each frame are back-projected to the three-dimensional spatial coordinate system to obtain the three-dimensional spatial coordinates of each feature point at each frame time. Based on the three-dimensional spatial coordinates of each feature point in consecutive frames, its corrected displacement trajectory in three-dimensional space is constructed and used to calculate the vibration propagation characteristic parameters.
[0060] The specific implementation steps are as follows: The first step is to determine if the calculated rate of change of the feature point's scale is higher than a third preset threshold, indicating that the feature point has a significant motion component perpendicular to the image plane. In this case, simple two-dimensional displacement trajectory analysis will introduce a large error, requiring a more accurate three-dimensional analysis method.
[0061] The second step is to acquire the drone's real-time attitude parameters. During video recording, the drone system records the attitude parameters of each frame in sync with the video frames, including latitude and longitude, altitude, pitch angle, roll angle, and yaw angle at the time of recording. These parameters are typically stored in the video file's metadata or recorded in a separate log file. During processing, each frame needs to be time-aligned with its corresponding attitude parameters.
[0062] The third step involves identifying the two-dimensional pixel coordinates of the first and second feature points in the image coordinate system within consecutive frames of the video image. This step is the same as feature point tracking, obtaining the (u, v) coordinates of each feature point in each frame.
[0063] The fourth step involves back-projecting the first and second feature points in each frame to a 3D spatial coordinate system based on the 2D pixel coordinates, the UAV's real-time attitude parameters, and camera parameters, combined with pre-acquired 3D point cloud data of the target trees. The back-projection calculation requires the following information: camera intrinsic matrix (focal length, principal point coordinates, distortion coefficients), and camera extrinsic matrix (rotation matrix and translation vector calculated from the UAV's attitude parameters). The back-projection formula is: given a 2D image point (u, v) and its depth value Z, the corresponding 3D spatial point (X, Y, Z) can be calculated. However, the problem here is that a single 2D point cannot determine the depth Z because all points on the ray emanating from the camera's optical center will project to the same image point. To solve this problem, pre-acquired 3D point cloud data of the target trees is needed. Specifically, starting from the camera's optical center, a search is performed along the directional ray to find the intersection of the ray and the tree point cloud. The position of this intersection is the actual position of the feature point in 3D space. Since the tree point cloud already contains the precise geometry of the tree, this method can uniquely determine the 3D coordinates of the feature point. This process is repeated for each feature point in each frame to obtain the three-dimensional spatial coordinates of each feature point at each frame time.
[0064] The fifth step involves constructing the corrected displacement trajectory of each feature point in three-dimensional space based on its three-dimensional spatial coordinates in consecutive frames. Connecting the three-dimensional coordinates of each frame in chronological order yields the motion trajectory of the feature points in three-dimensional space. This trajectory realistically reflects the three-dimensional swaying of trees under wind force, encompassing motion components in all directions.
[0065] The sixth step involves calculating the vibration propagation characteristic parameters based on the corrected displacement trajectory. This time, a three-dimensional displacement trajectory is used. The distance change between two feature points in three-dimensional space can be calculated, or the change in the three-dimensional displacement vector can be directly analyzed. Through cross-correlation analysis, the time delay and amplitude attenuation rate are calculated. Since perspective projection errors have been eliminated, the calculated parameters are more accurate.
[0066] The technical principle of this solution lies in combining two-dimensional image information with three-dimensional point cloud information, and reconstructing the true motion trajectory of feature points in three-dimensional space through back projection technology. When tree motion includes a component significantly perpendicular to the image plane, the motion trajectory on the two-dimensional image will be distorted, failing to accurately reflect the true displacement. Through back projection, the true motion can be recovered, thereby obtaining accurate vibration propagation characteristic parameters. Its beneficial effects are reflected in: completely solving the influence of perspective projection error on vibration analysis, enabling the acquisition of high-precision propagation parameters even under complex three-dimensional motion conditions; fully utilizing UAV attitude data and three-dimensional point cloud data to achieve deep fusion of multi-source data; and providing higher-quality input data for xylem density inversion, further improving inversion accuracy and reliability.
[0067] In a preferred embodiment, before calculating the geometric path length of the natural connection path from the first feature point to the second feature point along the trunk and branches, the method further includes the following steps: Determine whether there is a non-main branch transmission path in the first branch where the first feature point is located and the second branch where the second feature point is located; The calculation of the geometric path length of the natural connection path from the first feature point to the second feature point along the trunk and branches includes the following steps: If not, calculate the geometric path length of the natural connection path from the first feature point to the second feature point along the trunk and branches.
[0068] The specific implementation steps are as follows: The first step, before calculating the geometric path length of the natural connection path from the first feature point to the second feature point along the trunk and branches, is to determine whether there is a non-trunk transmission path on the first branch containing the first feature point and the second branch containing the second feature point. This determination is based on 3D point cloud data or a tree topology model. Previously, 3D point cloud data of the target tree has been acquired, and the topology model of the trunk and branches has been extracted. Based on this model, the spatial and connectivity relationships between the first and second branches can be analyzed.
[0069] The second step is to determine if, after evaluation, there is no non-trunk transmission path between the first branch and the second branch, meaning that vibration can only be transmitted through the trunk. Then, continue with the next step to calculate the geometric path length of the natural connection path from the first feature point to the second feature point along the trunk and branches.
[0070] Thirdly, if, after assessment, a non-core transmission path is found between the first and second branches, the geometric path length cannot be simply calculated using the previous method. This is because, in this case, the actual path of vibration propagation may not be along the core, but rather along this non-core transmission path. In this situation, alternative processing methods are required.
[0071] Furthermore, determining whether a non-main branch exists in the first branch where the first feature point is located and the second branch where the second feature point is located includes the following steps: Obtain the position information of the first branch where the first feature point is located and the second branch where the second feature point is located in three-dimensional space; Calculate the shortest Euclidean distance between the first branch and the second branch in three-dimensional space; If the shortest Euclidean distance is less than the fourth preset threshold, it is determined that there is a non-main branch transmission path between the first branch and the second branch.
[0072] The specific implementation steps are as follows: The first step is to obtain the position information of the first branch containing the first feature point and the second branch containing the second feature point in 3D space. Based on the acquired 3D point cloud data and the extracted topological structure model, the 3D point cloud set or centerline coordinates of each branch can be obtained. For the first branch, the 3D coordinates of all its point clouds are extracted, or the coordinates of key nodes on its centerline are extracted. The same process is applied to the second branch.
[0073] The second step is to calculate the shortest Euclidean distance between the first and second branches in 3D space. The method for calculating the shortest Euclidean distance is as follows: traverse all points (or sampling points) on the first branch, and calculate the shortest distance from each point to the second branch (the distance from a point to the point cloud can be approximated as the distance from the point to the centerline of the second branch, or a nearest neighbor search can be used). Take the minimum of all these distances; this is the shortest Euclidean distance between the two branches. This distance reflects the spatial proximity of the two branches.
[0074] The third step is to compare the calculated shortest Euclidean distance with a fourth preset threshold. The setting of this fourth preset threshold needs to consider various factors, such as the tree's flexibility, the influence of wind, and possible contact media. It is usually set to a small value, such as 0.1 meters or 0.2 meters, or adjusted according to the actual size of the tree and its branch density. If the shortest Euclidean distance is less than the fourth preset threshold, it is determined that there is a non-trunk transmission path between the first and second branches. This means that the two branches are very close in space and may come into contact or mechanically couple through other means under wind influence, and the vibration signal may be transmitted directly without passing through the trunk. If the shortest Euclidean distance is greater than or equal to the fourth preset threshold, it is determined that there is no non-trunk transmission path, and the vibration signal can only be transmitted through the trunk.
[0075] The fourth step involves proceeding through different processing steps based on the judgment results.
[0076] In a preferred embodiment, after determining whether there is a non-main branch transmission path in the first branch where the first feature point is located and the second branch where the second feature point is located, the method further includes the following steps: If so, then the vibration coherence features between the first feature point and the second feature point are extracted. The vibration coherence features include the peak value of the coherence function and the corresponding phase difference within the natural frequency range of the tree trunk. The vibration coherence characteristics are input into the xylem density inversion model, and together with the time delay or amplitude attenuation rate, they are used as input features to output the xylem density estimate.
[0077] The specific implementation steps are as follows: The first step is to determine if there is a non-trunk transmission path between the first branch and the second branch, in which case the geometric length calculation method based on the trunk path cannot be used. At this point, proceed to this processing flow.
[0078] The second step is to extract the vibration coherence characteristics between the first and second feature points. First, the vibration signals (after bandpass filtering) of the first and second feature points are obtained. Then, frequency domain analysis is performed on these two signals to calculate their coherence function. The coherence function is typically calculated based on the power spectral density and cross-power spectral density, with the formula Cxy(f) = |Pxy(f)|. 2 The expression is defined as / (Pxx(f) * Pyy(f)), where Pxx(f) and Pyy(f) are the self-power spectral densities of the two signals, and Pxy(f) is the cross-power spectral density. The coherence function Cxy(f) is a function of frequency f, ranging from 0 to 1, representing the degree of correlation between the two signals at frequency f.
[0079] The third step involves extracting the peak value of the coherence function and its corresponding frequency and phase difference within the natural frequency range of the tree trunk. The natural frequency range of the tree trunk can be obtained through spectral analysis of the vibration signals from the first or second feature point, or by consulting relevant tree mechanics data. Within this frequency range, the maximum value of the coherence function is searched and recorded as the peak value. This peak value reflects the maximum coupling degree between the two feature points under the trunk vibration mode. Simultaneously, the frequency corresponding to this peak value and the phase difference between the two signals at that frequency are recorded. The phase difference can be calculated using the phase angle of the cross-power spectrum.
[0080] The fourth step involves inputting the extracted vibration coherence features (including the peak value of the coherence function, the corresponding frequency, and the phase difference) along with the time delay and amplitude attenuation rate into the xylem density inversion model. During the model training phase, sample data containing these features needs to be prepared. For samples with non-core transmission paths, these coherence features may reflect the material properties of wood better than the time delay because they extract information directly from the frequency domain correlation of the vibration signal and are unaffected by the complexity of the transmission path.
[0081] The fifth step involves the xylem density inversion model receiving these input features and outputting an estimated xylem density value for the target tree. The model can be a machine learning model capable of handling multiple feature inputs, such as a random forest, support vector machine, or neural network. Because the input features include both time-domain features (time delay, amplitude decay rate) and frequency-domain features (coherence function peak, phase difference), the model can learn the relationship with xylem density from multiple dimensions, improving the accuracy and robustness of the inversion.
[0082] It should be noted that the xylem density inversion model can also be implemented in another specific way: This model is a deep learning-based multi-input neural network regression model designed to receive input features from three different scenarios: time-domain features (time delay), kinematic features (propagation speed per unit path), and frequency-domain features (vibrational coherence features). The model consists of four main parts: a first input branch, a second input branch, a third input branch, a feature fusion layer, a shared hidden layer, and an output layer.
[0083] The first input branch is dedicated to receiving time delay features. This branch has a single input layer node, receiving a scalar value, the time delay (in seconds). This input layer is followed by two fully connected layers. The first fully connected layer contains 64 neurons and uses the ReLU activation function to perform a non-linear transformation on the raw time delay, extracting preliminary features. The second fully connected layer contains 32 neurons, also using the ReLU activation function, to further compress and refine the features. The output of this branch is a 32-dimensional feature vector, representing the high-level feature representation extracted from the time delay.
[0084] The second input branch is specifically designed to receive the unit path propagation velocity feature. This branch has a single input layer node and receives a scalar value: the unit path propagation velocity (in meters per second). Its structure is symmetrical to the first input branch, also containing two fully connected layers: a first layer with 64 neurons (ReLU activation) and a second layer with 32 neurons (ReLU activation). The output of this branch is a 32-dimensional feature vector, representing the high-level feature representation extracted from the unit path propagation velocity.
[0085] The third input branch is specifically designed to receive vibrational coherence features. This branch has three input layer nodes and receives a three-dimensional vector containing three core features: the peak value of the coherence function (dimensionless, ranging from 0 to 1), the frequency corresponding to the peak value (in Hertz), and the phase difference at that frequency (in radians). This input layer is followed by two fully connected layers. The first fully connected layer contains 128 neurons and uses the ReLU activation function because the relationship between frequency domain features and xylem density may be more complex, requiring a larger capacity for fitting. The second fully connected layer contains 64 neurons and also uses the ReLU activation function. The output of this branch is a 64-dimensional feature vector, representing the high-level feature representation extracted from the vibrational coherence features.
[0086] The feature fusion layer fuses the feature vectors output from the three branches. The fusion method uses vector concatenation, which involves joining the 32-dimensional vectors from the first, second, and third input branches end-to-end to form a 128-dimensional joint feature vector. This fusion method retains all the information from the three input branches, providing a rich feature foundation for subsequent predictions.
[0087] A shared hidden layer and output layer are used to learn the mapping relationship of xylem density from the fused feature vector. This part contains two hidden layers and one output layer. The first hidden layer contains 256 neurons, uses the ReLU activation function, and adds a Dropout layer (dropout rate 0.3) to prevent overfitting. The second hidden layer contains 128 neurons, also uses the ReLU activation function, and adds a Dropout layer. The output layer is a single-neuron layer with no activation function (i.e., linear activation), directly outputting the estimated xylem density value in grams per cubic centimeter.
[0088] During model training, three types of training samples are required. The first type contains only time delay features (corresponding to scenarios with only video footage, no 3D point clouds, and no frequency domain features). The second type contains both time delay features and unit path propagation velocity features (corresponding to scenarios with video footage and 3D point clouds, but no non-core propagation paths). The third type contains both time delay features and vibration coherence features (corresponding to scenarios with non-core propagation paths). For the first type of samples, during training, the input values of the second and third input branches are set to 0, and backpropagation of these two branches is disabled; forward propagation and error backpropagation are performed only through the first input branch. For the second type of samples, the first and second input branches participate in training, while the third input branch is disabled. For the third type of samples, the first and third input branches participate in training, while the second input branch is disabled. The loss function is mean squared error, the optimizer is Adam, and the initial learning rate is set to 0.001.
[0089] During the model inference phase, when inputting data for a target tree, the first step is to determine which features can be provided: If only a time delay can be provided, then the time delay is input into the first input branch, and the inputs to the second and third input branches are set to 0. The model calculates the output through the first input branch and the shared layer.
[0090] If both time delay and propagation speed per unit path are provided, then the time delay is input into the first input branch, the speed is input into the second input branch, and the third input branch is set to 0. The model calculates the output by jointly using the first and second input branches.
[0091] If both time delay and vibration coherence characteristics are provided (indicating the existence of a non-core transmission path), then the time delay is input into the first input branch, the coherence characteristics are input into the third input branch, and the second input branch is set to 0. The model calculates the output by jointly using the first and third input branches.
[0092] The forward propagation process within the model automatically activates the corresponding branch networks based on the actual situation of the input data, without the need for manual intervention.
[0093] The technical principle of this solution lies in the following: when vibration transmission paths are complex and cannot be described by simple path length and time delay, frequency domain analysis is employed, utilizing coherence features to describe the intrinsic relationship between two vibration signals. The coherence function measures the correlation between two signals in the frequency domain, unaffected by the specific transmission path, reflecting only the coupling strength between the two points. Within the natural frequency range of the main axis, this coupling strength is closely related to the elastic modulus and density of the wood. Therefore, even with non-main axis transmission paths, coherence features can still be used for xylem density inversion. Its beneficial effects include: providing an effective solution for complex transmission path situations, avoiding data discarding due to path misjudgment; and enriching the dimensions of input features, enabling the inversion model to learn the expression of wood properties from more perspectives.
[0094] The above description is merely a preferred embodiment of this application and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of the invention involved in this application is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the inventive concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features with similar functions disclosed in this application.
Claims
1. A method for ecological parameter inversion and growth trend prediction based on machine learning, characterized in that, Includes the following steps: High frame rate video images containing the entire canopy area of the target tree were acquired; the high frame rate video images were obtained by a drone hovering and shooting under windy conditions; In consecutive frames of the video image, a first feature point and a second feature point located at different spatial locations in the tree canopy are identified and tracked, wherein the first feature point is located on the windward edge of the tree canopy and the second feature point is located on the leeward or lateral edge of the tree canopy. Based on the displacement trajectories of the first and second feature points in the time series, vibration propagation characteristic parameters between them are calculated, including: Time delay: The lag time of the vibration waveform of the second feature point relative to the vibration waveform of the first feature point; Amplitude attenuation rate: The ratio of the attenuation of the vibration amplitude of the second feature point relative to the vibration amplitude of the first feature point; The time delay and amplitude attenuation rate are input into the xylem density inversion model. This model is a regression model trained with the same vibration propagation characteristic parameters of a large number of sample trees as input and the measured xylem density of the corresponding tree trunk as the label. The model output is the estimated xylem density of the target tree. Repeat the above steps to estimate the xylem density of all or sampled trees in the target reserve forest plot and generate a spatial distribution map of the xylem density of the plot.
2. The method for ecological parameter inversion and growth trend prediction based on machine learning according to claim 1, characterized in that, The calculation of the vibration propagation characteristic parameters between the two includes the following steps: Bandpass filtering was performed on the displacement-time curves of the first and second feature points respectively to extract the frequency components corresponding to the vibration mode of the tree trunk, thus obtaining the filtered first and second vibration signals. Cross-correlation analysis is performed on the first vibration signal and the second vibration signal to calculate the cross-correlation function and peak similarity. If the peak similarity is higher than the first preset threshold, it is determined that the vibration of the second feature point originates from the vibration of the first feature point transmitted through the tree trunk, and the time delay is further determined based on the peak position of the cross-correlation function and the amplitude attenuation rate is determined based on the peak amplitude. If the peak similarity is lower than the first preset threshold, it is determined that the vibration of the second feature point is mainly driven by wind force, and the data set is discarded.
3. The method for ecological parameter inversion and growth trend prediction based on machine learning according to claim 1, characterized in that, The method also includes the following steps: Identify and track at least one third feature point, which is located on the leeward side and at a different height or branch position from the second feature point; Calculate the first delay time from the first feature point to the second feature point, the second delay time from the first feature point to the third feature point, and the third delay time from the second feature point to the third feature point, respectively. The process of inputting the time delay and amplitude attenuation rate into the xylem density inversion model includes the following steps: If the absolute value of the difference between the sum of the first delay duration and the second delay duration and the third delay duration is less than the second preset threshold, and the three sets of vibration signals corresponding to the first delay duration, the second delay duration, and the third delay duration all pass the peak similarity threshold screening, then the time delay and amplitude attenuation rate are input into the xylem density inversion model.
4. The method for ecological parameter inversion and growth trend prediction based on machine learning according to claim 3, characterized in that, After calculating the first delay time from the first feature point to the second feature point, the second delay time from the first feature point to the third feature point, and the third delay time from the second feature point to the third feature point, the method further includes the following steps: If the absolute value of the difference between the sum of the first delay duration and the second delay duration and the third delay duration is greater than or equal to the second preset threshold, then the three-dimensional point cloud data of the target tree is obtained, and the topological structure model of the tree trunk and branches is extracted from the point cloud data. Locate the branch positions of the first feature point and the second feature point in the topological structure model, and calculate the geometric path length of the natural connection path from the first feature point to the second feature point along the trunk and branches; Based on the geometric path length and the first delay duration, the unit path propagation speed is calculated, and the unit path propagation speed is used as an input feature to replace the time delay and input into the xylem density inversion model.
5. The method for ecological parameter inversion and growth trend prediction based on machine learning according to claim 4, characterized in that, The xylem density inversion model has a multi-branch input layer, including: The first input branch is used to receive the time delay and is suitable for scenarios with only video image data. The second input branch is used to receive the unit path propagation speed, which is suitable for scenarios where video image data and 3D point cloud data are acquired simultaneously. The model automatically selects the corresponding input branch for calculation based on the type of input data, and outputs an estimated value of xylem density.
6. The method for ecological parameter inversion and growth trend prediction based on machine learning according to claim 1, characterized in that, Before calculating the vibration propagation characteristic parameters between the two, the following steps are also included: In consecutive frames of the video image, the pixel region size of the first feature point and the second feature point is tracked, and the scale change rate of their feature regions in consecutive frames is calculated. If the scale change rate is lower than the third preset threshold, it is determined that the motion of the feature point is mainly parallel to the image plane; The step of calculating the vibration propagation characteristic parameters between the first and second feature points based on their displacement trajectories in the time series includes the following steps: If it is determined that the motion of the feature point is mainly parallel to the image plane, then the vibration propagation characteristic parameters between the first and second feature points are calculated based on their displacement trajectories in the time series.
7. The method for ecological parameter inversion and growth trend prediction based on machine learning according to claim 6, characterized in that, After calculating the scale change rate of its feature region in consecutive frames, the method further includes the following steps: If the scale change rate is higher than the third preset threshold, the real-time attitude parameters of the UAV are obtained. The attitude parameters include the latitude and longitude, altitude, pitch angle, roll angle and yaw angle at the time of shooting. In consecutive frames of the video image, the two-dimensional pixel coordinates of the first feature point and the second feature point in the image coordinate system are identified; Based on the two-dimensional pixel coordinates, the real-time attitude parameters of the UAV and the camera parameters, and combined with the pre-acquired three-dimensional point cloud data of the target tree, the first feature point and the second feature point in each frame are back-projected to the three-dimensional spatial coordinate system to obtain the three-dimensional spatial coordinates of each feature point at each frame time. Based on the three-dimensional spatial coordinates of each feature point in consecutive frames, its corrected displacement trajectory in three-dimensional space is constructed and used to calculate the vibration propagation characteristic parameters.
8. The method for ecological parameter inversion and growth trend prediction based on machine learning according to claim 4, characterized in that, Before calculating the geometric path length of the natural connection path from the first feature point to the second feature point along the trunk and branches, the following steps are also included: Determine whether there is a non-main branch transmission path in the first branch where the first feature point is located and the second branch where the second feature point is located; The calculation of the geometric path length of the natural connection path from the first feature point to the second feature point along the trunk and branches includes the following steps: If not, calculate the geometric path length of the natural connection path from the first feature point to the second feature point along the trunk and branches.
9. The method for ecological parameter inversion and growth trend prediction based on machine learning according to claim 8, characterized in that, The step of determining whether there is a non-main branch transmission path between the first branch where the first feature point is located and the second branch where the second feature point is located includes the following steps: Obtain the position information of the first branch where the first feature point is located and the second branch where the second feature point is located in three-dimensional space; Calculate the shortest Euclidean distance between the first branch and the second branch in three-dimensional space; If the shortest Euclidean distance is less than the fourth preset threshold, it is determined that there is a non-main branch transmission path between the first branch and the second branch.
10. The method for ecological parameter inversion and growth trend prediction based on machine learning according to claim 8, characterized in that, After determining whether there is a non-main branch transmission path in the first branch where the first feature point is located and the second branch where the second feature point is located, the following steps are also included: If so, then the vibration coherence features between the first feature point and the second feature point are extracted. The vibration coherence features include the peak value of the coherence function and the corresponding phase difference within the natural frequency range of the tree trunk. The vibration coherence characteristics are input into the xylem density inversion model, and together with the time delay or amplitude attenuation rate, they are used as input features to output the xylem density estimate.
