A data intelligent collection and analysis method for agricultural product quality and safety supervision software
Through intelligent collection and analysis methods, the quality evaluation factors of agricultural products and the necessity of sampling inspection are calculated, and the number of sampling samples is optimized, which solves the problem of inaccurate data collection and analysis in agricultural product quality and safety supervision in the existing technology, and achieves more accurate quality assessment and Spot check optimization.
Patent Information
- Application Number
- CN202410897038.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-05
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2044-07-05
AI Technical Summary
Existing agricultural product quality and safety supervision software has problems with inaccurate data collection and analysis during sampling testing, which results in the inability to effectively guarantee product quality and the lack of fixed testing standards, which affects consumer safety.
Using intelligent data collection and analysis methods, by obtaining agricultural product quality standard indicators, origin pass rates and sampling sample test results, we can calculate preliminary quality assessment factors, sampling necessity and cluster profile coefficients, optimize the number of sampling samples, and achieve more accurate quality assessment. and spot check optimization.
It improves the accuracy of agricultural product quality assessment and the importance of random inspections, ensures that the quality level of each origin is accurately reflected, optimizes the number of random inspection samples, and improves the accuracy of data collection and analysis.
Smart Images

Figure CN118429127B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data processing, and in particular to a method for intelligent data collection and analysis of agricultural product quality and safety supervision software. Background Art
[0002] Agricultural product quality and safety supervision software is a system designed to monitor and manage the quality and safety of agricultural products from production to sales. This system usually integrates multiple functions to ensure the safety, compliance and traceability of agricultural products. In the face of agricultural product quality and safety supervision, it is usually necessary to conduct sampling inspections on agricultural products from various sources, such as testing microbial indicators in meat, egg and milk samples, and determine whether they meet the standards based on the current agricultural product market standards to complete quality and safety supervision.
[0003] Conventional sampling tests usually require a sampling plan to be formulated in advance, and after on-site sampling is carried out according to the plan, a series of sample identification records, packaging and transportation, and laboratory testing are carried out, and the quality and safety status of the source is evaluated based on the data analysis report. However, the quality indicators of goods and products usually supplied by different sources are usually relatively close. If the quality assessment is carried out according to fixed sampling and testing standards every time, the product quality for subsequent consumers is not guaranteed, and there is usually no fixed standard for the intensity of sampling and testing, which will lead to inaccurate data collection and analysis. Summary of the invention
[0004] The invention provides a data intelligent collection and analysis method for agricultural product quality and safety supervision software to solve the existing problems.
[0005] The data intelligent collection and analysis method of agricultural product quality and safety supervision software of the present invention adopts the following technical scheme:
[0006] An embodiment of the present invention provides a method for intelligent data collection and analysis of agricultural product quality and safety supervision software, the method comprising the following steps:
[0007] Obtain the agricultural product quality standard index for each test item of each category of agricultural products, the pass rate of each test item of each agricultural product origin of each category of agricultural products, and the test results of each test item of each agricultural product sample of each agricultural product origin of each category of agricultural products;
[0008] According to the agricultural product quality standard index of each test item of each type of agricultural product and the test results of each test item of each agricultural product sample in each agricultural product producing area, the preliminary quality assessment factor of each agricultural product producing area of each type of agricultural product is obtained;
[0009] According to the passing rate of each test item of each agricultural product origin of each type of agricultural product and the inspection result of each test item of each agricultural product sample of each agricultural product origin, the first sampling necessity degree of each test item of each type of agricultural product is obtained;
[0010] According to the first sampling necessity degree of each inspection item of each category of agricultural products and the inspection results of each inspection item of any two agricultural product sampling samples from each agricultural product origin, the revised first sampling necessity degree of any two agricultural product sampling samples from each agricultural product origin of each category of agricultural products is obtained; according to the revised first sampling necessity degree of any two agricultural product sampling samples from each agricultural product origin of each category of agricultural products, all agricultural product sampling samples from each agricultural product origin of each category of agricultural products are clustered to obtain a number of clusters and a clustering silhouette coefficient;
[0011] According to the number of clusters and the clustering silhouette coefficient of each agricultural product origin of each type of agricultural product, the necessity degree of the second sampling inspection of each agricultural product origin of each type of agricultural product is obtained;
[0012] According to the preliminary quality assessment factors and the second sampling necessity of each agricultural product origin of each type of agricultural product, the number of sampling samples in each agricultural product origin of each type of agricultural product is obtained; according to the number of sampling samples in each agricultural product origin of each type of agricultural product, agricultural product sampling is carried out in each agricultural product origin of each type of agricultural product.
[0013] Further, the method of obtaining a preliminary quality assessment factor for each agricultural product origin of each agricultural product category according to the agricultural product quality standard index of each test item of each agricultural product category and the test results of each test item of each agricultural product sample in each agricultural product origin includes the following specific steps:
[0014] In each agricultural product producing area of each type of agricultural product, the quality assessment score of each agricultural product sample is obtained based on the difference between the test results of each test item of each agricultural product sample and the agricultural product quality standard index of the corresponding test item of each type of agricultural product;
[0015] The first Category of agricultural products The average of the quality assessment scores of all agricultural product samples sampled from the agricultural product origin is recorded as Category of agricultural products Preliminary quality assessment factors for agricultural product origins.
[0016] Furthermore, the method of obtaining the quality assessment score of each agricultural product sample according to the difference between the test result of each test item of each agricultural product sample and the agricultural product quality standard index of the test item corresponding to each type of agricultural product comprises the following specific steps:
[0017] In the Category of agricultural products agricultural product producing areas, The test results of all test items of the agricultural product sample minus the test results of The average value of the difference between the agricultural product quality standard indicators of the corresponding test items of the agricultural products of this category is recorded as The quality assessment scores of agricultural product random inspection samples.
[0018] Furthermore, the first sampling necessity degree of each inspection item of each category of agricultural products is obtained according to the pass rate of each inspection item of each agricultural product origin of each category of agricultural products and the inspection result of each inspection item of each agricultural product sampling sample of each agricultural product origin, and the specific steps include the following:
[0019] According to Category of agricultural products The agricultural product producing area The first sample of agricultural products The inspection results of the test items are consistent with the The first sample of all agricultural products of this category The difference in the mean values of the test results of the test items is obtained. Category of agricultural products The agricultural product producing area The first sample of agricultural products The standard difference of each test item;
[0020] According to The first The passing rate of each test item and the passing rate of each agricultural product sample The standard difference of the test items is obtained Category of agricultural products The necessity of the first random inspection of the test items.
[0021] Furthermore, according to The first The passing rate of each test item and the passing rate of each agricultural product sample The standard difference of the test items is obtained Category of agricultural products The specific calculation formula corresponding to the first sampling necessity of each test item is:
[0022]
[0023] in, Indicates Category of agricultural products Necessity of first sampling inspection for each test item; Indicates The first sample of all agricultural products of this category The mean of the test results of the test items; Indicates The number of samples of all agricultural products of the category of agricultural products to be inspected; Indicates The number of agricultural product producing areas of the agricultural product category; Indicates Category of agricultural products The number of samples of all agricultural products randomly inspected in each agricultural product origin; Indicates Category of agricultural products The agricultural product producing area The first sample of agricultural products The inspection results of each test item; Indicates Category of agricultural products The agricultural product producing area The passing rate of each test item; Indicates Category of agricultural products The agricultural product producing area The first sample of agricultural products The standard difference of the test items.
[0024] Furthermore, the method of obtaining the corrected first sampling necessity degree of any two agricultural product sampling samples from each agricultural product origin of each agricultural product category according to the first sampling necessity degree of each inspection item of each category of agricultural products and the inspection results of each inspection item of any two agricultural product sampling samples from each agricultural product origin comprises the following specific steps:
[0025] Will be in Category of agricultural products Two random samples of agricultural products selected from the agricultural product producing areas are recorded as reference agricultural product random samples;
[0026] According to Category of agricultural products The first sample of two reference agricultural products sampled from agricultural product origins The difference between the inspection results of the inspection items is obtained. Category of agricultural products The first sample of two reference agricultural products sampled from agricultural product origins Reference difference of each inspection item;
[0027] According to Category of agricultural products The reference difference of each inspection item of two reference agricultural product sampling samples from the agricultural product origin and the The first sampling necessity of each test item of agricultural products is obtained. Category of agricultural products The necessity of the first random inspection of two reference agricultural product samples from each agricultural product origin.
[0028] Furthermore, according to Category of agricultural products The reference difference of each inspection item of two reference agricultural product sampling samples from the agricultural product origin and the The first sampling necessity of each test item of agricultural products is obtained. Category of agricultural products The specific calculation formula corresponding to the modified first sampling necessity degree of two reference agricultural product sampling samples from an agricultural product origin is:
[0029]
[0030] in, Indicates Category of agricultural products Necessity of the revised first random inspection of two reference agricultural product random inspection samples from each agricultural product origin; Indicates The number of inspection items for agricultural products; Indicates Category of agricultural products The first reference agricultural product sampling sample of the agricultural product origin The inspection results of each inspection item; Indicates Category of agricultural products The second reference agricultural product sampling sample of the agricultural product origin The inspection results of each inspection item; Indicates Category of agricultural products Necessity of first sampling inspection for each test item; Indicates Category of agricultural products The first sample of two reference agricultural products sampled from agricultural product origins The reference difference of each inspection item.
[0031] Furthermore, according to the number of clusters and the clustering silhouette coefficient of each agricultural product origin of each type of agricultural product, the specific calculation formula corresponding to the second sampling necessity degree of each agricultural product origin of each type of agricultural product is obtained as follows:
[0032]
[0033] in, Indicates Category of agricultural products Necessity of second random inspection of agricultural product production areas; It means natural and constant; Indicates Category of agricultural products The number of clusters of agricultural product origins; No. Category of agricultural products Cluster silhouette coefficient of agricultural product origins.
[0034] Furthermore, the specific formula corresponding to the number of samples for random inspection at each agricultural product origin of each type of agricultural product is obtained based on the preliminary quality assessment factor of each agricultural product origin of each type of agricultural product and the second random inspection necessity:
[0035]
[0036] in, Indicates Category of agricultural products Number of samples randomly inspected from each agricultural product origin; Indicates Category of agricultural products Necessity of second random inspection of agricultural product production areas; Indicates Category of agricultural products Preliminary quality assessment factors for agricultural product origins; represents the linear normalization function; Indicates rounding up; Indicates the preset regular sampling quantity threshold.
[0037] Furthermore, according to the modified first sampling necessity degree of any two agricultural product sampling samples of each agricultural product origin of each type of agricultural product, all agricultural product sampling samples of each agricultural product origin of each type of agricultural product are clustered to obtain a plurality of clusters and a clustering silhouette coefficient, including the following specific steps:
[0038] Iterative self-organizing clustering algorithm is used to Category of agricultural products All the agricultural product sampling samples from the agricultural product producing areas are calculated to obtain several clusters; among them, Category of agricultural products The modified first sampling necessity degree of two reference agricultural product sampling samples from the agricultural product origin is used as the cluster distance; and the Category of agricultural products The test results of each test item of each agricultural product sample in each agricultural product origin are used as each dimensional feature in the iterative self-organizing clustering algorithm;
[0039] All clusters of each agricultural product origin of each type of agricultural product are calculated using the silhouette coefficient formula to obtain the cluster silhouette coefficient of each agricultural product origin of each type of agricultural product.
[0040] The beneficial effects of the technical solution of the present invention are:
[0041] The agricultural product quality standard index of each test item of each type of agricultural product, the pass rate of each test item of each agricultural product origin of each type of agricultural product, and the test results of each test item of each agricultural product sample of each agricultural product origin of each type of agricultural product are obtained; according to the agricultural product quality standard index of each test item of each type of agricultural product and the test results of each test item of each agricultural product sample in each agricultural product origin, the preliminary quality assessment factor of each agricultural product origin of each type of agricultural product is obtained, thereby improving the accuracy of quality assessment. According to the pass rate of each test item of each agricultural product origin of each type of agricultural product and the inspection results of each test item of each agricultural product sample of each agricultural product origin, the first sampling necessity of each test item of each type of agricultural product is obtained, thereby ensuring the importance of sampling of each test item. According to the first sampling necessity of each test item of each type of agricultural product and the inspection results of each inspection item of any two agricultural product samples of each agricultural product origin, the revised first sampling necessity of any two agricultural product samples of each agricultural product origin of each type of agricultural product is obtained, thereby further ensuring the importance of sampling of each test item. According to the modified first sampling necessity of any two agricultural product sampling samples of each agricultural product origin of each type of agricultural product, all agricultural product sampling samples of each agricultural product origin of each type of agricultural product are clustered to obtain a number of clusters and a clustering profile coefficient, which accurately reflects the quality level of agricultural products in each agricultural product origin. According to the number of clusters and the clustering profile coefficient of each agricultural product origin of each type of agricultural product, the second sampling necessity of each agricultural product origin of each type of agricultural product is obtained, which further accurately reflects the quality level of agricultural products in each agricultural product origin. According to the preliminary quality assessment factor and the second sampling necessity of each agricultural product origin of each type of agricultural product, the number of sampling samples of each agricultural product origin of each type of agricultural product is obtained; according to the number of sampling samples of each agricultural product origin of each type of agricultural product, agricultural product sampling is performed in each agricultural product origin of each type of agricultural product. The present invention improves the accuracy of data collection and analysis by analyzing the sampling results of historical sampling samples. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0043] Figure 1 The present invention is a flowchart of the steps of a method for intelligent data collection and analysis of agricultural product quality and safety supervision software. DETAILED DESCRIPTION
[0044] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of the data intelligent collection and analysis method of agricultural product quality and safety supervision software proposed by the present invention, its specific implementation method, structure, characteristics and effects, in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.
[0045] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.
[0046] The specific scheme of the data intelligent collection and analysis method for agricultural product quality and safety supervision software provided by the present invention is described in detail below with reference to the accompanying drawings.
[0047] See also Figure 1 , which shows a flowchart of a method for intelligent data collection and analysis of agricultural product quality and safety supervision software provided by an embodiment of the present invention, the method comprising the following steps:
[0048] Step S001: Obtain the agricultural product quality standard index for each test item of each type of agricultural product, the pass rate of each test item of each agricultural product origin of each type of agricultural product, and the test results of each test item of each agricultural product random sample of each agricultural product origin of each type of agricultural product.
[0049] Obtain the agricultural product quality standard index for each test item of each agricultural product category, the pass rate of each test item of each agricultural product origin of each agricultural product category, and the test results of each test item of each agricultural product sample of each agricultural product origin of each agricultural product category from the historical sampling inspection report of each agricultural product category;
[0050] It should be noted that in this embodiment, the agricultural product quality standard indicators of all test items and the test results of all test items are standardized so that they have similar scales and distributions for better comparison and analysis. This is a known technology.
[0051] Step S002: Obtain a preliminary quality assessment factor for each agricultural product origin of each type of agricultural product based on the agricultural product quality standard index for each test item of each type of agricultural product and the test results of each test item of each agricultural product sample in each agricultural product origin.
[0052] First Category of agricultural products The agricultural product producing area Take the sample of agricultural products for example. The test results of all test items of the agricultural product sample minus the test results of The average value of the difference between the agricultural product quality standard indicators of the corresponding test items of the agricultural products of this category is recorded as The quality assessment scores of agricultural product random inspection samples.
[0053] Through the above process, the quality assessment score of each agricultural product sample is obtained.
[0054] The first Category of agricultural products The average of the quality assessment scores of all agricultural product samples sampled from the agricultural product origin is recorded as Category of agricultural products Preliminary quality assessment factors for agricultural product origins.
[0055] Through the above process, the preliminary quality assessment factor of each agricultural product origin of each type of agricultural product is obtained.
[0056] Step S003: Obtain the first inspection necessity degree of each inspection item of each category of agricultural products according to the pass rate of each inspection item of each agricultural product origin of each category of agricultural products and the inspection result of each inspection item of each agricultural product random inspection sample of each agricultural product origin.
[0057] It should be noted that for each agricultural product origin, different test items often have different importance. For example, for some more conventional test items, the pass rate is extremely high, and almost most of the products from the source meet the requirements. For some more demanding test items, that is, the pass rate is lower, they are often the most important in the random inspection. Therefore, based on step S002, the indiscriminate accumulation of the index difference of each test result cannot be fully used as a standard for evaluating the current random inspection strength of the source. Moreover, for a unified source, whether the quality of its historical products is uniform will also greatly affect the number of samples inspected. Therefore, based on this content, further analysis is required based on the historical product quality of each agricultural product origin.
[0058] It is further necessary to explain that: In the historical sampling of agricultural product production areas, when the quality is generally high, a relatively weak sampling intensity can be used, and when the quality is poor, a stronger sampling intensity should be used. However, at the same time, when the quality of the product is still uneven over a long period of time, sometimes good and sometimes bad, in order to avoid missed inspections due to the randomness of the sampling, a relatively higher sampling intensity is still needed to avoid this problem.
[0059] Still Category of agricultural products For example, the test item Category of agricultural products The specific calculation formula corresponding to the first sampling necessity of each test item is:
[0060]
[0061] in, Indicates Category of agricultural products Necessity of first sampling inspection for each test item; Indicates The first sample of all agricultural products of this category The mean of the test results of the test items; Indicates The number of samples of all agricultural products of the category of agricultural products to be inspected; Indicates The number of agricultural product producing areas of the agricultural product category; Indicates Category of agricultural products The number of samples of all agricultural products randomly inspected in each agricultural product origin; Indicates Category of agricultural products The agricultural product producing area The first sample of agricultural products The inspection results of each test item; Indicates Category of agricultural products The agricultural product producing area The passing rate of each test item.
[0062] What needs to be explained is: When used as a base number, the larger the base number is, the lower the general quality of the current test item is. Compared with other items, the pass rate of this item is relatively low, so the necessity of random inspection is relatively higher. Indicates Category of agricultural products The agricultural product producing area The first sample of agricultural products The standard difference of each test item; The larger the value of Category of agricultural products The greater the necessity of the first random inspection of each test item, the greater the necessity of the first random inspection of each test item.
[0063] Through the above process, we obtain Category of agricultural products The necessity of the first random inspection of the test items.
[0064] Each inspection item of each type of agricultural product is calculated according to the above process to obtain the first sampling necessity degree of each inspection item of each type of agricultural product.
[0065] Step S004: According to the first sampling necessity degree of each inspection item of each category of agricultural products and the inspection results of each inspection item of any two agricultural product sampling samples from each agricultural product origin, obtain the revised first sampling necessity degree of any two agricultural product sampling samples from each agricultural product origin of each category of agricultural products; according to the revised first sampling necessity degree of any two agricultural product sampling samples from each agricultural product origin of each category of agricultural products, cluster all agricultural product sampling samples from each agricultural product origin of each category of agricultural products to obtain a number of clusters and a clustering silhouette coefficient.
[0066] What needs to be explained is: The sampling results of all items of all historical samples from each agricultural product origin are used as the features of each dimension, and the ISODATA (iterative self-organizing clustering) algorithm is used for clustering. However, when clustering, the conventional distance measurement feature calculation method is the multi-dimensional Euclidean distance. The actual distance difference obtained for each item shows that the distance measurement features are different. Therefore, the Euclidean distance model needs to be adjusted based on the current scenario before clustering.
[0067] First Category of agricultural products For example, in the Two random inspection samples of agricultural products selected from the production areas of agricultural products are recorded as reference inspection samples of agricultural products.
[0068] The first Category of agricultural products The specific calculation formula corresponding to the modified first sampling necessity degree of two reference agricultural product sampling samples from an agricultural product origin is:
[0069]
[0070] in, Indicates Category of agricultural products Necessity of the revised first random inspection of two reference agricultural product random inspection samples from each agricultural product origin; Indicates The number of inspection items for agricultural products; Indicates Category of agricultural products The first reference agricultural product sampling sample of the agricultural product origin The inspection results of each inspection item; Indicates Category of agricultural products The second reference agricultural product sampling sample of the agricultural product origin The inspection results of each inspection item; Indicates Category of agricultural products The necessity of the first random inspection of the test items.
[0071] What needs to be explained is: Indicates Category of agricultural products The first sample of two reference agricultural products sampled from agricultural product origins Reference difference of each inspection item; The larger the value of is, the greater the difference in the quality of agricultural products is. Category of agricultural products The more accurate the origin of an agricultural product, the greater the need for the first random inspection.
[0072] Through the above process, we obtain Category of agricultural products The necessity of the first random inspection of two reference agricultural product samples from each agricultural product origin.
[0073] The above process is used to calculate each agricultural product origin of each type of agricultural product to obtain the corrected first inspection necessity degree of two reference agricultural product random inspection samples of each agricultural product origin of each type of agricultural product.
[0074] The ISODATA (Iterative Self-Organizing Clustering) algorithm is used to Category of agricultural products All the agricultural product samples sampled from the agricultural product origin are calculated to obtain several clusters. Category of agricultural products The modified first sampling necessity degree of two reference agricultural product sampling samples from the agricultural product origin is used as the cluster distance; and the Category of agricultural products The test results of each test item of each agricultural product sample of each agricultural product origin are used as each dimensional feature in the ISODATA (Iterative Self-Organizing Clustering) algorithm. The ISODATA (Iterative Self-Organizing Clustering) algorithm is a well-known technology, and the specific method is not introduced in detail here.
[0075] Through the above process, several clusters of each agricultural product origin of each type of agricultural product are obtained.
[0076] All clusters of each agricultural product origin of each type of agricultural product are calculated using the silhouette coefficient formula to obtain the cluster silhouette coefficient of each agricultural product origin of each type of agricultural product. The silhouette coefficient formula is a well-known technology and the specific method is not introduced here.
[0077] Step S005: According to the number of clusters and the clustering silhouette coefficient of each agricultural product origin of each type of agricultural product, the necessity degree of the second random inspection of each agricultural product origin of each type of agricultural product is obtained.
[0078] It should be noted that: for the multiple clusters obtained from the origin of the agricultural product, we tend to believe that the more clusters there are, the more dispersed the historical quality of the origin of the agricultural product. Furthermore, the concentration of sample distribution within the cluster also explains the more specific dispersion of sample quality.
[0079] Still Category of agricultural products For example, take the origin of agricultural products Category of agricultural products The specific calculation formula corresponding to the necessity of the second random inspection of each agricultural product origin is:
[0080]
[0081] in, Indicates Category of agricultural products Necessity of second random inspection of agricultural product production areas; It means natural and constant; Indicates Category of agricultural products The number of clusters of agricultural product origins; No. Category of agricultural products Cluster silhouette coefficient of agricultural product origins.
[0082] What needs to be explained is: It means that the more clusters there are, the more discrete their mass distribution is, so 1 minus is used here. The range of silhouette coefficient is , here we use this form, so that the value range is ,and The closer it is to 1, the The smaller it is, the better the clustering effect is within each cluster. If it is too small, it means that the clusters are too dispersed, and the sample quality is also more discrete.
[0083] Through the above process, we get Category of agricultural products The necessity of second random inspection of agricultural product production areas.
[0084] Calculate each agricultural product origin of each type of agricultural product according to the above process to obtain the second sampling necessity degree of each agricultural product origin of each type of agricultural product.
[0085] Step S006: According to the preliminary quality assessment factor and the second sampling necessity of each agricultural product origin of each type of agricultural product, obtain the number of sampling samples for each agricultural product origin of each type of agricultural product; according to the number of sampling samples for each agricultural product origin of each type of agricultural product, conduct agricultural product sampling in each agricultural product origin of each type of agricultural product.
[0086] What needs to be explained is: Based on The necessity of the second random inspection of agricultural product production areas is The number of subsequent random inspections at each agricultural product producing area will be optimized.
[0087] Still Category of agricultural products For example, the origin of agricultural products Category of agricultural products The specific calculation formula corresponding to the number of samples randomly inspected in each agricultural product origin is:
[0088]
[0089] in, Indicates Category of agricultural products Number of samples randomly inspected from each agricultural product origin; Indicates Category of agricultural products Necessity of second random inspection of agricultural product production areas; Indicates Category of agricultural products Preliminary quality assessment factors for agricultural product origins; represents the linear normalization function; Indicates rounding up; where is the preset conventional sampling quantity threshold. The preset conventional sampling quantity threshold in this embodiment is The value is 10, and this example is used for description.
[0090] What needs to be explained is: and is proportional, so The larger the value of Category of agricultural products The larger the number of samples inspected from each agricultural product origin. and Inversely proportional, The larger the Category of agricultural products The smaller the number of samples inspected in each agricultural product origin, the smaller the number, so a negative sign should be added.
[0091] Through the above process, we obtain Category of agricultural products The number of samples randomly inspected from agricultural product production areas.
[0092] The above process is used to calculate each agricultural product origin of each type of agricultural product to obtain the number of random samples in each agricultural product origin of each type of agricultural product.
[0093] At this time, based on the optimized number of random inspection samples, more intelligent and fair indicators and standards can be used to inspect different agricultural products from different sources, thereby improving the collection results of agricultural product quality and safety.
[0094] It should be noted that: the results of each monitoring item of all updated random inspection samples of each type of agricultural products collected from each agricultural product origin are visualized in a chart, and predictive analysis is performed using the visualized images. Among them, chart visualization and predictive analysis are well-known technologies, and the specific methods are not introduced here.
[0095] So far, the present invention is completed.
[0096] In summary, in an embodiment of the present invention, the agricultural product origin, quality standard index, pass rate of the test items, and the test results of the random inspection samples of each type of agricultural product are obtained. According to the test results and quality standard index, a preliminary quality assessment factor is obtained, and the first random inspection necessity of each test item of each type of agricultural product is calculated, and then the first random inspection necessity is corrected. According to the corrected first random inspection necessity, several clusters and clustering contour coefficients of each agricultural product origin are obtained. According to the number of clusters and the clustering contour coefficient of each agricultural product origin, the second random inspection necessity is obtained, and finally the number of random inspection samples of each agricultural product origin is obtained, and the agricultural product random inspection is carried out in each agricultural product origin of each type of agricultural product. The present invention improves the accuracy of data collection and analysis by analyzing the random inspection results of historical random inspection samples.
[0097] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A data intelligent collection and analysis method for agricultural product quality and safety supervision software, characterized in that: The method comprises the following steps: Obtain the agricultural product quality standard index for each test item of each category of agricultural products, the pass rate of each test item of each agricultural product origin of each category of agricultural products, and the test results of each test item of each agricultural product sample of each agricultural product origin of each category of agricultural products; According to the agricultural product quality standard index of each test item of each type of agricultural product and the test results of each test item of each agricultural product sample in each agricultural product producing area, the preliminary quality assessment factor of each agricultural product producing area of each type of agricultural product is obtained; According to the passing rate of each test item of each agricultural product origin of each type of agricultural product and the inspection result of each test item of each agricultural product sample of each agricultural product origin, the first sampling necessity degree of each test item of each type of agricultural product is obtained; According to the first sampling necessity degree of each inspection item of each category of agricultural products and the inspection results of each inspection item of any two agricultural product sampling samples from each agricultural product origin, the revised first sampling necessity degree of any two agricultural product sampling samples from each agricultural product origin of each category of agricultural products is obtained; according to the revised first sampling necessity degree of any two agricultural product sampling samples from each agricultural product origin of each category of agricultural products, all agricultural product sampling samples from each agricultural product origin of each category of agricultural products are clustered to obtain a number of clusters and a clustering silhouette coefficient; According to the number of clusters and the clustering silhouette coefficient of each agricultural product origin of each type of agricultural product, the necessity degree of the second sampling inspection of each agricultural product origin of each type of agricultural product is obtained; According to the preliminary quality assessment factor and the second sampling necessity of each agricultural product origin of each type of agricultural product, the number of sampling samples of each agricultural product origin of each type of agricultural product is obtained; according to the number of sampling samples of each agricultural product origin of each type of agricultural product, agricultural product sampling is carried out in each agricultural product origin of each type of agricultural product; The method of obtaining the preliminary quality assessment factor for each agricultural product origin of each agricultural product category according to the agricultural product quality standard index for each test item of each agricultural product category and the test results of each test item of each agricultural product sample in each agricultural product origin includes the following specific steps: In each agricultural product producing area of each type of agricultural product, the quality assessment score of each agricultural product sample is obtained based on the difference between the test results of each test item of each agricultural product sample and the agricultural product quality standard index of the corresponding test item of each type of agricultural product; The first Category of agricultural products The average of the quality assessment scores of all agricultural product samples sampled from the agricultural product origin is recorded as Category of agricultural products Preliminary quality assessment factors for agricultural product origins; The method of obtaining the first sampling necessity degree of each testing item of each type of agricultural product according to the passing rate of each testing item of each agricultural product origin of each type of agricultural product and the inspection result of each testing item of each agricultural product sampling sample of each agricultural product origin comprises the following specific steps: According to Category of agricultural products The agricultural product producing area The first sample of agricultural products The inspection results of the test items are consistent with the The first sample of all agricultural products of this category The difference in the mean values of the test results of the test items is obtained. Category of agricultural products The agricultural product producing area The first sample of agricultural products The standard difference of each test item; According to The first The passing rate of each test item and the passing rate of each agricultural product sample The standard difference of the test items is obtained Category of agricultural products Necessity of first sampling inspection for each test item; According to the The first The passing rate of each test item and the passing rate of each agricultural product sample The standard difference of the test items is obtained Category of agricultural products The specific calculation formula corresponding to the first sampling necessity of each test item is: in, Indicates Category of agricultural products Necessity of first sampling inspection for each test item; Indicates The first sample of all agricultural products of this category The mean of the test results of the test items; Indicates The number of samples of all agricultural products of the category of agricultural products to be inspected; Indicates The number of agricultural product producing areas of the agricultural product category; Indicates Category of agricultural products The number of samples of all agricultural products randomly inspected in each agricultural product origin; Indicates Category of agricultural products The agricultural product producing area The first sample of agricultural products The inspection results of each test item; Indicates Category of agricultural products The agricultural product producing area The passing rate of each test item; Indicates Category of agricultural products The agricultural product producing area The first sample of agricultural products The standard difference of each test item; The method of obtaining the corrected first sampling necessity degree of any two agricultural product sampling samples of each agricultural product origin of each agricultural product category according to the first sampling necessity degree of each inspection item of each category of agricultural products and the inspection results of each inspection item of any two agricultural product sampling samples of each agricultural product origin comprises the following specific steps: Will be in Category of agricultural products Two random samples of agricultural products selected from the agricultural product producing areas are recorded as reference agricultural product random samples; According to Category of agricultural products The first sample of two reference agricultural products sampled from agricultural product origins The difference between the inspection results of the inspection items is obtained. Category of agricultural products The first sample of two reference agricultural products sampled from agricultural product origins Reference difference of each inspection item; According to Category of agricultural products The reference difference of each inspection item of two reference agricultural product sampling samples from the agricultural product origin and the The first sampling necessity of each test item of agricultural products is obtained. Category of agricultural products Necessity of the revised first random inspection of two reference agricultural product random inspection samples from each agricultural product origin; According to the Category of agricultural products The reference difference of each inspection item of two reference agricultural product sampling samples from the agricultural product origin and the The first sampling necessity of each test item of agricultural products is obtained. Category of agricultural products The specific calculation formula corresponding to the modified first sampling necessity degree of two reference agricultural product sampling samples from an agricultural product origin is: in, Indicates Category of agricultural products Necessity of the revised first random inspection of two reference agricultural product random inspection samples from each agricultural product origin; Indicates The number of inspection items for agricultural products; Indicates Category of agricultural products The first reference agricultural product sampling sample of the agricultural product origin The inspection results of each inspection item; Indicates Category of agricultural products The second reference agricultural product sampling sample of the agricultural product origin The inspection results of each inspection item; Indicates Category of agricultural products Necessity of first sampling inspection for each test item; Indicates Category of agricultural products The first sample of two reference agricultural products sampled from agricultural product origins Reference difference of each inspection item; According to the number of clusters and the clustering silhouette coefficient of each agricultural product origin of each type of agricultural product, the specific calculation formula corresponding to the second sampling necessity degree of each agricultural product origin of each type of agricultural product is obtained as follows: in, Indicates Category of agricultural products Necessity of second random inspection of agricultural product production areas; represents a natural constant; Indicates Category of agricultural products The number of clusters of agricultural product origins; No. Category of agricultural products Cluster silhouette coefficient of agricultural product origins; The specific formula corresponding to the number of samples for sampling at each agricultural product origin of each type of agricultural product is obtained based on the preliminary quality assessment factor of each agricultural product origin and the second sampling necessity degree: in, Indicates Category of agricultural products Number of samples randomly inspected from each agricultural product origin; Indicates Category of agricultural products Necessity of second random inspection of agricultural product production areas; Indicates Category of agricultural products Preliminary quality assessment factors for agricultural product origins; represents the linear normalization function; Indicates rounding up; Indicates the preset regular sampling quantity threshold.
2. The data intelligent collection and analysis method of agricultural product quality and safety supervision software according to claim 1 is characterized in that: The specific steps of obtaining the quality assessment score of each agricultural product sample according to the difference between the test results of each test item of each agricultural product sample and the agricultural product quality standard index of the test item corresponding to each type of agricultural product are as follows: In the Category of agricultural products agricultural product producing areas, The test results of all test items of the agricultural product sample minus the test results of The average value of the difference between the agricultural product quality standard indicators of the corresponding test items of the agricultural products of this category is recorded as The quality assessment scores of agricultural product random inspection samples.
3. The data intelligent collection and analysis method of agricultural product quality and safety supervision software according to claim 1 is characterized in that: The method of clustering all the agricultural product sampling samples of each agricultural product origin of each type of agricultural product according to the modified first sampling necessity degree of any two agricultural product sampling samples of each agricultural product origin of each type of agricultural product to obtain a plurality of clusters and a clustering silhouette coefficient includes the following specific steps: Iterative self-organizing clustering algorithm is used to Category of agricultural products All the agricultural product sampling samples from the agricultural product producing areas are calculated to obtain several clusters; among them, Category of agricultural products The modified first sampling necessity degree of two reference agricultural product sampling samples from the agricultural product origin is used as the cluster distance; and the Category of agricultural products The test results of each test item of each agricultural product sample from each agricultural product origin are used as each dimensional feature in the iterative self-organizing clustering algorithm; All clusters of each agricultural product origin of each type of agricultural product are calculated using the silhouette coefficient formula to obtain the cluster silhouette coefficient of each agricultural product origin of each type of agricultural product.
