Analysis method and system for root traits of light walnuts

Through technologies such as drone remote sensing monitoring and neural network models, efficient, non-destructive and accurate analysis of the root system of light walnuts has been achieved, solving the problems of traditional methods that are time-consuming and laborious and difficult to capture the three-dimensional shape, and providing scientific basis for optimizing light walnut planting. manage.

CN118570629AActive Publication Date: 2024-08-30VEGETABLE RES INST OF TIBET ACADEMY OF AGRI & ANIMAL HUSBANDRY SCI +1

Patent Information

Application Number
CN202410456710.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-16
Publication Date
2024-08-30
Estimated Expiration
2044-04-16

Smart Images

  • Figure CN118570629A
    Figure CN118570629A
Patent Text Reader

Abstract

The invention provides a method and a system for analyzing root system characters of a light walnut, and belongs to the technical field of intelligent analysis. The method comprises the following steps: performing high-resolution image acquisition on a light walnut distribution area through an unmanned aerial vehicle, and constructing an altitude gradient database in combination with GIS positioning; an image processing algorithm is applied to classify the images, a light walnut tree crown coverage area is identified, and population density is estimated; generating a digital surface model and a digital elevation model, and analyzing landform features; soil types and land utilization conditions are identified through spectral analysis, and soil humidity and land surface temperature distribution are judged in combination with thermal infrared data; collecting a euonymus japonicus root system sample, and quantifying root system character characteristics by adopting a three-dimensional imaging technology; according to the method, a juglans sigillata resource acquisition capability prediction model is constructed, a neural network model including a residual attention block and a spiral full-connection layer is applied, the water and nutrient absorption rate of a root system is predicted, and a scientific basis is provided for optimizing an irrigation and fertilization strategy and improving the yield and quality of juglans sigillata.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of intelligent analysis, and in particular relates to a method and system for analyzing root traits of walnut. Background Art

[0002] As a plant resource with important economic value and ecological functions, the study of the root shape and distribution characteristics of Walnut is crucial to revealing its growth habits, resource acquisition ability, adaptability to the environment, and optimizing cultivation and management strategies. However, traditional root research methods often rely on cumbersome on-site excavation, manual measurement, or inefficient laboratory analysis, which is not only time-consuming and labor-intensive, but may also cause irreversible damage to the root system and affect the normal growth of the plant. Although some non-destructive technologies have been applied to root system research, such as underground radar and electrical resistance imaging, these methods often require complex equipment and high costs. In addition, these methods are difficult to accurately and comprehensively capture the complex morphology and distribution pattern of the root system in three-dimensional space, and cannot meet the needs of modern forestry scientific research and practice for the refinement and dynamicization of Walnut root information.

[0003] Therefore, there is an urgent need for a simple, efficient and low-cost method to analyze the root shape and traits of G. glabra, so as to promote the scientific management of G. glabra planting. Summary of the invention

[0004] Based on the above technical problems, the present invention provides a method and system for analyzing the root characteristics of walnut, which utilizes unmanned aerial vehicle remote sensing monitoring, geographic information system positioning, hyperspectral and thermal infrared imaging, image processing and analysis, three-dimensional imaging technology and neural network model to achieve efficient, non-destructive and high-precision observation and analysis of the root system of walnut.

[0005] The present invention provides a method for analyzing root traits of walnut, which comprises:

[0006] Step S1: Apply UAV remote sensing monitoring and geographic information system positioning to build an altitude gradient database of walnut distribution;

[0007] Step S2: collecting root samples of walnut;

[0008] Step S3: performing three-dimensional imaging on the collected root samples to quantify root characteristics;

[0009] Step S4: construct a prediction model for the resource acquisition capacity of walnut to obtain the absorption rate of water and nutrients by the root system.

[0010] Optionally, the application of UAV remote sensing monitoring and geographic information system positioning to construct an altitude gradient database of the distribution of walnuts specifically includes:

[0011] Use drones equipped with sensors to collect high-resolution images of the walnut distribution area;

[0012] Data processing and analysis of the collected images, including:

[0013] The images were classified through image processing algorithms to identify the area covered by the crown of the walnut trees. The population density was calculated by combining the image resolution and the crown size. The digital surface model and digital elevation model were generated using drone images to analyze the terrain and geomorphic features. The images were analyzed through spectral analysis to identify the soil type and land use status, and thermal infrared data was used to assist in determining the soil moisture and surface temperature distribution.

[0014] An altitude gradient database is established based on the UAV remote sensing interpretation results.

[0015] Optionally, the image is classified by an image processing algorithm to identify the area covered by the crown of the walnut tree; and the population density is calculated by combining the image resolution and the crown size, specifically including:

[0016] Perform data preprocessing on the collected images, including radiation correction and geometric correction;

[0017] Extract features from images, use the reflectance information of different bands in the image to extract spectral features; use the gray-level co-occurrence matrix to extract the texture features of the image; use edge detection and morphological processing methods to extract the shape features of the image;

[0018] According to the extracted features, the K-means clustering algorithm is used to classify the images, that is, the image pixels are automatically divided into several categories according to the similarity of spectral and texture features, and then the crown area of ​​the light walnut tree is identified through expert knowledge or posterior probability;

[0019] After identifying the crown area of ​​the bare walnut tree, crown segmentation and boundary refinement are performed to accurately identify the crown area of ​​the bare walnut tree, including:

[0020] The classification results were converted into binary images using the threshold segmentation method, in which the white area represented the crown of the light walnut tree and the black area represented other objects or background.

[0021] Perform dilation, erosion, opening and closing operations on the image to optimize the tree crown mask;

[0022] Calculate the population density of light walnut.

[0023] Optionally, the three-dimensional imaging of the collected root samples and quantification of root characteristics specifically include:

[0024] The collected root samples are first cleaned to remove attached soil and other impurities; then they are fixed with a fixative to keep the root shape unchanged; the fixed root samples are placed in a resin box and filled with silica gel to ensure that the roots are evenly dispersed and not folded in the container; the packaged root samples are placed in a CT scanner and the scanning parameters are set; the CT scanning program is run, and the device will emit X-rays from multiple angles and receive transmission signals to obtain a series of tomographic images;

[0025] ImageJ image processing software was used to remove random noise generated during the scanning process through filtering algorithms; grayscale adjustment was used to improve image contrast and signal-to-noise ratio; feature matching was used to ensure that all slice images were accurately aligned in space;

[0026] Each 2D slice was converted into a thin layer in 3D space using Amira 3D reconstruction software to form a 3D volume data set. A threshold was set based on the grayscale difference between the root system and the background to divide the voxel data set into two parts: the root system and the non-root system. Adjacent voxels were identified and connected to form a continuous root system structure. A triangular mesh model of the root system surface was generated.

[0027] Using the threshold segmentation method, the individual roots are automatically identified and separated according to the grayscale difference between the roots and the background; the root trait characteristics are calculated.

[0028] Optionally, the construction of a light walnut resource acquisition capability prediction model specifically includes:

[0029] Define a custom layer class for the residual attention block; this layer contains the number of units setting, i.e. the output dimension; two fully connected layers with ReLU activation function, an attention mechanism layer, an addition layer for residual connections, and a projection layer;

[0030] First, the input is forward propagated through two fully connected layers and the ReLU activation function is applied. Then the attention mechanism layer is used to calculate the attention weight. Then the input dimension is checked to see if it matches the output dimension. If not, the input dimension is adjusted through the projection layer. Finally, the result of the attention mechanism is added to the original input with the adjusted dimension through the addition layer to achieve residual connection.

[0031] Defines a custom layer class for the spiral fully connected layer; during initialization, it receives multiple parameters: output dimension units, maximum offset amplitude amax, number of spirals k, number of cycles t, and input dimension input_units; creates two weight variables: weight matrix w and bias term b, using Glorot uniform and zeros initializers respectively, and set to trainable;

[0032] The forward propagation process of the spiral fully connected layer is as follows: there are k independent fully connected sublayers, each of which contains a set of weight matrices and bias terms; for each input sample, matrix multiplication is performed with the weight matrices of the k sublayers respectively, and the corresponding bias terms are added to obtain k spiral outputs; the outputs are stored in a list outputs; the spiral outputs in the outputs list are averaged to obtain avg_out; then, a weight vector is generated through a fully connected layer with a linear activation function; the generated weight vector is expanded by one dimension to match the dimension of the outputs tensor, and the two are multiplied element by element using the broadcast mechanism, and finally summed along the spiral axis to obtain the final spiral fully connected layer output;

[0033] Define a function to create a model. The input is a tensor of root trait features. The model contains a 128-unit, ReLU-activated fully connected layer; a 128-unit residual attention block; a 64-unit residual attention block; a spiral fully connected layer with parameters units=128, amax=3, k=2, t=8, input_units=64; and finally a 2-unit, linearly activated fully connected layer output.

[0034] The present invention also provides a system for analyzing the root characteristics of walnut, the system comprising:

[0035] The database construction module is used to apply UAV remote sensing monitoring and geographic information system positioning to build an altitude gradient database of the distribution of walnuts;

[0036] Root sample collection module, used to collect root samples of walnut;

[0037] The root trait extraction module is used to perform three-dimensional imaging of the collected root samples and quantify the root trait characteristics;

[0038] The light walnut model construction module is used to construct a light walnut resource acquisition ability prediction model to obtain the root system's absorption rate of water and nutrients.

[0039] Optionally, the database construction module specifically includes:

[0040] The image acquisition submodule is used to collect high-resolution images of the light walnut distribution area using sensors carried by drones;

[0041] The image processing submodule is used to process and analyze the collected images, including:

[0042] The images were classified through image processing algorithms to identify the area covered by the crown of the walnut trees. The population density was calculated by combining the image resolution and the crown size. The digital surface model and digital elevation model were generated using drone images to analyze the terrain and geomorphic features. The images were analyzed through spectral analysis to identify the soil type and land use status, and thermal infrared data was used to assist in determining the soil moisture and surface temperature distribution.

[0043] The remote sensing interpretation result generation submodule is used to establish an altitude gradient database based on the UAV remote sensing interpretation results.

[0044] Optionally, the image is classified by an image processing algorithm to identify the area covered by the crown of the walnut tree; and the population density is calculated by combining the image resolution and the crown size, specifically including:

[0045] Perform data preprocessing on the collected images, including radiation correction and geometric correction;

[0046] Extract features from images, use the reflectance information of different bands in the image to extract spectral features; use the gray-level co-occurrence matrix to extract the texture features of the image; use edge detection and morphological processing methods to extract the shape features of the image;

[0047] According to the extracted features, the K-means clustering algorithm is used to classify the images, that is, the image pixels are automatically divided into several categories according to the similarity of spectral and texture features, and then the crown area of ​​the light walnut tree is identified through expert knowledge or posterior probability;

[0048] After identifying the crown area of ​​the bare walnut tree, crown segmentation and boundary refinement are performed to accurately identify the crown area of ​​the bare walnut tree, including:

[0049] The classification results were converted into binary images using the threshold segmentation method, in which the white area represented the crown of the light walnut tree and the black area represented other objects or background.

[0050] Perform dilation, erosion, opening and closing operations on the image to optimize the tree crown mask;

[0051] Calculate the population density of light walnut.

[0052] Optionally, the root trait feature extraction module specifically includes:

[0053] The tomographic image generation submodule is used to first clean the collected root samples to remove attached soil and other impurities; then fix them with a fixative to keep the root morphology unchanged; place the fixed root samples in a resin box and fill them with silica gel to ensure that the roots are evenly dispersed and not folded in the container; place the packaged root samples in a CT scanner and set scanning parameters; run the CT scanning program, the device will emit X-rays from multiple angles and receive transmission signals to obtain a series of tomographic images;

[0054] The tomographic image processing submodule is used to use the ImageJ image processing software to remove random noise generated during the scanning process through filtering algorithms; use grayscale adjustment to improve image contrast and signal-to-noise ratio; and ensure that all slice images are accurately aligned in space through feature matching;

[0055] The 3D root trait generation submodule is used to convert each 2D slice into a thin layer in 3D space using Amira 3D reconstruction software to form a 3D volume data set; set a threshold based on the grayscale difference between the root system and the background to divide the voxel data set into two parts: the root system and the non-root system; identify and connect adjacent voxels to form a continuous root system structure; and generate a triangular mesh model of the root system surface;

[0056] The root trait feature acquisition submodule is used to automatically identify and separate individual root individuals based on the grayscale difference between the root and the background using the threshold segmentation method; and calculate the root trait features.

[0057] Optionally, the light walnut model construction module specifically includes:

[0058] The residual attention block definition submodule is used to define a custom layer class for the residual attention block; this layer contains the number of units setting, i.e. the output dimension; two fully connected layers with ReLU activation function, an attention mechanism layer, an addition layer for residual connection, and a projection layer;

[0059] The residual attention block runs a submodule that forward propagates the input through two fully connected layers and applies the ReLU activation function. It then uses the attention mechanism layer to calculate the attention weights. It then checks whether the input dimension matches the output dimension. If not, it resizes the input dimension through the projection layer. Finally, the result of the attention mechanism is added to the resized original input through the addition layer to implement the residual connection.

[0060] The spiral fully connected layer definition submodule is used to define a custom layer class for the spiral fully connected layer. During initialization, it receives multiple parameters: output dimension units, maximum offset amplitude amax, number of spirals k, number of cycles t, and input dimension input_units. It creates two weight variables: the weight matrix w and the bias term b, using the Glorot uniform and zeros initializers respectively, and setting them to be trainable.

[0061] The spiral fully connected layer runs the submodule. The forward propagation process for the spiral fully connected layer is that there are k independent fully connected sublayers, each of which contains a set of weight matrices and bias terms; for each input sample, it is matrix multiplied with the weight matrices of the k sublayers respectively, and the corresponding bias terms are added to obtain k spiral outputs; the outputs are stored in a list outputs; the spiral outputs in the outputs list are averaged to obtain avg_out; then, a weight vector is generated through a fully connected layer with a linear activation function; the generated weight vector is expanded by one dimension to match the dimension of the outputs tensor, and the two are multiplied element by element using the broadcast mechanism, and finally summed along the spiral axis to obtain the final spiral fully connected layer output;

[0062] The model function definition submodule is used to define the function of creating the model. The input is a tensor of root trait characteristics. The model contains a 128-unit, ReLU-activated fully connected layer; a 128-unit residual attention block; a 64-unit residual attention block; a spiral fully connected layer with parameters units=128, amax=3, k=2, t=8, input_units=64; and finally a 2-unit, linearly activated fully connected layer output.

[0063] Compared with the prior art, the present invention has the following beneficial effects:

[0064] The invention adopts unmanned aerial vehicle remote sensing technology, and can obtain the root distribution and environmental information of the walnut remotely, over a large area and with high efficiency without on-site excavation, which significantly reduces manpower input and avoids direct interference with the root system; through hyperspectral and thermal infrared imaging, image processing and analysis technology, the crown boundary of the walnut is accurately extracted and the root characteristics are quantified; combined with three-dimensional imaging technology, the morphology and distribution of the root system in three-dimensional space can be accurately reflected, and the accuracy and reliability of the data are improved; multi-source information such as altitude gradient, soil type, topography, soil moisture, and surface temperature is integrated to construct a comprehensive walnut root growth environment database, which is helpful to deeply understand the adaptation mechanism of the walnut to the environment; a neural network model is used to predict the absorption rate of the root system to water and nutrients, and a quantitative evaluation of the resource acquisition ability of the walnut is achieved, which provides a scientific basis for optimizing irrigation and fertilization strategies and improving the yield and quality of the walnut. BRIEF DESCRIPTION OF THE DRAWINGS

[0065] Figure 1 A flow chart of a method for analyzing root traits of walnut of the present invention;

[0066] Figure 2 The present invention is a structural diagram of a system for analyzing the root characteristics of walnut. DETAILED DESCRIPTION

[0067] The present invention is further described below in conjunction with specific implementation cases and drawings, but the present invention is not limited to these embodiments.

[0068] Example 1

[0069] like Figure 1 As shown, the present invention discloses a method for analyzing root traits of walnut, the method comprising:

[0070] Step S1: Use UAV remote sensing monitoring and geographic information system (GIS) positioning to build an altitude gradient database of the distribution of Walnut.

[0071] Step S2: Collecting bare walnut root samples.

[0072] Step S3: Perform three-dimensional imaging of the collected root samples to quantify root characteristics.

[0073] Step S4: construct a prediction model for the resource acquisition capacity of walnut to obtain the absorption rate of water and nutrients by the root system.

[0074] The following is a detailed discussion of each step:

[0075] Step S1: Use UAV remote sensing monitoring and geographic information system (GIS) positioning to build an altitude gradient database of the distribution of Walnut.

[0076] Step S1 specifically includes:

[0077] Use drones equipped with multispectral, hyperspectral or thermal infrared sensors to collect high-resolution images of the walnut distribution area, including:

[0078] The drones are equipped with multispectral, hyperspectral or thermal infrared sensors. For example, multispectral cameras record visible light and near-infrared bands, hyperspectral cameras provide dozens or even hundreds of narrow band information, and thermal infrared sensors measure surface heat emissions. The drones fly over the walnut distribution area according to preset routes. The sensors capture ground image data in real time, covering the entire study area, and the image resolution is high enough to clearly identify the walnut tree crowns and other ground features.

[0079] In this embodiment, the flight altitude, speed, heading overlap and other parameters are set according to actual needs and the performance of the drone to ensure coverage and image quality; the drone is commanded to perform flight missions through a ground control station or an autonomous flight program. Multispectral, hyperspectral and thermal infrared sensors capture electromagnetic radiation in different bands respectively; multispectral data reflects the characteristics of the surface reflectance spectrum and can be used for vegetation classification and health assessment; hyperspectral data provides more detailed spectral information, which helps to accurately identify soil and vegetation types; thermal infrared data reveals the distribution of surface temperature, which is closely related to environmental factors such as vegetation coverage and soil moisture.

[0080] Data processing and analysis of the collected images, including:

[0081] Multispectral or hyperspectral images are classified by image processing algorithms (such as NDVI, SVM, deep learning, etc.) to identify the crown coverage area of ​​​​the light walnut tree; combined with the image resolution and crown size, the number of light walnut trees per unit area is calculated to estimate the population density. The steps are as follows:

[0082] First, data preprocessing is performed, including radiation correction, geometric correction, etc., to eliminate errors and ensure data consistency; if multispectral data is used, it can be considered to be fused with high-resolution panchromatic band images using the super-resolution Bayesian method to improve spatial resolution, which is conducive to more precise identification of tree crowns.

[0083] Secondly, feature extraction is performed from the image. The reflectance information of different bands in multispectral or hyperspectral images is used, for example, to calculate vegetation indices (such as NDVI) or to extract spectral features using methods such as spectral angle mapping; the texture features of the image are extracted using the grayscale co-occurrence matrix, such as roughness and contrast; the shape features of the image are extracted using methods such as edge detection and morphological processing, such as the area and circumference of the crown.

[0084] Then, based on the extracted features, the K-means clustering algorithm is used to classify the images, that is, the image pixels are automatically divided into several categories according to the similarity of spectral and texture features, and then the crown area of ​​the walnut tree is identified through expert knowledge or posterior probability; a supervised classification method can also be used, that is, sample data of the crown of the walnut tree and other landforms are collected and labeled; then, the SVM algorithm is used to classify the hyperspectral image and identify the crown area of ​​the walnut tree.

[0085] After identifying the bare walnut tree crown area, perform crown segmentation and boundary refinement to accurately identify the bare walnut tree crown area. The operation is as follows:

[0086] The classification results are converted into binary images using the threshold segmentation method, where the white area represents the crown of the light walnut tree and the black area represents other objects or background. The specific steps are as follows:

[0087] The choice of threshold usually depends on the histogram analysis of the classification results; for the two-classification problem (bare walnut crown and non-crown), find the intersection of the two types of pixel value distribution on the histogram, or use Otsu's method to automatically find the optimal threshold, or set a fixed threshold based on actual conditions and experience.

[0088] Apply the threshold, apply the selected threshold to the classification result image, and perform threshold judgment on each pixel. Mark the pixels with classification values ​​greater than or equal to the threshold as 1 (representing the crown of the bare walnut tree), and the remaining pixels as 0 (representing non-crown); this generates a binary image (mask), in which the white area represents the crown of the bare walnut tree and the black area represents other objects or background.

[0089] Morphological operation, although threshold segmentation can initially separate the crown area of ​​the light walnut tree, there may be some problems, such as noise patches, irregular or broken crown boundaries, etc. Morphological operation uses structural elements (such as squares, disks, etc.) to perform operations such as expansion, corrosion, opening, and closing operations on the image to further optimize the crown mask. The specific steps are:

[0090] To eliminate small noise patches, an opening operation is used, that is, corrosion followed by expansion. Small noise patches will be completely eliminated in the corrosion stage, while the larger real crown area can be restored to its original state in the expansion stage because there are enough similar pixels around it. This can effectively remove isolated small noise patches while maintaining the integrity of the crown area.

[0091] Smooth the crown boundary. For broken or discontinuous crown boundaries, use a closing operation, that is, dilation first and then erosion. The dilation operation can connect adjacent crown pixels to connect the broken boundaries. The subsequent erosion operation will eliminate the excessive edge effect caused by dilation and maintain the overall shape of the crown area. After the closing operation, the crown boundary will be smoother and more coherent.

[0092] Skeleton extraction is an optional operation. To further simplify the crown structure and accurately depict its skeleton morphology, skeleton extraction can be performed; commonly used methods include thinning or medial axis transformation; these methods gradually delete non-skeleton pixels inside the crown, leaving only "skeleton" pixels that represent the crown outline and branch structure. Skeleton extraction helps with subsequent crown shape analysis or individual tree identification.

[0093] After threshold segmentation and morphological operations, the preliminary crown mask was refined to form a precise walnut crown area, providing accurate basic data for subsequent population density estimation.

[0094] Finally, the population density of light walnut is calculated as follows:

[0095] For each individual crown area, the pixel area is calculated; considering the image resolution (e.g., meter / pixel), the pixel area is converted to the actual area (square meters).

[0096] To calculate the population density, the total area of ​​the study area is used as the denominator and the sum of the crown areas of all walnut trees is used as the numerator. The number of walnut tree crowns per unit area is calculated, which is the population density (plants / hectare or other units). The average area of ​​walnut tree crowns can also be obtained through field measurements or reference to existing data. The total crown area is divided by the crown area of ​​a single tree to obtain the population density of walnut.

[0097] The digital surface model (DSM) and digital elevation model (DEM) are generated using drone images to analyze topographic features. The steps are as follows:

[0098] The DSM generation process is as follows:

[0099] Stereo matching uses the principle of stereo photogrammetry to align adjacent or overlapping drone image pairs, and uses correlation algorithms (feature matching such as SIFT, SURF, ORB, or dense beam method, etc.) to find the same-name points and construct stereo image pairs; then dense matching is performed in the stereo image pairs to estimate the parallax between pixels, that is, the difference in the projection position of the same ground point on different images.

[0100] Three-dimensional reconstruction, based on the disparity information obtained by stereo matching, uses the multi-view geometry algorithm (BundleAdjustment) to perform spatial triangulation, converts the pixel coordinates on the two-dimensional image into three-dimensional space coordinates, and constructs a three-dimensional point cloud model of the study area.

[0101] DSM is generated by filtering and denoising the three-dimensional point cloud (using the RANSAC algorithm to remove outliers) and smoothing (moving least squares method). Then, the interpolation method (triangulated network interpolation TIN, inverse distance weighted interpolation IDW) is used to convert the discrete point cloud data into continuous grid data to generate a digital surface model; DSM contains the height information of all objects on the surface (including vegetation, buildings, etc.).

[0102] The DEM generation process is as follows:

[0103] Using the feature classification method, non-topographic elements such as vegetation and buildings are removed from the DSM to obtain the DEM.

[0104] When generating DEM, for the terrain part after removing vegetation and buildings, interpolation methods (triangulated network interpolation TIN, inverse distance weighted interpolation IDW) are used to fill in possible blank areas to ensure the continuity and integrity of DEM; DEM only reflects the undulation of the terrain itself and does not contain the height information of surface attachments.

[0105] The topographic and geomorphic features analysis is performed as follows:

[0106] Slope calculation, by using the first-order partial derivative of DEM to calculate the gradient, obtain the slope value of each grid point, expressed as a percentage or degree; the slope reflects the rate of change of the terrain surface in the vertical direction.

[0107] Slope aspect calculation, by calculating the slope direction (i.e. gradient direction) or the main direction of the local terrain, obtains the slope aspect of each grid point, usually expressed in degrees, and the value range is usually 0° to 360° (0° or 360° for north, 90° for east, 180° for south, and 270° for west).

[0108] Calculation of terrain index: various terrain indexes are calculated based on DEM, such as terrain roughness (RMSEz), terrain relief (SDI), terrain curvature (mean curvature, total curvature), terrain azimuth (Sky View Factor, SVF), terrain wetness index (TWI), etc. These indices can reflect the landform characteristics from different angles, such as the complexity of the terrain, hydrological characteristics, lighting conditions, etc.

