Pesticide residue detection method and device for agricultural products

By constructing an adaptive analysis channel through online detection feasibility analysis and neural network model, the problem of high cost and incomplete detection of pesticide residues in agricultural products is solved, and a more economical and comprehensive detection effect is achieved.

CN118427577BActive Publication Date: 2024-09-20榆林市横山区农产品质量安全检验检测中心
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202410889725.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-04
Publication Date
2024-09-20
Estimated Expiration
2044-07-04

AI Technical Summary

Technical Problem

Existing methods for detecting pesticide residues in agricultural products have technical problems such as high detection costs and incomplete detection.

Method used

Obtain the detection indicator set through interactive target scenarios, conduct online detection feasibility analysis, combine with the neural network model to build multiple adaptive analysis channels of different complexities, activate online detection equipment and sampling detection equipment for synchronous detection and collection, and obtain real-time detection data sets , and parse the data through the online analysis channel to obtain residue detection results.

Benefits of technology

It achieves the technical effect of optimizing monitoring costs, improving the comprehensiveness of monitoring, and provides a more accurate and economical pesticide residue detection method.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118427577B
    Figure CN118427577B
Patent Text Reader

Abstract

The present invention discloses a method and device for detecting pesticide residues in agricultural products, and relates to the field of online detection technology. The method includes: interacting with target scenes, obtaining detection index sets for online detection feasibility analysis; obtaining historical pesticide detection records based on feasibility analysis results; constructing online analysis channels based on historical pesticide detection records and neural network models, including multiple adaptive analysis channels with different complexities; activating online detection equipment and sampling detection equipment, and performing synchronous detection and collection of target scenes in combination with feasibility analysis results to obtain real-time detection data sets, including continuous detection data and interval detection data; parsing real-time detection data sets based on online analysis channels, obtaining interval detection results and continuous detection results, and fitting these results to obtain residue detection results. Thus, the technical effect of optimizing monitoring costs and improving monitoring comprehensiveness is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of on-line detection, and in particular to a method and a device for detecting pesticide residues in agricultural products. Background Art

[0002] Pesticide residue detection in agricultural products is an important part of food safety control. Pesticide residues not only affect the quality of agricultural products, but also pose a potential threat to consumers' health. Existing pesticide residue detection in agricultural products includes destructive sampling detection based on gas chromatography (GC), liquid chromatography (LC), immunoassay and other methods. The detection accuracy and sensitivity are high, but the equipment is large, costly and complex to operate. It also includes non-destructive detection methods based on spectral analysis, which have high monitoring efficiency, but low application spectrum and are greatly affected by environmental factors. Existing pesticide residue detection methods have technical problems such as high detection cost and incomplete detection. Summary of the invention

[0003] The present invention provides a method and device for detecting pesticide residues in agricultural products, so as to solve the technical problems of high detection cost and incomplete detection in the prior art, and achieve the technical effect of optimizing monitoring cost and improving monitoring comprehensiveness.

[0004] In a first aspect, the present invention provides a method for detecting pesticide residues in agricultural products, wherein the method comprises:

[0005] Interactive target scene, obtain detection index set, and perform online detection feasibility analysis on the detection index set; according to the feasibility analysis results, obtain historical pesticide detection records, wherein the historical pesticide detection records include historical online detection records and historical sampling detection records; based on the historical pesticide detection records, in combination with the neural network model, construct an online analysis channel, wherein the online analysis channel includes multiple adaptive analysis channels of different complexity; activate the online detection device and the sampling detection device, and perform synchronous detection and collection of the target scene in combination with the feasibility analysis results to obtain a real-time detection data set, wherein the real-time detection data set includes continuous detection data and interval detection data; based on the online analysis channel, parse the real-time detection data set, obtain interval detection results and continuous detection results, and fit the interval detection results and the continuous detection results to obtain residue detection results.

[0006] In a second aspect, the present invention further provides a pesticide residue detection device for agricultural products, wherein the device comprises:

[0007] The indicator acquisition and analysis module is used to interact with the target scene, acquire a detection indicator set, and perform online detection feasibility analysis on the detection indicator set.

[0008] The detection record acquisition module is used to obtain historical pesticide detection records according to the feasibility analysis results, wherein the historical pesticide detection records include historical online detection records and historical sampling detection records.

[0009] An analysis channel construction module is used to construct an online analysis channel based on the historical pesticide detection records in combination with a neural network model, wherein the online analysis channel includes a plurality of adaptive analysis channels of different complexity.

[0010] A synchronous detection and acquisition module is used to activate online detection equipment and sampling detection equipment, and perform synchronous detection and acquisition of the target scene in combination with feasibility analysis results to obtain a real-time detection data set, wherein the real-time detection data set includes continuous detection data and interval detection data.

[0011] The analysis output module is used to analyze the real-time detection data set based on the online analysis channel, obtain the interval detection result and the continuous detection result, and fit the interval detection result and the continuous detection result to obtain the residual detection result.

