Data traceability method and system for fruit and vegetable product quality safety

By obtaining the traceability path and test item pass rate of fruit and vegetable products, and using the risk level and historical time interval of the traceability map nodes to adjust the test time interval, the problem of low accuracy in fruit and vegetable product quality testing is solved, unqualified products are discovered in a timely manner, and the test accuracy and food safety are improved.

CN120298001BActive Publication Date: 2025-09-05TANGSHAN ANIMAL HUSBANDRY AQUATIC PROD QUALITY MONITORING CENT
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510366849.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-03-26
Publication Date
2025-09-05
Estimated Expiration
2045-03-26

AI Technical Summary

Technical Problem

The accuracy of fruit and vegetable product quality inspection in the existing technology is low, resulting in fruit and vegetable products with quality problems entering the market, affecting consumers' food safety.

Method used

By obtaining the traceability path and pass rate of inspection items of fruit and vegetable products during the production process, and using the risk level and historical time interval of the traceability map nodes, the inspection time interval is adjusted, and the fruit and vegetable products are sampled and inspected to improve the inspection accuracy.

Benefits of technology

By comparing the risk levels of different traceability paths and traceability map nodes, unqualified fruit and vegetable products can be discovered in a timely manner, improving the accuracy of quality inspection and ensuring consumer food safety.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120298001B_ABST
    Figure CN120298001B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of data processing technology, and more particularly to a data traceability method and system for fruit and vegetable product quality and safety. The method comprises: obtaining a traceability path for fruit and vegetable products during a production process within a predetermined time period and the pass rate of each test item of the fruit and vegetable products in the traceability path; determining the risk level of the fruit and vegetable products in the traceability path; determining the risk value of a traceability map node; determining the time interval between current adjacent test times based on the historical time interval between previous adjacent test times of the traceability path, the first risk value of the traceability map node with the highest risk value in the traceability path, and the second risk value of all traceability map nodes with the highest risk value; sampling the fruit and vegetable products in the traceability path, and testing different test items of the fruit and vegetable products in the traceability path based on the time interval. The present invention improves the accuracy of quality testing of fruit and vegetable products.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data processing, and in particular to a data tracing method and system for fruit and vegetable product quality safety. Background Art

[0002] Fruit and vegetable products refer to various commodities processed from fruits and vegetables. They can be fresh, frozen, dried, canned, or otherwise processed. To ensure consumer safety, fruit and vegetable product quality testing is necessary. Fruit and vegetable product safety testing can detect harmful substances such as pesticide residues and heavy metals, preventing harm to human health caused by these issues. Testing fruit and vegetable products can help promptly identify and address substandard products, thereby improving the overall quality of agricultural products.

[0003] In some scenarios, in order to ensure the accuracy of quality and safety testing of fruit and vegetable products, the sampling time of fruit and vegetable products is random and uncertain. As a result, some fruit and vegetable products with quality problems may be left behind, resulting in a low accuracy rate of quality testing of fruit and vegetable products, which in turn allows some fruit and vegetable products with quality problems to flow into the market, thereby affecting consumers' food safety. Summary of the Invention

[0004] In order to solve the technical problem of low accuracy in quality inspection of fruit and vegetable products, the purpose of the present invention is to provide a data traceability method and system for fruit and vegetable product quality safety. The technical solutions adopted are as follows:

[0005] In a first aspect, embodiments of the present invention provide a data traceability method for fruit and vegetable product quality and safety, comprising: obtaining traceability paths of fruit and vegetable products in a production process within a predetermined time period and a pass rate for each test item of the fruit and vegetable products in the traceability paths; determining a risk level of the fruit and vegetable products in the traceability paths based on the pass rate for each test item and the time distance between adjacent batches of unqualified fruit and vegetable products in the traceability paths; determining a risk value of a traceability map node using the risk levels corresponding to multiple traceability paths in which the traceability map node is located, the pass rate for each test item of each batch of fruit and vegetable products in each traceability path, a first number of traceability paths in which the traceability map node participates, and a second number of batches of fruit and vegetable products processed by the traceability map node within the predetermined time period; determining a time interval between current adjacent test times based on a historical time interval between previous adjacent test times of the traceability path, a first risk value of the traceability map node with the largest risk value in the traceability path, and a second risk value of the largest risk value of all traceability map nodes; sampling fruit and vegetable products in the traceability paths, and testing different test items of the fruit and vegetable products in the traceability paths based on the time interval.

[0006] Optionally, determining the risk level of fruit and vegetable products on the traceability path based on the pass rate of each test item and the time distance between adjacent batches of unqualified fruit and vegetable products on the traceability path includes: superimposing the pass rates of each batch of fruit and vegetable products on the traceability path within a predetermined time period in each test item to obtain the superimposed pass rate, and determining the number of unqualified fruit and vegetable products tested on the traceability path; superimposing the time distances between adjacent batches of unqualified fruit and vegetable products on the traceability path to obtain the superimposed time distance; calculating the standard deviation of the time distances between adjacent batches of unqualified fruit and vegetable products on the traceability path; calculating a first ratio between the number of unqualified times and the superimposed pass rate, and a first product between the superimposed time distance and the standard deviation; calculating a second ratio between the number of unqualified times and the first product; and determining the second product between the first ratio and the second ratio as the risk level of the fruit and vegetable products on the traceability path.

