Areca yellows condition grade evaluation method based on spectral index APYDI
Through spectral atrous convolution and 3D deformable convolution combined with attention mechanism and depth separable convolution, the spectral index APYDI is constructed, which solves the problems of low efficiency, high cost and lack of timing information in the assessment of areca nut yellowing disease in the existing technology. , achieving more accurate and dynamic disease monitoring, providing important prevention and control basis for agriculture.
Patent Information
- Application Number
- CN202410794515.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-19
- Publication Date
- 2024-10-18
AI Technical Summary
The existing areca nut yellowing disease grade assessment methods are inefficient and costly, and lack temporal information. Commonly used vegetation indices cannot effectively reflect the disease, and the results are highly subjective, making it difficult to accurately quantify disease changes.
A method based on the spectral index APYDI is used to extract hyperspectral feature information by combining spectral hole convolution and 3D deformable convolution. Attention mechanism and depth-separable convolution are used to obtain the rust-sensitive band, and a spectral index APYDI for areca nut yellowing disease is constructed. , capturing disease changes by dynamically acquiring hyperspectral images of leaves.
It improves the accuracy and dynamics of disease grade assessment, enhances the robustness and generalization ability of the model, enables more accurate monitoring of the development of areca nut yellowing disease, and provides important reference for disease prevention and control.
Smart Images