[0109] In this embodiment, RMSEz represents the root mean square error of the altitude; in terrain analysis, it is often used to quantify the overall undulation of the terrain surface. By calculating the difference in elevation between each grid point on the DEM and its neighboring grid points, taking the average of the sum of squares and then taking the square root, a value is obtained to represent the average fluctuation of the terrain; a higher RMSEz value means that the terrain is more complex and rugged. SDI represents the vertical variation of the quantified terrain; the undulation usually refers to the difference in altitude between the highest point and the lowest point in a certain area, which is used to intuitively reflect the overall height difference of the regional terrain; another common method of expressing the undulation is the relative undulation, that is, the undulation divided by the average elevation of the regional area, which is used to standardize the comparison between areas of different scales. There are two types of terrain curvature: mean curvature and total curvature; they are based on the concept of differential geometry and are used to describe the degree of local curvature of the terrain surface. The mean curvature is a comprehensive measure of the local terrain's unevenness. It takes into account the average curvature of the terrain in two orthogonal directions and reflects the rate of change in the vertical direction per unit area of ​​the terrain surface. The total curvature further distinguishes whether the terrain tends to form peaks (positive curvature), valleys (negative curvature) or flat areas (zero curvature), and contains information about the curvature direction of the terrain at a specific location. The curvature parameter helps to understand the subtle structure and landform of the terrain. SVF, or sky view factor, is a dimensionless parameter used to measure the proportion of the sky visible above a specific location. It reflects the impact of terrain on solar radiation, wind speed distribution, line of sight occlusion and other factors. The larger the SVF value, the more open the terrain around the point and the higher the sky visibility. Conversely, the smaller the value, the more closed the terrain and the more obvious the occlusion effect. TWI is an index that represents the influence of terrain on water accumulation and drainage capacity. It is based on the principle that terrain slope and aspect affect the convergence or dispersion of water flow. It quantifies the influence of terrain on surface water flow and soil moisture distribution by calculating the ratio of terrain slope to the cumulative slope along the direction of water flow. The higher the TWI value, the more favorable the terrain is for water retention, and there may be higher soil moisture and potential waterlogging risks. Low TWI values ​​correspond to well-drained areas with lower soil moisture.

[0110] Spectral analysis is used to analyze hyperspectral images, identify soil types and land use conditions, and combine thermal infrared data to assist in determining soil moisture and surface temperature distribution. The steps are as follows:

[0111] Spectral feature analysis, the operation is as follows:

[0112] Principal component analysis (PCA) reduces the dimensionality of the collected image data and extracts a few principal components that reflect the main change trends of the data; principal components can often separate the main spectral differences of soil types and land use, simplify subsequent classification tasks, and are used for visualization and feature selection.

[0113] Spectral angle mapping (SAM) calculates the spectral angle between each pixel in the study area and the reference spectrum of known soil types or land use types. This angle measures the similarity of the spectral curves of the two. SAM helps to quickly identify potential soil or land use categories and can also be used as an input feature for subsequent classification.

[0114] Spectral classification, based on measured samples (training set) of known soil types and land use types, establishes a model between spectral features and category labels through machine learning algorithms (support vector machine, random forest, neural network, etc.); applies the model to the entire study area and classifies unknown pixels as follows:

[0115] Feature selection: Based on PCA results, empirical knowledge, or spectral diagnostic properties (absorption peaks or reflectance valleys of specific soil types in specific bands), the most discriminative bands or principal components are selected as classification features.

[0116] Model training uses training set data to adjust model parameters and optimize classification performance; evaluation indicators include overall accuracy, user accuracy, producer accuracy, Kappa coefficient, etc.

[0117] Classification application: Apply the trained model to all pixels in the study area and output a classification map of soil type or land use type.

[0118] Thermal infrared data assisted analysis, the operation is as follows:

[0119] Soil moisture analysis uses thermal infrared band data (TIR band of Landsat TM / ETM+ / OLI or thermal band of MODIS) combined with vegetation index NDVI and soil emissivity model SSEBop to estimate the distribution of moisture content on the soil surface; wet soil and dry soil show different radiation characteristics in the thermal infrared band, based on which the difference in soil moisture can be inferred.

[0120] Surface temperature analysis directly reads the surface temperature data provided by the thermal infrared band, or obtains it through inversion of the radiation transfer model; the surface temperature is closely related to soil type, land cover conditions (bare land, vegetation, water bodies, etc.) and soil moisture, and can assist in identifying land use types (farmland, forest land, wetlands, etc.) and evaluating soil moisture status.

[0121] According to the remote sensing interpretation results of UAV, an altitude gradient database is established, including:

[0122] The steps for entering and editing spatial data are as follows:

[0123] The multispectral, hyperspectral, thermal infrared and other image data obtained by UAV remote sensing monitoring, as well as the corresponding metadata (shooting date, flight altitude, sensor parameters, etc.) are converted into a GIS-compatible format (GeoTIFF); the walnut distribution map (vector surface or point layer, indicating the walnut crown coverage area or individual tree location), vegetation coverage raster data, digital elevation model (DEM), etc. obtained by interpreting UAV images are imported into the GIS platform; the field survey records, including GPS coordinates, altitude, ecological environment description and other information, are sorted out and converted into point data formats (Shapefile or GeoJSON) supported by GIS, and each point represents a field survey location.

[0124] Create or open a project file in the GIS software and load the above data into the workspace. For vector data (walnut distribution layer, field survey point layer), perform necessary editing, such as topology check, attribute field improvement, erroneous data correction, etc. For raster data (such as vegetation coverage, DEM), check whether its spatial reference system (SRS) is consistent with the vector data, and perform coordinate system conversion if necessary.

[0125] The steps of spatial analysis are as follows:

[0126] Buffer zone analysis selects individual trees or covered areas in the walnut distribution layer as the analysis objects, and creates a buffer zone of a certain distance (such as crown diameter or ecological impact radius) for them; through buffer zone analysis, the spatial impact range around the walnut is identified, providing a basis for studying its relationship with other ecological elements (such as soil type and topography).

[0127] Interpolation analysis, based on the altitude data of field survey points, uses Kriging and IDW interpolation methods to generate an altitude surface model of the entire study area; through interpolation analysis, the discrete altitude observations are expanded to a continuous spatial distribution, in order to analyze the relationship between the distribution of light walnuts and the altitude gradient.

[0128] Distribution range and density analysis, the steps are as follows:

[0129] The overlay analysis function of GIS was used to combine the buffer zone analysis results with the elevation surface model to count the distribution areas of Glechoma longituba in different altitude ranges; the number of Glechoma longituba distribution points or coverage areas in each altitude gradient was calculated, and the density of Glechoma longituba per unit area was estimated based on the buffer zone area.

[0130] Data visualization uses the symbolization, color mapping, and layer overlay functions of GIS software to present the analysis results in an intuitive and easy-to-understand map format. The steps are as follows:

[0131] The elevation gradient distribution map is produced by creating a layered and colored topographic map based on the elevation surface model obtained through interpolation analysis. The light and dark colors represent the altitude. The light walnut distribution layer is superimposed on the topographic map, and the distribution conditions at different elevation gradients are distinguished by symbol size, color or pattern.

[0132] Production of thematic map of walnut distribution: based on the results of distribution range and density analysis, a thematic layer is created, and different colors or gradient bands are used to represent the distribution density of walnuts at different altitude gradients; map elements such as legends, scales, and compasses are added to make the thematic map easy to understand and interpret.

[0133] The root sampling point layout suggestion map is designed based on the distribution density of walnut, altitude gradient, topography and other factors, taking into account the sampling representativeness and feasibility, and using the GIS weighted nearest neighbor distance method to design the root sampling point layout plan; the recommended sampling point locations are marked on the map to generate the root sampling point layout suggestion map.

[0134] To establish an altitude gradient database, the steps are as follows:

[0135] Design the database structure according to research needs and data types, such as data tables containing light walnut distribution points, root sampling points, altitude, soil type, ecological environment, etc.; import the processed spatial data and attribute data into the database, and establish the relationship between the data; perform data backup, update, maintenance and other tasks to ensure the integrity and reliability of the database.

[0136] In this embodiment, based on the altitude gradient distribution map, vegetation coverage map, soil type distribution map, etc. obtained by UAV remote sensing and GIS analysis, representative altitude gradient and soil type areas are selected for root sampling to ensure that the sampling data can reflect the differences in root traits of walnut under different environmental conditions; understanding the topographical characteristics helps to select the most suitable non-destructive root excavation technology, such as air shovels may be more suitable in areas with steep terrain and loose soil, while trenching or resistance probe methods may be more suitable in areas with flat terrain and compact soil; these environmental data (such as altitude, soil type, soil moisture, surface temperature, etc.) will be used together with the root trait data obtained later for correlation analysis to explore the impact of environmental factors on the roots of walnut.

[0137] Step S2: Collecting bare walnut root samples.

[0138] Step S2 specifically includes:

[0139] After establishing the altitude gradient database of Walnut, representative sample points at different altitude gradients were selected according to the information in the database, and root sampling was carried out by combining non-destructive root excavation technology and micro-root window technology.

[0140] Sample point selection, including:

[0141] Select walnut sample points within different altitude ranges to ensure that the altitude distribution of the sample points is representative and covers the altitude gradient range of the entire study area; in addition to altitude, environmental factors such as slope, aspect, soil type, and light should also be considered, and sample points with different environmental characteristics should be selected to study the impact of environmental factors on the root system of walnut; select walnut individuals of different ages, tree vigor, and crown sizes to study the impact of individual differences on the root system.

