CN109859167A - The appraisal procedure and device of cucumber downy mildew severity - Google Patents
The appraisal procedure and device of cucumber downy mildew severity Download PDFInfo
- Publication number
- CN109859167A CN109859167A CN201811623559.4A CN201811623559A CN109859167A CN 109859167 A CN109859167 A CN 109859167A CN 201811623559 A CN201811623559 A CN 201811623559A CN 109859167 A CN109859167 A CN 109859167A
- Authority
- CN
- China
- Prior art keywords
- layer
- downy mildew
- cucumber
- severity
- 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.)
- Pending
Links
Landscapes
- Image Analysis (AREA)
Abstract
Description
技术领域technical field
本发明实施例涉及农作物栽培技术领域,尤其涉及一种黄瓜霜霉病严重度的评估方法及装置。The embodiments of the present invention relate to the technical field of crop cultivation, and in particular, to a method and device for evaluating the severity of downy mildew on cucumbers.
背景技术Background technique
温室黄瓜在种植过程中由于各种原因引发病害,进而造成产量降低和品质下降。霜霉病是温室黄瓜病害中较为常见的病害之一。病害的准确诊断分为两个方面,一个是病害种类的识别,一个是病害程度的估算。病害严重程度的准确获取是种植者科学防治病害的前提条件,对于减少农药使用量、提升经济效益具有重要意义。传统的病害程度估算方法主要是靠种植者经验,不仅耗时耗力,而且主观性较高。在相关技术中,通常是利用计算机视觉进行温室黄瓜病害诊断。具体地,采用黄瓜叶片RGB图像,获取病斑的颜色、纹理和形状特征,通过机器学习方法建立诊断模型,从而实现病害的诊断。这些方法只能够对病害的种类进行识别,但是不能评估病害的严重程度。因此,现急需一种有效的黄瓜霜霉病严重度的评估方法。Greenhouse cucumbers cause diseases due to various reasons during the planting process, resulting in reduced yield and quality. Downy mildew is one of the more common diseases in greenhouse cucumbers. The accurate diagnosis of the disease is divided into two aspects, one is the identification of the disease type, and the other is the estimation of the disease degree. Accurate acquisition of disease severity is a prerequisite for growers to scientifically prevent and control diseases, and is of great significance for reducing pesticide usage and improving economic benefits. The traditional disease degree estimation method mainly relies on the experience of growers, which is not only time-consuming and labor-intensive, but also highly subjective. In the related art, computer vision is usually used for disease diagnosis of greenhouse cucumbers. Specifically, the RGB images of cucumber leaves are used to obtain the color, texture and shape features of the disease spots, and a diagnosis model is established through the machine learning method, so as to realize the diagnosis of the disease. These methods can only identify the type of disease, but cannot assess the severity of the disease. Therefore, an effective method for evaluating the severity of downy mildew in cucumber is urgently needed.
发明内容SUMMARY OF THE INVENTION
为了解决上述问题,本发明实施例提供一种克服上述问题或者至少部分地解决上述问题的温室作物情景感知的黄瓜霜霉病严重度的评估方法及装置。In order to solve the above problems, the embodiments of the present invention provide a method and device for assessing the severity of downy mildew of cucumber by situational perception of greenhouse crops, which overcomes the above problems or at least partially solves the above problems.
根据本发明实施例的第一方面,提供了一种黄瓜霜霉病严重度的评估方法,包括:According to a first aspect of the embodiments of the present invention, a method for evaluating the severity of cucumber downy mildew is provided, comprising:
获取自然环境下采集到的待评估的黄瓜叶片图像;Obtaining images of cucumber leaves to be evaluated collected in the natural environment;
采用随机梯度下降法,并基于霜霉病严重度的神经网络估算模型,对黄瓜叶片图像的黄瓜霜霉病严重度进行评估。The stochastic gradient descent method was used to evaluate the downy mildew severity of cucumber leaf images based on the neural network estimation model of downy mildew severity.
本发明实施例提供的方法,通过获取自然环境下采集到的待评估的黄瓜叶片图像,采用随机梯度下降法,并基于霜霉病严重度的神经网络估算模型,对黄瓜叶片图像的黄瓜霜霉病严重度进行评估。由于可自动估算病害程度,从而自动化程度高且识别效率高,能够有效减少人工干预带来的主观影响,降低诊断过程的应用成本和复杂程度,可有效提高病害诊断的准确性和实时性,也为黄瓜病害诊断的相关研究提供了可靠且准确的数据基础。In the method provided by the embodiment of the present invention, by acquiring images of cucumber leaves to be evaluated collected in the natural environment, using the stochastic gradient descent method, and based on the neural network estimation model of downy mildew severity, the images of cucumber leaves of cucumber downy mildew Disease severity was assessed. Since the degree of disease can be automatically estimated, the degree of automation is high and the recognition efficiency is high, which can effectively reduce the subjective impact caused by manual intervention, reduce the application cost and complexity of the diagnosis process, and effectively improve the accuracy and real-time performance of disease diagnosis. It provides a reliable and accurate data basis for the related research on cucumber disease diagnosis.
根据本发明实施例的第二方面,提供了一种黄瓜霜霉病严重度的评估装置,包括:According to a second aspect of the embodiments of the present invention, a device for evaluating the severity of cucumber downy mildew is provided, comprising:
获取模块,用于获取自然环境下采集到的待评估的黄瓜叶片图像;an acquisition module, used to acquire the cucumber leaf images to be evaluated collected in the natural environment;
评估模块,用于采用随机梯度下降法,并基于霜霉病严重度的神经网络估算模型,对黄瓜叶片图像的黄瓜霜霉病严重度进行评估。The evaluation module is used to evaluate the downy mildew severity of cucumber leaf images based on the stochastic gradient descent method and the neural network estimation model of downy mildew severity.
根据本发明实施例的第三方面,提供了一种电子设备,包括:According to a third aspect of the embodiments of the present invention, an electronic device is provided, including:
至少一个处理器;以及at least one processor; and
与处理器通信连接的至少一个存储器,其中:at least one memory communicatively coupled to the processor, wherein:
存储器存储有可被处理器执行的程序指令,处理器调用程序指令能够执行第一方面的各种可能的实现方式中任一种可能的实现方式所提供的黄瓜霜霉病严重度的评估方法。The memory stores program instructions executable by the processor, and the processor invokes the program instructions to execute the method for evaluating the severity of downy mildew on cucumber provided by any one of the possible implementations of the first aspect.
根据本发明的第四方面,提供了一种非暂态计算机可读存储介质,非暂态计算机可读存储介质存储计算机指令,计算机指令使计算机执行第一方面的各种可能的实现方式中任一种可能的实现方式所提供的黄瓜霜霉病严重度的评估方法。According to a fourth aspect of the present invention, a non-transitory computer-readable storage medium is provided, the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions cause a computer to execute any of the various possible implementations of the first aspect. A possible implementation provides a method for assessing the severity of downy mildew in cucumbers.
应当理解的是,以上的一般描述和后文的细节描述是示例性和解释性的,并不能限制本发明实施例。It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory and are not limiting of embodiments of the present invention.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description These are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained according to these drawings without creative efforts.
图1为本发明实施例提供的一种黄瓜霜霉病严重度的评估方法的流程示意图;1 is a schematic flowchart of a method for evaluating the severity of downy mildew on cucumbers provided in the embodiment of the present invention;
图2为本发明实施例提供的一种霜霉病严重度的神经网络估算模型的结构示意图;2 is a schematic structural diagram of a neural network estimation model for the severity of downy mildew provided by an embodiment of the present invention;
图3为本发明实施例提供的一种黄瓜霜霉病严重度的评估装置的结构示意图;3 is a schematic structural diagram of a device for evaluating the severity of downy mildew on cucumber according to an embodiment of the present invention;
图4为本发明实施例提供的一种电子设备的框图。FIG. 4 is a block diagram of an electronic device according to 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 clearly and completely described 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 efforts shall fall within the protection scope of the present invention.
温室黄瓜在种植过程中由于各种原因引发病害,进而造成产量降低和品质下降。霜霉病是温室黄瓜病害中较为常见的病害之一。病害的准确诊断分为两个方面,一个是病害种类的识别,一个是病害程度的估算。病害严重程度的准确获取是种植者科学防治病害的前提条件,对于减少农药使用量、提升经济效益具有重要意义。传统的病害程度估算方法主要是靠种植者经验,不仅耗时耗力,而且主观性较高。在相关技术中,通常是利用计算机视觉进行温室黄瓜病害诊断。具体地,采用黄瓜叶片RGB图像,获取病斑的颜色、纹理和形状特征,通过机器学习方法建立诊断模型,从而实现病害的诊断。这些方法只能够对病害的种类进行识别,但是不能评估病害的严重程度。因此,现急需一种有效的黄瓜霜霉病严重度的评估方法。Greenhouse cucumbers cause diseases due to various reasons during the planting process, resulting in reduced yield and quality. Downy mildew is one of the more common diseases in greenhouse cucumbers. The accurate diagnosis of the disease is divided into two aspects, one is the identification of the disease type, and the other is the estimation of the disease degree. Accurate acquisition of disease severity is a prerequisite for growers to scientifically prevent and control diseases, and is of great significance for reducing pesticide usage and improving economic benefits. The traditional disease degree estimation method mainly relies on the experience of growers, which is not only time-consuming and labor-intensive, but also highly subjective. In the related art, computer vision is usually used for disease diagnosis of greenhouse cucumbers. Specifically, the RGB images of cucumber leaves are used to obtain the color, texture and shape features of the disease spots, and a diagnosis model is established through the machine learning method, so as to realize the diagnosis of the disease. These methods can only identify the type of disease, but cannot assess the severity of the disease. Therefore, an effective method for evaluating the severity of downy mildew in cucumber is urgently needed.
有少量研究针对病害程度使用浅层机器学习方法构建估算模型,虽然有一定的效果,但是需要进行前期的病斑分割和人为设置图像特征,由于自然环境下受到复杂背景和光照的影响,分割的准确率难以保证,导致这些方法在自然环境下难以拓展使用。卷积神经网络是具有自学习能力的无监督学习方法,被认为是目前图像识别最有效的途径之一。卷积神经网络已在农业领域取得了广泛的应用,它在图像识别中的明显优势为我们提供了一种思路。因此,研究基于卷积神经网络的温室黄瓜霜霉病严重度定量估算方法,可以为黄瓜病害精确诊断提供支撑。A small number of studies use shallow machine learning methods to build estimation models for the degree of disease. Although there are certain effects, it is necessary to perform early disease spot segmentation and artificially set image features. Due to the influence of complex background and illumination in the natural environment, the segmentation is difficult. The accuracy is difficult to guarantee, which makes it difficult to expand the use of these methods in the natural environment. Convolutional neural network is an unsupervised learning method with self-learning ability, which is considered to be one of the most effective ways of image recognition at present. Convolutional neural networks have been widely used in agriculture, and their obvious advantages in image recognition provide us with an idea. Therefore, research on the quantitative estimation method of downy mildew severity of greenhouse cucumber based on convolutional neural network can provide support for accurate diagnosis of cucumber disease.
基于上述说明,针对目前存在的问题,本发明实施例提供了一种黄瓜霜霉病严重度的评估方法。参见图1,该方法包括:Based on the above description, in view of the existing problems, the embodiment of the present invention provides a method for evaluating the severity of downy mildew of cucumber. Referring to Figure 1, the method includes:
101、获取自然环境下采集到的待评估的黄瓜叶片图像。101. Acquire an image of a cucumber leaf to be evaluated collected in a natural environment.
102、采用随机梯度下降法,并基于霜霉病严重度的神经网络估算模型,对黄瓜叶片图像的黄瓜霜霉病严重度进行评估。102. Using stochastic gradient descent method, and based on the neural network estimation model of downy mildew severity, evaluate the cucumber downy mildew severity of cucumber leaf images.
本发明实施例提供的方法,通过获取自然环境下采集到的待评估的黄瓜叶片图像,采用随机梯度下降法,并基于霜霉病严重度的神经网络估算模型,对黄瓜叶片图像的黄瓜霜霉病严重度进行评估。由于可自动估算病害程度,从而自动化程度高且识别效率高,能够有效减少人工干预带来的主观影响,降低诊断过程的应用成本和复杂程度,可有效提高病害诊断的准确性和实时性,也为黄瓜病害诊断的相关研究提供了可靠且准确的数据基础。In the method provided by the embodiment of the present invention, by acquiring images of cucumber leaves to be evaluated collected in the natural environment, using the stochastic gradient descent method, and based on the neural network estimation model of downy mildew severity, the images of cucumber leaves of cucumber downy mildew Disease severity was assessed. Since the degree of disease can be automatically estimated, the degree of automation is high and the recognition efficiency is high, which can effectively reduce the subjective impact caused by manual intervention, reduce the application cost and complexity of the diagnosis process, and effectively improve the accuracy and real-time performance of disease diagnosis. It provides a reliable and accurate data basis for the related research on cucumber disease diagnosis.
基于上述实施例的内容,作为一种可选实施例,在基于霜霉病严重度的神经网络估算模型,对黄瓜叶片图像的黄瓜霜霉病严重度进行评估之前,还包括:对自然环境下采集到的黄瓜霜霉病叶片的样本图像进行预处理,并基于预处理后的样本图像构建得到原始数据集;基于原始数据集中的样本图像及样本图像的病害程度值,对原始神经网络模型进行训练,得到霜霉病严重度的神经网络估算模型。其中,原始神经网络模型可以为卷积神经网络模型,本发明实施例对此不作具体限定。Based on the content of the above embodiment, as an optional embodiment, before evaluating the cucumber downy mildew severity of the cucumber leaf image based on the neural network estimation model of downy mildew severity, the method further includes: The collected sample images of cucumber downy mildew leaves are preprocessed, and the original data set is constructed based on the preprocessed sample images; based on the sample images in the original data set and the disease degree value of the sample images, the original neural network model is performed After training, the neural network estimation model of downy mildew severity is obtained. The original neural network model may be a convolutional neural network model, which is not specifically limited in this embodiment of the present invention.
基于上述实施例的内容,作为一种可选实施例,关于对自然环境下采集到的黄瓜霜霉病叶片的样本图像进行预处理的方式,本发明实施例对此不作具体限定,包括但不限于:从采集到的样本图像中剔除分辨率低于预设阈值的样本图像;剔除每一样本图像的背景图案,并将每一样本图像调整成预设尺寸大小。Based on the content of the foregoing embodiment, as an optional embodiment, regarding the method of preprocessing the sample images of cucumber downy mildew diseased leaves collected in the natural environment, the embodiment of the present invention does not specifically limit this, including but not limited to Limited to: remove sample images whose resolution is lower than the preset threshold from the collected sample images; remove the background pattern of each sample image, and adjust each sample image to a preset size.
具体地,在获取到温室环境下采集到的样本图像后,可先剔除掉质量较低的图像,如分辨率或者清晰度较低的图像。另外,还可以对样本图像进行归一化处理,也即将样本图像调整为相同的颜色空间,相同的尺寸大小,如128×128像素,本发明实施例对此不作具体限定。需要说明的是,样本标签图像的尺寸越大,则计算成本越高。除此之外,还可以剔除剩下的样本图像的背景图案,以减少图像中无关的信息。Specifically, after acquiring the sample images collected in the greenhouse environment, images with lower quality, such as images with lower resolution or definition, may be removed first. In addition, normalization processing may also be performed on the sample image, that is, the sample image is adjusted to the same color space and the same size, such as 128×128 pixels, which is not specifically limited in this embodiment of the present invention. It should be noted that the larger the size of the sample label image, the higher the computational cost. In addition, the background patterns of the remaining sample images can also be removed to reduce irrelevant information in the images.
基于上述实施例的内容,作为一种可选实施例,在基于原始数据集,对原始神经网络模型进行训练,得到霜霉病严重度的神经网络估算模型之前,还包括:按照预设处理方式,对原始数据集中的样本图像进行处理,以对原始数据集进行扩充,预设处理方式至少包括以下三种方式中的任意一种,以下三种方式分别为色彩抖动、水平翻转及垂直翻转。Based on the content of the foregoing embodiment, as an optional embodiment, before the original neural network model is trained based on the original data set to obtain the neural network estimation model for the severity of downy mildew, the method further includes: according to a preset processing method , to process the sample images in the original data set to expand the original data set, the preset processing method includes at least any one of the following three methods, the following three methods are color jitter, horizontal flip and vertical flip respectively.
具体地,可对样本图像进行色彩抖动、水平和垂直方向的翻转,以90°、180°、270°进行旋转等方式进行数据增强,从而对样本进行扩充。需要说明的是,这里扩充样本图像主要是为了提高后续网络模型的估算效果。在网络模型训练过程中,前面获取到的以及本步骤中扩充得到的样本图像均可以作为训练用的训练集,训练集按照功能可分为两个部分,分别为训练集和测试集。而对数据集进行划分时应当按照合适的比例进行划分,确保每类数据集的数据量相对平衡。Specifically, color dithering, flipping in horizontal and vertical directions can be performed on the sample image, and data enhancement can be performed by rotating at 90°, 180°, and 270°, so as to expand the sample. It should be noted that the main purpose of expanding the sample images here is to improve the estimation effect of the subsequent network model. During the training process of the network model, the sample images obtained before and expanded in this step can be used as the training set for training. The training set can be divided into two parts according to the function, namely the training set and the test set. When dividing the data set, it should be divided according to an appropriate ratio to ensure that the data volume of each type of data set is relatively balanced.
基于上述实施例的内容,作为一种可选实施例,霜霉病严重度的神经网络估算模型包括输入层、5个卷积层、4个池化层、4个批规范化层、2个全连接层及输出层。当然,还可以包括Dropout层,Dropout层可以放在2个全连接层之前,本发明实施例对此不作具体限定。Based on the content of the above embodiment, as an optional embodiment, the neural network estimation model of downy mildew severity includes an input layer, 5 convolutional layers, 4 pooling layers, 4 batch normalization layers, 2 full connection layer and output layer. Certainly, a dropout layer may also be included, and the dropout layer may be placed before the two fully connected layers, which is not specifically limited in this embodiment of the present invention.
基于上述实施例的内容,作为一种可选实施例,输入层与第一个卷积层及第一个批规范化层连接,第一个卷积层及第一个批规范化层与第一个池化层连接,第一个池化层与第二个卷积层及第二个批规范化层连接,第二个卷积层及第二个批规范化层与第二个池化层连接,第二个池化层与第三个卷积层及第三个批规范化层连接,第三个卷积层及第三个批规范化层与第三个池化层连接,第三个池化层与第四个卷积层及第四个批规范化层连接,第四个卷积层及第四个批规范化层与第四个池化层连接,第四个池化层与第五个卷积层连接,第五个卷积层依次与2个全连接层及输出层连接。其中,各层之间的连接关系可参考图2。Based on the content of the above embodiment, as an optional embodiment, the input layer is connected to the first convolutional layer and the first batch normalization layer, and the first convolutional layer and the first batch normalization layer are connected to the first convolutional layer and the first batch normalization layer. The pooling layer is connected. The first pooling layer is connected to the second convolutional layer and the second batch normalization layer. The second convolutional layer and the second batch normalization layer are connected to the second pooling layer. Two pooling layers are connected to the third convolutional layer and the third batch normalization layer, the third convolutional layer and the third batch normalization layer are connected to the third pooling layer, and the third pooling layer is connected to The fourth convolutional layer and the fourth batch normalization layer are connected, the fourth convolutional layer and the fourth batch normalization layer are connected with the fourth pooling layer, and the fourth pooling layer is connected with the fifth convolutional layer The fifth convolutional layer is connected to two fully connected layers and the output layer in turn. For the connection relationship between the layers, reference may be made to FIG. 2 .
具体地,该模型的输入大小为128×128像素,卷积层中卷积核大小均为5×5,卷积层中卷积核个数可以分别为32、64、128、256和512,每经过一次卷积操作,网络会有效的提取图像中的特征,生成相应个数的特征图。池化层采用2×2的卷积核进行平均池化,实现特征图的降采样。经过4个池化层可以大大降低网络结构中的权重参数,减小计算成本。最后一个卷积层之后是2个全连接层,全连接层将所有特征图矢量化,用一维向量表示整个图像的特征。在全连接层的前增加了dropout层,将神经网络单元按照一定的概率暂时从网络中丢弃,从而防止过拟合现象,提高模型识别准确率。最后是一个regressionLayer回归层。Specifically, the input size of the model is 128 × 128 pixels, the size of the convolution kernel in the convolution layer is 5 × 5, and the number of convolution kernels in the convolution layer can be 32, 64, 128, 256 and 512, respectively. After each convolution operation, the network will effectively extract the features in the image and generate the corresponding number of feature maps. The pooling layer uses a 2×2 convolution kernel for average pooling to achieve downsampling of feature maps. After 4 pooling layers, the weight parameters in the network structure can be greatly reduced and the computational cost can be reduced. The last convolutional layer is followed by 2 fully connected layers, which vectorize all feature maps and represent the features of the entire image as 1D vectors. A dropout layer is added before the fully connected layer, and the neural network unit is temporarily discarded from the network according to a certain probability, thereby preventing overfitting and improving the accuracy of model recognition. Finally there is a regressionLayer regression layer.
其中,卷积操作输出特征图的大小可用于如下公式表示:Among them, the size of the output feature map of the convolution operation can be expressed by the following formula:
Wi+1=(Wi-F+2P)/S+1W i+1 =(W i -F+2P)/S+1
在上述公式中,Wi表示输入的图像尺寸,F表示卷积核的大小,P和S分别代表填充像素和步长。对于一个卷积操作来说,其输入输出关系可用如下公式表示:In the above formula, Wi represents the input image size, F represents the size of the convolution kernel, and P and S represent padding pixels and stride, respectively. For a convolution operation, its input-output relationship can be expressed by the following formula:
在上述公式中,l表示层索引,i表示输入特征图索引,k表示输出特征图索引,表示以第l-1层上第i个特征图作为输入。表示第l层上第k个特征图的输出。另外,W表示卷积权重张量,b表示偏置参数,f(·)表示激活函数。In the above formula, l represents the layer index, i represents the input feature map index, k represents the output feature map index, Indicates that the ith feature map on the l-1th layer is used as input. represents the output of the kth feature map on the lth layer. In addition, W represents the convolution weight tensor, b represents the bias parameter, and f( ) represents the activation function.
池化层将接收到的结果进行尺寸减小处理,具体可参考如下公式:The pooling layer reduces the size of the received results. For details, please refer to the following formula:
其中,down(·)为降采样函数,F为降采样滤波器大小,S是降采样步长。where down( ) is the downsampling function, F is the downsampling filter size, and S is the downsampling step size.
基于上述实施例的内容,本发明实施例还提供了一种黄瓜霜霉病严重度的评估装置,该装置用于执行上述方法实施例中提供的黄瓜霜霉病严重度的评估方法。参见图3,该装置包括:获取模块301及评估模块302;其中,Based on the contents of the foregoing embodiments, the embodiments of the present invention further provide a device for evaluating the severity of downy mildew on cucumber, which is used to perform the method for evaluating the severity of downy mildew on cucumber provided in the above method embodiments. Referring to FIG. 3, the apparatus includes: an acquisition module 301 and an evaluation module 302; wherein,
获取模块301,用于获取自然环境下采集到的待评估的黄瓜叶片图像;The acquisition module 301 is used for acquiring the cucumber leaf image to be evaluated collected in the natural environment;
评估模块302,用于采用随机梯度下降法,并基于霜霉病严重度的神经网络估算模型,对黄瓜叶片图像的黄瓜霜霉病严重度进行评估。The evaluation module 302 is configured to use the stochastic gradient descent method and based on the neural network estimation model of downy mildew severity to evaluate the cucumber downy mildew severity of the cucumber leaf image.
基于上述实施例的内容,作为一种可选实施例,该装置还包括:Based on the content of the foregoing embodiment, as an optional embodiment, the apparatus further includes:
预处理模块,用于对自然环境下采集到的黄瓜霜霉病叶片的样本图像进行预处理,并基于预处理后的样本图像构建得到原始数据集;The preprocessing module is used to preprocess the sample images of the cucumber downy mildew leaves collected in the natural environment, and construct the original data set based on the preprocessed sample images;
训练模块,用于基于原始数据集中的样本图像及样本图像的病害程度值,对原始神经网络模型进行训练,得到霜霉病严重度的神经网络估算模型。The training module is used to train the original neural network model based on the sample images in the original data set and the disease degree values of the sample images, and obtain the neural network estimation model of downy mildew severity.
基于上述实施例的内容,作为一种可选实施例,预处理模块,用于从采集到的样本图像中剔除分辨率低于预设阈值的样本图像;剔除每一样本图像的背景图案,并将每一样本图像调整成预设尺寸大小。Based on the content of the foregoing embodiment, as an optional embodiment, the preprocessing module is configured to remove sample images whose resolution is lower than a preset threshold from the collected sample images; remove the background pattern of each sample image, and Resize each sample image to a preset size.
基于上述实施例的内容,作为一种可选实施例,该装置还包括:Based on the content of the foregoing embodiment, as an optional embodiment, the apparatus further includes:
扩充模块,用于按照预设处理方式,对原始数据集中的样本图像进行处理,以对原始数据集进行扩充,预设处理方式至少包括以下三种方式中的任意一种,以下三种方式分别为色彩抖动、水平翻转及垂直翻转。The expansion module is used to process the sample images in the original data set according to the preset processing method to expand the original data set. The preset processing method includes at least any one of the following three methods, and the following three methods are respectively For color dithering, flipping horizontally and flipping vertically.
基于上述实施例的内容,作为一种可选实施例,霜霉病严重度的神经网络估算模型包括输入层、5个卷积层、4个池化层、4个批规范化层、2个全连接层及输出层。Based on the content of the above embodiment, as an optional embodiment, the neural network estimation model of downy mildew severity includes an input layer, 5 convolutional layers, 4 pooling layers, 4 batch normalization layers, 2 full connection layer and output layer.
基于上述实施例的内容,作为一种可选实施例,输入层与第一个卷积层及第一个批规范化层连接,第一个卷积层及第一个批规范化层与第一个池化层连接,第一个池化层与第二个卷积层及第二个批规范化层连接,第二个卷积层及第二个批规范化层与第二个池化层连接,第二个池化层与第三个卷积层及第三个批规范化层连接,第三个卷积层及第三个批规范化层与第三个池化层连接,第三个池化层与第四个卷积层及第四个批规范化层连接,第四个卷积层及第四个批规范化层与第四个池化层连接,第四个池化层与第五个卷积层连接,第五个卷积层依次与2个全连接层及输出层连接。Based on the content of the above embodiment, as an optional embodiment, the input layer is connected to the first convolutional layer and the first batch normalization layer, and the first convolutional layer and the first batch normalization layer are connected to the first convolutional layer and the first batch normalization layer. The pooling layer is connected. The first pooling layer is connected to the second convolutional layer and the second batch normalization layer. The second convolutional layer and the second batch normalization layer are connected to the second pooling layer. Two pooling layers are connected to the third convolutional layer and the third batch normalization layer, the third convolutional layer and the third batch normalization layer are connected to the third pooling layer, and the third pooling layer is connected to The fourth convolutional layer and the fourth batch normalization layer are connected, the fourth convolutional layer and the fourth batch normalization layer are connected with the fourth pooling layer, and the fourth pooling layer is connected with the fifth convolutional layer The fifth convolutional layer is connected to two fully connected layers and the output layer in turn.
本发明实施例提供的装置,通过获取自然环境下采集到的待评估的黄瓜叶片图像,采用随机梯度下降法,并基于霜霉病严重度的神经网络估算模型,对黄瓜叶片图像的黄瓜霜霉病严重度进行评估。由于可自动估算病害程度,从而自动化程度高且识别效率高,能够有效减少人工干预带来的主观影响,降低诊断过程的应用成本和复杂程度,可有效提高病害诊断的准确性和实时性,也为黄瓜病害诊断的相关研究提供了可靠且准确的数据基础。The device provided by the embodiment of the present invention obtains images of cucumber leaves to be evaluated collected in the natural environment, adopts the stochastic gradient descent method, and is based on the neural network estimation model of downy mildew severity. Disease severity was assessed. Since the degree of disease can be automatically estimated, the degree of automation is high and the recognition efficiency is high, which can effectively reduce the subjective impact caused by manual intervention, reduce the application cost and complexity of the diagnosis process, and effectively improve the accuracy and real-time performance of disease diagnosis. It provides a reliable and accurate data basis for the related research on cucumber disease diagnosis.
图4示例了一种电子设备的实体结构示意图,如图4所示,该电子设备可以包括:处理器(processor)410、通信接口(Communications Interface)420、存储器(memory)430和通信总线440,其中,处理器410,通信接口420,存储器430通过通信总线440完成相互间的通信。处理器410可以调用存储器430中的逻辑指令,以执行如下方法:获取自然环境下采集到的待评估的黄瓜叶片图像;采用随机梯度下降法,并基于霜霉病严重度的神经网络估算模型,对黄瓜叶片图像的黄瓜霜霉病严重度进行评估。需要说明的是,实际实施中电子设备的形式可以为PC或者平板电脑等,该PC或者该平板电脑可以采集数据并可具有决策控制功能等,本发明实施例对此不作具体限定。FIG. 4 illustrates a schematic diagram of the physical structure of an electronic device. As shown in FIG. 4 , the electronic device may include: a processor (processor) 410, a communication interface (Communications Interface) 420, a memory (memory) 430, and a communication bus 440, The processor 410 , the communication interface 420 , and the memory 430 communicate with each other through the communication bus 440 . The processor 410 can call the logic instructions in the memory 430 to execute the following methods: obtain the cucumber leaf images to be evaluated collected in the natural environment; adopt the stochastic gradient descent method, and based on the neural network estimation model of downy mildew severity, Cucumber downy mildew severity was assessed for cucumber leaf images. It should be noted that, in actual implementation, the electronic device may be in the form of a PC or a tablet computer. The PC or the tablet computer can collect data and have a decision-making control function, which is not specifically limited in this embodiment of the present invention.
此外,上述的存储器430中的逻辑指令可以通过软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,电子设备,或者网络设备等)执行本发明各个实施例方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。In addition, the above-mentioned logic instructions in the memory 430 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, an electronic device, or a network device, etc.) to execute all or part of the steps of the methods of 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 .
本发明实施例还提供一种非暂态计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现以执行上述各实施例提供的方法,例如包括:获取自然环境下采集到的待评估的黄瓜叶片图像;采用随机梯度下降法,并基于霜霉病严重度的神经网络估算模型,对黄瓜叶片图像的黄瓜霜霉病严重度进行评估。Embodiments of the present invention further provide a non-transitory computer-readable storage medium on which a computer program is stored, and the computer program is implemented when executed by a processor to execute the methods provided by the foregoing embodiments, for example, including: The collected cucumber leaf images to be evaluated; the stochastic gradient descent method is used to evaluate the cucumber downy mildew severity of the cucumber leaf images based on the neural network estimation model of downy mildew severity.
以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性的劳动的情况下,即可以理解并实施。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 (9)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811623559.4A CN109859167A (en) | 2018-12-28 | 2018-12-28 | The appraisal procedure and device of cucumber downy mildew severity |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811623559.4A CN109859167A (en) | 2018-12-28 | 2018-12-28 | The appraisal procedure and device of cucumber downy mildew severity |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109859167A true CN109859167A (en) | 2019-06-07 |
Family
ID=66892910
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811623559.4A Pending CN109859167A (en) | 2018-12-28 | 2018-12-28 | The appraisal procedure and device of cucumber downy mildew severity |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109859167A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112699941A (en) * | 2020-12-31 | 2021-04-23 | 浙江科技学院 | Plant disease severity image classification method and device, computer equipment and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107784305A (en) * | 2017-09-29 | 2018-03-09 | 中国农业科学院农业环境与可持续发展研究所 | Facilities vegetable disease recognition method and device based on convolutional neural networks |
CN108319988A (en) * | 2017-01-18 | 2018-07-24 | 华南理工大学 | A kind of accelerated method of deep neural network for handwritten Kanji recognition |
CN108764039A (en) * | 2018-04-24 | 2018-11-06 | 中国科学院遥感与数字地球研究所 | Building extracting method, medium and the computing device of neural network, remote sensing image |
-
2018
- 2018-12-28 CN CN201811623559.4A patent/CN109859167A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108319988A (en) * | 2017-01-18 | 2018-07-24 | 华南理工大学 | A kind of accelerated method of deep neural network for handwritten Kanji recognition |
CN107784305A (en) * | 2017-09-29 | 2018-03-09 | 中国农业科学院农业环境与可持续发展研究所 | Facilities vegetable disease recognition method and device based on convolutional neural networks |
CN108764039A (en) * | 2018-04-24 | 2018-11-06 | 中国科学院遥感与数字地球研究所 | Building extracting method, medium and the computing device of neural network, remote sensing image |
Non-Patent Citations (4)
Title |
---|
GUAN WANG等: "Automatic Image-Based Plant Disease Severity Estimation Using Deep Learning", 《COMPUTATIONAL INTELLIGENCE AND NEUROSCIENCE》 * |
刘瑾蓉等: "基于卷积神经网络的银杏叶片患病程度识别", 《中国农业科技导报》 * |
叶海建等: "基于Android的自然背景下黄瓜霜霉病定量诊断系统", 《农业机械学报》 * |
尹晔等: "基于迁移学习的甜菜褐斑病识别方法", 《计算机工程与设计》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112699941A (en) * | 2020-12-31 | 2021-04-23 | 浙江科技学院 | Plant disease severity image classification method and device, computer equipment and storage medium |
CN112699941B (en) * | 2020-12-31 | 2023-02-14 | 浙江科技学院 | Plant disease severity image classification method, device, equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109740721B (en) | Method and device for counting wheat ears | |
CN110148120B (en) | Intelligent disease identification method and system based on CNN and transfer learning | |
CN110163813B (en) | Image rain removing method and device, readable storage medium and terminal equipment | |
CN114399480A (en) | Method and device for detecting severity of vegetable leaf disease | |
CN111563431A (en) | Plant leaf disease and insect pest identification method based on improved convolutional neural network | |
CN110197474B (en) | Image processing method and device and training method of neural network model | |
CN107464217B (en) | An image processing method and device | |
CN114155365B (en) | Model training method, image processing method and related device | |
CN110097107A (en) | Alternaria mali roberts disease recognition and classification method based on convolutional neural networks | |
CN109102885B (en) | Automatic cataract grading method based on combination of convolutional neural network and random forest | |
CN110197116A (en) | A kind of Human bodys' response method, apparatus and computer readable storage medium | |
CN112861718A (en) | Lightweight feature fusion crowd counting method and system | |
US11775908B2 (en) | Neural network-based systems and computer-implemented methods for identifying and/or evaluating one or more food items present in a visual input | |
CN110874835B (en) | Crop leaf disease resistance identification method and system, electronic equipment and storage medium | |
CN111540467A (en) | Schizophrenia classification identification method, operation control device and medical equipment | |
CN111161233A (en) | Method and system for detecting defects of punched leather | |
CN113077452A (en) | Apple tree pest and disease detection method based on DNN network and spot detection algorithm | |
CN115761356A (en) | Image recognition method and device, electronic equipment and storage medium | |
CN111950436A (en) | A kind of corn ear phenotype measurement method and system | |
CN108304844A (en) | Agricultural pest recognition methods based on deep learning binaryzation convolutional neural networks | |
CN113378004B (en) | FANet-based farmer work behavior recognition method and FANet-based farmer work behavior recognition device apparatus and medium | |
CN110766053A (en) | Method and device for corn seed production ear screening based on two-way convolutional neural network | |
CN111968087B (en) | A method for detecting plant disease areas | |
CN115035309A (en) | Rice disease identification method and device | |
CN109859167A (en) | The appraisal procedure and device of cucumber downy mildew severity |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190607 |