[go: up one dir, main page]

CN116242813A - Method and system for detecting pesticide residues on fruits and vegetables based on multispectral imaging technology - Google Patents

Method and system for detecting pesticide residues on fruits and vegetables based on multispectral imaging technology Download PDF

Info

Publication number
CN116242813A
CN116242813A CN202310237625.9A CN202310237625A CN116242813A CN 116242813 A CN116242813 A CN 116242813A CN 202310237625 A CN202310237625 A CN 202310237625A CN 116242813 A CN116242813 A CN 116242813A
Authority
CN
China
Prior art keywords
fruits
pesticide
imaging technology
vegetables
residue detection
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.)
Withdrawn
Application number
CN202310237625.9A
Other languages
Chinese (zh)
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.)
Yunnan Agricultural University
Original Assignee
Yunnan Agricultural University
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 Yunnan Agricultural University filed Critical Yunnan Agricultural University
Priority to CN202310237625.9A priority Critical patent/CN116242813A/en
Publication of CN116242813A publication Critical patent/CN116242813A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/62Systems in which the material investigated is excited whereby it emits light or causes a change in wavelength of the incident light
    • G01N21/63Systems in which the material investigated is excited whereby it emits light or causes a change in wavelength of the incident light optically excited
    • G01N21/64Fluorescence; Phosphorescence
    • G01N21/645Specially adapted constructive features of fluorimeters
    • G01N21/6456Spatial resolved fluorescence measurements; Imaging

Landscapes

  • Health & Medical Sciences (AREA)
  • Nuclear Medicine, Radiotherapy & Molecular Imaging (AREA)
  • Physics & Mathematics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Chemical & Material Sciences (AREA)
  • Analytical Chemistry (AREA)
  • Biochemistry (AREA)
  • General Health & Medical Sciences (AREA)
  • General Physics & Mathematics (AREA)
  • Immunology (AREA)
  • Pathology (AREA)
  • Investigating, Analyzing Materials By Fluorescence Or Luminescence (AREA)

Abstract

The invention provides a method and a system for detecting pesticide residues on fruits and vegetables based on a multispectral imaging technology, and relates to the field of intelligent agriculture. A method for detecting pesticide residues on fruits and vegetables based on a multispectral imaging technology comprises the following steps of constructing a multispectral fluorescent image acquisition system: sequentially irradiating a plurality of samples to be tested through an ultraviolet light source, and collecting image data of a channel with the most obvious fluorescence characteristic by using a multi-channel multi-spectrum camera; building a pesticide residue detection model: and (3) after processing the acquired images, constructing a pesticide residue detection model, comparing the pesticide residue detection model to find an optimal model, and deploying the optimal model to a control system to realize detection of the pesticide residues of fruits and vegetables through image recognition. In addition, the invention also provides a system for detecting the pesticide residues of fruits and vegetables based on the multispectral imaging technology. The method can effectively solve the problem that the sample is damaged in pesticide residue detection, reduce the detection cost and improve the pesticide residue detection accuracy.

Description

一种基于多光谱成像技术检测果蔬农药残留方法及系统A method and system for detecting pesticide residues in fruits and vegetables based on multispectral imaging technology

技术领域technical field

本发明涉及智慧农业领域,具体而言,涉及一种基于多光谱成像技术检测果蔬农药残留方法及系统。The invention relates to the field of smart agriculture, in particular to a method and system for detecting pesticide residues in fruits and vegetables based on multispectral imaging technology.

背景技术Background technique

为了维护全民身体健康,提高人们生活品质,食物安全一直人们常常关注的重要一环。目前果蔬农药残留检测方法有三种,第一种是利用农药残留试纸进行检测,耗时长,准确率低,且步骤复杂;第二种是化学试剂检测农药残留,例如色谱法,对样品具有破坏性,且步骤复杂;第三种利用高光谱成像设备检测农药残留,设备成本高,且检测所需的时间长。因此,需要设计一种检测果蔬农药残留方法,有效解决农药残留检测会破坏样品的情况,降低检测成本,并且提高农药残留检测准确率。In order to maintain the health of the whole people and improve people's quality of life, food safety has always been an important part of people's attention. At present, there are three methods for the detection of pesticide residues in fruits and vegetables. The first method is to use pesticide residue test paper for detection, which takes a long time, has low accuracy, and has complicated steps; the second method is to detect pesticide residues with chemical reagents, such as chromatography, which is destructive to samples. , and the steps are complicated; the third method uses hyperspectral imaging equipment to detect pesticide residues, which is expensive and takes a long time to detect. Therefore, it is necessary to design a method for detecting pesticide residues in fruits and vegetables, which can effectively solve the problem that pesticide residue detection will destroy samples, reduce detection costs, and improve the accuracy of pesticide residue detection.

发明内容Contents of the invention