[0012] The present invention discloses a method and device for detecting pesticide residues in agricultural products, including: interacting with target scenes, obtaining a detection index set, and performing online detection feasibility analysis on the detection index set; according to the feasibility analysis results, obtaining historical pesticide detection records, the historical pesticide detection records include online detection records and sampling detection records; based on the historical pesticide detection records, combined with a neural network model, constructing an online analysis channel, the online analysis channel includes a plurality of adaptive analysis channels of different complexity; activating online detection equipment and sampling detection equipment, combining the feasibility analysis results to synchronously detect and collect the target scene, and obtaining a real-time detection data set, the real-time detection data set includes continuous detection data and interval detection data; based on the online analysis channel, parsing the real-time detection data set, obtaining interval detection results and continuous detection results, and fitting the interval detection results and continuous detection results to obtain residue detection results. The method and device for detecting pesticide residues in agricultural products disclosed by the present invention solve the technical problems of high detection cost and incomplete detection, and achieve the technical effects of optimizing monitoring cost and improving monitoring comprehensiveness. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] Figure 1 The figure is a schematic diagram of the process of the method for detecting pesticide residues in agricultural products of the present invention;

[0014] Figure 2 The figure is a schematic diagram of the structure of the pesticide residue detection device for agricultural products according to the present invention.

[0015] Explanation of the reference numerals: indicator acquisition and analysis module 11, detection record acquisition module 12, analysis channel construction module 13, synchronous detection and acquisition module 14, analysis and output module 15. DETAILED DESCRIPTION

[0016] The technical solution provided in the embodiments of the present invention is to solve the technical problems of high detection cost and incomplete detection in the prior art. The overall idea adopted is as follows:

[0017] First, interact with the target scene to obtain a series of detection indicators and perform feasibility analysis on these indicators for online detection. According to the results of the feasibility analysis, collect relevant historical pesticide detection records, which include online detection and sampling detection data.

[0018] Then, these historical pesticide detection records are used in combination with a neural network model to build an online analysis channel, which contains multiple adaptive analysis channels of different complexity to meet different detection needs.

[0019] Next, the online detection equipment and sampling detection equipment are activated, and according to the results of the feasibility analysis, the target scene is synchronously detected and data collected to obtain a real-time detection data set, which includes continuous detection data and interval detection data.

[0020] Finally, the real-time detection data set is analyzed through the online analysis channel to obtain interval detection results and continuous detection results. These two types of detection results are fitted to obtain more accurate pesticide residue detection results.

[0021] The above technical solution will be described in detail below in conjunction with the accompanying drawings and specific implementation methods of the specification to better understand the above technical solution. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments of the present invention. It should be understood that the present invention is not limited to the example embodiments used only to explain the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention. In addition, it should be noted that, for the convenience of description, only the parts related to the present invention are shown in the drawings, rather than all of them.

[0022] Embodiment 1

[0023] Figure 1 The present invention is a flow chart of a method for detecting pesticide residues in agricultural products, wherein the method comprises:

[0024] Interact with the target scene, obtain a detection index set, and perform online detection feasibility analysis on the detection index set.

[0025] Optionally, first, clarify the target scenario, which refers to the agricultural product quality control scenario or link that requires pesticide residue detection, including the type of agricultural product, detection environment, detection equipment, and detection standards. Among them, different scenarios correspond to different types of agricultural products to be detected, detection targets, etc. For example, the target scenario can be the quality inspection link of a certain agricultural product processing production line or the quality inspection workshop of a certain agricultural product storage unit.

[0026] Optionally, through the interactive target scene, a detection index set can be obtained, which characterizes the detection target of the target scene. Specifically, the detection index set includes the types of pesticides to be detected and the residue level control limits. Common pesticide types include organophosphorus pesticides, carbamate pesticides, pyrethroid pesticides, etc.

[0027] Exemplarily, the target scene is interacted with through a human-computer interaction interface (such as a touch screen, keyboard, mouse, etc.) to obtain target scene information; then, relevant detection indicators such as pesticide residues, chemical composition, microbial indicators, etc. are extracted from the target scene information and stored as a detection indicator set; finally, statistical analysis, machine learning and other methods are used to perform online detection feasibility analysis on the detection indicator set to evaluate whether the detection indicator set is suitable for online detection. The above process helps to ensure the accuracy and practicality of the detection method and provide a basis for subsequent pesticide residue detection.

[0028] In some embodiments, interacting with a target scene, obtaining a detection indicator set, and performing online detection feasibility analysis on the detection indicator set include:

[0029] The target scenario is interacted with, and based on the pesticide residue detection task book of the target scenario, a plurality of residue detection indicators are extracted and stored as the detection indicator set.