[0142] Air shovel is suitable for loose soil and shallow root distribution, including:

[0143] Select representative locations as root exposure points near the walnut plants at different altitude gradients, taking into account factors such as the projection range of the tree crown and the possible extension direction of the roots; clean up debris on the ground in the work area to ensure the safety of air shovel operations, and set up temporary support facilities to protect the trees when necessary; connect the air shovel to the high-pressure air compressor to ensure that the air pressure is stable within the recommended range of the equipment (usually 40-80psi); start the high-pressure air flow equipment, aim the handheld air shovel at the selected soil part, and blow open the soil layer by layer at a suitable nozzle angle and distance according to the root distribution depth and soil type, and control the airflow intensity to avoid impact damage to the roots; as the soil is blown away, the roots gradually appear, observe and record information such as root distribution, branch morphology, and thickness changes, and take photos or videos for storage when necessary; after completing the root observation and recording, gently backfill the blown soil and restore it to its original state as much as possible to reduce the impact on the root growth environment.

[0144] The trenching method is suitable for situations where a large range of root samples need to be obtained, including:

[0145] According to the projection range of the light walnut tree crown and the expected root distribution characteristics, the location, length, width and depth of the excavated soil trench are designed. Usually the edge of the crown or one side of the main growth direction is selected; use tools such as shovels and small excavators to dig the soil trench along the design line, keep the trench wall smooth, and avoid mechanical damage to the root system. If encountering large roots, adjust the trench shape appropriately to avoid or bypass them; clean the soil in the trench to expose part of the root system; record the distribution of the roots in the trench, growth direction, branching pattern, thickness changes and other information in detail, and measure and record relevant soil parameters; after completing the observation and recording, carefully cover the roots back to the original place, backfill the soil and compact it, try to restore the original soil structure and cover in the soil trench area, and reduce the impact on plant growth.

[0146] The resistance probe method is suitable for detecting the root distribution range without direct excavation, including:

[0147] Within the projection range of the light walnut tree crown, insert the resistance probe to the predetermined depth in the soil according to the preset grid or random points; the probe spacing is determined according to the detection accuracy requirements and instrument characteristics; connect the resistance probe to the resistivity meter and measure according to the instrument operating procedures; record the soil resistivity data between each probe; analyze the data based on the correlation between soil resistivity and root distribution, and generate a two-dimensional or three-dimensional image of the root distribution; resistivity usually decreases with increasing root density, and the root-dense and sparse areas are inferred based on this; in the root-dense area preliminarily determined by the resistance probe method, the air shovel or trenching method can be used for local verification to improve the accuracy of the detection results.

[0148] Micro root window technology, specifically including:

[0149] Select a suitable location around the trunk of the light walnut tree (usually below the root neck), pre-drill and install a transparent micro-root tube (micro-root window), ensure that there is no gap between the tube opening and the trunk, and that it is well sealed to prevent moisture from entering; use a micro-root window scanner or manual camera equipment to regularly (such as at important time nodes such as growing seasons and rainfall events) take pictures of the inside of the micro-root window to record the dynamic changes of the root system in the transparent tube, such as growth, development, death, and decay. Continuously record the growth data of the light walnut root system in the micro-root window at different altitude gradients for comparative analysis of the impact of altitude gradient on root growth.

[0150] In this embodiment, through the combined use of the above-mentioned non-destructive root excavation technology and micro-root window technology, representative samples and growth dynamics information of the roots of walnuts at different altitude gradients can be systematically and accurately obtained without destroying the root structure of the walnuts, providing a scientific basis for subsequent root trait research, root ecological function assessment and management decisions.

[0151] Step S3: Perform three-dimensional imaging of the collected root samples to quantify root characteristics.

[0152] Step S3 specifically includes:

[0153] High-resolution X-ray computed tomography (CT) or magnetic resonance imaging (MRI) technology, combined with root system image analysis software, can be used to reconstruct the root system in three dimensions and quantify its traits.

[0154] Sample preparation and scanning, including:

[0155] To process root samples using CT or MRI, follow these steps:

[0156] For CT, the collected root samples are first cleaned to remove attached soil and other impurities, and then fixed with a non-toxic and harmless fixative (such as formalin, glutaraldehyde, etc.) to keep the root morphology unchanged; the fixed root samples are placed in a transparent, non-metallic, X-ray penetrating container (such as polycarbonate tubes, resin boxes, etc.), filled with a medium with low X-ray absorption rate (such as silica gel, paraffin, etc.) to ensure that the roots are evenly dispersed and not folded in the container; the encapsulated root samples are placed in a CT scanner, and scanning parameters such as voltage, current, exposure time, rotation step, reconstruction matrix size, etc. are set according to the root size, material properties and required resolution; the CT scanning program is run, and the equipment will emit X-rays from multiple angles and receive transmission signals to obtain a series of tomographic images.

[0157] For MRI, fresh or refrigerated root samples can be placed directly in a dedicated MR-compatible container without fixation and cleaning to ensure that the sample is moist to prevent signal attenuation caused by drying. Select a suitable imaging sequence (such as T1, T2 or proton density weighted sequence) on the MRI device, adjust the magnetic field strength, echo time, repetition time, flip angle, matrix size and other parameters according to the characteristics of the root system; place the container containing the root sample in the MRI scanner, scan it according to the preset parameters, and generate multiple two-dimensional layer images.

[0158] 3D reconstruction and visualization, including:

[0159] Data collection: CT uses X-rays to perform cross-sectional scanning of plant roots to obtain a series of two-dimensional slice images, each slice representing the projection of the root system at a certain depth level; MRI uses strong magnetic fields and radio waves to perform non-invasive scanning of living plant roots, also producing a series of two-dimensional slice images.

[0160] Data preprocessing, using ImageJ, Avizo image processing software, through filtering algorithms (such as smoothing filtering, median filtering, adaptive filtering, etc.) to remove random noise, stripe noise or other interference factors generated during the scanning process to improve image quality; grayscale adjustment, histogram equalization, edge enhancement to improve image contrast and signal-to-noise ratio, so as to better identify the boundary between the root system and the background (such as soil or culture medium); feature matching, rigid or non-rigid transformation methods to ensure that all slice images are accurately aligned in space to eliminate slight displacement or deformation that may exist during the scanning process.

[0161] Three-dimensional reconstruction directly relies on high-quality, precisely aligned two-dimensional slices after preprocessing. Amira and VGstudio Max three-dimensional reconstruction software are used to convert each two-dimensional slice into a thin layer (voxel) in three-dimensional space to form a three-dimensional volume data set. The threshold is set according to the grayscale difference between the root system and the background, and the voxel data set is divided into two parts: the root system and the non-root system. Adjacent voxels are identified and connected to form a continuous root structure, distinguishing different parts such as the main root, lateral root and root tip. Internal voids caused by threshold setting or scanning itself are repaired to ensure the integrity of the root model. A triangular mesh model of the root surface is generated to provide a smooth and continuous three-dimensional geometric representation for subsequent visualization.

[0162] Visualization: Use ParaView and VTK (Visualization Toolkit) 3D visualization software to load the generated 3D root model, rotate, zoom, and translate at any angle to achieve observation; apply lighting model, material properties, and color mapping to make the root model realistic or highlight specific structural features.

[0163] Root system image analysis, including:

[0164] Root division, steps are as follows:

[0165] Threshold segmentation, region growing, and convolutional neural network algorithms are used to automatically identify and separate individual roots based on the grayscale difference between the root and the background. For complex root structures or situations where automatic segmentation is not effective, interactive tools are used to assist in marking the root boundaries for refined segmentation.

[0166] The steps for trait extraction are as follows:

[0167] Calculate the total length, surface area, volume, diameter distribution, branching angle, number of root tips and other parameters of the root system; estimate the dry weight or fresh weight biomass of the root system in combination with the root density data; based on vertical stratification (such as 0-10cm, 10-20cm, etc.), count the length, area, volume and other distribution of the roots in each layer to generate a stratified distribution map; by measuring the position coordinates of the roots in three-dimensional space, analyze the distribution characteristics of the roots in the vertical and horizontal directions, such as root depth, root spread, root concentration, etc.

[0168] Step S4: construct a prediction model for the resource acquisition capacity of walnut to obtain the absorption rate of water and nutrients by the root system.

[0169] Step S4 specifically includes:

[0170] Data collection and preprocessing, including:

[0171] Data source, the steps are as follows:

[0172] The altitude gradient, soil type, and topographic features are derived from UAV remote sensing monitoring, GIS positioning, and analysis results; root traits (including total root length, surface area, volume, diameter distribution, branching angle, number of root tips, etc.) are derived from high-resolution X-ray computed tomography (CT) or magnetic resonance imaging (MRI) technology and root image analysis software; and root distribution patterns (such as root depth, root spread, root concentration, etc.) are based on UAV remote sensing and GIS analysis results.