本发明的目的在于提供一种基于多光谱成像技术检测果蔬农药残留方法,其能够有效解决农药残留检测会破坏样品的情况,降低检测成本,并且提高农药残留检测准确率。The purpose of the present invention is to provide a method for detecting pesticide residues in fruits and vegetables based on multispectral imaging technology, which can effectively solve the situation that pesticide residue detection will destroy samples, reduce detection costs, and improve the accuracy of pesticide residue detection.

本发明的另一目的在于提供一种基于多光谱成像技术检测果蔬农药残留系统,其能够有效解决农药残留检测会破坏样品的情况,降低检测成本,并且提高农药残留检测准确率。Another object of the present invention is to provide a system for detecting pesticide residues in fruits and vegetables based on multispectral imaging technology, which can effectively solve the problem that pesticide residue detection will damage samples, reduce detection costs, and improve the accuracy of pesticide residue detection.

本发明的实施例是这样实现的:Embodiments of the present invention are achieved like this:

第一方面,本申请实施例提供一种基于多光谱成像技术检测果蔬农药残留方法,其包括如下步骤,搭建多光谱荧光图像采集系统:将多个被测样品依次通过紫外光源照射,并用多通道多光谱相机采集荧光特性最明显通道的图像数据;搭建农药残留检测模型:对采集图像进行处理后搭建农药残留检测模型,通过上述农药残留检测模型对比找到最优模型,将最优模型部署到控制系统实现通过图像识别检测果蔬农药残留。In the first aspect, the embodiment of the present application provides a method for detecting pesticide residues in fruits and vegetables based on multi-spectral imaging technology, which includes the following steps to build a multi-spectral fluorescence image acquisition system: sequentially irradiate multiple samples to be tested by ultraviolet light sources, and use multi-channel The multi-spectral camera collects the image data of the channel with the most obvious fluorescence characteristics; builds the pesticide residue detection model: builds the pesticide residue detection model after processing the collected images, finds the optimal model through the comparison of the above pesticide residue detection models, and deploys the optimal model to the control panel. The system realizes the detection of pesticide residues in fruits and vegetables through image recognition.

在本发明的一些实施例中,上述多通道多光谱相机为五通道多光谱相机。In some embodiments of the present invention, the above-mentioned multi-channel multi-spectral camera is a five-channel multi-spectral camera.

在本发明的一些实施例中,上述一种基于多光谱成像技术检测果蔬农药残留方法,还包括如下步骤,依次将多个被测样品传送至指定位置后,通过上述紫外光源照射。In some embodiments of the present invention, the above-mentioned method for detecting pesticide residues in fruits and vegetables based on multi-spectral imaging technology further includes the following steps, sequentially transporting a plurality of samples to be tested to designated locations, and then irradiating them with the above-mentioned ultraviolet light source.

在本发明的一些实施例中,利用传送带依次将多个被测样品传送至上述指定位置。In some embodiments of the present invention, a plurality of samples to be tested are sequentially delivered to the above-mentioned designated positions by using a conveyor belt.

在本发明的一些实施例中,对采集图像进行处理包括预处理、构建数据集和数据归一化处理。In some embodiments of the present invention, processing the collected images includes preprocessing, constructing a data set, and data normalization processing.

在本发明的一些实施例中,根据各上述被测样本的采集图像数据和农药检测数据构建上述数据集。In some embodiments of the present invention, the above-mentioned data set is constructed according to the collected image data and pesticide detection data of each of the above-mentioned tested samples.

第二方面,本申请实施例提供一种基于多光谱成像技术检测果蔬农药残留系统,其包括,图像采集系统搭建模块:将多个被测样品依次通过紫外光源照射,并用多通道多光谱相机采集荧光特性最明显通道的图像数据;农药残留检测模型搭建模块:对采集图像进行处理后搭建农药残留检测模型,通过上述农药残留检测模型对比找到最优模型,将最优模型部署到控制系统实现通过图像识别检测果蔬农药残留。In the second aspect, the embodiment of the present application provides a system for detecting pesticide residues in fruits and vegetables based on multispectral imaging technology, which includes an image acquisition system building module: multiple samples to be tested are sequentially irradiated by an ultraviolet light source, and collected by a multi-channel multi-spectral camera Image data of the channel with the most obvious fluorescence characteristics; Pesticide residue detection model building module: build a pesticide residue detection model after processing the collected images, find the optimal model through the comparison of the above pesticide residue detection models, and deploy the optimal model to the control system to achieve Image recognition detection of pesticide residues in fruits and vegetables.

相对于现有技术,本发明的实施例至少具有如下优点或有益效果:Compared with the prior art, the embodiments of the present invention have at least the following advantages or beneficial effects:

第一方面,本申请实施例提供一种基于多光谱成像技术检测果蔬农药残留方法,其包括如下步骤,搭建多光谱荧光图像采集系统:将多个被测样品依次通过紫外光源照射,并用多通道多光谱相机采集荧光特性最明显通道的图像数据;搭建农药残留检测模型:对采集图像进行处理后搭建农药残留检测模型,通过上述农药残留检测模型对比找到最优模型,将最优模型部署到控制系统实现通过图像识别检测果蔬农药残留。In the first aspect, the embodiment of the present application provides a method for detecting pesticide residues in fruits and vegetables based on multi-spectral imaging technology, which includes the following steps to build a multi-spectral fluorescence image acquisition system: sequentially irradiate multiple samples to be tested by ultraviolet light sources, and use multi-channel The multi-spectral camera collects the image data of the channel with the most obvious fluorescence characteristics; builds the pesticide residue detection model: builds the pesticide residue detection model after processing the collected images, finds the optimal model through the comparison of the above pesticide residue detection models, and deploys the optimal model to the control panel. The system realizes the detection of pesticide residues in fruits and vegetables through image recognition.

第二方面,本申请实施例提供一种基于多光谱成像技术检测果蔬农药残留系统,其包括,图像采集系统搭建模块:将多个被测样品依次通过紫外光源照射,并用多通道多光谱相机采集荧光特性最明显通道的图像数据;农药残留检测模型搭建模块:对采集图像进行处理后搭建农药残留检测模型,通过上述农药残留检测模型对比找到最优模型,将最优模型部署到控制系统实现通过图像识别检测果蔬农药残留。In the second aspect, the embodiment of the present application provides a system for detecting pesticide residues in fruits and vegetables based on multispectral imaging technology, which includes an image acquisition system building module: multiple samples to be tested are sequentially irradiated by an ultraviolet light source, and collected by a multi-channel multi-spectral camera Image data of the channel with the most obvious fluorescence characteristics; Pesticide residue detection model building module: build a pesticide residue detection model after processing the collected images, find the optimal model through the comparison of the above pesticide residue detection models, and deploy the optimal model to the control system to achieve pass Image recognition detection of pesticide residues in fruits and vegetables.

针对第一方面~第二方面:本申请通过搭建多光谱荧光图像采集系统,将多个被测样品依次通过紫外光源照射,并用多通道多光谱相机采集图像,获取荧光特性最明显通道的图像数据,提高采集图像特征识别的准确性;通过搭建农药残留检测模型,对采集图像进行处理后搭建农药残留检测模型,从而通过深度学习利用不同检测图像的农药识别结果建模,通过上述农药残留检测模型对比找到最优模型,将最优模型部署到控制系统,通过多光谱成像无损检测技术实现通过图像识别得到果蔬农药残留检测结果。本发明有效解决了农药残留检测破坏样品的情况,降低了农药残留无损检测的成本;利用机器视觉技术,并运用深度学习算法,对农药残留的自动识别进行研究,建立了相关检测模型,提高农药残留检测的准确率。For the first aspect to the second aspect: this application builds a multi-spectral fluorescence image acquisition system, irradiates multiple samples to be tested by ultraviolet light sources in sequence, and collects images with a multi-channel multi-spectral camera to obtain image data of the channel with the most obvious fluorescence characteristics , improve the accuracy of feature recognition of collected images; build a pesticide residue detection model by building a pesticide residue detection model, process the collected images and build a pesticide residue detection model, so as to use the pesticide recognition results of different detection images to model through deep learning, through the above pesticide residue detection model The optimal model is found by comparison, the optimal model is deployed to the control system, and the detection results of pesticide residues in fruits and vegetables are obtained through image recognition through multi-spectral imaging non-destructive testing technology. The invention effectively solves the problem of pesticide residue detection destroying samples, and reduces the cost of non-destructive detection of pesticide residues; uses machine vision technology and deep learning algorithms to study automatic identification of pesticide residues, establishes relevant detection models, and improves pesticide residue detection. Accuracy of residue detection.

附图说明Description of drawings

为了更清楚地说明本发明实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,应当理解,以下附图仅示出了本发明的某些实施例,因此不应被看作是对范围的限定,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他相关的附图。In order to illustrate the technical solutions of the embodiments of the present invention more clearly, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present invention, and thus It should be regarded as a limitation on the scope, and those skilled in the art can also obtain other related drawings based on these drawings without creative work.

图1为本发明实施例1基于多光谱成像技术检测果蔬农药残留方法的流程图;Fig. 1 is the flowchart of the method for detecting pesticide residues in fruits and vegetables based on multispectral imaging technology in embodiment 1 of the present invention;

图2为本发明实施例2基于多光谱成像技术检测果蔬农药残留系统的原理图;2 is a schematic diagram of a system for detecting pesticide residues in fruits and vegetables based on multispectral imaging technology in Example 2 of the present invention;

图3为本发明实施例3电子设备的原理示意图。FIG. 3 is a schematic diagram of the principle of an electronic device according to Embodiment 3 of the present invention.

具体实施方式Detailed ways

为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。通常在此处附图中描述和示出的本申请实施例的组件可以以各种不同的配置来布置和设计。In order to make the purposes, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments It is a part of the embodiments of this application, not all of them. The components of the embodiments of the application generally described and illustrated in the figures herein may be arranged and designed in a variety of different configurations.

因此,以下对在附图中提供的本申请的实施例的详细描述并非旨在限制要求保护的本申请的范围,而是仅仅表示本申请的选定实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。Accordingly, the following detailed description of the embodiments of the application provided in the accompanying drawings is not intended to limit the scope of the claimed application, but merely represents selected embodiments of the application. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of this application.

在本申请的描述中,还需要说明的是,除非另有明确的规定和限定,术语“设置”、“连接”应做广义理解,例如,可以是固定连接,也可以是可拆卸连接,或一体地连接;可以是机械连接,也可以是电连接;可以是直接相连,也可以通过中间媒介间接相连,可以是两个元件内部的连通。对于本领域的普通技术人员而言,可以具体情况理解上述术语在本申请中的具体含义。In the description of this application, it should also be noted that, unless otherwise clearly stipulated and limited, the terms "setting" and "connection" should be understood in a broad sense, for example, it can be a fixed connection or a detachable connection, or Integral connection; it can be mechanical connection or electrical connection; it can be direct connection or indirect connection through an intermediary, and it can be the internal communication of two components. Those of ordinary skill in the art can understand the specific meanings of the above terms in this application in specific situations.

下面结合附图,对本申请的一些实施方式作详细说明。在不冲突的情况下,下述的各个实施例及实施例中的各个特征可以相互组合。Some implementations of the present application will be described in detail below in conjunction with the accompanying drawings. In the case of no conflict, each of the following embodiments and each feature in the embodiments can be combined with each other.

实施例1Example 1

请参阅图1,图1所示为本申请实施例提供的基于多光谱成像技术检测果蔬农药残留方法的示意图。基于多光谱成像技术检测果蔬农药残留方法,其包括如下步骤,搭建多光谱荧光图像采集系统:将多个被测样品依次通过紫外光源照射,并用多通道多光谱相机采集荧光特性最明显通道的图像数据;搭建农药残留检测模型:对采集图像进行处理后搭建农药残留检测模型,通过上述农药残留检测模型对比找到最优模型,将最优模型部署到控制系统实现通过图像识别检测果蔬农药残留。Please refer to FIG. 1 . FIG. 1 is a schematic diagram of a method for detecting pesticide residues in fruits and vegetables based on multispectral imaging technology provided in an embodiment of the present application. The method for detecting pesticide residues in fruits and vegetables based on multi-spectral imaging technology includes the following steps to build a multi-spectral fluorescence image acquisition system: multiple samples to be tested are irradiated by an ultraviolet light source in sequence, and a multi-channel multi-spectral camera is used to collect images of the channels with the most obvious fluorescence characteristics Data; Build a pesticide residue detection model: After processing the collected images, build a pesticide residue detection model, find the optimal model through the comparison of the above pesticide residue detection models, and deploy the optimal model to the control system to detect pesticide residues in fruits and vegetables through image recognition.

本申请通过搭建多光谱荧光图像采集系统,将多个被测样品依次通过紫外光源照射,并用多通道多光谱相机采集图像,获取荧光特性最明显通道的图像数据,提高采集图像特征识别的准确性;通过搭建农药残留检测模型,对采集图像进行处理后搭建农药残留检测模型,从而通过深度学习利用不同检测图像的农药识别结果建模,通过上述农药残留检测模型对比找到最优模型,将最优模型部署到控制系统,通过多光谱成像无损检测技术实现通过图像识别得到果蔬农药残留检测结果。本发明有效解决了农药残留检测破坏样品的情况,降低了农药残留无损检测的成本;利用机器视觉技术,并运用深度学习算法,对农药残留的自动识别进行研究,建立了相关检测模型,提高农药残留检测的准确率。In this application, by building a multi-spectral fluorescence image acquisition system, multiple samples to be tested are irradiated by ultraviolet light sources in sequence, and images are collected with a multi-channel multi-spectral camera to obtain image data of the channel with the most obvious fluorescence characteristics, so as to improve the accuracy of feature recognition of collected images ;By building a pesticide residue detection model, after processing the collected images, a pesticide residue detection model is built, so that the pesticide recognition results of different detection images can be used for modeling through deep learning, and the optimal model can be found by comparing the above pesticide residue detection models. The model is deployed to the control system, and the detection results of pesticide residues in fruits and vegetables are obtained through image recognition through multi-spectral imaging non-destructive testing technology. The invention effectively solves the problem of pesticide residue detection destroying samples, and reduces the cost of non-destructive detection of pesticide residues; uses machine vision technology and deep learning algorithms to study automatic identification of pesticide residues, establishes relevant detection models, and improves pesticide residue detection. Accuracy of residue detection.

在本发明的一些实施例中,上述多通道多光谱相机为五通道多光谱相机。In some embodiments of the present invention, the above-mentioned multi-channel multi-spectral camera is a five-channel multi-spectral camera.