[0030] The detection index set is traversed, and multiple multidimensional discriminant feature sets corresponding to the multiple residual detection indicators are obtained based on big data, and online detection feasibility analysis is performed based on the multiple multidimensional discriminant feature sets, wherein the multidimensional discriminant feature sets include equipment adaptability, accuracy reachability, and detection real-time performance.

[0031] Optionally, the pesticide residue detection task book contains key information on pesticide residue detection, such as the types of pesticides to be detected, detection products, detection standards and requirements. Based on the detection task book, multiple residue detection indicators are extracted, exemplarily including: pesticide types (such as organophosphorus pesticides, carbamate pesticides, pyrethroid pesticides, etc.), maximum allowable concentration (MRL), etc.

[0032] Furthermore, each detection indicator in the detection indicator set is analyzed, and based on big data technology, a multidimensional discriminant feature set corresponding to multiple residual detection indicators is obtained. Specifically, the multidimensional discriminant feature set includes: equipment adaptability, which is used to determine whether the detection equipment is suitable for the extracted detection indicators, including the detection items, detection range and stability of the equipment; accuracy accessibility, which is used to determine whether the detection equipment can meet the required accuracy requirements, including detection accuracy, detection limit (LOD), error range, repeatability and consistency; detection real-time, which is used to determine whether the detection process can meet the requirements of real-time detection, including detection speed, data processing capability and response time.

[0033] Optionally, if the multidimensional discriminant feature set meets the requirements of the pesticide residue detection task book, it is considered that the residue detection index corresponding to the multidimensional discriminant feature set can be used for online detection in the target scenario, and the residue detection index corresponding to the multidimensional discriminant feature set is marked as a feasible index.

[0034] Through the above steps, the applicability, accuracy and real-time performance of the detection equipment corresponding to multiple residue detection indicators in the online detection of pesticide residues are comprehensively evaluated to ensure the reliability and effectiveness of the detection process. The feasibility analysis results obtained will help select appropriate residue detection indicators for subsequent online detection, thereby improving detection efficiency and accuracy.

[0035] According to the feasibility analysis result, historical pesticide detection records are obtained, wherein the historical pesticide detection records include historical online detection records and historical sampling detection records.

[0036] Optionally, the feasibility analysis results include multiple residual detection indicators marked as feasible indicators, which are considered to be usable for subsequent online detection.

[0037] Specifically, online detection records refer to pesticide residue detection records obtained through the online detection system in historical detection records. The detection data in the online detection records are continuous data. In other words, online detection records have a higher sampling frequency and can better reflect the changing trend of pesticide residue concentration. Sampling detection records refer to pesticide residue detection data obtained through regular or irregular sampling detection. Sampling detection records are discrete data with a relatively low detection frequency, but have higher detection accuracy and confidence.

[0038] Exemplarily, relevant online test records are extracted from the online test system database to ensure data integrity and accuracy. The online test records include information such as test time, test location, pesticide type, test concentration, test equipment, equipment status and calibration status.

[0039] For example, relevant sampling test records are extracted from the database of the testing laboratory or testing agency to ensure the accuracy and credibility of the data. The sampling test records contain information such as the test time, sampling location, pesticide type, test concentration, sample quantity, test method and equipment, laboratory report and analysis results.

[0040] In some embodiments, according to the feasibility analysis results, historical pesticide detection records are obtained, including:

[0041] Based on the feasibility analysis results, feasible detection indicators are extracted for principal component analysis to obtain a key online detection indicator set.

[0042] Using the key online detection index set as an index constraint, the pesticide detection database is accessed to call historical online detection records and historical sampling detection records.

[0043] The original test data of the historical online test record and the test result data of the historical sampling test record are extracted and stored in the historical pesticide test record.

[0044] Optionally, principal component analysis (PCA) or other multivariate analysis methods are used to extract multiple key detection indicators from the online detection data and output them as a set of key online detection indicators. PCA and other methods can be used to identify the online detection indicators that best reflect the level of pesticide residues, which helps improve the efficiency and accuracy of subsequent detection on the one hand, and reduces the number of historical online detection records and historical sampling detection records that are called, which helps improve the efficiency of subsequent online analysis channel construction.

[0045] Furthermore, the extracted key online detection index set is used as an index to access the historical online detection records and sampling detection records in the pesticide detection database. Then, the original detection data is extracted from the historical online detection records, and the detection result data is extracted from the historical sampling detection records, and stored in the historical pesticide detection records. Among them, the original detection data is a sample of the input data of the online detection analysis, and the detection result data is a sample of the output result of the online detection analysis.

[0046] For example, for online detection based on spectral analysis, the original detection data is the unprocessed spectral signal data collected by the spectral analysis equipment. These data include the original readings and measurement parameters of the spectrum, usually stored in a multi-dimensional form. Specifically, they include spectral intensity, excitation wavelength range, emission wavelength range, timestamp, environmental conditions (temperature, humidity and other environmental parameters during detection), equipment status and calibration information, etc. The test result data is the analysis result output after processing the original spectral data. It is expressed as easy-to-understand pesticide residue detection information, specifically, including: pesticide residue concentration, the concentration value of a specific pesticide in a sample, usually in mg / kg or ppm (parts per million); detection accuracy, the accuracy and precision of the test results, usually expressed in confidence intervals or error ranges; detection limit (LOD), the lowest detectable pesticide residue concentration; sample information, a description of the sample being tested, such as sample type, source, etc.; test result timestamp, the time and date when the analysis result was generated, etc.

[0047] By extracting and analyzing key online detection indicator sets, historical online detection records and sampling detection records can be effectively used to build comprehensive and accurate historical pesticide detection records, providing reliable data support for the construction and training of subsequent online analysis channels.

[0048] Based on the historical pesticide detection records and in combination with a neural network model, an online analysis channel is constructed, wherein the online analysis channel includes a plurality of adaptive analysis channels of different complexity.

[0049] Optionally, an online analysis channel is constructed based on the neural network model. The online analysis channel includes multiple adaptive analysis channels, each with different complexity and computing resource requirements. Exemplarily, the low-complexity channel has fast and real-time analysis capabilities through large-scale feature extraction, which is suitable for preliminary screening and real-time monitoring. The medium-complexity channel is suitable for routine detection by balancing computing resources and accuracy. The high-complexity channel is configured with smaller-scale feature extraction parameters to achieve high-precision analysis, which is suitable for detailed detection and result verification.

[0050] In some embodiments, based on the historical pesticide detection records, combined with a neural network model, an online analysis channel is constructed, wherein the online analysis channel includes a plurality of adaptive analysis channels of different complexity, including:

[0051] A multi-scale structure is defined, and corresponding adaptive analysis channels are configured based on the multi-scale structure to generate a plurality of the adaptive analysis channels.

[0052] Construct an upstream network layer of the neural network model, wherein the upstream network layer includes an input layer and a low-level feature extraction layer.

[0053] Construct a downstream network layer of the neural network model, wherein the downstream network layer includes a cascade fusion layer, a dimensionality conversion layer, a fully connected layer, and an output layer.

[0054] The upstream network layer, the plurality of the adaptive analysis channels in parallel, and the downstream network layer are sequentially connected, and supervised training of the neural network model is performed based on the historical pesticide detection records, and the training results are output as the online analysis channel.

[0055] Optionally, based on the Inception structure, a multi-scale structure is defined, and then a corresponding adaptive analysis channel is configured based on the multi-scale structure. Exemplarily, the adaptive analysis channel includes 1 maximum pooling layer and multiple parallel convolution layer groups, and the multiple parallel convolution layers are configured with convolution kernels of different sizes, so as to extract multi-scale deep features.

[0056] Optionally, the upstream network layer refers to the preceding network layer of the adaptive analysis channel, including an input layer for receiving preprocessed raw detection data and a low-level feature extraction layer responsible for extracting basic features. Exemplarily, the low-level feature extraction layer extracts low-level features through 64 convolution kernels of size 3×3.

[0057] Optionally, the downstream network layer refers to the subsequent network layer of the adaptive analysis channel, including a cascade fusion layer, a dimensionality conversion layer, a fully connected layer, and an output layer, wherein the cascade fusion layer cascades and fuses features from different analysis channels to comprehensively consider features at different scales; the dimensionality conversion layer converts the fused features into a form suitable for processing by the fully connected layer (i.e., the fused multi-dimensional features are converted into one dimension); the fully connected layer is used for further extraction and combination of features; and the output layer is used to output results such as pesticide residue concentration and detection accuracy.

[0058] Furthermore, the output of the low-level feature extraction layer in the upstream network layer is connected to the input of the adaptive analysis channel, and the input of the cascade fusion layer in the downstream network layer is connected to the output of the adaptive analysis channel to generate a complete neural network model.

[0059] Optionally, supervised training of the neural network model generated above is performed using historical pesticide detection records to optimize network parameters. After the training is completed, the training results are output as an online analysis channel for pesticide residue detection in practical applications. Among them, the original detection data in the historical pesticide detection records are the input samples of the supervised training process, which are used to provide the features required for model training; the detection result data are the target labels, which are used to provide the true values ​​required for model training.

[0060] Specifically, the preprocessed original detection data is used as the input layer data of the neural network model, and the detection result data is used as the target label of the neural network model. The adaptive analysis channel with a multi-scale structure configuration is used to perform multi-level feature extraction on the original detection data. The features are comprehensively analyzed through the cascade fusion layer, dimensionality conversion layer and fully connected layer. The network parameters are optimized based on the back propagation algorithm and the loss function to make the predicted value output by the model as close to the detection result data as possible.

[0061] Activate the online detection device and the sampling detection device, perform synchronous detection and collection of the target scene in combination with the feasibility analysis result, and obtain a real-time detection data set, wherein the real-time detection data set includes continuous detection data and interval detection data.