[0007] Optionally, determining the risk value of the traceability map node using the risk levels corresponding to multiple traceability paths where the traceability map node is located, the qualified rate of each batch of fruit and vegetable products in the traceability map node in each traceability path in the inspection items, the first number of traceability paths in which the traceability map node participates, and the second number of batches of fruit and vegetable products processed by the traceability map node within a predetermined time period includes: determining the qualified level of the traceability map node using the maximum risk level, the minimum risk level, and the standard deviation of the qualified rate of each batch of fruit and vegetable products in the traceability map node in each traceability path in the inspection items; determining the risk value of the traceability map node according to the first number of traceability paths in which the traceability map node participates, the maximum number of the first number of traceability paths in which all traceability map nodes participate, the second number of batches of fruit and vegetable products processed by the traceability map node within the predetermined time period, and the qualified level of the traceability map node.

[0008] Optionally, the maximum risk level, minimum risk level corresponding to multiple traceability paths where the traceability map node is located, and the standard deviation of the qualified rates of each batch of fruit and vegetable products in each traceability path in the traceability map node in the test items are used to determine the qualified level of the traceability map node, including: superimposing the standard deviation of the qualified rates of each batch of fruit and vegetable products in each traceability path in each test item to obtain the superimposed standard deviation; calculating a first difference between the maximum risk level and the minimum risk level; and determining the third product between the first difference and the superimposed standard deviation as the qualified level of the traceability map node.

[0009] Optionally, determining the risk value of the traceability map node based on the first number of traceability paths in which the traceability map node participates, the maximum number of the first number of traceability paths in which all traceability map nodes participate, the second number of batches of fruit and vegetable products processed by the traceability map node within a predetermined time period, and the qualification level of the traceability map node includes: calculating a third ratio between the first number and the maximum number, and a fourth ratio between the second number and the qualification level; and determining the fourth product between the third ratio and the fourth ratio as the risk value of the traceability map node.

[0010] Optionally, determining the time interval between the current adjacent detection times based on the historical time interval between the previous adjacent detection times in the traceability path, the first risk value of the traceability map node with the largest risk value in the traceability path, and the second risk value with the largest risk value among all traceability map nodes includes: calculating the fifth ratio between the first risk value and the second risk value; normalizing the fifth ratio to obtain a normalized value, and calculating the second difference between the predetermined value and the normalized value; and determining the fifth product between the historical time interval and the second difference as the time interval between the current adjacent detection times.

[0011] Optionally, obtaining the traceability path of the fruit and vegetable products in the production process within a predetermined time period and the pass rate of each inspection item of the fruit and vegetable products in the traceability path includes: obtaining the traceability path of the fruit and vegetable products in the production process within the predetermined time period and the pass rate of each inspection item of the fruit and vegetable products in the traceability path from a database.

[0012] In a second aspect, an embodiment of the present invention provides a data traceability system for the quality and safety of fruit and vegetable products, including: an acquisition module for acquiring the traceability path of fruit and vegetable products in the production process within a predetermined time period and the qualified rate of each inspection item of the fruit and vegetable products in the traceability path; a determination module for determining the risk level of the fruit and vegetable products in the traceability path according to the qualified rate of each inspection item and the time distance between adjacent batches of unqualified fruit and vegetable products on the traceability path; the determination module is also used to use the risk levels corresponding to the multiple traceability paths where the traceability map node is located, the qualified rate of each batch of fruit and vegetable products in the inspection items of the traceability map node in each traceability path, and the qualified rate of each batch of fruit and vegetable products in the inspection items of the traceability map node in each traceability path. The risk value of the traceability map node is determined based on the risk rate, the first number of traceability paths in which the traceability map node participates, and the second number of batches of fruit and vegetable products processed by the traceability map node within a predetermined time period; the determination module 302 is further used to determine the time interval between the current adjacent detection times according to the historical time interval between the previous adjacent detection times of the traceability path, the first risk value of the traceability map node with the largest risk value in the traceability path, and the second risk value with the largest risk value of all traceability map nodes; the detection module is used to sample the fruit and vegetable products in the traceability path and detect different detection items of the fruit and vegetable products in the traceability path based on the time interval.

[0013] Optionally, the determination module is further configured to superimpose the qualified rates of each batch of fruit and vegetable products on the traceability path within a predetermined time period in each test item to obtain the superimposed qualified rate, and determine the number of unqualified fruit and vegetable products tested on the traceability path; superimpose the time distances between adjacent batches of unqualified fruit and vegetable products on the traceability path to obtain the superimposed time distance; calculate the standard deviation of the time distances between adjacent batches of unqualified fruit and vegetable products on the traceability path; calculate a first ratio between the number of unqualified times and the superimposed qualified rate, and a first product between the superimposed time distance and the standard deviation; calculate a second ratio between the number of unqualified times and the first product; and determine the second product between the first ratio and the second ratio as the risk level of the fruit and vegetable products on the traceability path.

[0014] In a third aspect, an embodiment of the present invention further provides a data traceability system for fruit and vegetable product quality and safety, comprising: a processor and a memory; wherein the memory is used to store computer programs that can be run on the processor; and the processor is used to execute the program stored in the memory to implement the steps of the data traceability method for fruit and vegetable product quality and safety mentioned in the first aspect.

[0015] The present invention has the following beneficial effects: first, obtaining the traceability path of fruit and vegetable products in the production process within a predetermined time period and the qualified rate of each inspection item of the fruit and vegetable products in the traceability path; then, determining the risk level of the fruit and vegetable products in the traceability path according to the qualified rate of each inspection item and the time distance between adjacent batches of unqualified fruit and vegetable products on the traceability path; secondly, determining the risk value of the traceability map node by using the risk levels corresponding to multiple traceability paths where the traceability map node is located, the qualified rate of each batch of fruit and vegetable products in the traceability map node in each traceability path, a first number of traceability paths in which the traceability map node participates, and a second number of batches of fruit and vegetable products processed by the traceability map node within the predetermined time period; and determining the time interval between current adjacent inspection times according to the historical time interval between previous adjacent inspection times of the traceability path, the first risk value of the traceability map node with the largest risk value in the traceability path, and the second risk value of all traceability map nodes with the largest risk value; finally, sampling the fruit and vegetable products in the traceability path, and inspecting different inspection items of the fruit and vegetable products in the traceability path based on the time interval.

[0016] In this way, the embodiment of the present invention obtains the risk levels of different traceability paths by comparing the unqualified conditions of finished fruits and vegetables under different traceability paths. The risk values ​​of different traceability map nodes are obtained by comparing the risk levels of different traceability map nodes under multiple traceability paths. With reference to the risk values ​​of each traceability map node in the traceability path, the detection time interval of the finished fruits and vegetables is adjusted, and the fruit and vegetable products in the traceability path are tested at the adjusted detection time interval, so that unqualified fruit and vegetable products can be discovered in time, the accuracy of quality inspection of fruit and vegetable products is improved, and the impact on consumer food safety is avoided. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the technical solutions and advantages of the embodiments of the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art descriptions. 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 any creative work.

[0018] Figure 1 A flowchart of a data traceability method for fruit and vegetable product quality safety provided by one embodiment of the present invention;

[0019] Figure 2 A schematic diagram of a traceability map provided by one embodiment of the present invention;

[0020] Figure 3 A schematic diagram of the structure of a data traceability system for fruit and vegetable product quality safety provided by one embodiment of the present invention;

[0021] Figure 4 This is a schematic structural diagram of a data traceability system for fruit and vegetable product quality safety provided by another embodiment of the present invention. DETAILED DESCRIPTION

[0022] To further illustrate the technical means and effectiveness of the present invention to achieve its intended purpose, the following, in conjunction with the accompanying drawings and preferred embodiments, describes in detail a data traceability method and system for fruit and vegetable product quality and safety, including its specific implementation, structure, features, and effectiveness. In the following description, references to different "one embodiment" or "another embodiment" do not necessarily refer to the same embodiment. Furthermore, specific features, structures, or characteristics of one or more embodiments may be combined in any suitable manner.

[0023] 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.

[0024] The following describes in detail a method and system for tracing the quality and safety of fruit and vegetable products provided by the present invention with reference to the accompanying drawings.

[0025] Example 1:

[0026] See also Figure 1 , which shows a flow chart of a data traceability method for fruit and vegetable product quality safety provided by an embodiment of the present invention, including:

[0027] S101, obtaining the traceability path of the fruit and vegetable products in the production process and the pass rate of each test item of the fruit and vegetable products in the traceability path within a predetermined time period.

[0028] Specifically, the embodiment of the present invention uses blockchain technology to record relevant data on the production, processing, transportation and other links of fruit and vegetable products on the blockchain to ensure the immutability and credibility of the data. Furthermore, the embodiment of the present invention traces back to the specific information of the fruit and vegetable products in different production links, such as the manufacturer, site, production batch, etc., by inputting the production number. In this way, a traceability map consisting of all possible nodes that a certain fruit and vegetable product may have experienced during the production process is obtained. For example, Figure 2 As shown, Figure 2 A schematic diagram of a traceability map provided by one embodiment of the present invention is provided. Figure 2 In the traceability map, there are multiple links, each of which includes multiple traceability map nodes. The traceability map nodes in different links form a traceability path. Each traceability path includes multiple traceability map nodes. The traceability map nodes can be company nodes involved in the production, processing, and transportation of fruit and vegetable products. These company nodes can perform different testing items on the fruit and vegetable products, thereby testing the fruit and vegetable products.

[0029] Furthermore, in embodiments of the present invention, fruit and vegetable products include multiple batches. The embodiments of the present invention pre-store the qualified rates of each batch of finished fruit and vegetable products and their traceability maps in a database. During acquisition, the traceability path of the fruit and vegetable products during the production process and the qualified rates of each test item in the traceability path can be directly retrieved from the database within a predetermined time period. The predetermined time period can be determined based on actual circumstances; in the embodiment of the present invention, it is set to three months.

[0030] Further, as an optional embodiment of the present invention, obtaining the traceability path of fruit and vegetable products in the production process within a predetermined time period and the pass rate of each inspection item of the fruit and vegetable products in the traceability path includes: obtaining the traceability path of fruit and vegetable products in the production process within the predetermined time period and the pass rate of each inspection item of the fruit and vegetable products in the traceability path from a database.

[0031] S102, determining the risk level of the fruit and vegetable products on the traceability path based on the qualified rate of each test item and the time distance between adjacent batches of unqualified fruit and vegetable products on the traceability path.

[0032] Specifically, when the scale of the fruit and vegetable product manufacturer is large, its single production link may be carried out in multiple different production sites. Different fruit and vegetable finished products may have different traceability paths when they are traced. Due to the fact that manufacturers of different fruit and vegetable product links in the traceability path do not provide enough details for the post-manufacturing inspection of the product link or misreport the product sampling report, the final fruit and vegetable products may be unqualified. Within a period of time, the frequency of unqualified fruit and vegetable products detected by a certain traceability path is high, the proportion of unqualified batches in the total number of batches tested under this traceability path is large, and the smaller the average qualified rate of all batches of fruit and vegetable products tested along this traceability path during this period, the greater the possibility that this traceability path will have problems with false reporting or improper testing by the factory during this period, the greater the possibility of sending unqualified fruit and vegetable products to the market, and the greater the risk of this traceability path.

[0033] Furthermore, as an optional embodiment of the present invention, determining the risk level of fruit and vegetable products on the traceability path based on the pass rate of each test item and the time distance between adjacent batches of unqualified fruit and vegetable products on the traceability path includes: superimposing the pass rates of each batch of fruit and vegetable products on the traceability path within a predetermined time period in each test item to obtain a superimposed pass rate, and determining the number of unqualified fruit and vegetable products tested on the traceability path; superimposing the time distances between adjacent batches of unqualified fruit and vegetable products on the traceability path to obtain a superimposed time distance; calculating the standard deviation of the time distances between adjacent batches of unqualified fruit and vegetable products on the traceability path; calculating a first ratio between the number of unqualified times and the superimposed pass rate, and a first product between the superimposed time distance and the standard deviation; calculating a second ratio between the number of unqualified times and the first product; and determining the second product between the first ratio and the second ratio as the risk level of the fruit and vegetable products on the traceability path.

[0034] Specifically, the embodiment of the present invention uses the following formula to calculate the risk level of fruit and vegetable products in the traceability path:

[0035]

[0036] In the above formula, Q i is the risk level of fruit and vegetable products in the i-th traceability path. i,b is the number of unqualified times of the bth batch of fruit and vegetable products tested on the i-th traceability path within the predetermined time period. j is the qualified rate of the jth batch of fruit and vegetable products tested on the i-th traceability path within the predetermined time period. iis the number of batches of fruit and vegetable products on the i-th traceability path. k,k-1 It is the time distance between the kth batch and the k-1th batch of multiple adjacent unqualified batches on the i-th traceability path, that is, the time interval between the kth batch and the k-1th batch of multiple adjacent unqualified batches on the i-th traceability path. It is the standard deviation of the time intervals between multiple adjacent unqualified batches on the i-th traceability path within a predetermined time period, that is, the k-th batch and the k-1-th batch.

[0037] in, The larger the value of , the lower the qualified rate of the i-th traceability path when it is inspected within the predetermined time period, and the greater the possibility of detection problems occurring in the later period. The smaller the value, the closer the time intervals between adjacent batches of unqualified products are. The smaller, The larger the value, the more frequently unqualified finished products appear in adjacent product batches on the i-th traceability path within the predetermined time period.

[0038] S103, determining the risk value of the traceability map node by using the risk levels corresponding to the multiple traceability paths where the traceability map node is located, the qualified rate of each batch of fruit and vegetable products in each traceability path of the traceability map node in the inspection items, the first number of traceability paths in which the traceability map node participates, and the second number of batches of fruit and vegetable products processed by the traceability map node within a predetermined time period.

[0039] Specifically, when testing fruit and vegetable products, multiple different testing items are often performed. For example, microbial testing, pesticide residue testing, heavy metal content testing, and pest testing. The different substances tested in different testing items are introduced or generated in different production links. Therefore, when a fruit and vegetable product fails only a single test item, the failure of the fruit and vegetable product is only related to the production link corresponding to the unqualified test item. Once the problematic link in the traceability path is known, product testing can be performed on the link corresponding to this traceability node, thereby more accurately catching unqualified finished products.

[0040] Furthermore, it is known that some inappropriate test substances may be introduced in a certain production link of fruit and vegetable products, but often the same substance may be introduced in multiple links. In order to determine at which link the unqualified ingredients in the final fruit and vegetable products are introduced, the difference in the risk levels of different traceability paths that include this link can be analyzed. When the risk levels of different traceability paths vary greatly, and the qualified rates of the component test items that may be introduced in the link where this traceability node is located and the corresponding test items of the traceability paths that include this traceability node vary greatly, it proves that there may be no problem with this traceability node itself, but there are problems with the traceability nodes on certain traceability paths that may introduce the same unqualified ingredients, resulting in a higher risk level for certain traceability paths.

[0041] Further, as an optional embodiment of the present invention, determining the risk value of the traceability map node by using the risk levels corresponding to the multiple traceability paths where the traceability map node is located, the qualified rate of each batch of fruit and vegetable products in the traceability map node in each traceability path in the inspection items, the first number of traceability paths in which the traceability map node participates, and the second number of batches of fruit and vegetable products processed by the traceability map node within a predetermined time period includes: determining the qualified level of the traceability map node by using the maximum risk level and the minimum risk level corresponding to the multiple traceability paths where the traceability map node is located, and the standard deviation of the qualified rate of each batch of fruit and vegetable products in the traceability map node in each traceability path in the inspection items; determining the risk value of the traceability map node according to the first number of traceability paths in which the traceability map node participates, the maximum number of the first number of traceability paths in which all traceability map nodes participate, the second number of batches of fruit and vegetable products processed by the traceability map node within the predetermined time period, and the qualified level of the traceability map node.

[0042] Specifically, a traceability map node refers to a link in the production process of a fruit and vegetable product in the traceability map. As an optional embodiment of the present invention, the qualification level of the traceability map node is determined by using the maximum risk level and minimum risk level corresponding to multiple traceability paths where the traceability map node is located, as well as the standard deviation of the qualified rates of each batch of fruit and vegetable products in each traceability path in the traceability map node in the test items. The method includes: superimposing the standard deviations of the qualified rates of each batch of fruit and vegetable products in each traceability path in each test item to obtain a superimposed standard deviation; calculating a first difference between the maximum risk level and the minimum risk level; and determining the third product of the first difference and the superimposed standard deviation as the qualification level of the traceability map node.

[0043] The embodiment of the present invention specifically uses the following formula to calculate the qualification level of the traceability graph node:

[0044]

[0045] In the above formula, Wm Q is the qualification level of the mth traceability graph node within the predetermined time period. m,max Q is the maximum risk level corresponding to the multiple traceability paths where the mth traceability graph node is located. m,min is the minimum risk level corresponding to the multiple traceability paths where the mth traceability graph node is located. (Q m,max -Q m,min ) is larger, the smaller the possibility that the graph traceability node will have problems within the predetermined time period. is the standard deviation of the qualified rate of the hth test item related to the mth traceability map node in all traceability paths where the mth traceability map node is located, among multiple batches of fruit and vegetable products tested. h is the number of detection items related to the mth traceability graph node. The larger the value of , the greater the risk of the mth traceability graph node is affected by other traceability graph nodes, which proves that the risk of this traceability graph node is smaller.

[0046] Furthermore, the more important the position of the company responsible for a certain link of the fruit and vegetable product in the traceability map, and the more it participates in multiple traceability production lines of fruit and vegetable products, the more the true qualification of this traceability map node will affect the qualification of the final fruit and vegetable products. When there is a problem with this traceability map node, the final fruit and vegetable product is more likely to have a problem. Therefore, more attention should be paid to traceability map nodes that involve many traceability paths and produce more batches of products per month, and the risk level of a single traceability map node should be increased to make the review and discovery of unqualified finished products more timely. At the same time, the qualification level of this traceability map node in the recent period can be used as a reference. The larger the value, the less likely the company corresponding to this traceability map node is to falsely report or conceal unqualified products in this predetermined time period, and the lower the risk.

[0047] Further, as an optional embodiment of the present invention, determining the risk value of the traceability map node based on the first number of traceability paths in which the traceability map node participates, the maximum number of the first number of traceability paths in which all traceability map nodes participate, the second number of batches of fruit and vegetable products processed by the traceability map node within a predetermined time period, and the qualification level of the traceability map node includes: calculating a third ratio between the first number and the maximum number, and a fourth ratio between the second number and the qualification level; and determining the fourth product between the third ratio and the fourth ratio as the risk value of the traceability map node.

[0048] Specifically, the embodiment of the present invention uses the following formula to calculate the risk value of the traceability graph node:

[0049]

[0050] In the above formula, Em is the risk value of the mth traceability graph node. m is the first number of traceability paths that the mth traceability graph node participates in. max{n m} is the maximum number of the first number of traceability paths in which all traceability graph nodes participate. The larger the value of , the greater the impact of the current traceability map node on the qualification of fruit and vegetable products, and the more risks it has. m is the second number of batches of fruit and vegetable products processed by the company corresponding to the mth traceability map node in the predetermined time period, P m The larger the value of W, the stronger the participation of the company represented by this traceability map node in the final fruit and vegetable products, and the greater the risk value. m It is the qualification level of the mth traceability map node within the predetermined time period. The smaller the value, the more serious the problem of the mth traceability map node and the greater the risk.

[0051] S104, determining the time interval between the current adjacent detection times based on the historical time interval between the previous adjacent detection times of the traceability path, the first risk value of the traceability graph node with the largest risk value in the traceability path, and the second risk value with the largest risk value of all traceability graph nodes.

[0052] Specifically, in order to prevent substandard or even harmful fruit and vegetable products from entering the market, timely intercept them, and effectively reduce the burden on testing personnel, the embodiments of the present invention use the risk values ​​of each traceability map node in different traceability paths as a reference, and conduct regular quality testing on fruit and vegetable products produced by production lines along different traceability paths. The greater the risk value of the traceability map node included in a production line along a certain traceability path, the greater the risk level of this traceability path. The frequency of testing of the fruit and vegetable products produced along this traceability path should be increased, and the interval between tests and the last test should be reduced.

[0053] Further, as an optional embodiment of the present invention, determining the time interval between the current adjacent detection times based on the historical time interval between the previous adjacent detection times of the traceability path, the first risk value of the traceability map node with the largest risk value in the traceability path, and the second risk value with the largest risk value of all traceability map nodes includes: calculating the fifth ratio between the first risk value and the second risk value; normalizing the fifth ratio to obtain a normalized value, and calculating the second difference between the predetermined value and the normalized value; determining the fifth product between the historical time interval and the second difference as the time interval between the current adjacent detection times.

[0054] Specifically, in the embodiment of the present invention, the predetermined value may be 1. In the embodiment of the present invention, the time interval between the current adjacent detection times is calculated using the following formula:

[0055]

[0056] In the above formula, t k,i is the time interval between the kth detection and the k-1th detection adjacent to the kth detection in the i-th traceability path. k-1,i is the time interval between the k-1th and k-2th times in the i-th tracing path. i,max The first risk value of the traceability graph node with the largest risk value when detected within a predetermined time period in the i-th traceability path. max{E m} is the second risk value with the largest risk value among all traceability graph nodes within the predetermined time period. The larger the value of , the greater the risk of the production route of this traceability path, and the more the next time interval should be reduced. Tanh is the hyperbolic tangent function, To use the tanh function The result of normalization processing has a value range of (-1, 1).

[0057] S105: sampling the fruit and vegetable products in the traceability path, and testing different test items of the fruit and vegetable products in the traceability path based on time intervals.

[0058] Specifically, the above-mentioned embodiment of the present invention can obtain the time intervals of fruit and vegetable products obtained from different traceability paths in different time periods. After obtaining the time intervals, firstly, different batches of fruit and vegetable products in the traceability path are sampled to obtain sampled samples. In order to ensure the representativeness and pollution-free nature of the sampled samples, the sampled samples should be sent to the laboratory for analysis immediately after sampling to avoid changes in heavy metal content due to improper storage. Since the ingredients in fruit and vegetable products such as fruit and vegetable beverages are complex and may contain interfering substances such as solid particles, pigments, and sugars, the samples need to be properly processed, such as dilution, filtration, digestion, etc., to eliminate these interferences. Then, a standard solution of known concentration is used to adjust the instrument to ensure the accuracy of the test results. Finally, the treated sample is injected into the instrument for analysis, and the measurement results are compared with the national standard or industry standard to determine whether the sample is qualified. Among them, the embodiment of the present invention mainly uses atomic absorption spectrometry to detect the sample.

[0059] Furthermore, a fixed number N (set to 100 in this embodiment) of fruit and vegetable products along the same traceability path is randomly sampled and tested using the above method. The percentage of qualified samples in different test items is calculated as the pass rate of the test item. The pass rate results for different test items and their corresponding traceability paths are then stored in a database for reference when estimating the test time.

[0060] The embodiment of the present invention compares the unqualified conditions of finished fruits and vegetables under different traceability paths to obtain the risk levels of different traceability paths. The risk values ​​of different traceability map nodes are obtained by comparing the risk levels of different traceability map nodes under multiple traceability paths. With reference to the risk values ​​of each traceability map node in the traceability path, the detection time interval of the finished fruits and vegetables is adjusted, and the fruit and vegetable products in the traceability path are tested at the adjusted detection time interval. Unqualified fruit and vegetable products can be discovered in a timely manner, thereby improving the accuracy of quality testing of fruit and vegetable products and avoiding affecting the food safety of consumers.

[0061] Example 2:

[0062] Corresponding to the data tracing method for fruit and vegetable product quality and safety provided in the above embodiment, based on the same technical concept, an embodiment of the present invention further provides a data tracing system for fruit and vegetable product quality and safety, which is used to execute the above data tracing method for fruit and vegetable product quality and safety. Figure 3 A structural diagram of a data traceability system for fruit and vegetable product quality safety provided by an embodiment of the present invention is shown in FIG. Figure 3The data traceability system for the quality and safety of fruit and vegetable products includes: an acquisition module 301 for acquiring the traceability path of fruit and vegetable products in the production process and the qualified rate of each test item of fruit and vegetable products in the traceability path within a predetermined time period; a determination module 302 for determining the risk level of fruit and vegetable products in the traceability path according to the qualified rate of each test item and the time distance between adjacent batches of unqualified fruit and vegetable products on the traceability path; the determination module 302 is also used to use the risk levels corresponding to the multiple traceability paths where the traceability map nodes are located, the qualified rate of each batch of fruit and vegetable products in the test items of the traceability map nodes in each traceability path, and the time distance between adjacent batches of unqualified fruit and vegetable products on the traceability path. The risk value of the traceability map node is determined based on the first number of traceability paths participated by the traceability point and the second number of batches of fruit and vegetable products processed by the traceability map node within a predetermined time period; the determination module 302 is further used to determine the time interval between the current adjacent detection times according to the historical time interval between the previous adjacent detection times of the traceability path, the first risk value of the traceability map node with the largest risk value in the traceability path, and the second risk value of the largest risk value of all traceability map nodes; the detection module 303 is used to sample the fruit and vegetable products in the traceability path and detect different detection items of the fruit and vegetable products in the traceability path based on the time interval.

[0063] The embodiment of the present invention compares the unqualified conditions of finished fruits and vegetables under different traceability paths to obtain the risk levels of different traceability paths. The risk values ​​of different traceability map nodes are obtained by comparing the risk levels of different traceability map nodes under multiple traceability paths. With reference to the risk values ​​of each traceability map node in the traceability path, the detection time interval of the finished fruits and vegetables is adjusted, and the fruit and vegetable products in the traceability path are tested at the adjusted detection time interval. Unqualified fruit and vegetable products can be discovered in a timely manner, thereby improving the accuracy of quality testing of fruit and vegetable products and avoiding affecting the food safety of consumers.

[0064] Optionally, the determination module 302 is further configured to superimpose the qualified rates of each batch of fruit and vegetable products on the traceability path within a predetermined time period in each test item to obtain the superimposed qualified rate, and determine the number of unqualified fruit and vegetable products tested on the traceability path; superimpose the time distances between unqualified fruit and vegetable products of adjacent batches on the traceability path to obtain the superimposed time distance; calculate the standard deviation of the time distances between unqualified fruit and vegetable products of adjacent batches on the traceability path; calculate a first ratio between the number of unqualified times and the superimposed qualified rate, and a first product between the superimposed time distance and the standard deviation; calculate a second ratio between the number of unqualified times and the first product; and determine the second product between the first ratio and the second ratio as the risk level of the fruit and vegetable products on the traceability path.

[0065] Example 3:

[0066] Corresponding to the data tracing method for fruit and vegetable product quality and safety provided in the above embodiment, based on the same technical concept, an embodiment of the present invention further provides a data tracing system for fruit and vegetable product quality and safety, which is used to execute the above data tracing method for fruit and vegetable product quality and safety. Figure 4 A structural diagram of a data traceability system for fruit and vegetable product quality safety provided by another embodiment of the present invention is shown in FIG. Figure 4 The data traceability system for fruit and vegetable product quality and safety may vary greatly due to different configurations or performances, and may include one or more processors 401 and memory 402, wherein the memory 402 is used to store computer programs that can be run on the processor 401, and the processor 401 is used to execute the programs stored in the memory 402 to achieve the above Figure 1 The various steps in the method embodiment are as follows. Memory 402 may be either transient or persistent storage. The application stored in memory 402 may include one or more modules (not shown), each of which may include a series of computer-executable instructions for a data traceability system for fruit and vegetable product quality and safety.

[0067] Furthermore, processor 401 can be configured to communicate with memory 402 to execute a series of computer-executable instructions stored in memory 402 on the fruit and vegetable product quality and safety data traceability system. The fruit and vegetable product quality and safety data traceability system can also include one or more power supplies 403, one or more wired or wireless network interfaces 404, one or more input and output interfaces 405, and one or more keyboards 406.

[0068] Specifically in this embodiment, the data traceability system for fruit and vegetable product quality safety includes a processor, a communication interface, a memory, and a communication bus; wherein the processor, the communication interface, and the memory communicate with each other through the bus; the memory is used to store computer programs; the processor is used to execute the programs stored in the memory to achieve the above Figure 1 The various steps in the method embodiment have the beneficial effects of the above method embodiments. To avoid repetition, the embodiments of the present invention will not be described again here.

[0069] It should be noted that the data traceability system for fruit and vegetable product quality and safety provided by the embodiment of the present invention and the data traceability method for fruit and vegetable product quality and safety provided by the embodiment of the present invention are based on the same application concept. Therefore, the specific implementation of this embodiment can refer to the implementation of the aforementioned data traceability method for fruit and vegetable product quality and safety, and has the same or similar beneficial effects, and the repeated parts will not be repeated.

[0070] It should be noted that the order in which the embodiments of the present invention are described above is for illustrative purposes only and does not necessarily represent the superiority or inferiority of the embodiments. The processes depicted in the accompanying drawings do not necessarily require the specific order or sequential order shown to achieve the desired results. In certain embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0071] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referred to each other. Each embodiment focuses on the differences from other embodiments.

Claims

1. A data traceability method for fruit and vegetable product quality safety, characterized in that: The data traceability method for fruit and vegetable product quality and safety includes: Obtaining the traceability path of the fruit and vegetable products during the production process within a predetermined time period and the qualified rate of each test item of the fruit and vegetable products in the traceability path; Determining the risk level of the fruit and vegetable products on the traceability path based on the qualified rate of each of the test items and the time distance between adjacent batches of unqualified fruit and vegetable products on the traceability path; Determine the risk value of the traceability map node by using the risk levels corresponding to the multiple traceability paths where the traceability map node is located, the qualified rate of each batch of fruit and vegetable products in each traceability path of the traceability map node in the test item, the first number of traceability paths in which the traceability map node participates, and the second number of batches of fruit and vegetable products processed by the traceability map node within the predetermined time period; Determine the time interval between the current adjacent detection times based on the historical time interval between the previous adjacent detection times of the traceability path, the first risk value of the traceability graph node with the largest risk value in the traceability path, and the second risk value with the largest risk value of all traceability graph nodes; The fruit and vegetable products in the traceability path are sampled, and different test items of the fruit and vegetable products in the traceability path are tested based on the time intervals.

2. The data tracing method for fruit and vegetable product quality safety according to claim 1 is characterized in that: Determining the risk level of the fruit and vegetable products on the traceability path based on the qualified rate of each of the test items and the time distance between adjacent batches of unqualified fruit and vegetable products on the traceability path includes: Adding up the qualified rates of each test item of each batch of fruit and vegetable products on the traceability path within the predetermined time period to obtain a superimposed qualified rate, and determining the number of unqualified fruit and vegetable products tested on the traceability path; Superimposing the time distances between adjacent batches of unqualified fruit and vegetable products on the traceability path to obtain a superimposed time distance; Calculating the standard deviation of the time distances between adjacent batches of unqualified fruit and vegetable products on the traceability path; Calculating a first ratio between the number of unqualified times and the stacking qualified rate, and a first product between the stacking time distance and the standard deviation; Calculating a second ratio between the number of failures and the first product; A second product of the first ratio and the second ratio is determined as the risk level of the fruit and vegetable product in the traceability path.

3. The data tracing method for fruit and vegetable product quality safety according to claim 1 is characterized in that: Determining the risk value of the traceability map node by using the risk levels corresponding to the multiple traceability paths where the traceability map node is located, the qualified rate of each batch of fruit and vegetable products in each traceability path of the traceability map node in the test item, the first number of traceability paths in which the traceability map node participates, and the second number of batches of fruit and vegetable products processed by the traceability map node within the predetermined time period includes: Determine the qualification level of the traceability map node by using the maximum risk level and the minimum risk level corresponding to the multiple traceability paths where the traceability map node is located, and the standard deviation of the qualified rate of each batch of fruit and vegetable products in the traceability path of the traceability map node in the test item; The risk value of the traceability map node is determined based on the first number of traceability paths in which the traceability map node participates, the maximum number of the first number of traceability paths in which all traceability map nodes participate, the second number of batches of fruit and vegetable products processed by the traceability map node within the predetermined time period, and the qualification level of the traceability map node.

4. The data tracing method for fruit and vegetable product quality safety according to claim 3 is characterized in that: Determining the qualification level of the traceability map node by using the maximum risk level and the minimum risk level corresponding to the plurality of traceability paths where the traceability map node is located and the standard deviation of the qualified rate of each batch of fruit and vegetable products in each traceability path of the traceability map node in the test item includes: Superimposing the standard deviations of the qualified rates of the fruit and vegetable products of each batch in each traceability path in each test item to obtain a superimposed standard deviation; calculating a first difference between the maximum risk level and the minimum risk level; A third product between the first difference and the superposition standard deviation is determined as the qualification level of the traceability map node.

5. The data tracing method for fruit and vegetable product quality safety according to claim 3 is characterized in that: The determining of the risk value of the traceability map node according to the first number of traceability paths in which the traceability map node participates, the maximum number of the first number of traceability paths in which all traceability map nodes participate, the second number of batches of fruit and vegetable products processed by the traceability map node within the predetermined time period, and the qualification level of the traceability map node includes: calculating a third ratio between the first number and the maximum number, and a fourth ratio between the second number and the qualification level; A fourth product between the third ratio and the fourth ratio is determined as the risk value of the traceability graph node.

6. The data tracing method for fruit and vegetable product quality safety according to claim 1 is characterized in that: Determining the time interval between the current adjacent detection times according to the historical time interval between the previous adjacent detection times of the traceability path, the first risk value of the traceability graph node with the largest risk value in the traceability path, and the second risk value with the largest risk value of all traceability graph nodes includes: calculating a fifth ratio between the first risk value and the second risk value; normalizing the fifth ratio to obtain a normalized value, and calculating a second difference between a predetermined value and the normalized value; A fifth product of the historical time interval and the second difference is determined as the time interval between the currently adjacent detection times.

7. The data tracing method for fruit and vegetable product quality safety according to claim 1 is characterized in that: The obtaining of the traceability path of the fruit and vegetable products in the production process within a predetermined time period and the qualified rate of each test item of the fruit and vegetable products in the traceability path includes: The traceability path of the fruit and vegetable products in the production process within a predetermined time period and the qualified rate of each inspection item of the fruit and vegetable products in the traceability path are obtained from the database.

8. A data traceability system for fruit and vegetable product quality safety, characterized by: include: An acquisition module, configured to acquire the traceability path of the fruit and vegetable products during the production process within a predetermined time period and the qualified rate of each test item of the fruit and vegetable products in the traceability path; a determination module, configured to determine the risk level of the fruit and vegetable products on the traceability path based on the qualified rate of each of the test items and the time distance between adjacent batches of unqualified fruit and vegetable products on the traceability path; The determination module is further configured to determine the risk value of the traceability map node by using the risk levels corresponding to the multiple traceability paths where the traceability map node is located, the qualified rate of each batch of fruit and vegetable products in each traceability path of the traceability map node in the test item, the first number of traceability paths in which the traceability map node participates, and the second number of batches of fruit and vegetable products processed by the traceability map node within the predetermined time period; The determination module is further configured to determine the time interval between the current adjacent detection times based on the historical time interval between the previous adjacent detection times of the traceability path, the first risk value of the traceability graph node with the largest risk value in the traceability path, and the second risk value with the largest risk value of all traceability graph nodes; The detection module is used to sample the fruit and vegetable products in the traceability path and detect different detection items of the fruit and vegetable products in the traceability path based on the time interval.

9. The data traceability system for fruit and vegetable product quality safety according to claim 8, characterized in that: The determination module is further configured to add up the qualified rates of each batch of fruit and vegetable products on the traceability path within the predetermined time period in each test item to obtain a superimposed qualified rate, and determine the number of unqualified fruit and vegetable products tested on the traceability path; Superimposing the time distances between adjacent batches of unqualified fruit and vegetable products on the traceability path to obtain a superimposed time distance; Calculating the standard deviation of the time distances between adjacent batches of unqualified fruit and vegetable products on the traceability path; Calculating a first ratio between the number of unqualified times and the stacking qualified rate, and a first product between the stacking time distance and the standard deviation; Calculating a second ratio between the number of failures and the first product; A second product of the first ratio and the second ratio is determined as the risk level of the fruit and vegetable product in the traceability path.

10. A data traceability system for fruit and vegetable product quality safety, characterized by: The data traceability system for fruit and vegetable product quality and safety includes: a processor and a memory; wherein the memory is used to store a computer program that can be run on the processor; the processor is used to execute the program stored in the memory to implement the steps of the data traceability method for fruit and vegetable product quality and safety as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Block chain-based all-in-one fluorescent quantitative test strip management system and method

    CN119398528A

  • Method and system for detecting component content of agricultural and sideline products

    CN119479882A