在本发明的一些实施例中,上述一种基于多光谱成像技术检测果蔬农药残留方法,还包括如下步骤,依次将多个被测样品传送至指定位置后,通过上述紫外光源照射。在特定位置的图像采集条件进行采集,并针对同样的紫外线照射条件,获取荧光特效最明显通道,从而得到检测标准一致的检测样本图像,提高了模型的检测准确性。In some embodiments of the present invention, the above-mentioned method for detecting pesticide residues in fruits and vegetables based on multi-spectral imaging technology further includes the following steps, sequentially transporting a plurality of samples to be tested to designated locations, and then irradiating them with the above-mentioned ultraviolet light source. The image acquisition conditions at a specific position are collected, and for the same ultraviolet irradiation conditions, the channel with the most obvious fluorescence effects is obtained, so as to obtain the detection sample image with consistent detection standards, which improves the detection accuracy of the model.

在本发明的一些实施例中,利用传送带依次将多个被测样品传送至上述指定位置。通过传送带、机械臂或者其他传输机构传送到指定位置,从而利用特定的紫外线照射和相机拍摄条件采集图像,便于采集大量数据。In some embodiments of the present invention, a plurality of samples to be tested are sequentially delivered to the above-mentioned designated positions by using a conveyor belt. It is transported to a designated location by a conveyor belt, a robotic arm, or other transport mechanisms, so that images can be collected using specific ultraviolet radiation and camera shooting conditions, which facilitates the collection of large amounts of data.

在本发明的一些实施例中,对采集图像进行处理包括预处理、构建数据集和数据归一化处理。将采集图像信息预处理,使得检测对象更完整和准确,并且构建各个被测样品的数据集,针对不同数据进行归一化处理后,使得检测结果更准确。In some embodiments of the present invention, processing the collected images includes preprocessing, constructing a data set, and data normalization processing. The collected image information is preprocessed to make the detection object more complete and accurate, and the data set of each tested sample is constructed, and after normalization processing for different data, the detection result is more accurate.

在本发明的一些实施例中,根据各上述被测样本的采集图像数据和农药检测数据构建上述数据集。其中被测样本的采集图像数据对应的农药检测数据为现有记录数据,可以通过任意一种检测方法得到。通过构建数据集,利用多项数据归一化处理相应结果,从而构建农药残留检测模型。其中农药检测数据可以为多种成分、指标等任意多项检测数据,在此不做具体限定。In some embodiments of the present invention, the above-mentioned data set is constructed according to the collected image data and pesticide detection data of each of the above-mentioned tested samples. The pesticide detection data corresponding to the collected image data of the tested sample is the existing record data, which can be obtained by any detection method. By constructing a data set and using multiple data to normalize the corresponding results, a pesticide residue detection model was constructed. The pesticide detection data can be any number of detection data such as various components and indicators, and is not specifically limited here.

实施例2Example 2

请参阅图2,图2为本申请实施例提供的基于多光谱成像技术检测果蔬农药残留系统的示意图。基于多光谱成像技术检测果蔬农药残留系统,其包括,图像采集系统搭建模块:将多个被测样品依次通过紫外光源照射,并用多通道多光谱相机采集荧光特性最明显通道的图像数据;农药残留检测模型搭建模块:对采集图像进行处理后搭建农药残留检测模型,通过上述农药残留检测模型对比找到最优模型,将最优模型部署到控制系统实现通过图像识别检测果蔬农药残留。Please refer to FIG. 2 . FIG. 2 is a schematic diagram of a system for detecting pesticide residues in fruits and vegetables based on multispectral imaging technology provided in an embodiment of the present application. A system for detecting pesticide residues in fruits and vegetables based on multispectral imaging technology, which includes an image acquisition system building module: multiple samples to be tested are irradiated by an ultraviolet light source in sequence, and a multi-channel multispectral camera is used to collect image data of the channel with the most obvious fluorescence characteristics; Detection model building module: After processing the collected images, a pesticide residue detection model is built, the optimal model is found by comparing the above pesticide residue detection models, and the optimal model is deployed to the control system to detect pesticide residues in fruits and vegetables through image recognition.

本申请实施例与实施例1的原理相同,在此不做重复描述。可以理解,图2所示的结构仅为示意,基于多光谱成像技术检测果蔬农药残留系统还可包括比图2中所示更多或者更少的组件,或者具有与图2所示不同的配置。图2中所示的各组件可以采用硬件、软件或其组合实现。The principle of this embodiment of the present application is the same as that of Embodiment 1, and will not be repeated here. It can be understood that the structure shown in Figure 2 is only for illustration, and the system for detecting pesticide residues in fruits and vegetables based on multispectral imaging technology may also include more or fewer components than those shown in Figure 2, or have a configuration different from that shown in Figure 2 . Each component shown in Fig. 2 may be implemented by hardware, software or a combination thereof.

实施例3Example 3