[0173] Data preprocessing steps are as follows:

[0174] Missing value processing, identifying and filling missing data, can use mean filling, median filling, interpolation, etc.

[0175] Data standardization: Standardize or normalize all input features to ensure fair comparison between features of different magnitudes and effective training of neural networks.

[0176] Target variable processing: Convert the root absorption rate data of water and nutrients into a form suitable for neural network model processing, such as normalizing it to the [0,1] interval.

[0177] The steps for dividing the data set are as follows:

[0178] Random splitting randomly divides the preprocessed dataset into training set, validation set, and test set, usually in proportions of 70%, 20%, and 10%.

[0179] Ensure that the data is evenly distributed and that each subset has similar distribution in terms of altitude gradient, soil type, topography, etc. to reduce the risk of model overfitting.

[0180] Construct a prediction model for the acquisition capacity of light walnut resources, including:

[0181] Import the required libraries. Tensorflow is an open source library for machine learning and deep learning, which includes the keras high-level API. The layer module in tf.keras.layers is used.

[0182] A custom layer class called ResidualAttentionBlock is defined, which inherits from keras.layers.Layer. The layer contains the number of units (units), that is, the output dimension; two fully connected (Dense) layers with ReLU activation function, an attention mechanism (Attention) layer, an addition (Add) layer for residual connection, and a projection layer (Dense) for adjusting the consistency of input and output dimensions, expressed as classResidualAttentionBlock(layers.Layer):def__init__(self,units,**kwargs)sup er(ResidualAttentionBlock,self).__init__(**kwargs); self.units=units; self.dense1=layers.Dense(units,activation="relu"); self.dense2= layers.Dense(units,activation="relu"); self.attention=layers.Attention(); self.add=layers.Add(); self.projection=layers.Dense(units).

[0183] The call() method defines how to process the input data when the layer is called. First, the input is forward propagated through two Dense layers and the ReLU activation function is applied. Then the attention weight is calculated using the Attention layer. Then the input dimension is checked to see if it matches the output dimension (units). If not, the input dimension is adjusted through the Projection layer. Finally, the result x processed by the attention mechanism is added to the original input inputs with the adjusted dimension through the Add layer to achieve a residual connection, which is represented as defcall(self,inputs):x=self.dense1(inputs);x=self.dense2(x);x=self.attention([x,x]);if inputs.shape[-1]!=self.units:inputs=self.projection(inputs)return self.add([x,inputs]).

[0184] A custom layer class of SpiralFC is defined, which is also inherited from keras.layers.Layer. This layer has the characteristics of spiral weight distribution. When initialized, it receives multiple parameters: output dimension (units), maximum offset amplitude (amax), number of spirals (k), number of cycles (t), and input dimension (input_units). This layer creates two weight variables: w (weight matrix) and b (bias term), which use Glorot uniform and zeros initializers respectively and are set to be trainable, represented as class SpiralFC(layers.Layer):def__init__(self,units,amax,k,t,input_units=None,**kwargs):super(SpiralFC,self).__init__(**kwargs); self.units=units; self.amax=amax; self.k=k; self.t=t; self.input_unitsin put_units; self.w=self.add_weight(shape=(self.k, input_units, units), initializer="glorot_uniform", trainable=True); self.b=self.add_weight(shape=(self.k, units), initializer="zeros", trainable=True).

[0185] The call() method defines the forward propagation process of the spiral fully connected layer. For each spiral (k), the product of the input and the corresponding weight matrix is ​​calculated and the bias term is added, and the result is stored in the list outputs. Convert the list to a tensor with a shape of [batch_size, k, units]; then calculate the average value (avg_out) of all spiral outputs, and pass a fully connected layer (activation function is linear) to obtain a weight vector with a shape of [batch_size, k]; expand the weight vector by one dimension to match the dimension of the output tensor, and use the broadcast mechanism to multiply the weight and the output tensor element by element, and finally sum along the first axis (spiral axis) to obtain the final spiral fully connected layer output, expressed as defcall(self, inputs): outputs = []; for i in range(self.k): x = tf.mat mul(inputs,self.w[i])+self.b[i]; outputs.append(x); outputs=tf.stack(outputs, axis=1); avg_out=tf.reduce_mean(outputs, axis=1); Weights=tf.nn.softmax(layers.D ense(self.k,activation="linear")(avg_out)); Weights=weights[:,:,tf.newaxis]; weighted_outputs=tf.reduce_sum(weights×outputs,axis=1); returnweighted_outputs.

[0186] In this embodiment, there are k independent fully connected sublayers (each corresponding to a spiral), each sublayer contains a set of weight matrices self.w[i] and bias items self.b[i]; for each input sample, it is matrix multiplied with the weight matrices of the k sublayers respectively, and the corresponding bias items are added to obtain k spiral outputs; these outputs are stored in a list outputs; the spiral outputs in the outputs list are averaged to obtain avg_out; then, a weight vector is generated through a fully connected layer with a linear activation function (the weight vector shape is [batch_size,k]), which reflects the importance of each spiral output; the generated weight vector is expanded by one dimension to match the dimension of the outputs tensor, and the two are multiplied element by element using the broadcast mechanism, and finally summed along the first axis (spiral axis) to obtain the final spiral fully connected layer output.

[0187] A create_model function is defined to build a neural network model with a specific structure. The input is a tensor of shape (input_dim,). The model contains the following layers: a 128-unit, ReLU-activated fully connected layer; a 128-unit ResidualAttentionBlock; a 64-unit ResidualAttentionBlock; a SpiralFC layer with parameters units=128, amax=3, k=2, t=8, input_units=64; and finally a 2-unit, linearly activated fully connected layer output, represented as def create_model(input_dim):Inputs=keras.Input(shape=(input_dim,)); x=layers.Dense(128, activation="relu")(inputs); x=ResidualAttentionBlock(128)(x); 4) (x);

[0188] By creating a model instance, compiling and displaying the model structure, a model with an input dimension of 10 is created, represented by model = create_model(input_dim = 10); compiling the model, using mean square error loss and Adam optimizer, represented by model.compile(loss = "mse", optimizer = "adam"); ​​printing the model structure summary, represented by model.summary().

[0189] Model training and tuning, including:

[0190] Initialize weights and biases randomly or in a predefined way; use training set data for iterative training, calculate the loss function value and target variable prediction value after each round of training, and update model parameters according to the optimizer; set an early stopping mechanism to stop training when the validation set loss no longer decreases significantly after a certain number of iterations to prevent overfitting.

[0191] Adjust model architecture (such as the number of layers and nodes), optimizer parameters (such as learning rate), regularization coefficient and other hyperparameters through grid search, random search or Bayesian optimization to optimize model performance; use learning rate decay or periodic learning rate scheduling strategy to improve model convergence speed and final performance.

[0192] Model evaluation and validation, including:

[0193] The performance indicators include mean square error (MSE): the average deviation of the model's predicted values ​​of root water and nutrient absorption rate; root mean square error (RMSE): provides a sense of the average scale of the deviation from the actual value; and coefficient of determination (R 2 ): Measures the correlation between the model prediction value and the actual value. The closer the value is to 1, the better the model fit is. Correlation coefficient: Calculates the Pearson correlation coefficient between the predicted value and the actual value, reflecting the linear correlation.

[0194] After each training cycle, the validation set data is used to evaluate the model performance, and the hyperparameter adjustment is guided by the evaluation results. After the model training is completed, the test set data is used for independent evaluation to obtain the generalization performance of the model on unseen data.

[0195] The trained and verified neural network model is applied to the newly acquired altitude gradient, soil type, topography and root trait data to predict the absorption rate of water and nutrients by the walnut roots; as new data accumulates, the model is retrained or fine-tuned regularly to maintain its predictive performance; the model is encapsulated into an API or embedded into related applications to facilitate rapid calling and result display in actual application scenarios.

[0196] Example 2

[0197] like Figure 2 As shown, the present invention discloses a system for analyzing root characteristics of walnut, the system comprising:

[0198] The database construction module 10 is used to apply UAV remote sensing monitoring and geographic information system positioning to construct an altitude gradient database of the distribution of light walnut.

[0199] The root sample collection module 20 is used to collect root samples of walnut.

[0200] The root system trait feature extraction module 30 is used to perform three-dimensional imaging on the collected root system samples and quantify the root system trait features.

[0201] The light walnut model construction module 40 is used to construct a light walnut resource acquisition ability prediction model to obtain the root system's absorption rate of water and nutrients.

[0202] As an optional implementation mode, the database construction module 10 of the present invention specifically includes:

[0203] The image acquisition submodule is used to use the drone-mounted sensor to collect high-resolution images of the light walnut distribution area.

[0204] The image processing submodule is used to process and analyze the collected images, including:

[0205] The images were classified through image processing algorithms to identify the area covered by the walnut tree crowns. The population density was calculated by combining the image resolution and crown size. Digital surface models and digital elevation models were generated using drone images to analyze the terrain and geomorphic features. The images were parsed through spectral analysis to identify soil types and land use conditions, and thermal infrared data was used to assist in determining soil moisture and surface temperature distribution.

[0206] The remote sensing interpretation result generation submodule is used to establish an altitude gradient database based on the UAV remote sensing interpretation results.

[0207] As an optional implementation method, the present invention classifies images through image processing algorithms to identify the area covered by the crown of the light walnut tree; and calculates the population density by combining the image resolution and the crown size, specifically including:

[0208] The collected images are preprocessed, including radiation correction and geometric correction.

[0209] Feature extraction is performed from the image. The spectral features are extracted using the reflectance information of different bands in the image. The texture features of the image are extracted using the gray-level co-occurrence matrix. The shape features of the image are extracted using edge detection and morphological processing methods.

[0210] According to the extracted features, the K-means clustering algorithm is used to classify the images, that is, the image pixels are automatically divided into several categories according to the similarity of spectral and texture features, and then the crown area of ​​the light walnut tree is identified through expert knowledge or posterior probability.

[0211] After identifying the crown area of ​​the bare walnut tree, crown segmentation and boundary refinement are performed to accurately identify the crown area of ​​the bare walnut tree, including:

[0212] The classification results were converted into binary images using the threshold segmentation method, in which the white area represented the crown of the light walnut tree and the black area represented other objects or background.

[0213] Perform dilation, erosion, opening, and closing operations on the image to optimize the tree crown mask.

[0214] Calculate the population density of light walnut.

[0215] As an optional implementation mode, the root trait feature extraction module 30 of the present invention specifically includes:

[0216] The tomographic image generation submodule is used to clean the collected root samples first to remove attached soil and other impurities; then fix them with a fixative to keep the root morphology unchanged; place the fixed root samples in a resin box and fill it with silica gel to ensure that the roots are evenly dispersed and not folded in the container; put the packaged root samples into a CT scanner and set the scanning parameters; run the CT scanning program, the equipment will emit X-rays from multiple angles and receive transmission signals to obtain a series of tomographic images.

[0217] The tomographic image processing submodule is used to use the ImageJ image processing software to remove the random noise generated during the scanning process through a filtering algorithm; use grayscale adjustment to improve image contrast and signal-to-noise ratio; and ensure that all slice images are accurately aligned in space through feature matching.

[0218] The 3D root trait generation submodule is used to convert each 2D slice into a thin layer in 3D space using Amira 3D reconstruction software to form a 3D volume data set; set a threshold based on the grayscale difference between the root system and the background to divide the voxel data set into two parts: the root system and the non-root system; identify and connect adjacent voxels to form a continuous root system structure; and generate a triangular mesh model of the root system surface.

[0219] The root trait feature acquisition submodule is used to automatically identify and separate individual root individuals based on the grayscale difference between the root and the background using the threshold segmentation method; and calculate the root trait features.

[0220] As an optional implementation, the light walnut model construction module 40 of the present invention specifically includes:

[0221] The residual attention block definition submodule is used to define a custom layer class for the residual attention block; this layer contains the number of units setting units, that is, the output dimension; two fully connected layers with ReLU activation function, an attention mechanism layer, an addition layer for residual connection, and a projection layer.

[0222] The residual attention block runs a submodule that forward propagates the input through two fully connected layers and applies the ReLU activation function; then uses the attention mechanism layer to calculate the attention weights; then checks whether the input dimension matches the output dimension. If not, adjust the input dimension through the projection layer; finally, the result of the attention mechanism is added to the original input with the adjusted dimension through the addition layer to achieve residual connection.

[0223] The spiral fully connected layer definition submodule is used to define a custom layer class for the spiral fully connected layer. During initialization, it receives multiple parameters: output dimension units, maximum offset amplitude amax, number of spirals k, number of cycles t, and input dimension input_units. Two weight variables are created: the weight matrix w and the bias term b, using the Glorot uniform and zeros initializers respectively, and set to trainable.

[0224] The spiral fully connected layer runs a submodule. The forward propagation process for the spiral fully connected layer is that there are k independent fully connected sublayers, each of which contains a set of weight matrices and bias terms; for each input sample, it is matrix multiplied with the weight matrices of the k sublayers respectively, and the corresponding bias terms are added to obtain k spiral outputs; the outputs are stored in a list outputs; the spiral outputs in the outputs list are averaged to obtain avg_out; then, a weight vector is generated through a fully connected layer with a linear activation function; the generated weight vector is expanded by one dimension to match the dimension of the outputs tensor, and the two are multiplied element by element using the broadcast mechanism, and finally summed along the spiral axis to obtain the final spiral fully connected layer output.

[0225] The model function definition submodule is used to define the function of creating the model. The input is a tensor of root trait characteristics. The model contains a 128-unit, ReLU-activated fully connected layer; a 128-unit residual attention block; a 64-unit residual attention block; a spiral fully connected layer with parameters units=128, amax=3, k=2, t=8, input_units=64; and finally a 2-unit, linearly activated fully connected layer output.

[0226] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for analyzing root traits of walnut, characterized in that: The method comprises: Step S1: Apply UAV remote sensing monitoring and geographic information system positioning to build an altitude gradient database of walnut distribution; Step S2: collecting root samples of walnut; Step S3: performing three-dimensional imaging on the collected root samples to quantify root characteristics; Step S4: construct a prediction model for the resource acquisition capacity of walnut to obtain the absorption rate of water and nutrients by the root system.

2. The method for analyzing root traits of Walnut sphaerocarpa according to claim 1, characterized in that: The application of UAV remote sensing monitoring and geographic information system positioning to construct an altitude gradient database of the distribution of light walnuts specifically includes: Use drones equipped with sensors to collect high-resolution images of the walnut distribution area; Data processing and analysis of the collected images, including: The images were classified through image processing algorithms to identify the area covered by the crown of the walnut trees. The population density was calculated by combining the image resolution and the crown size. The digital surface model and digital elevation model were generated using drone images to analyze the terrain and geomorphic features. The images were analyzed through spectral analysis to identify the soil type and land use status, and thermal infrared data was used to assist in determining the soil moisture and surface temperature distribution. An altitude gradient database is established based on the UAV remote sensing interpretation results.

3. A method for analyzing root traits of Walnut sphaerocarpa according to claim 2, characterized in that: The image processing algorithm is used to classify the image and identify the area covered by the light walnut tree crown; the population density is calculated by combining the image resolution and the tree crown size, specifically including: Perform data preprocessing on the collected images, including radiation correction and geometric correction; Extract features from images, use the reflectance information of different bands in the image to extract spectral features; use the gray-level co-occurrence matrix to extract the texture features of the image; use edge detection and morphological processing methods to extract the shape features of the image; According to the extracted features, the K-means clustering algorithm is used to classify the images, that is, the image pixels are automatically divided into several categories according to the similarity of spectral and texture features, and then the crown area of ​​the light walnut tree is identified through expert knowledge or posterior probability; After identifying the crown area of ​​the bare walnut tree, crown segmentation and boundary refinement are performed to accurately identify the crown area of ​​the bare walnut tree, including: The classification results were converted into binary images using the threshold segmentation method, in which the white area represented the crown of the light walnut tree and the black area represented other objects or background. Perform dilation, erosion, opening and closing operations on the image to optimize the tree crown mask; Calculate the population density of light walnut.

4. A method for analyzing root traits of Walnut sphaerocarpa according to claim 1, characterized in that: The three-dimensional imaging of the collected root samples and quantification of root characteristics specifically include: The collected root samples are first cleaned to remove attached soil and other impurities; then they are fixed with a fixative to keep the root shape unchanged; the fixed root samples are placed in a resin box and filled with silica gel to ensure that the roots are evenly dispersed and not folded in the container; the packaged root samples are placed in a CT scanner and the scanning parameters are set; the CT scanning program is run, and the device will emit X-rays from multiple angles and receive transmission signals to obtain a series of tomographic images; ImageJ image processing software was used to remove random noise generated during the scanning process through filtering algorithms; grayscale adjustment was used to improve image contrast and signal-to-noise ratio; feature matching was used to ensure that all slice images were accurately aligned in space; Each 2D slice was converted into a thin layer in 3D space using Amira 3D reconstruction software to form a 3D volume data set. A threshold was set based on the grayscale difference between the root system and the background to divide the voxel data set into two parts: the root system and the non-root system. Adjacent voxels were identified and connected to form a continuous root system structure. A triangular mesh model of the root system surface was generated. Using the threshold segmentation method, the individual roots are automatically identified and separated according to the grayscale difference between the roots and the background; the root trait characteristics are calculated.