[0062] In some embodiments, activating the online detection device and the sampling detection device, and performing synchronous detection and collection of the target scene in combination with the feasibility analysis result to obtain a real-time detection data set includes:

[0063] Device matching is performed based on the feasibility analysis result, and the online detection device is activated according to the device matching result.

[0064] The sampling detection device is activated based on a difference between the device matching result and the detection device set of the target scene.

[0065] The online detection device and the sampling detection device perform synchronous detection and collection according to preset online sampling granularity parameters, and output a real-time detection data set.

[0066] Specifically, to obtain the real-time detection data set, first, based on the feasibility analysis results, select the online detection equipment and sampling detection equipment that are most suitable for the target scenario. Equipment matching ensures that the detection equipment matches the requirements of the target scenario, which helps to improve the accuracy of the detection. Then, based on the equipment matching results, activate the selected online detection equipment, ensure that the online detection equipment is in working condition, and perform necessary calibration and configuration.

[0067] Furthermore, based on the difference between the device matching result and the detection device set of the target scene, the detection requirements in the target scene that are not covered by the online detection device are determined, the sampling detection device corresponding to the difference between the target scene detection device set is activated, and corresponding sampling preparations are made to ensure that all detection requirements are covered.

[0068] Furthermore, the online detection equipment and the sampling detection equipment perform synchronous detection and collection according to the preset online sampling granularity parameters, and merge the data collected by the online detection equipment and the sampling detection equipment to form a real-time detection data set, ensuring the real-time and integrity of the data, which is helpful for subsequent analysis and processing. Among them, the online sampling granularity parameters include online granularity parameters and sampling granularity parameters, which stipulate the detection frequency of the online detection equipment and the sampling detection equipment.

[0069] Based on the online analysis channel, the real-time detection data set is parsed to obtain interval detection results and continuous detection results, and the interval detection results and the continuous detection results are fitted to obtain the residual detection results.

[0070] Optionally, the online analysis channel takes the continuous detection results in the real-time detection data set as input, analyzes and obtains continuous detection results, and the continuous detection results are characterized by a timed sequence of concentration values ​​with a higher sampling frequency, and the interval detection results are multiple concentration values ​​output by the sampling detection device.

[0071] In some embodiments, based on the online analysis channel, parsing the real-time detection data set, obtaining interval detection results and continuous detection results, and fitting the interval detection results and the continuous detection results to obtain the residual detection results, includes:

[0072] The continuous detection data is input into the online analysis channel to obtain an online concentration sequence, and curve fitting is performed on the online concentration sequence to obtain a residual concentration fluctuation curve, which is output as the continuous detection result.

[0073] Scatter point distribution is performed based on the interval detection result to obtain a fitting reference space.

[0074] The residual concentration fluctuation curve of the continuous detection result is stretched and transformed, and fitted to the fitting reference space to obtain an approximate concentration change curve.

[0075] Based on the approximate concentration change curve and the continuous detection results, a residue detection result is output.

[0076] Optionally, the online analysis channel processes the continuous detection data and outputs an online concentration sequence, which contains the change trend of the pesticide residue concentration. Then, the online concentration sequence is curve-fitted to find the mathematical model that best describes the data change trend, so as to more accurately describe the change of concentration over time and obtain the residual concentration fluctuation curve. Finally, the residual concentration fluctuation curve is output as the result of continuous detection.

[0077] Optionally, the pesticide residue results of the interval detection are scattered to obtain a fitting reference space. The fitting reference space is used to represent the actual values ​​of the pesticide residue concentration at different time points that cannot be obtained through online detection. The fitting reference space is a two-dimensional or three-dimensional space, in which each point represents a set of pesticide residue concentration values ​​corresponding to a sampling node in the interval detection result.

[0078] Furthermore, the residual concentration fluctuation curve of the continuous detection results is subjected to scaling transformation, including translation, rotation, scaling and other operations, so that the transformed residual concentration fluctuation curve can match the fitting reference space as much as possible. Specifically, the fitting process is optimized by minimizing the distance between multiple scattered points in the fitting reference space and the residual concentration fluctuation curve, and the fitting is achieved to obtain an approximate concentration change curve.

[0079] Through the above steps, using the existing interval detection results and continuous detection results, the approximate concentration change curve obtained can better describe the continuous change of the concentration of the detection index that cannot be detected online in the detection index set, and provide an effective alternative for the index that cannot be detected online, so that the concentration change trend of the detection index can be continuously and dynamically reflected. The above data-driven method steps can adapt to various pesticide residue situations and have good versatility and adaptability.

[0080] Furthermore, after obtaining the residue detection result, the method further includes:

[0081] Based on the verification sampling interval, supplementary testing is performed by the sampling testing equipment to obtain verification testing data.

[0082] The residual test results are called and deviation analysis is performed based on the verification test data.

[0083] If the deviation analysis result does not satisfy the preset detection error space, feedback optimization of the online analysis channel is performed based on the verification detection data.

[0084] Specifically, first, according to the preset verification sampling interval, the sampling detection equipment is used to perform supplementary detection on the target scene to obtain the verification detection data set. The verification detection data is the data basis for evaluating the accuracy of the online analysis channel detection results. Then, the residual detection results are called, and deviation analysis is performed based on the newly obtained verification detection data, including calculating the difference between the predicted value and the actual value, and calculating the statistical characteristics of these differences (such as mean value, standard deviation, etc.).

[0085] Optionally, if the result of the deviation analysis does not meet the preset detection error space, it can be considered that there is a large deviation in the online analysis channel, and feedback optimization of the online analysis channel is required, including enhanced training of the online analysis channel with verified detection data and adjusting the parameters of the model to improve its accuracy and reliability.

[0086] Through the above steps, regular supplementary testing and feedback optimization can be carried out to continuously optimize and improve the online analysis channel to ensure that it can accurately and reliably detect pesticide residues and improve the accuracy and credibility of the test results.

[0087] In summary, the method for detecting pesticide residues in agricultural products provided by the present invention has the following technical effects:

[0088] Through interactive target scenes, the detection index set is obtained, and the detection index set is subjected to online detection feasibility analysis; according to the feasibility analysis results, the historical pesticide detection records are obtained; based on the historical pesticide detection records, in combination with the neural network model, an online analysis channel is constructed, and the online analysis channel includes multiple adaptive analysis channels of different complexity; the online detection equipment and the sampling detection equipment are activated, and the target scene is synchronously detected and collected in combination with the feasibility analysis results to obtain the real-time detection data set, and the real-time detection data set includes continuous detection data and interval detection data; based on the online analysis channel, the real-time detection data set is parsed, the interval detection results and the continuous detection results are obtained, and the interval detection results and the continuous detection results are fitted to obtain the residue detection results. The pesticide residue detection method and device for agricultural products disclosed in the present invention solve the technical problems of high detection cost and incomplete detection. Thereby achieving the technical effect of optimizing monitoring cost and improving monitoring comprehensiveness.

[0089] Embodiment 2

[0090] Figure 2 Schematic diagram of the structure of the pesticide residue detection device for agricultural products of the present invention. For example, Figure 1 The schematic flow chart of the method for detecting pesticide residues in agricultural products of the present invention can be shown as follows: Figure 2 The structure shown is implemented.

[0091] Based on the same concept as the pesticide residue detection method for agricultural products in the above embodiment, the pesticide residue detection device for agricultural products provided by the present invention comprises:

[0092] The indicator acquisition and analysis module 11 is used to interact with the target scene, acquire a detection indicator set, and perform online detection feasibility analysis on the detection indicator set.

[0093] The detection record acquisition module 12 is used to obtain historical pesticide detection records according to the feasibility analysis results, wherein the historical pesticide detection records include historical online detection records and historical sampling detection records.

[0094] The analysis channel construction module 13 is used to construct an online analysis channel based on the historical pesticide detection records in combination with a neural network model, wherein the online analysis channel includes a plurality of adaptive analysis channels of different complexity.

[0095] The synchronous detection and acquisition module 14 is used to activate the online detection device and the sampling detection device, and perform synchronous detection and acquisition of the target scene in combination with the feasibility analysis result to obtain a real-time detection data set, wherein the real-time detection data set includes continuous detection data and interval detection data.

[0096] The analysis output module 15 is used to analyze the real-time detection data set based on the online analysis channel, obtain the interval detection result and the continuous detection result, and fit the interval detection result and the continuous detection result to obtain the residual detection result.

[0097] The indicator acquisition and analysis module 11 includes:

[0098] The residue detection index extraction unit is used to interact with the target scene, extract multiple residue detection indicators based on the pesticide residue detection task book of the target scene, and store them as the detection indicator set.

[0099] A feasibility analysis unit is used to traverse the detection index set, obtain multiple multidimensional discriminant feature sets corresponding to multiple residual detection indicators based on big data, and perform online detection feasibility analysis based on the multiple multidimensional discriminant feature sets, wherein the multidimensional discriminant feature sets include equipment adaptability, accuracy reachability, and detection real-time performance.

[0100] Furthermore, the detection record acquisition module 12 includes:

[0101] The key analysis unit is used to extract feasible detection indicators based on the feasibility analysis results, perform principal component analysis, and obtain a key online detection indicator set.

[0102] The record retrieval unit is used to access the pesticide detection database and call historical online detection records and historical sampling detection records by taking the key online detection index set as an index constraint.

[0103] The record cleaning unit is used to extract the original detection data of the historical online detection record and the detection result data of the historical sampling detection record, and store them in the historical pesticide detection record.

[0104] Furthermore, the analysis channel construction module 13 includes:

[0105] The multi-scale configuration unit is used to define a multi-scale structure and configure a corresponding adaptive analysis channel based on the multi-scale structure to generate a plurality of the adaptive analysis channels.