请参阅图3,图3为本申请实施例提供的电子设备的一种示意性结构框图。电子设备包括存储器101、处理器102和通信接口103,该存储器101、处理器102和通信接口103相互之间直接或间接地电性连接,以实现数据的传输或交互。例如,这些元件相互之间可通过一条或多条通讯总线或信号线实现电性连接。存储器101可用于存储软件程序及模块,如本申请实施例2所提供的基于多光谱成像技术检测果蔬农药残留系统对应的程序指令/模块,处理器102通过执行存储在存储器101内的软件程序及模块,从而执行各种功能应用以及数据处理。该通信接口103可用于与其他节点设备进行信令或数据的通信。Please refer to FIG. 3 . FIG. 3 is a schematic structural block diagram of an electronic device provided in an embodiment of the present application. The electronic device includes a memory 101, a processor 102, and a communication interface 103. The memory 101, the processor 102, and the communication interface 103 are electrically connected to each other directly or indirectly, so as to realize data transmission or interaction. For example, these components can be electrically connected to each other through one or more communication buses or signal lines. The memory 101 can be used to store software programs and modules, such as the program instructions/modules corresponding to the system for detecting pesticide residues in fruits and vegetables based on multispectral imaging technology provided in Embodiment 2 of the present application. The processor 102 executes the software programs and modules stored in the memory 101. modules to perform various functional applications as well as data processing. The communication interface 103 can be used for signaling or data communication with other node devices.

其中,存储器101可以是但不限于,随机存取存储器(Random Access Memory,RAM),只读存储器(Read Only Memory,ROM),可编程只读存储器(Programmable Read-OnlyMemory,PROM),可擦除只读存储器(Erasable Programmable Read-Only Memory,EPROM),电可擦除只读存储器(Electric Erasable Programmable Read-Only Memory,EEPROM)等。Wherein, memory 101 can be but not limited to, random access memory (Random Access Memory, RAM), read-only memory (Read Only Memory, ROM), programmable read-only memory (Programmable Read-OnlyMemory, PROM), erasable Read-only memory (Erasable Programmable Read-Only Memory, EPROM), Electric Erasable Programmable Read-Only Memory (EEPROM), etc.