Figure CN118797475A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of betel nut yellowing disease condition level evaluation, and in particular to a betel nut yellowing disease condition level evaluation method based on spectral index APYDI. Background Art
[0002] Areca nut yellowing disease is an important plant disease caused by the areca nut yellowing virus. The disease is mainly spread by aphids, causing symptoms such as yellowing and bending of areca nut leaves, which seriously affects the growth and yield of areca nut. With the expansion of the scale of areca nut cultivation and the increase in international trade, areca nut yellowing disease has become a major hidden danger in the areca nut industry. In agricultural production, assessing the disease level of crops is one of the important means to prevent and control the spread of diseases. By timely and accurate detection of crop disease levels, farmers and researchers can take targeted measures, such as reasonable application of fertilizers, spraying of pesticides, and adjustment of planting density, to reduce losses caused by diseases, and increase crop yield and quality, and ensure the sustainable development of agricultural production. Therefore, the assessment of crop disease levels is an indispensable part of agricultural production, and plays an important role in maintaining the stability of agricultural production and increasing farmers' economic benefits.
[0003] The traditional method of evaluating the disease level of betel nut yellowing disease is to plant betel nut under natural conditions and then conduct field observations and surveys in areas infected with betel nut yellowing disease. The disease level is evaluated based on the growth status of the betel nut plant and the area of lesions on the leaves. Mild infection is manifested by a small number of lesions and no serious damage to the leaves; moderate infection has a large number of lesions covering the leaves and may lead to growth restriction; severe infection will cause the leaves to turn yellow and fall seriously, affecting the yield and quality of betel nut. By evaluating the disease level of betel nut yellowing disease, appropriate prevention and control measures can be taken to ensure the yield and quality of betel nut.
[0004] In addition, thanks to the development of deep learning technology and hyperspectral technology, we can train crop disease RGB images by building convolutional neural networks to evaluate the disease level of crops. We can also use drones to collect multispectral and hyperspectral data, and build a crop disease level assessment model in combination with environmental information such as temperature and humidity. Combining information-rich hyperspectral data with deep learning methods can not only directly assess the severity of the disease, but also mine the spectral features related to the disease. In field environments, common vegetation indices can also be used to assess the disease level of crops. Common vegetation indices include NDVI (normalized difference vegetation index), which is one of the most commonly used vegetation indices and is calculated by the reflectivity of red and near-infrared bands. It has good sensitivity to vegetation coverage and growth status, and is often used to monitor the distribution and changes of vegetation, assess land cover, and monitor the health of vegetation. RVSI (Ratio Vegetation Stress Index) assesses the degree of stress of vegetation by comparing the reflectivity of red and near-infrared bands. High RVSI values usually indicate that vegetation is in a state of stress, such as insufficient water or being attacked by pests and diseases.
[0005] The shortcomings of the current method for assessing the grade of betel nut yellowing disease include the following aspects:
[0006] 1. The manual field survey method is inefficient, small-scale and costly.
[0007] The field survey method is inefficient and highly dependent on the environment. If affected by different environmental factors, the results at different times and locations may be inconsistent. At the same time, the scale of manual survey and identification is small. For large-scale projects, a large number of samples are required for field surveys, which will increase labor costs and implementation difficulties. Although field surveys can directly evaluate the disease level of plants, it is often difficult to accurately quantify the chlorosis disease, resulting in highly subjective results and certain subjective differences between different researchers or evaluators.
[0008] 2. Lack of temporal information reflecting changes in the disease.
[0009] Although using drones to obtain crop hyperspectral information can effectively reflect the disease of crops, it does not obtain time-series high-throughput phenotypic data from the time of pathogen inoculation to the outbreak of the disease. It can only refer to the disease survey results after the disease has fully broken out. Considering that the development of the disease is dynamic, a single data source and a single time node cannot fully and accurately reflect the disease level of betel nut yellowing disease.
[0010] 3. The commonly used vegetation index cannot effectively reflect the condition of betel nut yellowing disease.
[0011] Although NDVI and other commonly used vegetation indices can reflect the overall health of plants (for example, by observing changes in chlorophyll content and vegetation density), these indices usually cannot provide detailed information on the type, distribution and severity of diseases. The main reason is that the bands used to calculate the commonly used vegetation indices are not sensitive bands for chlorosis and are not strongly correlated with betel nut chlorosis. In addition, the number of bands used is not enough to contain the characteristic information of chlorosis in the spectral dimension. Summary of the invention
[0012] In view of the above problems existing in the prior art, the present invention is proposed.
[0013] Therefore, the present invention provides a method for evaluating the disease grade of betel nut yellowing disease based on the spectral index APYDI. Since the convolution kernel of a fixed size has a poor sampling effect on irregular objects, for hyperspectral images with richer spatial information and spectral information, such disadvantages are more easily highlighted. Therefore, in order to better obtain the characteristic information of crop diseases, it is necessary to try to use a 3D convolutional neural network combined with convolution kernel optimization techniques to enhance the generalization ability of the model for crop hyperspectral images, and provide an effective feature extraction method for the mining of crop disease resistance resources. This patent uses a spectral hole convolution module and a 3D deformable convolution module as feature extraction modules of the model backbone network. The convolution kernel of the spectral hole convolution can expand the receptive field by introducing an expansion rate, and extract feature information from the original spectral data by convolution operations on the spectral dimension without increasing the number of trainable parameters. The 3D deformable convolution module obtains an adaptive receptive field through a convolution layer, so that the convolution layer can capture long-range semantic information in the spatial and spectral dimensions of the hyperspectral data, which is more conducive to obtaining key features in the feature map. It is more effective for extracting irregular information such as betel nut yellowing disease spots.
[0014] This patent builds a spectral band extraction module based on the attention mechanism and deep separable convolution to retain the most discriminative or informative bands in the original spectral bands and their weights. Inspired by deep separable convolution, point-wise 1×1 convolution and band-independent convolution are used to effectively reduce the number of parameters and enhance the generalization ability of the model. Band-independent convolution inherits the characteristics of deep convolution and point-wise 1×1 convolution, and performs a single 1×1 convolution independently on each input channel. It can retain the original band information by isolating the information between bands and avoid the loss of spatial information. At the same time, this patent uses the 1×1 convolution kernel weight to directly represent the importance weight of the corresponding band. Specifically, the larger the absolute value of the 1×1 convolution kernel weight, the more important the corresponding band. The sensitive bands screened by the spectral band extraction module are used to construct a spectral index for evaluating the disease level of yellowing disease.
[0015] Since the traditional disease level evaluation method lacks time series information reflecting the changes in the disease, this patent acquires hyperspectral images of betel nut leaves at different times after inoculation (Days After Inoculation, DAI), thereby capturing the time series information of physiological and biochemical changes of the leaves after infection by the pathogen. This method can provide more detailed and dynamic data, which helps to more accurately evaluate the changes and development trends of the disease.
[0016] To solve the above technical problems, the present invention provides the following technical solutions: a method for evaluating the disease level of betel nut yellowing disease based on the spectral index APYDI, comprising: using spectral dilation convolution and 3D deformable convolution to extract hyperspectral feature information to provide support for the acquisition of sensitive bands; using attention mechanism and deep separable convolution method to obtain rust sensitive bands; and proposing a spectral index APYDI for evaluating the disease level of betel nut yellowing disease.
[0017] As a preferred solution of the method for evaluating the disease grade of betel nut yellowing disease based on the spectral index APYDI of the present invention, the characteristic information includes using X∈R H×W×C represents a feature map with a resolution of H×W×C, and X(P) represents the coordinate of X at P = (P x ,P y ,P z ), W(P) represents the weight of a given convolution kernel containing K convolution points, b represents the bias value of the current convolution layer, and D∈R K Denotes the sampling area of the deformable convolution. For a standard convolution of size 3×3×3, the dilation rate is 1, K=27, and the sampling area is D={(-1,-1,-1),(-1,-1,0),…,(1,1,0),(1,1,1)}. In the 3D deformable convolution module, ΔD∈R K×3 Represents the offset of each point in the sampling area, and Y represents the feature map obtained after applying the deformable convolution. The value of Y in the coordinate is calculated by the formula,
[0018]
[0019] Among them, P n Represents the location within the sampling area. The change of the convolution kernel feature extraction position is determined by learning the offset of the convolution kernel sampling position. The deformable convolution adaptively focuses on the spatial position within the fixed sampling area D. Since the offset obtained during the training process is usually a decimal, the position of each position in the convolution kernel after the offset is not consistent with the actual pixel point in the feature map. The interpolation method is used to determine the pixel value after the offset, which is usually implemented using the trilinear interpolation method.
[0020] As a preferred embodiment of the method for evaluating the disease grade of betel nut yellowing disease based on the spectral index APYDI described in the present invention, the trilinear interpolation method is expressed as:
[0021]
[0022] Among them, P represents the actual position after offset, I enumerates all positions in the feature map, and G represents trilinear interpolation.
[0023] As a preferred solution of the method for evaluating the disease grade of betel nut yellowing disease based on the spectral index APYDI described in the present invention, the obtaining of rust-sensitive bands includes performing independent convolution operations on hyperspectral images of different bands using a 3×3 convolution kernel, using a point-like 1×1 convolution to learn the feature information of the spatial dimension and the spectral dimension, reducing the number of training parameters while taking into account the acquisition of spatial information, and finally using the channel attention mechanism to restore the feature map to its original size. In order to discard some spectral bands that are irrelevant to the training results, redundant or contain noise, a hard threshold strategy is studied and designed. If the absolute value of the kernel weight is less than the threshold, the corresponding value will be reset to zero. If the absolute value of the kernel weight is greater than the threshold, the weight value remains unchanged. The hard threshold method discards the band by limiting the weight of the band extraction module. The bands with zero weight will be discarded, and only the bands with non-zero weight will be selected as the input of the next layer. In the hard threshold method, in order to find a suitable threshold, the hard threshold method adopts a sorting-based strategy. In the hard threshold method, the weights of all bands are sorted to determine the threshold, the weights of all 1×1 convolution kernels are sorted, and the threshold is determined using a given number of bands.
[0024] As a preferred solution of the method for evaluating the disease grade of betel nut yellowing disease based on the spectral index APYDI of the present invention, the hard threshold method includes: train ={X1,X2,…,X n}, where n is the number of training samples, Y train ={Y1,Y2,…,Y n}, where Y i Represents the training sample X i Corresponding category label, each training sample X i ∈R N×N×B , where N×N represents the current sample space size, B is the number of spectral bands, and in the band extraction module, each input band X i,k The features will be extracted by a 3×3 convolution kernel. and is the kth kernel weight and bias of the band extraction module, using the hard threshold function to constrain the kernel weights, retaining the weights corresponding to the selected bands, Indicated by and X i The calculated output,the formula of the band extraction layer with band-independent convolution and hard thresholding is,
[0025]
[0026] Where · represents the convolution independent of the band. In the hard threshold method, ε represents the threshold, ε=sort(|W (1 )|,u), sort(|W (1 )|,u) means firstly taking the absolute values of all convolution kernel weights In descending order, u represents the number of selected bands.
[0027] As a preferred solution of the method for evaluating the disease grade of betel nut yellowing disease based on the spectral index APYDI described in the present invention, the spectral index APYDI includes: firstly putting the acquired complete betel nut leaf hyperspectral image into a spectral band extraction module, using band-independent 3×3 convolution to extract spatial features, then using point-like 1×1 convolution training to obtain a feature map representing the importance of the spectral band, inputting the feature information into a spectral hole convolution module composed of 8 convolution kernels with expansion rates of 3×3×7 and 3×3×5, and then inputting the obtained feature map into a 3D deformable convolution module and a residual module using a convolution kernel of size 3×3×3 to learn the offset, reducing the number of parameters by adding a 2×2×2 average pooling layer after the residual module, and then using three fully connected layers to complete the evaluation of the disease grade of betel nut yellowing disease, comparing the predicted value with the true label value, and calculating the loss value.
[0028] As a preferred solution of the method for evaluating the disease grade of betel nut yellowing disease based on the spectral index APYDI described in the present invention, the back propagation algorithm is used to calculate the gradient of the loss function to the point-shaped 1×1 convolution kernel weight in the spectral band extraction module, and the optimization algorithm is used to update the weight. During the training process, the point-shaped 1×1 convolution kernel weight continuously resets the weight of the band with low correlation with betel nut yellowing disease to zero based on the hard threshold strategy. By continuously training and updating the band weights, 5 bands with the greatest impact on the disease grade and the corresponding weights are finally obtained, and the betel nut yellowing disease spectral index APYDI is combined by weighted summation. 581 , R 605 , R 596 , R 609 , R 628 They respectively represent the reflectance values of the screened bands, and APYDI represents the calculated leaf spectral index.
[0029] As a preferred embodiment of the method for evaluating the disease grade of betel nut yellowing disease based on the spectral index APYDI described in the present invention, wherein: the APYDI represents the calculated leaf spectral index expressed as,
[0030] APYDI = 3.36R 581 -2.58R 605 +1.96R 596 -1.24R 609 +1.12R 628 .
[0031] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and wherein when the processor executes the computer program, the steps of any one of the methods for assessing the disease grade of betel nut yellowing disease based on the spectral index APYDI are implemented.
[0032] A computer-readable storage medium having a computer program stored thereon, characterized in that when the computer program is executed by a processor, the steps of any one of the methods for assessing the disease grade of betel nut yellowing disease based on the spectral index APYDI are implemented.
[0033] Beneficial effects of the present invention: The present invention uses spectral hole convolution and 3D deformable convolution to effectively extract hyperspectral feature information. In the resistance evaluation task, the combination of these two methods can take into account both spectral and spatial features, which is more conducive to capturing the correlation between spatial lesion information and spectral band information, thereby improving the robustness and generalization ability of the model. Therefore, the method of using spectral hole convolution and 3D deformable convolution can quickly and effectively extract hyperspectral feature information, providing support for the acquisition of sensitive bands. Rust sensitive bands are obtained using attention mechanism and deep separable convolution method. The attention mechanism enables the network to automatically focus on the bands with the strongest correlation with betel nut yellowing disease during the learning process. The deep separable convolution significantly reduces the number of parameters and computational costs by decomposing the standard convolution operation into two steps: deep convolution and point-by-point convolution, while maintaining good feature extraction capabilities.
[0034] Combining these two methods, the band information related to yellowing disease can be obtained more accurately, ensuring the validity of the obtained spectral index. A spectral index APYDI for evaluating the disease grade of betel nut yellowing disease is proposed. This method can effectively monitor the development of betel nut yellowing disease, improve the accuracy of disease grade evaluation for yellowing disease, and provide an important reference for disease prevention and control. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.
[0036] Figure 1 A technical roadmap for a method for evaluating the grade of betel nut chlorosis disease based on the spectral index APYDI provided for one embodiment of the present invention.
[0037] Figure 2 An overall process of constructing APYDI for a method for evaluating the disease grade of betel nut chlorosis based on the spectral index APYDI provided in one embodiment of the present invention.
[0038] Figure 3 A flow chart of a spectral band extraction module of a method for evaluating the grade of betel nut yellowing disease based on the spectral index APYDI provided in one embodiment of the present invention.
[0039] Figure 4 The disease grade evaluation results of the betel nut yellowing disease disease grade evaluation method based on the spectral index APYDI provided in one embodiment of the present invention: (a) lesion area development histogram; (b) SRSI value; (c) NDVI value. DETAILED DESCRIPTION
[0040] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the drawings of the specification. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary persons in the art without creative work should fall within the scope of protection of the present invention.
[0041] Example 1
[0042] Reference Figure 1-Figure 4 , which is the first embodiment of the present invention, provides a method for evaluating the disease grade of betel nut yellowing disease based on the spectral index APYDI, comprising:
[0043] It includes a spectral band extraction module based on attention mechanism and deep separable convolution, the construction of a backbone network based on convolution kernel optimization method, and the construction of spectral index APYDI. The technical roadmap is as follows: Figure 1 As shown. This provides an efficient and accurate solution for the evaluation of betel nut yellowing disease.
[0044] Generally, breeders evaluate the severity of chlorosis by calculating the pixel ratio of the diseased area to the total leaf area. Considering the huge difference between the image background and the betel nut leaf, the threshold segmentation method can be used to accurately extract the leaf spectral information. The severity of chlorosis infection is divided into six levels from healthy to disease level 9 (Level 0-Level 9) according to the area of chlorosis diseased spots. This patent uses 3720 betel nut hyperspectral images and marks the chlorosis disease level as a label.
[0045] The use of 3D deformable convolution module can make the model better fit the phenotypic characteristics of the lesions of betel nut yellowing disease. At the same time, it can adaptively learn the convolution kernel offset position of the spectral dimension according to the response of different bands to yellowing disease, and effectively use the 3D characteristics of hyperspectral data to improve model performance. H×W×C Represents a feature map with a resolution of H×W×C. X(P) is used to represent the coordinates of X at P = (P x ,P y ,P z ). At the same time, W(P) represents the weight of a given convolution kernel containing K convolution points, and b represents the bias value of the current convolution layer. K Denotes the sampling area of the deformable convolution. Assuming that for a standard convolution of size 3×3×3, the dilation rate is 1, K=27, its sampling area is D={(-1,-1,-1),(-1,-1,0),…,(1,1,0),(1,1,1)}. In the 3D deformable convolution module, ΔD∈R K×3 To represent the offset of each point in the above sampling area. If Y represents the feature map obtained after applying deformable convolution, the value of Y in the coordinate can be calculated by formula 1:
[0046]
[0047] Where P n Represents the location within the sampling area. As can be seen from Formula 1, the change in the convolution kernel feature extraction position is determined by learning the offset of the convolution kernel sampling position. Therefore, the deformable convolution can adaptively focus on the spatial position within the fixed sampling area D, while the traditional three-dimensional convolution can only focus on fixed spatial positions. Since the offset obtained during the training process is usually a decimal, this means that the position of each position in the convolution kernel after the offset is not consistent with the actual pixel point in the feature map. Therefore, it is necessary to use an interpolation method to determine the pixel value after the offset, which can usually be achieved using trilinear interpolation, and its formula 2 is as follows:
[0048]
[0049] Where P represents the actual position after the offset in Formula 2, and I enumerates all the positions in the feature map. G represents trilinear interpolation. Trilinear interpolation is an interpolation method used to estimate the value of any position based on the values of known data points in three-dimensional space. First, find eight data points near the target position, which can form a cube in three-dimensional space. Then calculate the distance between the target position and these eight points in three-dimensional space. Finally, according to the distance ratio, the values of these eight data points are interpolated to obtain the value of the target position.
[0050] This patent builds a spectral band extraction module based on deep separable convolution and attention mechanism. Figure 2 This is the flow chart of the spectral band extraction module. The module first uses a 3×3 convolution kernel to perform independent convolution operations on hyperspectral images of different bands, and then uses a point-like 1×1 convolution to learn the feature information of the spatial dimension and the spectral dimension. This process not only effectively reduces the number of training parameters, but also takes into account the acquisition of spatial information. Finally, the channel attention mechanism is used to restore the feature map to its original size for subsequent processing. In order to discard some spectral bands that are irrelevant to the training results, redundant, or noisy, the study designed a hard threshold strategy. If the absolute value of the kernel weight is less than the threshold, the corresponding value will be reset to zero. Otherwise, the weight value remains unchanged. Then, the hard threshold method discards some bands by limiting the weight of the band extraction module. Bands with zero weights will be discarded, and only bands with non-zero weights will be selected as the input of the next layer. In the hard threshold method, choosing a suitable threshold is a key issue. If the threshold is too large, few bands will be selected, and little discriminant information will be retained, which is not conducive to classification. On the contrary, some irrelevant, redundant, or noisy bands may not be discarded. To find a suitable threshold, the hard thresholding method adopts a sorting-based strategy. In the hard thresholding method, the weights of all bands are sorted to determine the threshold. Specifically, the weights of all 1×1 convolution kernels are sorted and the threshold is determined using a given number of bands.
[0051] In this patent, the training samples are represented by X train ={X1,X2,…,X n}, where n is the number of training samples. train ={Y1,Y2,…,Y n}, where Y i (1≤i≤n) represents the training sample X i The corresponding category label. Each training sample X i ∈R N×N×B , where N×N represents the current sample space size and B is the number of spectral bands. In the band extraction module, each input band X i,k The features are extracted by a 3×3 convolution kernel and are independent of other spectral bands. and is the kth kernel weight and bias of the band extraction module. Thus, each weight of these kernels represents the importance of the corresponding band. Then, a hard threshold function is used to constrain the kernel weights and only keep the weights corresponding to the selected bands. Indicated by and X i The calculated output. The formula of the band extraction layer with band-independent convolution and hard thresholding is:
[0052]
[0053] Where · represents the convolution independent of the band. In the hard threshold method, ε represents the threshold, ε = sort(|W (1 )|,u). Specifically, sort(|W (1 )|,u) means firstly taking the absolute values of all convolution kernel weights In descending order, u represents the number of selected bands.
[0054] In summary, this patent uses a 3D convolutional neural network as the basis, and combines a 3D deformable convolution module, a hole convolution module, a residual module and a spectral band extraction module to complete the construction of the Areca Palm Yellow Leaf Disease Spectral Index (APYDI).
[0055] The first step is to extract features from the hyperspectral image through the convolution kernel optimization method and complete the model training. First, the acquired complete betel nut leaf hyperspectral image is placed in the spectral band extraction module, which uses a band-independent 3×3 convolution to extract spatial features. Then, a point-like 1×1 convolution is used for training to obtain a feature map representing the importance of the spectral band. These feature information is then input into a spectral hole convolution module consisting of 8 convolution kernels with expansion rates of 3×3×7 and 3×3×5. The obtained feature map is then input into a 3D deformable convolution module and a residual module that use a convolution kernel of size 3×3×3 to learn the offset. The number of parameters is reduced by adding a 2×2×2 average pooling layer after the residual module. The overall workflow of the model is shown in the figure below. Figure 3 As shown. Then three fully connected layers are used to complete the evaluation of the betel nut yellowing disease level. The predicted value is compared with the true label value and the loss value is calculated.
[0056] The second step is to obtain the sensitive bands and weight values of betel nut yellowing disease through the spectral band extraction module, and complete the construction of the spectral index APYDI. The back propagation algorithm is used to calculate the gradient of the loss function to the point 1×1 convolution kernel weight in the spectral band extraction module, and then the optimization algorithm is used to update its weight, so that the prediction result of the model is closer to the actual label value. During the training process, the point 1×1 convolution kernel weight continuously resets the weights of the bands with low correlation with betel nut yellowing disease to zero based on the hard threshold strategy. By continuously training and updating the band weights, the five bands with the greatest impact on the yellowing disease level and the corresponding weights are finally obtained, and the betel nut yellowing disease spectral index APYDI is combined by weighted summation. In the following formula, R 581 , R 605 , R 596 , R 609 , R 628 They represent the filtered bands respectively. APYDI represents the calculated leaf spectral index.
[0057] APYDI = 3.36R 581 -2.58R 605 +1.96R 596 -1.24R 609 +1.12R 628
[0058] The third step verifies the validity of the proposed spectral index. This study uses the proposed APYDI to accurately evaluate the disease grade of betel nut yellowing disease. Figure 4 (a) shows the proportion of lesions at five different stages after inoculation of the pathogen. Figure 4 (b) shows the actual APYDI value after inoculation of pathogens. Figure 4 (c) shows the corresponding actual NDVI value after inoculation of the pathogen. Obviously, as the time of inoculation of the pathogen increases, the proportion of the lesion area gradually increases, and the value of APYDI also increases accordingly, which shows that the APYDI proposed in this patent can effectively reflect the changes in the disease of betel nut yellowing disease. On the contrary, the actual value calculated by the vegetation index NDVI is inversely proportional to the overall disease level. This patent will calculate the actual APYDI value of the betel nut sample based on the obtained APYDI formula, and divide the actual APYDI value according to the yellowing disease level label, as shown in Table 1. After that, the disease level of betel nut yellowing disease can be determined by calculating the spectral reflectance of only five bands based on APYDI.
[0059] Table 1
[0060]
[0061] Example 2
[0062] The second embodiment of the present invention is different from the previous embodiment in that:
[0063] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., which can store program codes.
[0064] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in conjunction with such instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in conjunction with such instruction execution systems, devices or apparatuses.
[0065] More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be a paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering or, if necessary, processing in another suitable manner, and then stored in a computer memory.
[0066] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
Claims
1. Evaluation method of betel nut yellowing disease grade based on spectral index APYDI, Features: include, Spectral hole convolution and 3D deformable convolution are used to extract hyperspectral feature information to provide support for the acquisition of sensitive bands; The attention mechanism and deep separable convolution method are used to obtain rust-sensitive bands; A spectral index APYDI was proposed for evaluating the disease grade of betel nut yellowing disease.
2. The betel nut yellowing disease condition grade assessment method based on spectral index APYDI as claimed in claim 1, Features: The feature information includes using X∈R H×W×C represents a feature map with a resolution of H×W×C, and X(P) represents the coordinate of X at P = (P x ,P y ,P z ), W(P) represents the weight of a given convolution kernel containing K convolution points, b represents the bias value of the current convolution layer, and D∈R K Denotes the sampling area of the deformable convolution. For a standard convolution of size 3×3×3, the dilation rate is 1, K=27, and the sampling area is D={(-1,-1,-1),(-1,-1,0),…,(1,1,0),(1,1,1)}. In the 3D deformable convolution module, ΔD∈R K×3 Represents the offset of each point in the sampling area, and Y represents the feature map obtained after applying the deformable convolution. The value of Y in the coordinate is calculated by: Among them, P n Represents the location within the sampling area. The change of the convolution kernel feature extraction position is determined by learning the offset of the convolution kernel sampling position. The deformable convolution adaptively focuses on the spatial position within the fixed sampling area D. Since the offset obtained during the training process is usually a decimal, the position of each position in the convolution kernel after the offset is not consistent with the actual pixel point in the feature map. The interpolation method is used to determine the pixel value after the offset, which is usually implemented using the trilinear interpolation method.
3. The betel nut yellowing disease condition grade assessment method based on spectral index APYDI as claimed in claim 2, Features: The trilinear interpolation method is expressed as, Among them, P represents the actual position after offset, I enumerates all positions in the feature map, and G represents trilinear interpolation.
4. The betel nut yellowing disease condition grade assessment method based on spectral index APYDI as claimed in claim 3, Features: The acquisition of rust-sensitive bands includes performing independent convolution operations on hyperspectral images of different bands using 3×3 convolution kernels, using point-like 1×1 convolutions to learn feature information of spatial and spectral dimensions, reducing the number of training parameters, taking into account the acquisition of spatial information, and finally restoring the feature map to its original size using a channel attention mechanism. In order to discard some spectral bands that are irrelevant to the training results, redundant, or contain noise, a hard threshold strategy is designed. If the absolute value of the kernel weight is less than the threshold, the corresponding value will be reset to zero. If the absolute value of the kernel weight is greater than the threshold, the weight value remains unchanged. The hard threshold method discards the band by limiting the weight of the band extraction module. The band with a weight of zero will be discarded, and only the band with a weight of non-zero will be selected as the input of the next layer. In the hard threshold method, in order to find a suitable threshold, the hard threshold method adopts a sorting-based strategy. In the hard threshold method, the weights of all bands are sorted to determine the threshold, the weights of all 1×1 convolution kernels are sorted, and the threshold is determined using a given number of bands.
5. The betel nut yellowing disease condition grade assessment method based on spectral index APYDI as claimed in claim 4, Features: The hard threshold method includes training samples with X train ={X 1 ,X 2 ,…,X n }, where n is the number of training samples, Y train = {Y 1 ,Y 2 ,…,Y n }, where Y i Represents the training sample X i Corresponding category label, each training sample X i ∈R N ×N×B , where N×N represents the current sample space size, B is the number of spectral bands, and in the band extraction module, each input band X i,k The features will be extracted by a 3×3 convolution kernel. and is the kth kernel weight and bias of the band extraction module, using the hard threshold function to constrain the kernel weights, retaining the weights corresponding to the selected bands, Indicated by and X i The calculated output,the formula of the band extraction layer with band-independent convolution and hard thresholding is, Where · represents the convolution independent of the band. In the hard threshold method, ε represents the threshold, ε=sort(|W (1) |,u), sort(|W (1) |,u) means first taking the absolute values of all convolution kernel weights In descending order, u represents the number of selected bands.
6. The method for evaluating the disease grade of betel nut yellowing disease based on the spectral index APYDI as claimed in claim 5, Features: The spectral index APYDI includes: firstly putting the acquired complete betel nut leaf hyperspectral image into a spectral band extraction module, using band-independent 3×3 convolution to extract spatial features, then using point-like 1×1 convolution training to obtain a feature map representing the importance of the spectral band, inputting the feature information into a spectral hole convolution module composed of 8 convolution kernels with expansion rates of 3×3×7 and 3×3×5, and then inputting the obtained feature map into a 3D deformable convolution module and a residual module using a convolution kernel of size 3×3×3 to learn the offset, reducing the number of parameters by adding a 2×2×2 average pooling layer after the residual module, and then using three fully connected layers to complete the evaluation of the disease level of betel nut yellowing disease, comparing the predicted value with the true label value, and calculating the loss value.
7. The method for evaluating the disease grade of betel nut yellowing disease based on the spectral index APYDI as claimed in claim 6, Features: The back propagation algorithm is used to calculate the gradient of the loss function for the point-shaped 1×1 convolution kernel weight in the spectral band extraction module, and the optimization algorithm is used to update the weight. During the training process, the point-shaped 1×1 convolution kernel weight continuously resets the weight of the band with low correlation with betel nut yellowing to zero based on the hard threshold strategy. By continuously training and updating the band weights, the five bands with the greatest impact on the yellowing disease level and their corresponding weights are finally obtained, and the betel nut yellowing disease spectral index APYDI, R, is combined by weighted summation. 581 , R 605 , R 596 , R 609 , R 628 They respectively represent the reflectance values of the screened bands, and APYDI represents the calculated leaf spectral index.
8. The method for evaluating the disease grade of betel nut yellowing disease based on the spectral index APYDI as claimed in claim 7, Features: The APYDI represents the calculated leaf spectral index expressed as, APYDI=3.36R 581 -2.58R 605 +1.96R 596 -1.24R 609 +1.12R 628 。 9. A computer device comprising a memory and a processor, wherein the memory stores a computer program. It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 8 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.
Citation Information
Cited By
Hyperspectrum-based smoked mural implicit information extraction method and device
CN120125441A
Defect detection method for high-density packaged chip
CN120427657A
Breast cancer new auxiliary information analysis system based on multi-modal fusion
CN120452755A