[0106] The upstream network layer unit is used to construct the upstream network layer of the neural network model, wherein the upstream network layer includes an input layer and a low-level feature extraction layer.

[0107] The downstream network layer unit is used to construct the downstream network layer of the neural network model, wherein the downstream network layer includes a cascade fusion layer, a dimensionality conversion layer, a fully connected layer, and an output layer.

[0108] A connection training unit is used to sequentially connect the upstream network layer, the plurality of the adaptive analysis channels in parallel, and the downstream network layer, and perform supervised training of the neural network model based on the historical pesticide detection records, and output the training results as the online analysis channel.

[0109] Furthermore, the synchronous detection and acquisition module 14 includes:

[0110] The online detection device matching and activation unit is used to perform device matching based on the feasibility analysis result and activate the online detection device according to the device matching result.

[0111] The sampling detection device matching activation unit is used to activate the sampling detection device based on the difference between the device matching result and the detection device set of the target scene.

[0112] The real-time synchronous detection unit is used for the online detection device and the sampling detection device to perform synchronous detection and collection according to the preset online sampling granularity parameters, and output a real-time detection data set.

[0113] Furthermore, the analysis output module 15 includes:

[0114] The continuous analysis unit is used to input the continuous detection data into the online analysis channel, obtain an online concentration sequence, perform curve fitting on the online concentration sequence, obtain a residual concentration fluctuation curve, and output the continuous detection result.

[0115] The interval mapping unit is used to perform scatter point distribution based on the interval detection result to obtain a fitting reference space.

[0116] The approximate fitting unit is used to perform a scaling transformation on the residual concentration fluctuation curve of the continuous detection result, fit it to the fitting reference space, and obtain an approximate concentration change curve.

[0117] The detection output unit is used to output the residue detection result based on the approximate concentration change curve and the continuous detection result.

[0118] In some embodiments, the apparatus further comprises:

[0119] The supplementary detection unit is used to perform supplementary detection through the sampling detection device based on the verification sampling interval to obtain verification detection data.

[0120] The deviation analysis unit is used to call the residual detection result and perform deviation analysis based on the verification detection data.

[0121] A feedback optimization unit is used to perform feedback optimization of the online analysis channel based on the verification detection data if the deviation analysis result does not meet the preset detection error space.

[0122] It should be understood that the embodiments mentioned in this specification focus on their differences from other embodiments. The specific embodiments in the aforementioned embodiment one are also applicable to the pesticide residue detection device for agricultural products described in embodiment two. For the sake of brevity of the specification, they will not be further expanded here.

[0123] It should be understood that the embodiments disclosed in the present invention and the above description can enable those skilled in the art to use the present invention to implement the present invention. At the same time, the present invention is not limited to the above-mentioned embodiments. It should be understood that those skilled in the art can still modify the technical solutions recorded in the above-mentioned embodiments, or replace some of the technical features therein by equivalents; 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, and should be included in the protection scope of the present invention.

Claims

1. A method for detecting pesticide residues in agricultural products, characterized in that: The method comprises: Interact with the target scene, obtain a detection index set, and perform online detection feasibility analysis on the detection index set; According to the feasibility analysis results, historical pesticide detection records are obtained, wherein the historical pesticide detection records include historical online detection records and historical sampling detection records; Based on the historical pesticide detection records and in combination with a neural network model, an online analysis channel is constructed, wherein the online analysis channel includes a plurality of adaptive analysis channels of different complexity; Activate the online detection device and the sampling detection device, perform synchronous detection and collection of the target scene in combination with the feasibility analysis result, and obtain a real-time detection data set, wherein the real-time detection data set includes continuous detection data and interval detection data; Based on the online analysis channel, the real-time detection data set is parsed to obtain an interval detection result and a continuous detection result, and the interval detection result and the continuous detection result are fitted to obtain a residual detection result; The interactive target scene, obtaining a detection index set, and performing online detection feasibility analysis on the detection index set include: Interacting with the target scenario, extracting a plurality of residue detection indicators based on the pesticide residue detection task book of the target scenario, and storing them as the detection indicator set; Traversing the detection index set, obtaining multiple multidimensional discriminant feature sets corresponding to multiple residual detection indicators based on big data, and performing online detection feasibility analysis based on the multiple multidimensional discriminant feature sets, wherein the multidimensional discriminant feature sets include equipment adaptability, accuracy reachability, and detection real-time performance; Based on the historical pesticide detection records and in combination with the neural network model, an online analysis channel is constructed, wherein the online analysis channel includes a plurality of adaptive analysis channels of different complexity, including: Defining a multi-scale structure, and configuring a corresponding adaptive analysis channel based on the multi-scale structure to generate a plurality of the adaptive analysis channels; Constructing an upstream network layer of the neural network model, wherein the upstream network layer includes an input layer and a low-level feature extraction layer; Constructing a downstream network layer of the neural network model, wherein the downstream network layer includes a cascade fusion layer, a dimension conversion layer, a fully connected layer, and an output layer; The upstream network layer, the plurality of the adaptive analysis channels connected in parallel, and the downstream network layer are sequentially connected, and supervised training of the neural network model is performed based on the historical pesticide detection records, and the training results are output as the online analysis channel; Based on the online analysis channel, the real-time detection data set is parsed to obtain an interval detection result and a continuous detection result, and the interval detection result and the continuous detection result are fitted to obtain a residual detection result, including: Inputting the continuous detection data into the online analysis channel, obtaining an online concentration sequence, performing curve fitting on the online concentration sequence, obtaining a residual concentration fluctuation curve, and outputting the continuous detection result; Perform scatter point distribution based on the interval detection result to obtain a fitting reference space; Performing a scaling transformation on the residual concentration fluctuation curve of the continuous detection result, fitting it to the fitting reference space, and obtaining an approximate concentration variation curve; Based on the approximate concentration change curve and the continuous detection results, a residue detection result is output.