处理器102可以是一种集成电路芯片,具有信号处理能力。该处理器102可以是通用处理器,包括中央处理器(Central Processing Unit,CPU)、网络处理器(NetworkProcessor,NP)等;还可以是数字信号处理器(Digital Signal Processing,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。The processor 102 may be an integrated circuit chip with signal processing capability. The processor 102 can be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (NetworkProcessor, NP), etc.; it can also be a digital signal processor (Digital Signal Processing, DSP), an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

在本申请所提供的实施例中,应该理解到,所揭露的装置和方法,也可以通过其它的方式实现。以上所描述的装置实施例仅仅是示意性的,例如,附图中的流程图和框图显示了根据本申请的多个实施例的装置、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段或代码的一部分,上述模块、程序段或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现方式中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个连续的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或动作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。In the embodiments provided in this application, it should be understood that the disclosed devices and methods may also be implemented in other ways. The device embodiments described above are only illustrative. For example, the flowcharts and block diagrams in the accompanying drawings show the architecture, functions and possible implementations of devices, methods and computer program products according to multiple embodiments of the present application. operate. In this regard, each block in a flowchart or block diagram may represent a module, program segment, or part of code that includes one or more programmable components for implementing specified logical functions. Execute instructions. It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks in succession may, in fact, be executed substantially concurrently, or they may sometimes be executed in the reverse order, depending upon the functionality involved. It should also be noted that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by a dedicated hardware-based system that performs the specified function or action , or may be implemented by a combination of dedicated hardware and computer instructions.

另外,在本申请各个实施例中的各功能模块可以集成在一起形成一个独立的部分,也可以是各个模块单独存在,也可以两个或两个以上模块集成形成一个独立的部分。In addition, each functional module in each embodiment of the present application may be integrated to form an independent part, each module may exist independently, or two or more modules may be integrated to form an independent part.

所述功能如果以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present application. 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. .

综上所述,本申请实施例提供的一种基于多光谱成像技术检测果蔬农药残留方法及系统:To sum up, a method and system for detecting pesticide residues in fruits and vegetables based on multispectral imaging technology provided by the embodiment of the present application:

本申请通过搭建多光谱荧光图像采集系统,将多个被测样品依次通过紫外光源照射,并用多通道多光谱相机采集图像,获取荧光特性最明显通道的图像数据,提高采集图像特征识别的准确性;通过搭建农药残留检测模型,对采集图像进行处理后搭建农药残留检测模型,从而通过深度学习利用不同检测图像的农药识别结果建模,通过所述农药残留检测模型对比找到最优模型,将最优模型部署到控制系统,通过多光谱成像无损检测技术实现通过图像识别得到果蔬农药残留检测结果。本发明有效解决了农药残留检测破坏样品的情况,降低了农药残留无损检测的成本;利用机器视觉技术,并运用深度学习算法,对农药残留的自动识别进行研究,建立了相关检测模型,提高农药残留检测的准确率。In this application, by building a multi-spectral fluorescence image acquisition system, multiple samples to be tested are irradiated by ultraviolet light sources in sequence, and images are collected with a multi-channel multi-spectral camera to obtain image data of the channel with the most obvious fluorescence characteristics, so as to improve the accuracy of feature recognition of collected images ; By building a pesticide residue detection model, after processing the collected images, a pesticide residue detection model is built, so that the pesticide recognition results of different detection images are used to model through deep learning, and the optimal model is found by comparing the pesticide residue detection models. The optimal model is deployed to the control system, and the detection results of pesticide residues in fruits and vegetables can be obtained through image recognition through multi-spectral imaging non-destructive testing technology. The invention effectively solves the problem of pesticide residue detection destroying samples, and reduces the cost of non-destructive detection of pesticide residues; uses machine vision technology and deep learning algorithms to study automatic identification of pesticide residues, establishes relevant detection models, and improves pesticide residue detection. Accuracy of residue detection.

以上所述仅为本申请的优选实施例而已,并不用于限制本申请,对于本领域的技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above descriptions are only preferred embodiments of the present application, and are not intended to limit the present application. For those skilled in the art, there may be various modifications and changes in the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of this application shall be included within the protection scope of this application.

对于本领域技术人员而言,显然本申请不限于上述示范性实施例的细节,而且在不背离本申请的精神或基本特征的情况下,能够以其它的具体形式实现本申请。因此,无论从哪一点来看,均应将实施例看作是示范性的,而且是非限制性的,本申请的范围由所附权利要求而不是上述说明限定,因此旨在将落在权利要求的等同要件的含义和范围内的所有变化囊括在本申请内。不应将权利要求中的任何附图标记视为限制所涉及的权利要求。It will be apparent to those skilled in the art that the present application is not limited to the details of the exemplary embodiments described above, but that the present application can be implemented in other specific forms without departing from the spirit or essential characteristics of the present application. Therefore, the embodiments should be regarded as exemplary and not restrictive in all points of view, and the scope of the application is defined by the appended claims rather than the foregoing description, and it is intended that the scope of the present application be defined by the appended claims rather than by the foregoing description. All changes within the meaning and range of equivalents of the elements are embraced in this application. Any reference sign in a claim should not be construed as limiting the claim concerned.

Claims (7)

1.一种基于多光谱成像技术检测果蔬农药残留方法,其特征在于,包括如下步骤,1. A method for detecting pesticide residues in fruits and vegetables based on multispectral imaging technology, is characterized in that, comprises the steps, 搭建多光谱荧光图像采集系统:将多个被测样品依次通过紫外光源照射,并用多通道多光谱相机采集荧光特性最明显通道的图像数据;Build a multi-spectral fluorescence image acquisition system: multiple measured samples are irradiated by an ultraviolet light source in sequence, and the image data of the channel with the most obvious fluorescence characteristics is collected by a multi-channel multi-spectral camera; 搭建农药残留检测模型:对采集图像进行处理后搭建农药残留检测模型,通过所述农药残留检测模型对比找到最优模型,将最优模型部署到控制系统实现通过图像识别检测果蔬农药残留。Build a pesticide residue detection model: build a pesticide residue detection model after processing the collected images, find the optimal model by comparing the pesticide residue detection models, and deploy the optimal model to the control system to detect pesticide residues in fruits and vegetables through image recognition. 2.如权利要求1所述一种基于多光谱成像技术检测果蔬农药残留方法,其特征在于,所述多通道多光谱相机为五通道多光谱相机。2. a kind of method based on multi-spectral imaging technology detection fruit and vegetable pesticide residue as claimed in claim 1, is characterized in that, described multi-channel multi-spectral camera is a five-channel multi-spectral camera. 3.如权利要求1所述一种基于多光谱成像技术检测果蔬农药残留方法,其特征在于,还包括如下步骤,依次将多个被测样品传送至指定位置后,通过所述紫外光源照射。3. A method for detecting pesticide residues in fruits and vegetables based on multispectral imaging technology as claimed in claim 1, further comprising the step of sequentially transporting a plurality of samples to be tested to a designated location and then irradiating them with the ultraviolet light source. 4.如权利要求3所述一种基于多光谱成像技术检测果蔬农药残留方法,其特征在于,利用传送带依次将多个被测样品传送至所述指定位置。4. A method for detecting pesticide residues in fruits and vegetables based on multi-spectral imaging technology as claimed in claim 3, characterized in that a plurality of samples to be tested are sequentially transported to the designated position using a conveyor belt. 5.如权利要求1所述一种基于多光谱成像技术检测果蔬农药残留方法,其特征在于,对采集图像进行处理包括预处理、构建数据集和数据归一化处理。5. A method for detecting pesticide residues in fruits and vegetables based on multispectral imaging technology as claimed in claim 1, wherein processing the collected images includes preprocessing, building data sets and data normalization. 6.如权利要求5所述一种基于多光谱成像技术检测果蔬农药残留方法,其特征在于,根据各所述被测样本的采集图像数据和农药检测数据构建所述数据集。6. A method for detecting pesticide residues in fruits and vegetables based on multispectral imaging technology as claimed in claim 5, wherein the data set is constructed according to the collected image data and pesticide detection data of each of the tested samples. 7.一种基于多光谱成像技术检测果蔬农药残留系统,其特征在于,包括,7. A system for detecting pesticide residues in fruits and vegetables based on multispectral imaging technology, characterized in that, comprising, 图像采集系统搭建模块:将多个被测样品依次通过紫外光源照射,并用多通道多光谱相机采集荧光特性最明显通道的图像数据;Image acquisition system building module: multiple samples to be tested are irradiated by ultraviolet light source in sequence, and the image data of the channel with the most obvious fluorescence characteristics is collected by a multi-channel multi-spectral camera; 农药残留检测模型搭建模块:对采集图像进行处理后搭建农药残留检测模型,通过所述农药残留检测模型对比找到最优模型,将最优模型部署到控制系统实现通过图像识别检测果蔬农药残留。Pesticide residue detection model building module: build a pesticide residue detection model after processing the collected images, find the optimal model by comparing the pesticide residue detection models, and deploy the optimal model to the control system to detect pesticide residues in fruits and vegetables through image recognition.
CN202310237625.9A 2023-03-13 2023-03-13 Method and system for detecting pesticide residues on fruits and vegetables based on multispectral imaging technology Withdrawn CN116242813A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310237625.9A CN116242813A (en) 2023-03-13 2023-03-13 Method and system for detecting pesticide residues on fruits and vegetables based on multispectral imaging technology

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310237625.9A CN116242813A (en) 2023-03-13 2023-03-13 Method and system for detecting pesticide residues on fruits and vegetables based on multispectral imaging technology

Publications (1)

Publication Number Publication Date
CN116242813A true CN116242813A (en) 2023-06-09

Family

ID=86623989

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310237625.9A Withdrawn CN116242813A (en) 2023-03-13 2023-03-13 Method and system for detecting pesticide residues on fruits and vegetables based on multispectral imaging technology

Country Status (1)

Country Link
CN (1) CN116242813A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116883720A (en) * 2023-06-14 2023-10-13 武汉大学 Fruit and vegetable pesticide residue detection method and system based on spatial spectrum attention network

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116883720A (en) * 2023-06-14 2023-10-13 武汉大学 Fruit and vegetable pesticide residue detection method and system based on spatial spectrum attention network
CN116883720B (en) * 2023-06-14 2025-12-05 武汉大学 A Method and System for Detecting Pesticide Residues in Fruits and Vegetables Based on Spatial Spectral Attention Network

Similar Documents

Publication Publication Date Title
US9098891B2 (en) Adaptive sampling for semiconductor inspection recipe creation, defect review, and metrology
CN111242961B (en) An automatic reading method and system for PD-L1 antibody stained sections
Nashat et al. Machine vision for crack inspection of biscuits featuring pyramid detection scheme
US11435719B2 (en) System and method for identifying manufacturing defects
JP2020516894A (en) Method and apparatus for determining label number during sample characterization
CN117893817A (en) Wafer defect classification method, device and system thereof, electronic equipment and storage medium
CN101960484A (en) Systems and methods for assembly inspection
JP6560757B2 (en) Classification of barcode tag states from top view sample tube images for laboratory automation
JP2016181098A (en) Area detection device and area detection method
CN115131630A (en) Model training, microsatellite state prediction method, electronic device and storage medium
CN104198398A (en) Method for distinguishing donkey-hide gelatin based on hyperspectral imaging
CN113065403A (en) Hyperspectral imaging-based machine learning cell classification method and device
Deulkar et al. An automated tomato quality grading using clustering based support vector machine
US20210080450A1 (en) Methods and systems for automated assessment of spermatogenesis
CN116242813A (en) Method and system for detecting pesticide residues on fruits and vegetables based on multispectral imaging technology
US10108779B2 (en) Automatic nuclear segmentation
Nayak et al. Fruit recognition using image processing
CN112304292B (en) Object detection method and detection system based on monochromatic light
Madhav et al. Prediction of pesticides and identification of diseases in fruits using Support Vector Machine (SVM) and IoT
CN111931721A (en) Method and device for detecting color and number of annual inspection label and electronic equipment
Whelan et al. On-device prediction for chronic kidney disease
CN117011707A (en) Method and system for detecting pesticide residues in agricultural products based on multi-scale convolutional neural network
US20250308154A1 (en) Inspection of microelectronics using neural network
Ch et al. A reference based approach to detect short faults in PCB
Narendra et al. Intelligent system to evaluate the quality of orange, lemon, sweet lime and tomato using back-propagation neural-network (BPNN) and probabilistic neural network (PNN)

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
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20230609