5. The method for analyzing root traits of Walnut sphaerocarpa according to claim 1, characterized in that: The construction of the light walnut resource acquisition ability prediction model specifically includes: Define a custom layer class for the residual attention block; this layer contains the number of units setting, i.e. the output dimension; two fully connected layers with ReLU activation function, an attention mechanism layer, an addition layer for residual connections, and a projection layer; First, the input is forward propagated through two fully connected layers and the ReLU activation function is applied. Then the attention mechanism layer is used to calculate the attention weight. Then the input dimension is checked to see if it matches the output dimension. If not, the input dimension is adjusted through the projection layer. Finally, the result of the attention mechanism is added to the original input with the adjusted dimension through the addition layer to achieve residual connection. Defines a custom layer class for the spiral fully connected layer; during initialization, it receives multiple parameters: output dimension units, maximum offset amplitude amax, number of spirals k, number of cycles t, and input dimension input_units; creates two weight variables: weight matrix w and bias term b, using Glorot uniform and zeros initializers respectively, and set to trainable; The forward propagation process of the spiral fully connected layer is as follows: there are k independent fully connected sublayers, each of which contains a set of weight matrices and bias terms; for each input sample, matrix multiplication is performed with the weight matrices of the k sublayers respectively, and the corresponding bias terms are added to obtain k spiral outputs; the outputs are stored in a list outputs; the spiral outputs in the outputs list are averaged to obtain avg_out; then, a weight vector is generated through a fully connected layer with a linear activation function; the generated weight vector is expanded by one dimension to match the dimension of the outputs tensor, and the two are multiplied element by element using the broadcast mechanism, and finally summed along the spiral axis to obtain the final spiral fully connected layer output; Define a function to create a model. The input is a tensor of root trait features. The model contains a 128-unit, ReLU-activated fully connected layer; a 128-unit residual attention block; a 64-unit residual attention block; a spiral fully connected layer with parameters units=128, amax=3, k=2, t=8, input_units=64; and finally a 2-unit, linearly activated fully connected layer output.

6. A system for analyzing the root characteristics of walnut, characterized in that: The system comprises: The database construction module is used to apply UAV remote sensing monitoring and geographic information system positioning to build an altitude gradient database of the distribution of walnuts; Root sample collection module, used to collect root samples of walnut; The root trait extraction module is used to perform three-dimensional imaging of the collected root samples and quantify the root trait characteristics; The light walnut model construction module is used to construct a light walnut resource acquisition ability prediction model to obtain the root system's absorption rate of water and nutrients.

7. A system for analyzing root characteristics of Walnut according to claim 6, characterized in that: The database construction module specifically includes: The image acquisition submodule is used to collect high-resolution images of the light walnut distribution area using sensors carried by drones; The image processing submodule is used to process and analyze the collected images, including: The images were classified through image processing algorithms to identify the area covered by the crown of the walnut trees. The population density was calculated by combining the image resolution and the crown size. The digital surface model and digital elevation model were generated using drone images to analyze the terrain and geomorphic features. The images were analyzed through spectral analysis to identify the soil type and land use status, and thermal infrared data was used to assist in determining the soil moisture and surface temperature distribution. The remote sensing interpretation result generation submodule is used to establish an altitude gradient database based on the UAV remote sensing interpretation results.

8. The root trait analysis system of Walnut sphaerocarpa according to claim 7, characterized in that: The image processing algorithm is used to classify the image and identify the area covered by the light walnut tree crown; the population density is calculated by combining the image resolution and the tree crown size, specifically including: Perform data preprocessing on the collected images, including radiation correction and geometric correction; Extract features from images, use the reflectance information of different bands in the image to extract spectral features; use the gray-level co-occurrence matrix to extract the texture features of the image; use edge detection and morphological processing methods to extract the shape features of the image; According to the extracted features, the K-means clustering algorithm is used to classify the images, that is, the image pixels are automatically divided into several categories according to the similarity of spectral and texture features, and then the crown area of ​​the light walnut tree is identified through expert knowledge or posterior probability; After identifying the crown area of ​​the bare walnut tree, crown segmentation and boundary refinement are performed to accurately identify the crown area of ​​the bare walnut tree, including: The classification results were converted into binary images using the threshold segmentation method, in which the white area represented the crown of the light walnut tree and the black area represented other objects or background. Perform dilation, erosion, opening and closing operations on the image to optimize the tree crown mask; Calculate the population density of light walnut.

9. The system for analyzing root characteristics of Walnut sphaerocarpa according to claim 6, characterized in that: The root trait feature extraction module specifically includes: The tomographic image generation submodule is used to first clean the collected root samples to remove attached soil and other impurities; then fix them with a fixative to keep the root morphology unchanged; place the fixed root samples in a resin box and fill them with silica gel to ensure that the roots are evenly dispersed and not folded in the container; place the packaged root samples in a CT scanner and set scanning parameters; run the CT scanning program, the device will emit X-rays from multiple angles and receive transmission signals to obtain a series of tomographic images; The tomographic image processing submodule is used to use the ImageJ image processing software to remove random noise generated during the scanning process through filtering algorithms; use grayscale adjustment to improve image contrast and signal-to-noise ratio; and ensure that all slice images are accurately aligned in space through feature matching; The 3D root trait generation submodule is used to convert each 2D slice into a thin layer in 3D space using Amira 3D reconstruction software to form a 3D volume data set; set a threshold based on the grayscale difference between the root system and the background to divide the voxel data set into two parts: the root system and the non-root system; identify and connect adjacent voxels to form a continuous root system structure; and generate a triangular mesh model of the root system surface; The root trait feature acquisition submodule is used to automatically identify and separate individual root individuals based on the grayscale difference between the root and the background using the threshold segmentation method; and calculate the root trait features.

10. The system for analyzing root characteristics of Walnut sphaerocarpa according to claim 6, characterized in that: The light walnut model construction module specifically includes: The residual attention block definition submodule is used to define a custom layer class for the residual attention block; this layer contains the number of units setting, i.e. the output dimension; two fully connected layers with ReLU activation function, an attention mechanism layer, an addition layer for residual connection, and a projection layer; The residual attention block runs a submodule that forward propagates the input through two fully connected layers and applies the ReLU activation function. It then uses the attention mechanism layer to calculate the attention weights. It then checks whether the input dimension matches the output dimension. If not, it resizes the input dimension through the projection layer. Finally, the result of the attention mechanism is added to the resized original input through the addition layer to implement the residual connection. The spiral fully connected layer definition submodule is used to define a custom layer class for the spiral fully connected layer. During initialization, it receives multiple parameters: output dimension units, maximum offset amplitude amax, number of spirals k, number of cycles t, and input dimension input_units. It creates two weight variables: the weight matrix w and the bias term b, using the Glorot uniform and zeros initializers respectively, and setting them to be trainable. The spiral fully connected layer runs the submodule. The forward propagation process for the spiral fully connected layer is that there are k independent fully connected sublayers, each of which contains a set of weight matrices and bias terms; for each input sample, it is matrix multiplied with the weight matrices of the k sublayers respectively, and the corresponding bias terms are added to obtain k spiral outputs; the outputs are stored in a list outputs; the spiral outputs in the outputs list are averaged to obtain avg_out; then, a weight vector is generated through a fully connected layer with a linear activation function; the generated weight vector is expanded by one dimension to match the dimension of the outputs tensor, and the two are multiplied element by element using the broadcast mechanism, and finally summed along the spiral axis to obtain the final spiral fully connected layer output; The model function definition submodule is used to define the function of creating the model. The input is a tensor of root trait characteristics. The model contains a 128-unit, ReLU-activated fully connected layer; a 128-unit residual attention block; a 64-unit residual attention block; a spiral fully connected layer with parameters units=128, amax=3, k=2, t=8, input_units=64; and finally a 2-unit, linearly activated fully connected layer output.

Citation Information

Patent Citations

  • CT scanning technique-based quantification method of root space net structure

    CN106556614A

  • Winter wheat remote sensing image automatic analysis system

    CN117853947A

  • Tree crown extraction method based on unmanned aerial vehicle multi-source remote sensing

    US20230039554A1

Cited By

  • Crop root growth simulation and three-dimensional irrigation decision system and method thereof

    CN120373892A

  • Seedling culture rooting induction box and plant branch and leaf and root system growth monitoring method

    CN120584729A

  • Method and system for analyzing root growth state image after seedling transplantation

    CN120932001A

  • Image Analysis Method and System for Root Growth Status of Seedlings after Transplanting

    CN120932001B

  • Variable pesticide spraying method and system based on crop canopy recognition

    CN120937830A