2. The method for detecting pesticide residues in agricultural products according to claim 1, characterized in that: Based on the feasibility analysis results, obtain historical pesticide testing records, including: Based on the feasibility analysis results, feasible detection indicators are extracted for principal component analysis to obtain a key online detection indicator set; Using the key online detection index set as an index constraint, accessing the pesticide detection database, and calling historical online detection records and historical sampling detection records; The original test data of the historical online test record and the test result data of the historical sampling test record are extracted and stored in the historical pesticide test record.

3. The method for detecting pesticide residues in agricultural products according to claim 1, characterized in that: Activate the online detection equipment and the sampling detection equipment, and perform synchronous detection and collection of the target scene in combination with the feasibility analysis results to obtain a real-time detection data set, including: Performing device matching based on the feasibility analysis result, and activating the online detection device according to the device matching result; activating the sampling detection device based on a difference between the device matching result and the detection device set of the target scene; The online detection device and the sampling detection device perform synchronous detection and collection according to preset online sampling granularity parameters, and output a real-time detection data set.

4. The method for detecting pesticide residues in agricultural products according to claim 1, characterized in that: After obtaining the residue detection result, the method further includes: Based on the verification sampling interval, performing supplementary testing by the sampling testing device to obtain verification testing data; Calling the residue test results, and performing deviation analysis based on the verification test data; If the deviation analysis result does not satisfy the preset detection error space, feedback optimization of the online analysis channel is performed based on the verification detection data.

5. A pesticide residue detection device for agricultural products, characterized in that: The device is used to perform the method for detecting pesticide residues in agricultural products according to any one of claims 1 to 4, and the device comprises: An indicator acquisition and analysis module, which is used to interact with the target scene, acquire a detection indicator set, and perform online detection feasibility analysis on the detection indicator set; A detection record acquisition module, the detection record acquisition module is used to obtain historical pesticide detection records according to the feasibility analysis results, wherein the historical pesticide detection records include historical online detection records and historical sampling detection records; An analysis channel construction module, the analysis channel construction module is used to construct an online analysis channel based on the historical pesticide detection records in combination with a neural network model, wherein the online analysis channel includes a plurality of adaptive analysis channels of different complexity; A synchronous detection and acquisition module, which is used to activate the online detection device and the sampling detection device, perform synchronous detection and acquisition of the target scene in combination with the feasibility analysis result, and obtain a real-time detection data set, wherein the real-time detection data set includes continuous detection data and interval detection data; An analysis output module, the analysis output module is used to analyze the real-time detection data set based on the online analysis channel, obtain the interval detection result and the continuous detection result, and fit the interval detection result and the continuous detection result to obtain the residual detection result; The interactive target scene, obtaining a detection index set, and performing online detection feasibility analysis on the detection index set include: Interacting with the target scenario, extracting a plurality of residue detection indicators based on the pesticide residue detection task book of the target scenario, and storing them as the detection indicator set; The detection index set is traversed, and multiple multidimensional discriminant feature sets corresponding to the multiple residual detection indicators are obtained based on big data, and online detection feasibility analysis is performed based on the multiple multidimensional discriminant feature sets, wherein the multidimensional discriminant feature sets include equipment adaptability, accuracy reachability, and detection real-time performance.

Citation Information

Patent Citations

  • On-line pesticide concentration detection device and method

    CN103630509A

  • Pesticide residue detecting data platform based on high-resolution mass spectrum, Internet and data science and automatic detection report generation method of platform

    CN107103571A

  • High-resolution mass spectrum, internet and geometric information combination-based pesticide residue online tracing and early warning videoizing method

    CN107180076A

  • Online pesticide residue rapid detection method and system, and storage medium

    CN109633106A

  • Optimization method of pesticide residue monitoring process based on time sequence predictive analysis

    CN117787510A