Small sample learning crop canopy coverage calculation method and device based on background filtering
The method employs small data learning and neural networks to segment crop canopy from background objects, providing accurate and cost-effective canopy coverage calculation.
Patent Information
- Application Number
- JP2024011391
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-02-16
- Filing Date
- 2024-01-30
- Publication Date
- 2024-08-28
- Estimated Expiration
- 2044-01-30
AI Technical Summary
Existing methods for calculating crop canopy coverage are inaccurate, labor-intensive, and costly, with high dependence on human judgment and limited adaptability to different crop species, and are prone to errors due to background interference.
A method using small data learning based on background filtering, involving a background segmentation network and a small data partitioning network to accurately segment crop canopy from background objects, utilizing UAV imagery and neural networks for precise canopy coverage calculation.
Accurately calculates crop canopy coverage with reduced human intervention, minimizing background interference and cost, and maintaining high accuracy across various crop species.
Smart Images

Figure 2024117069000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to the fields of image recognition technology and agricultural breeding, and in particular to a method and apparatus for calculating crop canopy coverage using few-shot learning based on background filtering. [Background technology]
[0002] Canopy coverage is the percentage of the soil surface covered by plant leaves and is an important indicator for measuring and expressing the condition of crop establishment and early growth (also called early vigor). Genotypes with high canopy coverage in early growth generally block more solar radiation and shade a larger portion of the soil, which reduces water evaporation from the soil and improves water availability. Higher canopy coverage is beneficial in wet growing environments, but in dry environments, too fast growth can lead to early depletion of soil moisture, putting crops at risk of severe drought stress at the end of the growing season. Crops with high canopy coverage are also more competitive with weeds, which helps them fight herbicide-resistant weeds.
[0003] In the process of intelligent breeding, how to quickly and accurately extract the crown coverage rate of crops in the early growth stage has gradually become an important technical support. At present, there are mainly two methods for extracting the crown coverage rate of crops.
[0004] The first is ground surveying, which mainly involves manual on-site surveying to obtain data. Sampling methods such as the quadrate method, belt transect method, and point transect method are the main methods, but the results obtained are influenced by many human factors, so the accuracy is insufficient and there is a large variation. To obtain more accurate data, scientists have invented sampling devices such as spatial quantum sensors and traversing quantum sell. Although such devices are suitable for the purpose of improving measurement accuracy, they are inconvenient to use in the field.
[0005] The second is remote sensing measurement, whose development in recent years has contributed to the progress of ecology to some extent. Extraction of crop canopy coverage by remote sensing technology has also become a new direction of development. Common methods include regression modeling, vegetation index method, pixel decomposition modeling, color filtering, etc. The regression modeling method finds a vegetation index that is sensitive to vegetation canopy coverage but not sensitive to background factors, analyzes the relationship between the vegetation index and the vegetation canopy coverage through statistical thinking, and constructs various regression models between the two. The vegetation index method is an inversion method that directly estimates the vegetation canopy coverage using an index that is well related to the vegetation index. The pixel decomposition modeling method is to directly theoretically analyze the pixels to decompose them and build a correlation model between the vegetation index and the vegetation canopy coverage. The color filtering method is a simpler method that filters the RGB image obtained by remote sensing by features such as color, or extracts and filters color features related to green.
[0006] In summary, all of the above methods for calculating crop canopy coverage have certain drawbacks and problems, mainly including the following (1) to (6). (1) Plot selection requires a priori knowledge, human visual estimation is subjective, and photo sketching is time-consuming and labor-intensive. (2) It is inconvenient to use and carry sampling equipment in the field. (3) Statistical models are specific to finding appropriate indicators and are not broadly applicable. (4) Inversion methods that use remote sensing to build relationship models have limitations in accuracy and applicability. (5) When using characteristics such as color, it is easy for non-crop items such as weeds and fallen leaves to be mixed in. (6) The algorithm is highly crop-dependent, and changing the crop significantly degrades the results.
[0007] Based on this, there is a need to provide a highly accurate and low-cost method for extracting crop canopy coverage. Summary of the Invention [Problem to be solved by the invention]
[0008] In order to solve the above technical problems existing in the prior art, the present invention proposes a method for calculating crop canopy coverage rate of small amount of data learning based on background filtering, through the conventional area segmentation network, filter out known background areas such as weeds, land, roads, etc., and then use the small amount of data segmentation network to perform fine segmentation to obtain the crop canopy coverage area, and finally calculate the pixel proportion of the canopy coverage area to obtain the canopy coverage rate. The specific technical solutions are as follows: [Means for solving the problem]
[0009] A method for calculating crop canopy coverage using small amount of data based on background filtering is as follows: Step S1 of acquiring overhead RGB image data of a site to be calculated using a UAV and constructing a support dataset and a query dataset based on the acquired image data; A step S2 of constructing a background segmentation network model, setting known background objects including weeds, land, and roads as target classes, and setting known crops as background classes, and training the background segmentation network model; Step S3: performing inference based on the trained background segmentation network model to obtain a segmentation reliability map of a target area in the query image for which the canopy coverage is to be calculated, extracting a green feature index of the query image, superimposing the segmentation reliability and the green feature index to obtain a background index map, and obtaining a background area and a foreground area in the query image based on the background index map; A step S4 of constructing a small amount of data partitioning network model, setting known crops as a target class and other areas as a background class, and training the small amount of data partitioning network model; The method includes a step S5 of performing inference based on the small-data partitioning network model obtained by training, inputting a support image in the support dataset and a query image for which the canopy coverage is to be calculated into the small-data partitioning network model to obtain a classification prediction map, determining an area having a prediction reliability greater than a predetermined threshold as a target area, determining a part of the target area that overlaps with the foreground area as a crop canopy coverage area, and calculating the canopy coverage based on the canopy coverage area.
[0010] Furthermore, in step S1, setting a cruising point at the site, fixing the cruising point and flight altitude, and acquiring an RGB visible light image of the site using a UAV equipped with a visible light camera; Collating the image data captured by the UAV and selecting a few representative images as a support dataset to label pixel regions of the crop canopy, and the remaining images as unlabeled query images.
[0011] Furthermore, step S2 includes a step of constructing a background segmentation network model based on a fully convolutional neural network (FCN), setting weeds, land, and roads as target class 0, target class 1, and target class 2, respectively, setting other areas as other class 3, and training the background segmentation network model using a known public dataset.
[0012] Furthermore, in the step S3, the step of performing inference based on the trained background segmentation network model, obtaining a segmentation confidence map of a target area in the query image for which the canopy coverage rate is to be calculated, and extracting a green feature index of the query image is performed. The method includes inputting a query image for which the canopy coverage is to be calculated into a trained background segmentation network model to obtain a segmentation confidence map for representing four regions of target class 0, target class 1, target class 2, and other class 3, and calculating a green feature index of the query image to obtain a green feature index map; The green feature index is a relative proportion index of the G channel of a pixel in an RGB image. The larger the proportion index, the larger the green feature index. The green feature value is:
number
number
number
[0013] Furthermore, in the step S3, the step of obtaining a background index map by superimposing the segmentation confidence and the green feature index, and obtaining a background region and a foreground region in the query image based on the background index map, The division reliability and the green feature index are overlapped,
number
[0014] Furthermore, the small amount of data division network model in step S4 is composed of a semantic feature extraction module, a priori mask generation module, and a multi-scale feature fusion module; The semantic feature extraction module adopts a ResNet50 network, and the semantic feature extraction module extracts a high-level semantic feature map and a mid-level semantic feature. In the inference stage, the input of the a priori mask generation module is the high-level semantic feature map of the support image and the high-level semantic feature map of the query image extracted by the semantic feature extraction module. The a priori mask generation module calculates the cosine distance between corresponding pixels of the two feature maps and obtains the maximum value of the cosine distance between corresponding pixels to obtain a correlation map between the support image and the query image, and normalizes the correlation map to obtain a a priori mask; The multi-scale feature fusion module is mainly composed of an atlas spatial pyramid pooling (ASPP) network layer, and fuses the mid-level semantic features of the support image and the mid-level semantic features of the query image extracted by the semantic feature extraction module with the prior mask in the ASPP network layer to obtain a classification prediction map of the query image; In the model training stage, a public dataset is adopted as the training dataset of the small amount of data partitioning network model, training is performed according to the classes of the public dataset, and the classes are changed into two classes during inference, where class 1 is the background class and class 0 is the target class.
[0015] In addition, the semantic feature extraction module extracts high-level semantic features and mid-level semantic features of the input image, respectively, and extracts high-level semantic features of the supporting image.
number
number
number
number
number
number
number
number
[0016] Furthermore, the multi-scale feature fusion module is composed of an ASPP network layer, namely, four dilated convolutions, namely, a 3×3 dilated convolution with a dilation factor of 6, a 3×3 dilated convolution with a dilation factor of 12, a 3×3 dilated convolution with a dilation factor of 18, and a 3×3 dilated convolution with a dilation factor of 24, concatenated in parallel with one average pooling layer, and further concatenated with one 1×1 convolution.
[0017] Furthermore, in step S5, Inference is performed based on the small amount of data segmentation network model obtained by training, and the support image and the query image are input into the small amount of data segmentation network model respectively to obtain a classification prediction map. The region with a prediction reliability greater than 0.5 is determined as a target region, and the part of the target region that overlaps with the foreground region is determined as a crop canopy coverage region, and the crop canopy coverage rate is determined as
number
[0018] The device for calculating crop canopy coverage using small amount of data based on background filtering is Contains one or more processors, The one or more processors are adapted to implement the background filtering based small data learning crop canopy coverage calculation method. Effect of the Invention
[0019] Compared with the prior art, the beneficial effects of the present invention are as follows: 1. The background segmentation network model can well eliminate the influence of known background targets such as weeds, roads, and land on the segmentation of crop areas. 2. The background index map obtained by superimposing the introduction of green feature index can prevent crops from being misclassified as background. 3. The small amount of data segmentation network can be applied to the crown segmentation task of different unknown crop species on a large scale, greatly reducing the high cost of pre-data collection and labeling. 4. The calculation of crown coverage by computer vision is more accurate than other subjective methods, and does not encounter the problem of result variation due to subjective measurement methods, etc. [Brief description of the drawings]
[0020] [Figure 1] FIG. 2 is a schematic diagram showing the flow of a method for calculating crop canopy coverage for small data learning based on background filtering provided by an embodiment of the present invention; [Diagram 2] FIG. 1 is a schematic diagram illustrating the overall network framework of a method for calculating crop canopy coverage for small data learning based on background filtering provided by an embodiment of the present invention. [Diagram 3]FIG. 1 is a schematic diagram showing a network framework of a multi-scale feature fusion module of a method for calculating crop canopy coverage for small data learning based on background filtering provided by an embodiment of the present invention; [Figure 4] FIG. 2 is a schematic diagram showing the structure of a crop canopy coverage calculation device for small-data learning based on background filtering provided by an embodiment of the present invention; DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0021] In order to make the objectives, technical solutions and technical effects of the present invention clearer and easier to understand, the present invention will be described in more detail hereinafter in conjunction with the accompanying drawings and embodiments.
[0022] As shown in FIG. 1, the method for calculating crop canopy coverage using small amount of data learning based on background filtering of the present invention specifically includes the following steps:
[0023] Step S1: Using a UAV, acquire overhead RGB image data of the site to be calculated, and construct a support dataset and a query dataset based on the acquired image data.
[0024] Specifically, a cruising point is set at the site, the cruising point and flight altitude are fixed, and an Unmanned Aerial Vehicle (UAV) equipped with a visible light camera is used to capture RGB visible light images of the site. The image data captured by the UAV is collated, and five representative images are selected as the support dataset to label the pixel regions of the crop canopy. The remaining images are used as images to calculate the canopy coverage in the test inference phase, i.e., query images.
[0025] Step S2: Build a background segmentation network model, set known background targets including weeds, land, and roads as target classes, and set known crops as background classes to train the background segmentation network model.
[0026] Specifically, a background segmentation network model is constructed based on a fully convolutional neural network (FCN), and the weeds, land, and roads are set as target class 0, target class 1, and target class 2, respectively, and the other areas are set as other class 3 to train the background segmentation network model. Training can be performed using a known public dataset.
[0027] Step S3: Perform inference based on the background segmentation network model obtained by training, obtain a segmentation confidence map of the target area in the query image for which the canopy coverage rate is to be calculated, extract the green feature index of the query image, superimpose the segmentation confidence and the green feature index to obtain a background index map, and obtain the background area and foreground area in the query image based on the background index map.
[0028] Specifically, the query image for which the canopy coverage is to be calculated is input into a trained background segmentation network model to obtain a segmentation confidence map for representing four regions, namely, target class 0, target class 1, target class 2, and other class 3, and the green feature index of the query image is calculated to obtain a green feature index map. The green feature index is a relative proportion index of the G channel of the pixel of the RGB image, and the larger the proportion index, the larger the green feature index;
number
number
[0029] The segmentation confidence map obtained by the background segmentation network model represents the classification confidence in each class of each pixel of the query image and the corresponding class label, and the segmentation confidence map is:
number
[0030] The background index map obtained by overlaying the segmentation confidence and the green feature index is:
number
[0031] Step S4: Build a small amount of data segmentation network model, set the known crops as a target class, and set other areas as a background class to train the small amount of data segmentation network model.
[0032] Specifically, as shown in Figure 2, the small amount of data segmentation network model is composed of a semantic feature extraction module, a priori mask generation module, and a multi-scale feature fusion module.
[0033] The semantic feature extraction module adopts a ResNet50 network. The semantic feature extraction module extracts high-level semantic feature maps and mid-level semantic features. In the inference stage, the input of the a priori mask generation module is the high-level semantic feature map of the support image (the image labeled in step S1) and the high-level semantic feature map of the query image (the unlabeled image) extracted by the semantic feature extraction module, and the a priori mask generation module calculates the cosine distance between the corresponding pixels of the two feature maps, obtains the correlation map between the support image and the query image by finding the maximum value of the cosine distance between the corresponding pixels, and normalizes the correlation map to finally obtain the a priori mask.
[0034] The multi-scale feature fusion module mainly consists of an atrous spatial pyramid pooling (ASPP) network layer, which fuses the mid-level semantic features of the support image and the mid-level semantic features of the query image extracted by the semantic feature extraction module with the priori mask to obtain a classification prediction map of the query image.
[0035] In the training stage, a public dataset is adopted as the training dataset of the small amount of data partitioning network model, and training is performed according to the classes of the public dataset. The classes are changed into two classes during inference, class 1 is the background class, and class 0 is the target class.
[0036] Specifically, the semantic feature extraction module extracts high-level semantic features and mid-level semantic features of the input image respectively, and extracts high-level semantic features of the supporting image.
number
number
number
[0037] The a priori mask generation module obtains the a priori mask by calculating the correlation between the query image and the supporting image, and the correlation between each pixel of the query image and the corresponding pixel of the supporting image is the maximum of the cosine distance of each high-level semantic feature map, i.e.
number
number
number
number
number
[0038] Then, the mid-level semantic features extracted by the semantic feature extraction module and the a priori mask generated by the a priori mask generation module are combined and input to the multi-scale feature fusion module. The multi-scale feature fusion module is mainly composed of an ASPP atlas spatial pyramid pooling network layer. That is, as shown in FIG. 3, it is composed of four dilated convolutions, namely, a 3×3 dilated convolution with a dilation rate of 6, a 3×3 dilated convolution with a dilation rate of 12, a 3×3 dilated convolution with a dilation rate of 18, and a 3×3 dilated convolution with a dilation rate of 24, and one average pooling layer, which are connected in parallel, and one 1×1 convolution is further connected. Pyramid pooling allows the receptive field to be expanded without scaling the feature map.
[0039] Finally, the network predicts the confidence that each pixel belongs to different classes through the feature map output by the multi-scale feature fusion module.
[0040] Step S5: Perform inference based on the small-data partitioning network model obtained by training, input the support images in the support dataset and the query image for which the canopy coverage is to be calculated into the small-data partitioning network model to obtain a classification prediction map, determine the area with a prediction reliability greater than a predetermined threshold as a target area, determine the part of the target area that overlaps with the foreground area as a crop canopy coverage area, and calculate the canopy coverage based on the canopy coverage area.
[0041] Specifically, inference is performed based on the small amount of data segmentation network model obtained by training, and the support image and the query image are input into the small amount of data segmentation network model respectively to obtain a classification prediction map, and the area with a prediction reliability greater than 0.5 is set as the target area. In the target area obtained by the small amount of data segmentation network model in step S5, the part overlapping with the foreground area obtained in step 3 is set as the crop canopy coverage area, and finally the crop canopy coverage rate is calculated as
number
[0042] Corresponding to the embodiment of the method for calculating crop canopy coverage using small amount of data learning based on background filtering described above, the present invention also provides an embodiment of an apparatus for calculating crop canopy coverage using small amount of data learning based on background filtering.
[0043] Referring to FIG. 4, a calculation device for crop canopy coverage using small amount of data learning based on background filtering provided by an embodiment of the present invention includes one or more processors, and the one or more processors are used to implement the calculation method for crop canopy coverage using small amount of data learning based on background filtering in the above embodiment.
[0044] The embodiment of the method for calculating crop canopy coverage of small amount of data learning based on background filtering of the present invention can be applied to any device having data processing capability, and the arbitrary device having data processing capability may be a device or apparatus such as a computer. The embodiment of the apparatus may be realized by software, hardware, or a combination of hardware and software. Taking the implementation by software as an example, as an apparatus in the logical sense, the processor of the arbitrary device having data processing capability located therein reads corresponding computer program instructions from the non-volatile memory into the memory and executes them. At the hardware level, as shown in FIG. 4, the hardware structure of the arbitrary device having data processing capability of the calculation apparatus for crop canopy coverage of small amount of data learning based on background filtering of the present invention is shown, and in addition to the processor, memory, network interface, and non-volatile memory shown in FIG. 4, the arbitrary device having data processing capability in which the apparatus of the embodiment is located may usually include other hardware depending on the actual function of the arbitrary device having data processing capability, but the description will be omitted here.
[0045] The process of implementing the functions and roles of each unit in the above device is specifically detailed in the process of implementing the corresponding steps in the above method, so it will not be repeated here.
[0046] The device embodiments basically correspond to the method embodiments, so that the relevant parts may refer to the description of the method embodiments. The above-mentioned device embodiments are merely exemplary, and the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, i.e., they may be located in one place or distributed among multiple network units. Depending on the actual needs, some or all of these modules may be selected to achieve the objectives of the present invention. Those skilled in the art can understand and implement it without any creative effort.
[0047] An embodiment of the present invention also provides a computer-readable storage medium storing a program that, when executed by a processor, performs the method for calculating crop canopy coverage using small amount of data learning based on background filtering in the above embodiment.
[0048] The computer-readable storage medium may be an internal storage unit such as a hard disk or memory of any device having data processing capabilities described in any of the embodiments. The computer-readable storage medium may also be an external storage device such as a plug-in hard disk, a Smart Media Card (SMC), an SD card, or a Flash Card provided in the device. Furthermore, the computer-readable storage medium may include both an internal storage unit and an external storage device of any device having data processing capabilities. The computer-readable storage medium is used to store computer programs and other programs and data required by any device having data processing capabilities, and may also be used to temporarily store output data or data to be output.
[0049] The above is only a preferred embodiment of the present invention, and is not intended to limit the present invention in any way. Although the implementation process of the present invention has been described in detail above, those skilled in the art may modify the technical solutions described in the above embodiments or make equivalent substitutions for some of the technical features. Any modifications or equivalent substitutions made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. Step S1 of acquiring overhead RGB image data of a site to be calculated using a UAV, and constructing a support dataset and a query dataset based on the acquired image data; A step S2 of constructing a background segmentation network model, setting known background objects including weeds, land, and roads as target classes, and setting known crops as background classes to train the background segmentation network model; Step S3: performing inference based on the trained background segmentation network model, obtaining a segmentation reliability map of a target area in the query image for which the crown coverage rate is to be calculated, extracting a green feature index of the query image, superimposing the segmentation reliability and the green feature index to obtain a background index map, and obtaining a background area and a foreground area in the query image based on the background index map; A step S4 of constructing a small amount of data segmentation network model, setting known crops as a target class and other regions as a background class, and training the small amount of data segmentation network model; S5. performing inference based on the small amount of data division network model obtained by training, inputting the support image in the support data set and the query image for which the canopy coverage is to be calculated into the small amount of data division network model to obtain a classification prediction map, determining an area with a prediction reliability greater than a predetermined threshold as a target area, determining a part of the target area that overlaps with the foreground area as a crop canopy coverage area, and calculating a canopy coverage based on the canopy coverage area; The step S1 Setting a cruising point at the site, fixing the cruising point and flight altitude, and acquiring an RGB visible light image of the site using a UAV equipped with a visible light camera; Collating the image data acquired by the UAV and selecting a few representative images as a support dataset to label pixel regions of the crop canopy, and the remaining images as unlabeled query images; The step S2 includes a step of constructing a background segmentation network model based on a fully convolutional neural network (FCN), setting weeds, land, and roads as target class 0, target class 1, and target class 2, respectively, setting other areas as other class 3, and training the background segmentation network model using a known public dataset; In step S3, the step of performing inference based on the trained background segmentation network model to obtain a segmentation confidence map of a target area in the query image for which the canopy coverage is to be calculated, and extracting a green feature index of the query image includes: The method includes inputting a query image for which the canopy coverage is to be calculated into a trained background segmentation network model to obtain a segmentation confidence map for representing four regions of target class 0, target class 1, target class 2, and other class 3, and calculating a green feature index of the query image to obtain a green feature index map; The green feature index is a relative proportion index of the G channel of a pixel in an RGB image. The larger the proportion index, the larger the green feature index. The green feature value is: [0010] and f i,j represents the green feature value of the pixel in row i, column j of the image, and G i,j represents the G channel value of the pixel in row i, column j of the image, and R i,j represents the R channel value of the pixel in row i, column j of the image, and B i,j represents the value of the B channel of the pixel in row i, column j of the image, and f i,j By quantifying this, we can obtain a green characteristic index. [0025] is obtained, and f min HA i,j represents the minimum value among max HA i,j represents the maximum value in The segmentation confidence map represents a classification confidence in each class of each pixel of the query image and a corresponding class label, and the segmentation confidence map is [0030] is represented by r i,j represents the classification confidence for each class of the pixel in the i-th row and j-th column of the query image, and c i,j represents the corresponding class, In the step S3, the step of obtaining a background index map by superimposing the segmentation confidence and the green feature index, and obtaining a background region and a foreground region in the query image based on the background index map includes: The division reliability and the green feature index are overlapped, [0045] Obtaining a background index map represented by i,j represents the background index of the pixel in row i and column j of the query image, and if the pixel class is ground or road, the corresponding background index is the classification confidence minus the green feature index, and if the pixel class is weed or other class, the corresponding background index is the classification confidence; and determining a class corresponding to a maximum background index of each pixel based on the background index, and determining pixel regions whose classes of maximum background index are weeds, ground, and road as background regions and pixel regions whose classes of maximum background index are other classes as foreground regions; The small amount of data division network model in step S4 is composed of a semantic feature extraction module, a priori mask generation module, and a multi-scale feature fusion module; The semantic feature extraction module adopts a ResNet50 network, and the semantic feature extraction module extracts a high-level semantic feature map and a mid-level semantic feature. In the inference stage, the input of the a priori mask generation module is the high-level semantic feature map of the support image and the high-level semantic feature map of the query image extracted by the semantic feature extraction module. The a priori mask generation module calculates the cosine distance between corresponding pixels of the two feature maps and obtains the maximum value of the cosine distance between corresponding pixels to obtain a correlation map between the support image and the query image, and normalizes the correlation map to obtain a a priori mask; The multi-scale feature fusion module is mainly composed of an atlas spatial pyramid pooling (ASPP) network layer, and fuses the mid-level semantic features of the supporting image and the mid-level semantic features of the query image extracted by the semantic feature extraction module with the prior mask in the ASPP network layer to obtain a classification prediction map of the query image; In the model training stage, a public dataset is adopted as the training dataset of the small amount of data segmentation network model, and training is performed according to the classes of the public dataset, and the classes are changed into two classes during inference, where class 1 is the background class and class 0 is the target class; The semantic feature extraction module extracts high-level semantic features and mid-level semantic features of an input image, respectively, and extracts high-level semantic features of a supporting image. [0050] and express the high-level semantic features of the query image as [006] Denoted as, the cosine distance of high-level semantic features between the support image and the query image is, [0070] where w and h are the width and height of the image, respectively. The a priori mask generation module obtains the a priori mask by calculating the correlation between the query image and the supporting image, and the correlation between each pixel of the query image and the corresponding pixel of the supporting image is the maximum of the cosine distance of each high-level semantic feature map, i.e. [0080] It is expressed as [0097] represents the high-level semantic features of the supporting image, [0089] represents the high-level semantic features of the query image, and the correlation map between the supporting images and the query image is ##EQU00011## Then, the a priori mask obtained by normalizing the correlation map is ##EQU00012## It is expressed as Combining the mid-level semantic features extracted by the semantic feature extraction module and the a priori mask generated by the a priori mask generation module into the multi-scale feature fusion module, and predicting the confidence that each pixel belongs to a different class through the feature map output by the multi-scale feature fusion module; The multi-scale feature fusion module is composed of an ASPP network layer, i.e., four dilated convolutions, namely, a 3×3 dilated convolution with a dilation factor of 6, a 3×3 dilated convolution with a dilation factor of 12, a 3×3 dilated convolution with a dilation factor of 18, and a 3×3 dilated convolution with a dilation factor of 24, and one average pooling layer, which are connected in parallel, and one 1×1 convolution. A method for calculating crop canopy coverage using small amount of data learning based on background filtering, comprising:
2. The step S5 is Inference is performed based on the small amount of data segmentation network model obtained by training, and the support image and the query image are input into the small amount of data segmentation network model respectively to obtain a classification prediction map. The region with a prediction reliability greater than 0.5 is determined as a target region, and the part of the target region that overlaps with the foreground region is determined as a crop canopy coverage region, and the crop canopy coverage rate is calculated as ##EQU00013## The method includes the step of: h and w are the height and width of the image, respectively, and C i represents the i-th pixel among the pixels classified as crop canopy covered area, The method for calculating crop canopy coverage using small amount of data learning based on background filtering as claimed in claim 1.
3. one or more processors; The one or more processors are used to implement the method for calculating crop canopy coverage using small amount of data learning based on background filtering according to any one of claims 1 to 2. A device for calculating crop canopy coverage using small amount of data learning based on background filtering.
Citation Information
Cited By
Deep learning-based method and system for forest leaf instance segmentation.
JP7852966B1
