CN111369494A - Method and device for detecting ear density of winter wheat - Google Patents

Method and device for detecting ear density of winter wheat Download PDF

Info

Publication number
CN111369494A
CN111369494A CN202010082618.2A CN202010082618A CN111369494A CN 111369494 A CN111369494 A CN 111369494A CN 202010082618 A CN202010082618 A CN 202010082618A CN 111369494 A CN111369494 A CN 111369494A
Authority
CN
China
Prior art keywords
density
sub
ear
winter wheat
neural network
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010082618.2A
Other languages
Chinese (zh)
Other versions
CN111369494B (en
Inventor
马浚诚
杜克明
郑飞翔
孙忠富
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Institute of Environment and Sustainable Development in Agriculturem of CAAS
Original Assignee
Institute of Environment and Sustainable Development in Agriculturem of CAAS
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Institute of Environment and Sustainable Development in Agriculturem of CAAS filed Critical Institute of Environment and Sustainable Development in Agriculturem of CAAS
Priority to CN202010082618.2A priority Critical patent/CN111369494B/en
Publication of CN111369494A publication Critical patent/CN111369494A/en
Application granted granted Critical
Publication of CN111369494B publication Critical patent/CN111369494B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/045Combinations of networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/70Determining position or orientation of objects or cameras
    • G06T7/73Determining position or orientation of objects or cameras using feature-based methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20081Training; Learning
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20084Artificial neural networks [ANN]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30181Earth observation
    • G06T2207/30188Vegetation; Agriculture

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • General Health & Medical Sciences (AREA)
  • General Engineering & Computer Science (AREA)
  • Biophysics (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Evolutionary Computation (AREA)
  • Artificial Intelligence (AREA)
  • Molecular Biology (AREA)
  • Computing Systems (AREA)
  • Biomedical Technology (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Mathematical Physics (AREA)
  • Software Systems (AREA)
  • Health & Medical Sciences (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Quality & Reliability (AREA)
  • Image Analysis (AREA)

Abstract

本发明实施例提供一种冬小麦穗密度检测方法及装置,所述方法包括:获取冬小麦开花期后的待检测冠层图像,并将所述待检测冠层图像划分成若干个待检测子图;将所述若干个待检测子图输入至卷积神经网络模型,输出子密度图;根据所述子密度图确定冬小麦穗密度;其中,所述卷积神经网络模型是基于样本冠层图像以及预先确定的样本冠层图像对应的穗密度图进行训练后得到。本发明实施例提供的冬小麦穗密度检测方法及装置,利用人工智能技术进行检测,自动化程度高,能够有效减少穗密度估算的人工干预,降低应用成本和复杂程度,有效提高冬小麦穗密度估算的准确性和实时性。

Figure 202010082618

Embodiments of the present invention provide a method and device for detecting ear density of winter wheat, the method comprising: acquiring a canopy image to be detected after the flowering period of winter wheat, and dividing the canopy image to be detected into several sub-images to be detected; Input the several sub-images to be detected into the convolutional neural network model, and output the sub-density map; determine the winter wheat ear density according to the sub-density map; wherein, the convolutional neural network model is based on the sample canopy image and the pre- The spike density map corresponding to the determined sample canopy image is obtained after training. The method and device for detecting ear density of winter wheat provided by the embodiments of the present invention utilize artificial intelligence technology for detection, with a high degree of automation, which can effectively reduce manual intervention in ear density estimation, reduce application cost and complexity, and effectively improve the accuracy of ear density estimation for winter wheat. and real-time.

Figure 202010082618

Description

冬小麦穗密度检测方法及装置Method and device for detecting ear density of winter wheat

技术领域technical field

本发明实施例涉及系统工程和信息技术领域,尤其涉及一种冬小麦穗密度检测方法及装置。Embodiments of the present invention relate to the fields of systems engineering and information technology, and in particular, to a method and device for detecting ear density of winter wheat.

背景技术Background technique

冬小麦穗密度是冬小麦估产和表型分析的一个重要指标,具有重要的实际意义。传统的穗密度计算方法主要依靠人工计数,该方法不但需要消耗大量的人力、物力,并且效率较低,不能满足于大面积产量估算和表型分析的需求。基于计算机视觉的穗密度估算方法具有低成本、易使用的优点,是目前最主要的穗密度估算手段。基于计算机视觉的穗密度估算方法主要包括以下几个步骤:麦穗分割、二值图形态学优化和计算连通域数量,进而得到图像中麦穗的数量。麦穗图像分割是基于计算机视觉的穗密度估算方法的核心内容,通常基于麦穗的颜色和纹理等底层特征进行像素级或超像素级的麦穗提取。The ear density of winter wheat is an important index for the estimation and phenotype analysis of winter wheat, and it has important practical significance. The traditional ear density calculation method mainly relies on manual counting. This method not only consumes a lot of manpower and material resources, but also has low efficiency and cannot meet the needs of large-area yield estimation and phenotypic analysis. The spike density estimation method based on computer vision has the advantages of low cost and easy use, and is currently the most important spike density estimation method. The computer vision-based ear density estimation method mainly includes the following steps: segmentation of wheat ears, morphological optimization of binary graphs, and calculation of the number of connected domains, and then the number of wheat ears in the image is obtained. Wheat ear image segmentation is the core content of computer vision-based ear density estimation methods, usually based on low-level features such as color and texture of wheat ears for pixel-level or superpixel-level wheat ear extraction.

由于大田环境下采集的冬小麦冠层图像易受到光照条件和复杂背景的干扰,基于底层特征的麦穗图像分割准确率易受噪声干扰,且泛化能力较低,难以在实际应用中取得良好的效果。除此之外,大田环境采集的冬小麦冠层图像中穗密度较高,从而麦穗相互遮挡相对严重,且麦穗尺寸和形状变化较大,给穗密度估算带来了挑战。如何克服光照条件和复杂背景的影响,解决当前穗密度估算方法易受到噪声干扰,且对麦穗重叠和麦穗外观变化较大等问题,实现穗密度的准确估算,是亟待解决的问题。Because the winter wheat canopy images collected in the field environment are easily disturbed by light conditions and complex backgrounds, the segmentation accuracy of wheat ear images based on the underlying features is easily disturbed by noise, and the generalization ability is low, so it is difficult to achieve good results in practical applications. Effect. In addition, the ear density in the winter wheat canopy images collected in the field environment is relatively high, so the mutual occlusion of the wheat ears is relatively serious, and the size and shape of the wheat ears change greatly, which brings challenges to the estimation of ear density. How to overcome the influence of light conditions and complex backgrounds, solve the problems that the current ear density estimation method is susceptible to noise interference, and the problems of wheat ear overlap and large changes in the appearance of wheat ears, and how to achieve accurate ear density estimation is an urgent problem to be solved.

发明内容SUMMARY OF THE INVENTION

本发明实施例提供一种冬小麦穗密度检测方法及装置,用于解决现有技术中的上述技术问题。Embodiments of the present invention provide a method and device for detecting ear density of winter wheat, which are used to solve the above-mentioned technical problems in the prior art.

为了解决上述技术问题,一方面,本发明实施例提供一种冬小麦穗密度检测方法,包括:In order to solve the above-mentioned technical problems, on the one hand, an embodiment of the present invention provides a method for detecting ear density of winter wheat, comprising:

获取冬小麦开花期后的待检测冠层图像,并将所述待检测冠层图像划分成若干个待检测子图;Obtain the canopy image to be detected after the flowering period of winter wheat, and divide the canopy image to be detected into several sub-images to be detected;

将所述若干个待检测子图输入至卷积神经网络模型,输出子密度图;Inputting the several sub-graphs to be detected into a convolutional neural network model, and outputting a sub-density graph;

根据所述子密度图确定冬小麦穗密度;Determine winter wheat ear density according to the sub-density map;

其中,所述卷积神经网络模型是基于样本冠层图像以及预先确定的样本冠层图像对应的穗密度图进行训练后得到。The convolutional neural network model is obtained after training based on the sample canopy image and the predetermined spike density map corresponding to the sample canopy image.

进一步地,所述根据所述子密度图确定冬小麦穗密度,具体包括:Further, determining the winter wheat ear density according to the sub-density map specifically includes:

根据所述卷积神经网络模型中池化层的数量,计算子密度图位置索引;Calculate the sub-density map position index according to the number of pooling layers in the convolutional neural network model;

根据所述子密度图位置索引将输出的子密度图融合,得到穗密度图;According to the position index of the sub-density map, the output sub-density map is fused to obtain the ear density map;

根据所述穗密度图确定冬小麦穗密度。The winter wheat ear density was determined from the ear density map.

进一步地,所述卷积神经网络模型的训练过程包括如下步骤:Further, the training process of the convolutional neural network model includes the following steps:

获取冬小麦开花期后的样本冠层图像;Obtain the sample canopy image after the flowering period of winter wheat;

采用点标记记录麦穗的位置信息;Use point markers to record the position information of wheat ears;

根据麦穗的位置信息,生成样本的穗密度图;According to the position information of the wheat ears, the ear density map of the sample is generated;

采用滑动窗口将样本冠层图像及其对应的穗密度图划分为若干个样本子图及对应的子密度图;A sliding window is used to divide the sample canopy image and its corresponding ear density map into several sample sub-maps and corresponding sub-density maps;

利用所述若干个样本子图及对应的子密度图对卷积神经网络进行训练,得到所述卷积神经网络模型。The convolutional neural network is trained by using the several sample sub-maps and the corresponding sub-density maps to obtain the convolutional neural network model.

进一步地,所述麦穗的位置信息为麦穗中心点在图像中的坐标。Further, the position information of the wheat ear is the coordinates of the center point of the wheat ear in the image.

进一步地,所述根据麦穗的位置信息,生成样本的穗密度图,具体包括:Further, according to the position information of the wheat ears, the ear density map of the sample is generated, which specifically includes:

根据麦穗的位置信息,采用几何自适应方法生成样本的穗密度图。According to the position information of wheat ears, the geometric adaptive method was used to generate the ear density map of the samples.

进一步地,所述利用所述若干个样本子图及对应的子密度图对卷积神经网络进行训练,得到所述卷积神经网络模型,具体包括:Further, the convolutional neural network is trained by using the several sample subgraphs and the corresponding sub-density graphs to obtain the convolutional neural network model, which specifically includes:

将所述若干个样本子图及对应的子密度图作为卷积神经网络模型的输入层;Using the several sample submaps and the corresponding subdensity maps as the input layer of the convolutional neural network model;

构建卷积神经网络模型的特征提取器;A feature extractor for building a convolutional neural network model;

以及,依次连接所述输入层、所述特征提取器、用于将所述特征提取器的输出结果融合的叠加层和用于融合叠加层中多个通道的输出层,完成卷积神经网络模型的建立。And, sequentially connecting the input layer, the feature extractor, the overlay layer for fusing the output results of the feature extractor, and the output layer for fusing multiple channels in the overlay layer to complete the convolutional neural network model establishment.

进一步地,所述特征提取器中包括并行的四个处理模块,每个处理模块中均包括依次连接的三个处理单元。Further, the feature extractor includes four processing modules in parallel, and each processing module includes three processing units connected in sequence.

进一步地,每一处理模块的第一个处理单元中均包括依次连接的卷积层、修正线性单元ReLU层和池化层;第二个处理单元中均包含不少于3个依次连接的卷积层和修正线性单元ReLU层,且仅第一个修正线性单元ReLU层后连接一个池化层,第三个处理单元中均包含不少于3个依次连接的卷积层和修正线性单元ReLU层;Further, the first processing unit of each processing module includes a convolutional layer, a modified linear unit ReLU layer and a pooling layer that are connected in sequence; the second processing unit includes no less than 3 consecutively connected volumes. The accumulation layer and the modified linear unit ReLU layer, and only the first modified linear unit ReLU layer is connected to a pooling layer, and the third processing unit contains no less than 3 sequentially connected convolutional layers and modified linear units ReLU Floor;

其中,每个处理单元中的各卷积层中的卷积核的尺寸保持不变,第二个处理单元中的各卷积层中的卷积核的数量以2为乘数依次递增,第三个处理单元中的各卷积层中的卷积核的数量以0.5为乘数依次递减,第二个处理单元中的卷积层数量与第三个处理单元中的卷积层数量相等,第一个处理单元中的卷积层中的卷积核的尺寸大于第二个处理单元中的各卷积层中的卷积核的尺寸,第二个处理单元中的卷积层中的卷积核的尺寸大于第三个处理单元中的各卷积层中的卷积核的尺寸。Among them, the size of the convolution kernels in each convolutional layer in each processing unit remains unchanged, and the number of convolution kernels in each convolutional layer in the second processing unit is incremented by a multiplier of 2. The number of convolution kernels in each convolutional layer in the three processing units is successively decreased by a multiplier of 0.5, and the number of convolutional layers in the second processing unit is equal to the number of convolutional layers in the third processing unit, The size of the convolution kernels in the convolutional layers in the first processing unit is larger than the size of the convolutional kernels in each convolutional layer in the second processing unit, and the volume in the convolutional layers in the second processing unit The size of the accumulation kernel is larger than the size of the convolution kernels in each convolutional layer in the third processing unit.

进一步地,每一处理模块的第一个处理单元中的卷积层中的卷积核的尺寸依次递减。Further, the size of the convolution kernel in the convolution layer in the first processing unit of each processing module decreases sequentially.

另一方面,本发明实施例提供一种冬小麦穗密度检测装置,其特征在于,包括:On the other hand, an embodiment of the present invention provides a device for detecting ear density of winter wheat, characterized in that it includes:

获取模块,用于获取冬小麦开花期后的待检测冠层图像,并将所述待检测冠层图像划分成若干个待检测子图;an acquisition module, configured to acquire the canopy image to be detected after the flowering period of winter wheat, and to divide the canopy image to be detected into several sub-images to be detected;

输出模块,用于将所述若干个待检测子图输入至卷积神经网络模型,输出子密度图;an output module for inputting the several sub-graphs to be detected into a convolutional neural network model, and outputting a sub-density graph;

检测模块,用于根据所述子密度图确定冬小麦穗密度;a detection module for determining the winter wheat ear density according to the sub-density map;

其中,所述卷积神经网络模型是基于样本冠层图像以及预先确定的样本冠层图像对应的穗密度图进行训练后得到。The convolutional neural network model is obtained after training based on the sample canopy image and the predetermined spike density map corresponding to the sample canopy image.

本发明实施例提供的冬小麦穗密度检测方法及装置,利用人工智能技术进行检测,自动化程度高,能够有效减少穗密度估算的人工干预,降低应用成本和复杂程度,有效提高冬小麦穗密度估算的准确性和实时性。The method and device for detecting ear density of winter wheat provided by the embodiments of the present invention utilize artificial intelligence technology for detection, with a high degree of automation, which can effectively reduce manual intervention in ear density estimation, reduce application cost and complexity, and effectively improve the accuracy of ear density estimation for winter wheat. and real-time.

附图说明Description of drawings

图1为本发明实施例提供的冬小麦穗密度检测方法示意图;Fig. 1 is a schematic diagram of a method for detecting ear density of winter wheat provided by the embodiment of the present invention;

图2为本发明实施例提供的冬小麦穗密度检测逻辑流程图;Fig. 2 is the winter wheat ear density detection logic flow chart provided by the embodiment of the present invention;

图3为本发明实施例提供的冬小麦穗密度检测装置示意图;3 is a schematic diagram of a device for detecting ear density of winter wheat provided by an embodiment of the present invention;

图4为本发明实施例提供的电子设备的结构示意图。FIG. 4 is a schematic structural diagram of an electronic device provided by an embodiment of the present invention.

具体实施方式Detailed ways

为了使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purposes, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be described clearly and completely below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments These are some embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the protection scope of the present invention.

图1为本发明实施例提供的冬小麦穗密度检测方法示意图,如图1所示,本发明实施例提供一种冬小麦穗密度检测方法,其执行主体为冬小麦穗密度检测装置。该方法包括:FIG. 1 is a schematic diagram of a method for detecting ear density of winter wheat provided by an embodiment of the present invention. As shown in FIG. 1 , an embodiment of the present invention provides a method for detecting ear density of winter wheat, whose execution body is a device for detecting ear density of winter wheat. The method includes:

步骤S101、获取冬小麦开花期后的待检测冠层图像,并将所述待检测冠层图像划分成若干个待检测子图。Step S101 , acquiring a canopy image to be detected after the flowering period of winter wheat, and dividing the canopy image to be detected into several sub-images to be detected.

具体来说,图2为本发明实施例提供的冬小麦穗密度检测逻辑流程图,如图2所示,首先,获取冬小麦开花期后的待检测冠层图像,并将该待检测冠层图像划分成若干个待检测子图。Specifically, FIG. 2 is a logic flow chart for detecting ear density of winter wheat provided by an embodiment of the present invention. As shown in FIG. 2 , first, a canopy image to be detected after the flowering period of winter wheat is obtained, and the canopy image to be detected is divided into into several subgraphs to be detected.

例如,可采用2500×2500×3像素大小采集待检测冠层图像,以600×600像素大小,300像素步长的滑动窗口将该待检测冠层图像划分成若干个待检测子图。For example, 2500×2500×3 pixels can be used to collect the canopy image to be detected, and the canopy image to be detected can be divided into several sub-images to be detected with a sliding window of 600×600 pixels and a step size of 300 pixels.

将该待检测冠层图像划分成若干个待检测子图的同时,记录待检测子图的位置索引。While dividing the to-be-detected canopy image into several to-be-detected sub-images, the location index of the to-be-detected sub-images is recorded.

待检测子图的位置索引,包括:待检测子图左上角像素点在待检测图像中的坐标,可利用第一公式提取:The position index of the sub-image to be detected includes: the coordinates of the upper left corner pixel of the sub-image to be detected in the image to be detected, which can be extracted by using the first formula:

其中,第一公式为:Among them, the first formula is:

Index(i,j)=I(i,j) Index (i,j) =I (i,j)

Index(i,j)为第i个待检测图像第j个子图的索引,I(i,j)为第i个待检测图像第j个子图左上角像素点在该待检测图像中的坐标。Index (i,j) is the index of the jth sub-image of the i-th image to be detected, and I (i,j) is the coordinates of the upper left pixel of the j-th sub-image of the i-th image to be detected in the image to be detected.

步骤S102、将所述若干个待检测子图输入至卷积神经网络模型,输出子密度图。Step S102: Input the several sub-graphs to be detected into a convolutional neural network model, and output a sub-density map.

具体来说,在获取若干个待检测子图之后,将若干个待检测子图输入至卷积神经网络模型,输出子密度图。Specifically, after acquiring several sub-images to be detected, the several sub-images to be detected are input into the convolutional neural network model, and the sub-density map is output.

其中,该卷积神经网络模型是基于样本冠层图像以及预先确定的样本冠层图像对应的穗密度图进行训练后得到。The convolutional neural network model is obtained after training based on a sample canopy image and a predetermined spike density map corresponding to the sample canopy image.

步骤S103、根据所述子密度图确定冬小麦穗密度。Step S103: Determine the winter wheat ear density according to the sub-density map.

具体来说,在得到子密度图之后,根据该子密度图确定冬小麦穗密度。Specifically, after the sub-density map is obtained, the winter wheat ear density is determined according to the sub-density map.

本发明实施例提供的冬小麦穗密度检测方法,利用人工智能技术进行检测,自动化程度高,能够有效减少穗密度估算的人工干预,降低应用成本和复杂程度,有效提高冬小麦穗密度估算的准确性和实时性。The method for detecting ear density of winter wheat provided by the embodiment of the present invention utilizes artificial intelligence technology for detection, has a high degree of automation, can effectively reduce manual intervention in ear density estimation, reduces application cost and complexity, and effectively improves the accuracy and accuracy of ear density estimation for winter wheat. real-time.

基于上述任一实施例,进一步地,所述根据所述子密度图确定冬小麦穗密度,具体包括:Based on any of the above-mentioned embodiments, further, determining the winter wheat ear density according to the sub-density map specifically includes:

根据所述卷积神经网络模型中池化层的数量,计算子密度图位置索引;Calculate the sub-density map position index according to the number of pooling layers in the convolutional neural network model;

根据所述子密度图位置索引将输出的子密度图融合,得到穗密度图;According to the position index of the sub-density map, the output sub-density map is fused to obtain the ear density map;

根据所述穗密度图确定冬小麦穗密度。The winter wheat ear density was determined from the ear density map.

具体来说,在本发明实施例中,根据子密度图确定冬小麦穗密度,具体包括如下步骤:Specifically, in the embodiment of the present invention, determining the ear density of winter wheat according to the sub-density map specifically includes the following steps:

首先,根据卷积神经网络模型中池化层的数量,计算子密度图位置索引。First, the sub-density map position index is calculated according to the number of pooling layers in the convolutional neural network model.

其中,计算待检测子密度图位置索引,首先利用第二公式提取修正因子,再利用第三公式提取该待检测子密度图的位置索引;Wherein, calculating the position index of the sub-density map to be detected, firstly, the second formula is used to extract the correction factor, and then the third formula is used to extract the position index of the sub-density map to be detected;

其中,所述第二公式为:Wherein, the second formula is:

Figure BDA0002380858830000061
Figure BDA0002380858830000061

f为修正因子,N为所述卷积神经网络中池化层的个数。f is a correction factor, and N is the number of pooling layers in the convolutional neural network.

所述第三公式为:The third formula is:

Index_m(i,j)=f*Index(i,j) Index_m (i,j) =f*Index (i,j)

Index(i,j)为第i个待检测图像第j个子图的索引,Index_m(i,j)为第i个待检测图像第j个子密度图的索引。Index (i,j) is the index of the jth sub-map of the i-th image to be detected, and Index_m (i,j) is the index of the j-th sub-density map of the i-th image to be detected.

然后,根据所述子密度图位置索引将输出的子密度图融合,得到穗密度图。Then, the output sub-density maps are fused according to the position index of the sub-density map to obtain the ear density map.

最后,根据所述穗密度图确定冬小麦穗密度。Finally, winter wheat ear density was determined from the ear density map.

本发明实施例提供的冬小麦穗密度检测方法,利用人工智能技术进行检测,自动化程度高,能够有效减少穗密度估算的人工干预,降低应用成本和复杂程度,有效提高冬小麦穗密度估算的准确性和实时性。The method for detecting ear density of winter wheat provided by the embodiment of the present invention utilizes artificial intelligence technology for detection, has a high degree of automation, can effectively reduce manual intervention in ear density estimation, reduces application cost and complexity, and effectively improves the accuracy and accuracy of ear density estimation for winter wheat. real-time.

基于上述任一实施例,进一步地,所述卷积神经网络模型的训练过程包括如下步骤:Based on any of the above embodiments, further, the training process of the convolutional neural network model includes the following steps:

获取冬小麦开花期后的样本冠层图像;Obtain the sample canopy image after the flowering period of winter wheat;

采用点标记记录麦穗的位置信息;Use point markers to record the position information of wheat ears;

根据麦穗的位置信息,生成样本的穗密度图;According to the position information of the wheat ears, the ear density map of the sample is generated;

采用滑动窗口将样本冠层图像及其对应的穗密度图划分为若干个样本子图及对应的子密度图;A sliding window is used to divide the sample canopy image and its corresponding ear density map into several sample sub-maps and corresponding sub-density maps;

利用所述若干个样本子图及对应的子密度图对卷积神经网络进行训练,得到所述卷积神经网络模型。The convolutional neural network is trained by using the several sample sub-maps and the corresponding sub-density maps to obtain the convolutional neural network model.

具体来说,首先获取大田环境采集的冬小麦开花期后的冠层图像作为样本。Specifically, the canopy images of winter wheat after the flowering stage collected in the field environment were firstly obtained as samples.

获取样本冠层图像后,还可以进行预处理,所述预处理为调整样本冠层图像的尺寸,例如,调整到2500×2500×3像素。After the sample canopy image is acquired, preprocessing can also be performed, and the preprocessing is to adjust the size of the sample canopy image, for example, to 2500×2500×3 pixels.

然后,采用点标记记录麦穗的位置信息。Then, the position information of the wheat ears is recorded using dot marks.

在具体应用中,优选地,所述麦穗的位置信息,包括:麦穗中心点在图像中的坐标。In a specific application, preferably, the position information of the wheat ear includes: the coordinates of the center point of the wheat ear in the image.

然后,根据麦穗的位置信息,生成样本的穗密度图。Then, according to the position information of the wheat ears, the ear density map of the sample is generated.

其中,所述样本的穗密度图采用几何自适应方法生成。Wherein, the ear density map of the sample is generated by a geometric adaptive method.

然后,采用滑动窗口将样本冠层图像及其对应的穗密度图划分为若干个样本子图及对应的子密度图。Then, a sliding window is used to divide the sample canopy image and its corresponding ear density map into several sample sub-maps and corresponding sub-density maps.

可采用600×600像素大小,300像素步长的滑动窗口样本图像及其对应的穗密度图划分为子图及对应的子密度图。A sliding window sample image with a size of 600×600 pixels and a step size of 300 pixels and its corresponding spike density map can be divided into sub-images and corresponding sub-density maps.

最后,利用所述若干个样本子图及对应的子密度图对卷积神经网络进行训练,得到所述卷积神经网络模型。Finally, the convolutional neural network is trained by using the several sample subgraphs and the corresponding sub-density graphs to obtain the convolutional neural network model.

在具体应用中,优选地,卷积神经网络结构包括1个输入层、1个特征提取器、1个叠加层和1个输出层。特征提取器中包括并行的4个处理模块,每个处理模块中均包括依次连接的3个处理单元。In a specific application, preferably, the convolutional neural network structure includes 1 input layer, 1 feature extractor, 1 stacking layer and 1 output layer. The feature extractor includes four parallel processing modules, and each processing module includes three processing units connected in sequence.

在具体应用中,优选地,第1处理模块的第1个处理单元包括1个卷积层,1个修正线性单元ReLU层和1个池化层。其中,卷积层中采用了8个11×11的卷积核,池化层采用2×2的最大池化函数;第2个处理单元包括3个卷积层,3个修正线性单元ReLU层和1个池化层。其中,卷积层中均采用9×9的卷积核,数量分别为16,32和64,池化层位于第一个修正线性单元ReLU层之后,采用2×2的最大池化函数;第3个处理单元包括3个卷积层。其中,卷积层中均采用1×1的卷积核,数量分别为32,16和8。In a specific application, preferably, the first processing unit of the first processing module includes a convolution layer, a modified linear unit ReLU layer and a pooling layer. Among them, 8 11×11 convolution kernels are used in the convolutional layer, and 2×2 maximum pooling function is used in the pooling layer; the second processing unit includes 3 convolutional layers and 3 modified linear unit ReLU layers and 1 pooling layer. Among them, 9 × 9 convolution kernels are used in the convolution layer, the number is 16, 32 and 64 respectively, the pooling layer is located after the first modified linear unit ReLU layer, and the maximum pooling function of 2 × 2 is used; The 3 processing units include 3 convolutional layers. Among them, 1×1 convolution kernels are used in the convolution layer, and the number is 32, 16 and 8 respectively.

在具体应用中,优选地,第2处理模块的第1个处理单元包括1个卷积层,1个修正线性单元ReLU层和1个池化层。其中,卷积层中采用了16个9×9的卷积核,池化层采用2×2的最大池化函数;第2个处理单元包括3个卷积层,3个修正线性单元ReLU层和1个池化层。其中,卷积层中均采用7×7的卷积核,数量分别为32,64和128,池化层位于第一个修正线性单元ReLU层之后,采用2×2的最大池化函数;第3个处理单元包括3个卷积层。其中,卷积层中均采用1×1的卷积核,数量分别为64,32和16。In a specific application, preferably, the first processing unit of the second processing module includes a convolution layer, a modified linear unit ReLU layer and a pooling layer. Among them, 16 convolution kernels of 9 × 9 are used in the convolution layer, and the maximum pooling function of 2 × 2 is used in the pooling layer; the second processing unit includes 3 convolution layers and 3 modified linear units ReLU layers and 1 pooling layer. Among them, 7 × 7 convolution kernels are used in the convolution layer, the number is 32, 64 and 128 respectively, the pooling layer is located after the first modified linear unit ReLU layer, and the maximum pooling function of 2 × 2 is used; The 3 processing units include 3 convolutional layers. Among them, 1×1 convolution kernels are used in the convolution layer, and the number is 64, 32 and 16 respectively.

在具体应用中,优选地,第3处理模块的第1个处理单元包括1个卷积层,1个修正线性单元ReLU层和1个池化层。其中,卷积层中采用了32个7×7的卷积核,池化层采用2×2的最大池化函数;第2个处理单元包括3个卷积层,3个修正线性单元ReLU层和1个池化层。其中,卷积层中均采用5×5的卷积核,数量分别为64,128和256,池化层位于第一个修正线性单元ReLU层之后,采用2×2的最大池化函数;第3个处理单元包括3个卷积层。其中,卷积层中均采用1×1的卷积核,数量分别为128,64和32。In a specific application, preferably, the first processing unit of the third processing module includes a convolution layer, a modified linear unit ReLU layer and a pooling layer. Among them, 32 7×7 convolution kernels are used in the convolutional layer, and 2×2 maximum pooling function is used in the pooling layer; the second processing unit includes 3 convolutional layers and 3 modified linear unit ReLU layers and 1 pooling layer. Among them, 5 × 5 convolution kernels are used in the convolution layer, the number is 64, 128 and 256 respectively, the pooling layer is located after the first modified linear unit ReLU layer, and the maximum pooling function of 2 × 2 is used; The 3 processing units include 3 convolutional layers. Among them, 1×1 convolution kernels are used in the convolution layer, and the number is 128, 64 and 32 respectively.

在具体应用中,优选地,第4处理模块的第1个处理单元包括1个卷积层,1个修正线性单元ReLU层和1个池化层。其中,卷积层中采用了64个5×5的卷积核,池化层采用2×2的最大池化函数;第2个处理单元包括3个卷积层,3个修正线性单元ReLU层和1个池化层。其中,卷积层中均采用3×3的卷积核,数量分别为128,256和512,池化层位于第一个修正线性单元ReLU层之后,采用2×2的最大池化函数;第3个处理单元包括3个卷积层。其中,卷积层中均采用1×1的卷积核,数量分别为256,128和64。In a specific application, preferably, the first processing unit of the fourth processing module includes a convolution layer, a modified linear unit ReLU layer and a pooling layer. Among them, 64 5×5 convolution kernels are used in the convolution layer, and 2×2 maximum pooling function is used in the pooling layer; the second processing unit includes 3 convolution layers and 3 modified linear units ReLU layers and 1 pooling layer. Among them, 3 × 3 convolution kernels are used in the convolution layer, the number is 128, 256 and 512 respectively, the pooling layer is located after the first modified linear unit ReLU layer, and the maximum pooling function of 2 × 2 is used; The 3 processing units include 3 convolutional layers. Among them, 1×1 convolution kernels are used in the convolution layer, and the number is 256, 128 and 64 respectively.

在具体应用中,优选地,叠加层将4个处理模块结果的特征图叠加;输出层包括1个卷积层,采用1个1×1的卷积核将叠加层输出的特征图融合,从而输出穗密度图。In a specific application, preferably, the overlay layer superimposes the feature maps of the results of the four processing modules; the output layer includes a convolution layer, and a 1×1 convolution kernel is used to fuse the feature maps output by the overlay layer, thereby Output spike density map.

本发明实施例提供的冬小麦穗密度检测方法,通过将大田环境采集的冬小麦开花期后的冠层图像进行预处理,将预处理后的图像分为样本集和待检测集,并采用点标记记录麦穗的位置信息;根据麦穗位置信息,生成样本集图像的穗密度图;采用滑动窗口,将冬小麦冠层图像及其对应的穗密度图划分为子图及对应的子密度图,将待检测集图像划分为子图,记录待检测集子图的位置索引;将样本集子图及对应的子密度图数据作为模型的输入,构建用于估算穗密度的卷积神经网络模型,并采用自适应性矩估计算法进行模型训练和验证;采用待检测集子图进行测试,得到待检测集子密度图;根据卷积神经网络模型中池化层的数量,计算待检测集子密度图位置索引;根据待检测集子密度图位置索引将生成的待检测集子密度图融合,得到待检测集图像穗密度图,进一步得到对应的穗密度。能够有效减少穗密度估算的人工干预,降低应用成本和复杂程度,有效提高冬小麦穗密度估算的准确性和实时性。本发明与图像处理、深度学习等计数结合的基础上,会在冬小麦穗密度估算方面有很大的贡献。In the method for detecting ear density of winter wheat provided by the embodiment of the present invention, the canopy images collected in the field environment after the flowering period of winter wheat are preprocessed, the preprocessed images are divided into sample sets and to-be-detected sets, and point marks are used to record The position information of wheat ears; according to the position information of wheat ears, the ear density map of the sample set image is generated; using a sliding window, the winter wheat canopy image and its corresponding ear density map are divided into sub-maps and corresponding sub-density maps, and the The detection set image is divided into sub-images, and the position index of the sub-images of the set to be detected is recorded; the sample set sub-image and the corresponding sub-density map data are used as the input of the model, and the convolutional neural network model for estimating the ear density is constructed. The adaptive moment estimation algorithm is used for model training and verification; the sub-graph of the set to be tested is used for testing, and the sub-density map of the set to be detected is obtained; according to the number of pooling layers in the convolutional neural network model, the position of the sub-density map of the to-be-detected set is calculated index; according to the position index of the sub-density map of the set to be detected, the generated sub-density map of the set to be detected is fused to obtain the image ear density map of the to-be-detected set, and the corresponding ear density is further obtained. It can effectively reduce the manual intervention of ear density estimation, reduce the application cost and complexity, and effectively improve the accuracy and real-time performance of winter wheat ear density estimation. On the basis of the combination of the present invention with image processing, deep learning and other counting, it will make a great contribution to the estimation of the ear density of winter wheat.

基于上述任一实施例,图3为本发明实施例提供的冬小麦穗密度检测装置示意图,如图3所示,本发明实施例提供一种冬小麦穗密度检测装置,包括获取模块301、输出模块302和检测模块303,其中:Based on any of the above embodiments, FIG. 3 is a schematic diagram of an apparatus for detecting ear density of winter wheat provided by an embodiment of the present invention. As shown in FIG. 3 , an embodiment of the present invention provides an apparatus for detecting ear density of winter wheat, including an acquisition module 301 and an output module 302 and detection module 303, wherein:

获取模块301用于获取冬小麦开花期后的待检测冠层图像,并将所述待检测冠层图像划分成若干个待检测子图;输出模块302用于将所述若干个待检测子图输入至卷积神经网络模型,输出子密度图;检测模块303用于根据所述子密度图确定冬小麦穗密度;其中,所述卷积神经网络模型是基于样本冠层图像以及预先确定的样本冠层图像对应的穗密度图进行训练后得到。The acquisition module 301 is used to acquire the to-be-detected canopy image after the flowering period of winter wheat, and to divide the to-be-detected canopy image into several sub-images to be detected; the output module 302 is used to input the several sub-images to be detected to the convolutional neural network model, and output the sub-density map; the detection module 303 is used to determine the winter wheat ear density according to the sub-density map; wherein, the convolutional neural network model is based on the sample canopy image and the predetermined sample canopy The spike density map corresponding to the image is obtained after training.

本发明实施例提供一种冬小麦穗密度检测装置,用于执行上述任一实施例中所述的方法,通过本实施例提供的装置执行上述某一实施例中所述的方法的具体步骤与上述相应实施例相同,此处不再赘述。An embodiment of the present invention provides an apparatus for detecting ear density of winter wheat, which is used to execute the method described in any of the foregoing embodiments. The corresponding embodiments are the same, and are not repeated here.

本发明实施例提供的冬小麦穗密度检测装置,利用人工智能技术进行检测,自动化程度高,能够有效减少穗密度估算的人工干预,降低应用成本和复杂程度,有效提高冬小麦穗密度估算的准确性和实时性。The winter wheat ear density detection device provided by the embodiment of the present invention uses artificial intelligence technology for detection, has a high degree of automation, can effectively reduce manual intervention in ear density estimation, reduce application costs and complexity, and effectively improve the accuracy and efficiency of winter wheat ear density estimation. real-time.

图4为本发明实施例提供的电子设备的结构示意图,如图4所示,该电子设备包括:处理器(processor)401、通信接口(Communications Interface)402、存储器(memory)403和通信总线404,其中,处理器401,通信接口402,存储器403通过通信总线404完成相互间的通信。处理器401和存储器402通过总线403完成相互间的通信。处理器401可以调用存储器403中的逻辑指令,以执行如下方法:FIG. 4 is a schematic structural diagram of an electronic device provided by an embodiment of the present invention. As shown in FIG. 4 , the electronic device includes: a processor (processor) 401, a communications interface (Communications Interface) 402, a memory (memory) 403, and a communication bus 404 , wherein, the processor 401 , the communication interface 402 , and the memory 403 complete the communication with each other through the communication bus 404 . The processor 401 and the memory 402 communicate with each other through the bus 403 . The processor 401 may invoke logic instructions in the memory 403 to perform the following methods:

获取冬小麦开花期后的待检测冠层图像,并将所述待检测冠层图像划分成若干个待检测子图;Obtain the canopy image to be detected after the flowering period of winter wheat, and divide the canopy image to be detected into several sub-images to be detected;

将所述若干个待检测子图输入至卷积神经网络模型,输出子密度图;Inputting the several sub-graphs to be detected into a convolutional neural network model, and outputting a sub-density graph;

根据所述子密度图确定冬小麦穗密度;Determine winter wheat ear density according to the sub-density map;

其中,所述卷积神经网络模型是基于样本冠层图像以及预先确定的样本冠层图像对应的穗密度图进行训练后得到。The convolutional neural network model is obtained after training based on the sample canopy image and the predetermined spike density map corresponding to the sample canopy image.

此外,上述的存储器中的逻辑指令可以通过软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。In addition, the above-mentioned logic instructions in the memory can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on this understanding, the technical solution of the present invention can be embodied in the form of a software product in essence, or the part that contributes to the prior art or the part of the technical solution. The computer software product is stored in a storage medium, including Several instructions are used to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments 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), magnetic disk or optical disk and other media that can store program codes .

进一步地,本发明实施例提供一种计算机程序产品,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,计算机能够执行上述各方法实施例中的步骤,例如包括:Further, an embodiment of the present invention provides a computer program product, the computer program product includes a computer program stored on a non-transitory computer-readable storage medium, the computer program includes program instructions, and when the program instructions are executed by a computer When executed, the computer can execute the steps in the above method embodiments, for example, including:

获取冬小麦开花期后的待检测冠层图像,并将所述待检测冠层图像划分成若干个待检测子图;Obtain the canopy image to be detected after the flowering period of winter wheat, and divide the canopy image to be detected into several sub-images to be detected;

将所述若干个待检测子图输入至卷积神经网络模型,输出子密度图;Inputting the several sub-graphs to be detected into a convolutional neural network model, and outputting a sub-density graph;

根据所述子密度图确定冬小麦穗密度;Determine winter wheat ear density according to the sub-density map;

其中,所述卷积神经网络模型是基于样本冠层图像以及预先确定的样本冠层图像对应的穗密度图进行训练后得到。The convolutional neural network model is obtained after training based on the sample canopy image and the predetermined spike density map corresponding to the sample canopy image.

进一步地,本发明实施例提供一种非暂态计算机可读存储介质,其上存储有计算机程序,当所述计算机程序被处理器执行时,实现上述各方法实施例中的步骤,例如包括:Further, an embodiment of the present invention provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps in the above method embodiments are implemented, for example, including:

获取冬小麦开花期后的待检测冠层图像,并将所述待检测冠层图像划分成若干个待检测子图;Obtain the canopy image to be detected after the flowering period of winter wheat, and divide the canopy image to be detected into several sub-images to be detected;

将所述若干个待检测子图输入至卷积神经网络模型,输出子密度图;Inputting the several sub-graphs to be detected into a convolutional neural network model, and outputting a sub-density graph;

根据所述子密度图确定冬小麦穗密度;Determine winter wheat ear density according to the sub-density map;

其中,所述卷积神经网络模型是基于样本冠层图像以及预先确定的样本冠层图像对应的穗密度图进行训练后得到。The convolutional neural network model is obtained after training based on the sample canopy image and the predetermined spike density map corresponding to the sample canopy image.

以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性的劳动的情况下,即可以理解并实施。The device embodiments described above are only illustrative, wherein 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, that is, they may be located in One place, or it can be distributed over multiple network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution in this embodiment. Those of ordinary skill in the art can understand and implement it without creative effort.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到各实施方式可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件。基于这样的理解,上述技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行各个实施例或者实施例的某些部分所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a necessary general hardware platform, and certainly can also be implemented by hardware. Based on this understanding, the above-mentioned technical solutions can be embodied in the form of software products in essence or the parts that make contributions to the prior art, and the computer software products can be stored in computer-readable storage media, such as ROM/RAM, magnetic A disc, an optical disc, etc., includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform the methods described in various embodiments or some parts of the embodiments.

最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, but not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that it can still be The technical solutions described in the foregoing embodiments are modified, or some technical features thereof are equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1.一种冬小麦穗密度检测方法,其特征在于,包括:1. a winter wheat ear density detection method, is characterized in that, comprises: 获取冬小麦开花期后的待检测冠层图像,并将所述待检测冠层图像划分成若干个待检测子图;Obtain the canopy image to be detected after the flowering period of winter wheat, and divide the canopy image to be detected into several sub-images to be detected; 将所述若干个待检测子图输入至卷积神经网络模型,输出子密度图;Inputting the several sub-graphs to be detected into a convolutional neural network model, and outputting a sub-density graph; 根据所述子密度图确定冬小麦穗密度;Determine winter wheat ear density according to the sub-density map; 其中,所述卷积神经网络模型是基于样本冠层图像以及预先确定的样本冠层图像对应的穗密度图进行训练后得到。The convolutional neural network model is obtained after training based on the sample canopy image and the predetermined spike density map corresponding to the sample canopy image. 2.根据权利要求1所述的冬小麦穗密度检测方法,其特征在于,所述根据所述子密度图确定冬小麦穗密度,具体包括:2. winter wheat ear density detection method according to claim 1, is characterized in that, described according to described sub-density map to determine winter wheat ear density, specifically comprises: 根据所述卷积神经网络模型中池化层的数量,计算子密度图位置索引;Calculate the sub-density map position index according to the number of pooling layers in the convolutional neural network model; 根据所述子密度图位置索引将输出的子密度图融合,得到穗密度图;According to the position index of the sub-density map, the output sub-density map is fused to obtain the ear density map; 根据所述穗密度图确定冬小麦穗密度。The winter wheat ear density was determined from the ear density map. 3.根据权利要求1所述的冬小麦穗密度检测方法,其特征在于,所述卷积神经网络模型的训练过程包括如下步骤:3. winter wheat ear density detection method according to claim 1, is characterized in that, the training process of described convolutional neural network model comprises the steps: 获取冬小麦开花期后的样本冠层图像;Obtain the sample canopy image after the flowering period of winter wheat; 采用点标记记录麦穗的位置信息;Use point markers to record the position information of wheat ears; 根据麦穗的位置信息,生成样本的穗密度图;According to the position information of the wheat ears, the ear density map of the sample is generated; 采用滑动窗口将样本冠层图像及其对应的穗密度图划分为若干个样本子图及对应的子密度图;A sliding window is used to divide the sample canopy image and its corresponding ear density map into several sample sub-maps and corresponding sub-density maps; 利用所述若干个样本子图及对应的子密度图对卷积神经网络进行训练,得到所述卷积神经网络模型。The convolutional neural network is trained by using the several sample sub-maps and the corresponding sub-density maps to obtain the convolutional neural network model. 4.根据权利要求3所述的冬小麦穗密度检测方法,其特征在于,所述麦穗的位置信息为麦穗中心点在图像中的坐标。4 . The method for detecting ear density of winter wheat according to claim 3 , wherein the position information of the wheat ear is the coordinates of the center point of the wheat ear in the image. 5 . 5.根据权利要求3所述的冬小麦穗密度检测方法,其特征在于,所述根据麦穗的位置信息,生成样本的穗密度图,具体包括:5. winter wheat ear density detection method according to claim 3, is characterized in that, described according to the position information of wheat ear, generate the ear density map of sample, specifically comprises: 根据麦穗的位置信息,采用几何自适应方法生成样本的穗密度图。According to the position information of wheat ears, the geometric adaptive method was used to generate the ear density map of the samples. 6.根据权利要求3所述的冬小麦穗密度检测方法,其特征在于,所述利用所述若干个样本子图及对应的子密度图对卷积神经网络进行训练,得到所述卷积神经网络模型,具体包括:6. winter wheat ear density detection method according to claim 3, is characterized in that, described utilizes described several sample sub-graphs and corresponding sub-density graphs to carry out training to convolutional neural network, obtain described convolutional neural network models, including: 将所述若干个样本子图及对应的子密度图作为卷积神经网络模型的输入层;Using the several sample submaps and the corresponding subdensity maps as the input layer of the convolutional neural network model; 构建卷积神经网络模型的特征提取器;A feature extractor for building a convolutional neural network model; 以及,依次连接所述输入层、所述特征提取器、用于将所述特征提取器的输出结果融合的叠加层和用于融合叠加层中多个通道的输出层,完成卷积神经网络模型的建立。And, sequentially connecting the input layer, the feature extractor, the overlay layer for fusing the output results of the feature extractor, and the output layer for fusing multiple channels in the overlay layer to complete the convolutional neural network model establishment. 7.根据权利要求6所述的冬小麦穗密度检测方法,其特征在于,所述特征提取器中包括并行的四个处理模块,每个处理模块中均包括依次连接的三个处理单元。7 . The method for detecting ear density of winter wheat according to claim 6 , wherein the feature extractor comprises four parallel processing modules, and each processing module comprises three processing units connected in sequence. 8 . 8.根据权利要求7所述的冬小麦穗密度检测方法,其特征在于,每一处理模块的第一个处理单元中均包括依次连接的卷积层、修正线性单元ReLU层和池化层;第二个处理单元中均包含不少于3个依次连接的卷积层和修正线性单元ReLU层,且仅第一个修正线性单元ReLU层后连接一个池化层,第三个处理单元中均包含不少于3个依次连接的卷积层和修正线性单元ReLU层;8. winter wheat ear density detection method according to claim 7 is characterized in that, in the first processing unit of each processing module, all comprise successively connected convolution layer, modified linear unit ReLU layer and pooling layer; Both processing units contain no less than 3 convolutional layers and modified linear unit ReLU layers connected in sequence, and only the first modified linear unit ReLU layer is connected to a pooling layer, and the third processing unit contains No less than 3 consecutively connected convolutional layers and modified linear unit ReLU layers; 其中,每个处理单元中的各卷积层中的卷积核的尺寸保持不变,第二个处理单元中的各卷积层中的卷积核的数量以2为乘数依次递增,第三个处理单元中的各卷积层中的卷积核的数量以0.5为乘数依次递减,第二个处理单元中的卷积层数量与第三个处理单元中的卷积层数量相等,第一个处理单元中的卷积层中的卷积核的尺寸大于第二个处理单元中的各卷积层中的卷积核的尺寸,第二个处理单元中的卷积层中的卷积核的尺寸大于第三个处理单元中的各卷积层中的卷积核的尺寸。Among them, the size of the convolution kernels in each convolutional layer in each processing unit remains unchanged, and the number of convolution kernels in each convolutional layer in the second processing unit is incremented by a multiplier of 2. The number of convolution kernels in each convolutional layer in the three processing units is successively decreased by a multiplier of 0.5, and the number of convolutional layers in the second processing unit is equal to the number of convolutional layers in the third processing unit, The size of the convolution kernels in the convolutional layers in the first processing unit is larger than the size of the convolutional kernels in each convolutional layer in the second processing unit, and the volume in the convolutional layers in the second processing unit The size of the accumulation kernel is larger than the size of the convolution kernels in each convolutional layer in the third processing unit. 9.根据权利要求8所述的冬小麦穗密度检测方法,其特征在于,每一处理模块的第一个处理单元中的卷积层中的卷积核的尺寸依次递减。9 . The method for detecting ear density of winter wheat according to claim 8 , wherein the size of the convolution kernel in the convolution layer in the first processing unit of each processing module decreases sequentially. 10 . 10.一种冬小麦穗密度检测装置,其特征在于,包括:10. a winter wheat ear density detection device, is characterized in that, comprises: 获取模块,用于获取冬小麦开花期后的待检测冠层图像,并将所述待检测冠层图像划分成若干个待检测子图;an acquisition module, configured to acquire the canopy image to be detected after the flowering period of winter wheat, and to divide the canopy image to be detected into several sub-images to be detected; 输出模块,用于将所述若干个待检测子图输入至卷积神经网络模型,输出子密度图;an output module for inputting the several sub-graphs to be detected into a convolutional neural network model, and outputting a sub-density graph; 检测模块,用于根据所述子密度图确定冬小麦穗密度;a detection module for determining the winter wheat ear density according to the sub-density map; 其中,所述卷积神经网络模型是基于样本冠层图像以及预先确定的样本冠层图像对应的穗密度图进行训练后得到。The convolutional neural network model is obtained after training based on the sample canopy image and the predetermined spike density map corresponding to the sample canopy image.
CN202010082618.2A 2020-02-07 2020-02-07 Method and device for detecting ear density of winter wheat Active CN111369494B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010082618.2A CN111369494B (en) 2020-02-07 2020-02-07 Method and device for detecting ear density of winter wheat

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010082618.2A CN111369494B (en) 2020-02-07 2020-02-07 Method and device for detecting ear density of winter wheat

Publications (2)

Publication Number Publication Date
CN111369494A true CN111369494A (en) 2020-07-03
CN111369494B CN111369494B (en) 2023-05-02

Family

ID=71211420

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010082618.2A Active CN111369494B (en) 2020-02-07 2020-02-07 Method and device for detecting ear density of winter wheat

Country Status (1)

Country Link
CN (1) CN111369494B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112017986A (en) * 2020-10-21 2020-12-01 季华实验室 Semiconductor product defect detection method and device, electronic equipment and storage medium
CN112115988A (en) * 2020-09-03 2020-12-22 中国农业大学 A kind of wheat ear counting method, device and self-propelled trolley

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105842164A (en) * 2016-05-06 2016-08-10 北京农业信息技术研究中心 Wheat spike number measuring device and use method thereof
WO2018234733A1 (en) * 2017-06-19 2018-12-27 Earlham Institute Data processing of images of a crop
CN109145848A (en) * 2018-08-30 2019-01-04 西京学院 A kind of wheat head method of counting
CN109740721A (en) * 2018-12-19 2019-05-10 中国农业大学 Method and device for counting wheat ears

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105842164A (en) * 2016-05-06 2016-08-10 北京农业信息技术研究中心 Wheat spike number measuring device and use method thereof
WO2018234733A1 (en) * 2017-06-19 2018-12-27 Earlham Institute Data processing of images of a crop
CN109145848A (en) * 2018-08-30 2019-01-04 西京学院 A kind of wheat head method of counting
CN109740721A (en) * 2018-12-19 2019-05-10 中国农业大学 Method and device for counting wheat ears

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
DAOYONG WANG ET.AL: "Combined Use of FCN and Harris Corner Detection for Counting Wheat Ears in Field Conditions" *
JUNCHENG MA ET.AL: "Segmenting ears of winter wheat at flowering stage using digital images and deep learning" *
张领先等: "基于卷积神经网络的冬小麦麦穗检测计数系统" *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112115988A (en) * 2020-09-03 2020-12-22 中国农业大学 A kind of wheat ear counting method, device and self-propelled trolley
CN112115988B (en) * 2020-09-03 2024-02-02 中国农业大学 Wheat ear counting method and device and self-walking trolley
CN112017986A (en) * 2020-10-21 2020-12-01 季华实验室 Semiconductor product defect detection method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN111369494B (en) 2023-05-02

Similar Documents

Publication Publication Date Title
CN109800736B (en) A Road Extraction Method Based on Remote Sensing Image and Deep Learning
CN111640125B (en) Aerial photography graph building detection and segmentation method and device based on Mask R-CNN
CN107808143B (en) Computer Vision-Based Dynamic Gesture Recognition Method
CN110298387A (en) Incorporate the deep neural network object detection method of Pixel-level attention mechanism
CN110766002B (en) Ship name character region detection method based on deep learning
CN110008853B (en) Pedestrian detection network and model training method, detection method, medium, equipment
CN107092926A (en) Service robot object recognition algorithm based on deep learning
CN107292875A (en) A kind of conspicuousness detection method based on global Local Feature Fusion
CN105243154B (en) Remote sensing image retrieval method based on notable point feature and sparse own coding and system
CN114092697B (en) Building facade semantic segmentation method with attention fused with global and local depth features
CN113177456B (en) Remote sensing target detection method based on single-stage full convolution network and multi-feature fusion
CN109284779A (en) Object detection method based on deep full convolution network
CN111353580B (en) Training method, electronic equipment and storage medium for target detection network
CN110047081A (en) Example dividing method, device, equipment and the medium of chest x-ray image
CN102903102A (en) Non-local-based triple Markov random field synthetic aperture radar (SAR) image segmentation method
CN113487610B (en) Herpes image recognition method and device, computer equipment and storage medium
CN111723814A (en) Weakly supervised image semantic segmentation method, system and device based on cross-image association
CN110827304A (en) A TCM tongue image localization method and system based on deep convolutional network and level set method
CN114519881A (en) Face pose estimation method and device, electronic equipment and storage medium
CN110930384A (en) Crowd counting method, device, device and medium based on density information
CN106779054A (en) A kind of PM2.5 methods of estimation based on Misty Image
CN112634171B (en) Image defogging method and storage medium based on Bayesian convolutional neural network
CN110033012A (en) A kind of production method for tracking target based on channel characteristics weighted convolution neural network
CN115311502A (en) A small sample scene classification method for remote sensing images based on multi-scale dual-stream architecture
CN108734200A (en) Human body target visible detection method and device based on BING features

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant