A traceability method and traceability system for agricultural product safety information
By constructing the safety, growth, transportation coefficient and risk coefficient of agricultural products and optimizing transportation conditions and management plans, the problem of lack of feedback and risk management in the traceability methods of agricultural product food safety information in the existing technology is solved, and the full life cycle of agricultural products is realized. Monitoring and food safety assurance.
Patent Information
- Application Number
- CN202410705613.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-03
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2044-06-03
AI Technical Summary
The existing agricultural product food safety information traceability method only includes a small part of the information such as the place of production and production date when entering information, which cannot effectively promote the food safety management of agricultural products. It also lacks a feedback mechanism in the event of food safety risks, making it difficult to timely address food safety issues. solve.
By obtaining the quality inspection data, planting data and transportation condition data of the target agricultural products, the safety, growth, transportation coefficient and risk coefficient are constructed. If it is unqualified or the risk coefficient exceeds the threshold, an identification code is assigned and transportation conditions are optimized, using full-link management. Optimizing the knowledge graph provides optimization solutions to ensure the food safety of agricultural products.
It achieves full life cycle monitoring and risk management of agricultural products, timely detects abnormalities in planting and transportation, improves food safety, ensures the quality and safety of agricultural products, and enhances its market competitiveness.
Smart Images

Figure CN118278960B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of food safety management, and in particular to a method and system for tracing agricultural product safety information. Background Art
[0002] Agricultural product safety information traceability refers to the full tracking and recording of agricultural product production, processing, circulation and other links through a series of technical means and management measures to ensure that the quality and safety of agricultural products can be traced. The agricultural product safety information traceability system mainly includes: traceability information collection: by recording the origin, producer, production date, processing process, quality inspection and other information of agricultural products; traceability information query: consumers can query the traceability information of agricultural products by scanning the traceability code on the agricultural product packaging or entering relevant information to understand the production, processing, circulation and other conditions of agricultural products.
[0003] In the Chinese invention patent with application publication number CN110298675A, a method for tracing agricultural product information is disclosed, including: when it is detected that a mobile terminal scans a first identification code corresponding to a target agricultural product, obtaining agricultural product information of the target agricultural product associated with the first identification code, the agricultural product information includes a planting traceability file, a processing traceability file, and a quality inspection result; and sending the agricultural product information to the mobile terminal for display. According to the mobile terminal scanning the first identification code corresponding to the target agricultural product, the planting traceability file, the processing traceability file, and the quality inspection result of the target agricultural product are obtained, including the planting traceability file information, so as to realize the tracing of agricultural product information of the target agricultural product throughout its life cycle.
[0004] Combined with the above application and the contents of the prior art:
[0005] When planting and selling target agricultural products, for example, red dates, apples or similar agricultural products, if similar agricultural products in the sales area of the target agricultural products have certain food safety risks, in this case, the food safety problems of similar products will have a negative impact on the sales of the target agricultural products. In order to avoid such negative impact, it is necessary to record and disclose various information of the agricultural products so that consumers can query and trace the source, thereby ensuring the food safety of the target agricultural products.
[0006] In the existing food safety information traceability methods, an identification code is usually added to the agricultural products after they are processed. This identification code is usually a QR code or a barcode. When purchasing, consumers query relevant information by scanning and identifying the identification code. However, when entering information, the existing identification code usually only contains a small amount of information such as the place of production and date of production. After the information is entered, it does not provide feedback on the food safety management of the agricultural products, resulting in it only having the function of information query. When entering information and managing all links, it does not have a role in promoting the food safety of agricultural products.
[0007] To this end, the present invention provides a method and system for tracing the safety information of agricultural products. Summary of the invention
[0008] 1. Technical issues to be resolved
[0009] In view of the deficiencies of the prior art, the present invention provides a traceability method and a traceability system for agricultural product safety information. The method determines whether the target agricultural product of the current batch is qualified based on the quality degree. If the proportion of unqualified products exceeds expectations, an identification code is assigned to the target agricultural product in the current batch; the transportation condition data of the target agricultural product is monitored, and the data of each link of the target agricultural product is collected; the risk coefficient of the target agricultural product is constructed by the risk degree. If the risk coefficient exceeds the risk threshold, the knowledge map of the whole link management optimization of agricultural products is used to provide a corresponding link optimization plan for the whole link management of the target agricultural product. In addition to tracing the safety information, the food safety of the target agricultural product is guaranteed, and the food safety of the agricultural product is promoted, thereby solving the technical problems raised in the background technology.
[0010] (II) Technical solution
[0011] To achieve the above objectives, the present invention is implemented through the following technical solutions:
[0012] A method for tracing the safety information of agricultural products, comprising: obtaining the quality inspection data of target agricultural products in a target area, constructing a quality inspection data set after aggregation, and constructing a safety index of the target agricultural products from the quality inspection data set. , if the security obtained Without exceeding the safety threshold, data collection instructions are issued to the outside;
[0013] Collect planting data in the growth area of the target agricultural product, build a planting data set of agricultural products, monitor the growth status of the target agricultural product, and build the corresponding growth degree from the acquired growth status data set. If the growth If the growth threshold is exceeded, a quality inspection instruction will be issued to the outside;
[0014] The quality inspection data are aggregated to construct a set of agricultural product quality inspection data, and the quality index is constructed from the agricultural product quality inspection data set. , according to the quality Determine whether the target agricultural products in the current batch are qualified. If the proportion of unqualified products exceeds expectations, assign identification codes to the target agricultural products in the current batch;
[0015] After entering the transportation stage, the transportation condition data of the target agricultural products are monitored, and the transportation coefficient is constructed from the transportation condition data set. , if the transport coefficient If the transportation conditions are not within the range, the trained optimization model is used to optimize the current transportation conditions and collect data on each link of the target agricultural products;
[0016] Analyze the data of each link of the target agricultural product, obtain risk parameters and risk degree, and construct the risk coefficient of the target agricultural product based on the risk degree , if the risk factor If the risk threshold is exceeded, the knowledge graph of agricultural product full-link management optimization will provide corresponding link optimization solutions for the full-link management of target agricultural products; among which, the risk coefficient The construction method of risk is as follows: After linear normalization, the corresponding data values are mapped to the interval According to the following formula:
[0017]
[0018] in, , m is the number of risk parameters; is the risk degree of the ith risk parameter, is the mean of risk; weight coefficient, , ,and .
[0019] Furthermore, the sales area of agricultural products is taken as the target area, and the quality inspection data of the target agricultural products in the target area obtained in the most recent inspection cycle is obtained. The obtained quality inspection data are aggregated to construct a quality inspection data set; the safety of the target agricultural products is constructed from the quality inspection data set. , the method is as follows: the pesticide residue and heavy metal content Perform linear normalization and map the corresponding data values to the interval According to the following method:
[0020]
[0021] in, , is the total number of test batches, weight coefficient: , ,and ; is the pesticide residue in the i-th test batch, is the mean value of pesticide residues, It is the qualified reference value of pesticide residue; is the heavy metal content of the i-th test batch, is the average content of heavy metal elements, It is the qualified reference value for the content of heavy metal elements.
[0022] Furthermore, after receiving the data collection instruction, the planting area of the target agricultural product is determined, and the planting area is determined as a growth area. Data collection is performed in the growth area to obtain the target crop planting data, and the acquired data is aggregated to construct an agricultural product crop planting data set; the growth area is divided into several sub-areas, and monitoring points are set in each sub-area. The growth conditions of the target agricultural product are regularly monitored and recorded at each monitoring point, and the acquired growth data is aggregated to construct a growth status data set of the target agricultural product.
[0023] Furthermore, the corresponding growth degree is constructed from the growth status data set of the target agricultural product , where the yield of target agricultural products in each sub-region is obtained After that, it is dimensionless and then based on the following method:
[0024]
[0025] in, is the weight coefficient, , ,and , , n is the number of sub-regions, is the output of target agricultural product in the ith sub-region, is the mean output, It is the qualified standard value of output.
[0026] Furthermore, after receiving the quality inspection instruction, a part of the current target agricultural product is extracted as the inspection batch, the inspection batch is inspected, the acquired quality inspection data is summarized, and a corresponding agricultural product quality inspection data set is constructed; the quality index of the target agricultural product is generated from the agricultural product quality inspection data set. ;
[0027] Based on the quality obtained The relationship with the quality threshold is used to distinguish them into qualified products and unqualified products; an identification code is assigned to the target agricultural products in the current batch, so that the identification code contains the target information, including at least: planting area, harvest date, processing, transportation and storage data, and transportation instructions are issued to the outside.
[0028] Furthermore, quality The construction method is as follows: First, the safety of target agricultural products of different test batches is constructed based on the test data. , and then follow the following method:
[0029]
[0030] in, , is the number of test batches; weight coefficient: , and ; is the safety degree of the target agricultural product of the i-th test batch, is the mean safety value, It is the reference standard value for safety.
[0031] Furthermore, after receiving the transportation instruction, the transportation condition data during the transportation process is collected and recorded during the transportation stage, and a transportation condition data set is constructed; the transportation coefficient of the target agricultural product is constructed from the transportation condition data set. , if the transport coefficient If the transport condition is not within the range, an environmental adjustment instruction is issued to the outside;
[0032] Transport coefficient The generation method of temperature is as follows. and humidity After linear normalization, the corresponding data values are mapped to the interval According to the following formula:
[0033]
[0034] Weight coefficient, , ,and , is the average temperature in the current monitoring period, is the qualified standard value of temperature; is the average humidity in the current monitoring period, It is the qualified standard value of humidity.
[0035] Furthermore, after receiving the adjustment instruction, the trained optimization model is used to optimize the current transportation conditions, and the optimized transportation conditions are executed; data of each link of the target agricultural products are collected, including planting and acquisition links, processing and transportation links, quality inspection links and product storage links. After summarizing the data of each link, a process data set of the target agricultural products is constructed, and risk analysis instructions are issued to the outside.
[0036] Furthermore, after receiving the risk analysis instruction, the relevant parameters of each link are compared with the corresponding qualified threshold value. If the relevant parameters are not within the qualified threshold value, they are used as risk parameters; the difference ratio between the risk parameter and the qualified threshold value is obtained, and the difference ratio is used as the risk degree. The risk degrees at each link are summarized to construct a risk data set of the target agricultural product; the risk coefficient of the target agricultural product is constructed from the risk data set. , if the risk factor obtained is If the risk threshold is exceeded, emergency handling instructions will be issued to the outside world;
[0037] After receiving the emergency handling instructions, the optimization of each link of agricultural products is taken as the target word, and a knowledge graph for the optimization of the management of all links of agricultural products is pre-constructed; the risk parameters and the difference ratio are combined as risk characteristics, and according to the correspondence between the risk characteristics and the optimization plan of the target agricultural product link, the knowledge graph for the optimization of the management of all links of agricultural products provides corresponding link optimization plans for the management of all links of the target agricultural products.
[0038] A traceability system for agricultural product safety information includes: a quality monitoring unit, which obtains quality inspection data of target agricultural products in a target area, constructs a quality inspection data set after aggregation, and constructs a safety index of the target agricultural products from the quality inspection data set. , if the security obtained Without exceeding the safety threshold, data collection instructions are issued to the outside;
[0039] The growth status monitoring unit collects planting data in the growth area of the target agricultural product, builds a planting data set of agricultural products, and monitors the growth status of the target agricultural product. The corresponding growth degree is constructed from the acquired growth status data set. If the growth If the growth threshold is exceeded, a quality inspection instruction will be issued to the outside;
[0040] The quality assessment unit aggregates the quality inspection data to construct a set of agricultural product quality inspection data, and constructs a quality index from the agricultural product quality inspection data set. , according to the quality Determine whether the target agricultural products in the current batch are qualified. If the proportion of unqualified products exceeds expectations, assign identification codes to the target agricultural products in the current batch;
[0041] The transportation status condition unit monitors the transportation condition data of the target agricultural products after entering the transportation stage, and constructs the transportation coefficient based on the transportation condition data set. , if the transport coefficient If the transportation conditions are not within the range, the trained optimization model is used to optimize the current transportation conditions and collect data on each link of the target agricultural products;
[0042] The link optimization unit analyzes the data of each link of the target agricultural product, obtains the risk parameters and risk degree, and constructs the risk coefficient of the target agricultural product based on the risk degree. , if the risk factor When the risk threshold is exceeded, the agricultural product full-link management optimization knowledge graph will provide corresponding link optimization solutions for the full-link management of the target agricultural product.
[0043] (III) Beneficial effects
[0044] The present invention provides a method and system for tracing the safety information of agricultural products, which have the following beneficial effects:
[0045] 1. When the target crops are in the planting stage, various planting data are collected and monitored, which can timely detect abnormalities in the planting status, such as excessive spraying of pesticides, and can protect the status of the target agricultural products.
[0046] 2. By growth Determine whether the target agricultural products have reached the maturity stage and harvest them. By selecting samples, the maturity of the crops can be predicted as a whole. Compared with single evaluation based on experience, this has wider coverage and higher reliability. By collecting data through automated programs and periodically monitoring the growth status of crops, human intervention can be reduced and the risk of misjudgment can be reduced.
[0047] 3. Based on the acquired test data, the current quality or quality of the target agricultural products can be judged. If some of its indicators are abnormal, if there are no parameters with excessively high abnormalities, the corresponding quality degree can be constructed as a whole. , judge the quality of the target agricultural products in the current batch, if the quality If it can meet the expectations, it can be released into the market after its grade is determined. If it cannot meet the expectations, the unqualified products can be screened out.
[0048] 4. When safety problems actually occur in the target agricultural products, rapid traceability can be carried out and the links that produce food safety can be analyzed; by monitoring the transportation conditions, when abnormalities occur in the transportation conditions, an alarm command can be issued to the outside, so that when it is judged that changes in the transportation environment may have a certain impact on the safety of the target agricultural products, timely processing can be carried out to ensure transportation safety.
[0049] 5. When it is determined that there are abnormalities in the transportation environment of the target agricultural products, the trained optimization model is used to optimize and improve the current transportation conditions. When transporting the target agricultural products, a better transportation state is maintained until the transportation is completed and enters the storage state. By collecting and analyzing the data of all links of the target agricultural products, the quality of the target agricultural products can also be improved after targeted processing.
[0050] 6. Pass risk factor The size of the risk factor can be used to determine whether the current full-link management needs to be optimized. If the gap is large, there is a need to improve and optimize the current management of all links, so as to further improve the quality of the target agricultural products in addition to tracing the information of the target agricultural products, so as to make the target agricultural products more competitive.
[0051] 7. The knowledge graph of agricultural product full-link management optimization provides corresponding link optimization solutions for the full-link management of target agricultural products. The environmental optimization plan can be implemented or used as a reference. Targeted treatment can be carried out for current deficiencies to avoid increasing food safety risks of target agricultural products due to insufficient link management. In addition to tracing the safety information, further guarantees are formed for the food safety of target agricultural products, which promotes the food safety of agricultural products. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] Figure 1 A schematic diagram of the process of the agricultural product safety information traceability method of the present invention;
[0053] Figure 2 This is a schematic diagram of the structure of the agricultural product safety information traceability system of the present invention. DETAILED DESCRIPTION
[0054] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0055] See also Figure 1 The present invention provides a method for tracing agricultural product safety information, comprising:
[0056] Step 1: Obtain the quality inspection data of the target agricultural products in the target area, summarize them and construct a quality inspection data set, and construct the safety degree of the target agricultural products from the quality inspection data set. , if the security obtained Without exceeding the safety threshold, data collection instructions are issued to the outside;
[0057] The step 1 includes the following contents:
[0058] Step 101: Take the sales area of agricultural products as the target area, collect data in the target area, and obtain quality inspection data of target agricultural products in the target area obtained in the most recent inspection cycle, including: pesticide residue inspection data, heavy metal and trace element inspection data; and aggregate the obtained quality inspection data to construct a quality inspection data set;
[0059] More specifically, agricultural product quality testing data mainly includes the following aspects:
[0060] Nutritional component testing: This is the basic content of agricultural product quality testing, including the determination of the content of nutrients such as protein, fat, carbohydrates, vitamins, minerals, etc. These data can reflect the nutritional value and quality of agricultural products.
[0061] Pesticide residue testing: Pesticide residue is an important indicator of agricultural product safety. The test data includes the residues of various pesticides, such as organophosphorus, organochlorine, carbamate and other pesticides. These data can determine whether agricultural products meet national food safety standards.
[0062] Heavy metal and trace element detection: The content of heavy metals and trace elements in agricultural products is also an important part of quality detection. The test data includes the content of heavy metals such as lead, arsenic, mercury, cadmium, and trace elements such as copper, zinc, and iron. These data can reflect the growth environment and soil pollution status of agricultural products.
[0063] Microbiological index detection: Microbiological indexes in agricultural products include total bacteria count, coliform group, mold and yeast, pathogenic bacteria, etc. These indexes can reflect the hygiene and safety of agricultural products.
[0064] Physical and chemical index testing: Physical and chemical index testing includes the color, smell, pH value, purity, clarity, content uniformity, impurities, moisture, ash content, acid value, peroxide value, iodine value, density, solubility, melting point determination, ignition residue, drying loss, evaporation residue, potassium permanganate consumption, etc. These data can reflect the physical and chemical properties of agricultural products.
[0065] Farmland environmental standards testing: Farmland environmental standards include requirements for soil heavy metal content, chemical residues, and pesticide use. These test data can reflect the growth environment and soil pollution status of agricultural products, and are of great significance for ensuring the quality and safety of agricultural products.
[0066] Step 102: Construct the safety level of the target agricultural product from the test data in the quality test data set , the method is as follows: the pesticide residue and heavy metal content Perform linear normalization and map the corresponding data values to the interval According to the following method:
[0067]
[0068] in, , is the total number of test batches, weight coefficient: , ,and ;The weight coefficient can be obtained by referring to the hierarchical analysis method; is the pesticide residue in the i-th test batch, is the mean value of pesticide residues, It is the qualified reference value of pesticide residue; is the heavy metal content of the i-th test batch, is the average content of heavy metal elements, It is the qualified reference value of heavy metal content;
[0069] Based on the safety management and historical data of the target agricultural products, the safety threshold is set in advance; if the safety level obtained is If the safety threshold is not exceeded, it means that the target agricultural products in the target area may have certain safety risks, which will have a certain negative impact on the subsequent market sales process. In order to reduce the subsequent operation and sales risks of the target agricultural products and ensure the quality of the target agricultural products, at this time, a data collection instruction is issued to the outside;
[0070] When using, combine the contents in steps 101 and 102:
[0071] When planting and managing target agricultural products, first determine the current sales and distribution areas of the target products, collect quality data of similar agricultural products in the corresponding areas, and build the corresponding safety level. , with the safety level Evaluating the current food safety status of target agricultural products can prevent the normal sales of target agricultural products from being affected.
[0072] In the existing food safety information traceability methods, an identification code is usually added to the agricultural products after they are processed. This identification code is usually a QR code or a barcode. When purchasing, consumers query relevant information by scanning and identifying the identification code. However, when entering information, the existing identification code usually only contains a small amount of information such as the place of production and date of production. After the information is entered, it does not provide feedback on the food safety management of the agricultural products, resulting in it only having the function of information query. When entering information and managing all links, it does not have a role in promoting the food safety of agricultural products.
[0073] Step 2: Collect planting data in the growth area of the target agricultural product, build a planting data set of agricultural products, and monitor the growth status of the target agricultural product. If the growth If the growth threshold is exceeded, a quality inspection instruction will be issued to the outside;
[0074] The step 2 includes the following contents:
[0075] Step 201: after receiving the data collection instruction, determine the planting area of the target agricultural product, determine the planting area as the growth area, collect data in the growth area, and obtain the planting data of the target crop, including: fertilization, irrigation, weeding and pest control data, fertilization type and dosage data, and pesticide type and dosage data; summarize the acquired data to construct a planting data set of agricultural products;
[0076] When in use, when the target crops are in the planting stage, various planting data are collected and monitored, which can timely detect abnormalities in the planting status, such as excessive spraying of pesticides, and can safeguard the status of the target agricultural products.
[0077] Step 202: divide the growth area into several sub-areas, set monitoring points in each sub-area, and regularly monitor and record the growth of the target agricultural product at each monitoring point, including the following contents: fruit maturity, plant height, and yield, etc.; for crops such as fruit trees and melons, fruit maturity is an important indicator for judging whether they are ripe, and the judgment of fruit maturity is usually based on factors such as fruit color, hardness, aroma, and sugar content; after summarizing the acquired growth data, a growth status data set of the target agricultural product is constructed;
[0078] Step 203: Construct the corresponding growth degree from the growth status data set of the target agricultural product , where the yield of target agricultural products in each sub-region is obtained After that, it is dimensionless and then based on the following method:
[0079]
[0080] in, is the weight coefficient, , ,and , , n is the number of sub-regions, is the output of target agricultural product in the ith sub-region, is the mean output, is the qualified standard value of output;
[0081] Combined with historical data and expectations for the maturity management of target crops, growth thresholds are set in advance; if the growth degree obtained is If the growth degree exceeds the preset threshold, it means that the target agricultural products in the growth area have entered the maturity stage and can be harvested. After the harvesting process is completed, the target agricultural products need to be tested for quality. At this time, a quality testing instruction is issued to the outside.
[0082] When using, combine the contents in steps 201 to 203:
[0083] After the target crops enter the mature stage, product samples are selected in each sub-area, and the growth status data of the samples are collected. The corresponding growth degree is constructed from the growth status data of the samples. Determine whether the target agricultural products have reached the maturity stage. If not, you can wait for a while. If they have reached the maturity requirements, you can harvest them. At this time, by selecting samples, you can predict whether the crops are mature as a whole. Compared with a single assessment based on experience, it has a wider coverage and higher reliability. In addition, through automated data collection, the growth status of crops can be monitored periodically, which can reduce human intervention and reduce the risk of misjudgment.
[0084] Step 3: Aggregate the quality inspection data to construct a set of agricultural product quality inspection data, and construct a quality index from the agricultural product quality inspection data set. , according to the quality Determine whether the target agricultural products in the current batch are qualified. If the proportion of unqualified products exceeds expectations, assign identification codes to the target agricultural products in the current batch;
[0085] The step three includes the following contents:
[0086] Step 301: after receiving the quality inspection instruction, extract a portion of the current target agricultural product as an inspection batch, inspect the inspection batch, and obtain the following inspection data, including pesticide residues, heavy metal content, microbial detection, etc.; summarize the obtained quality inspection data to construct a corresponding agricultural product quality inspection data set;
[0087] Step 302: Generate the quality index of the target agricultural product from the agricultural product quality detection data set , among which, the safety of target agricultural products of different test batches is first constructed based on the test data , and then follow the following method:
[0088]
[0089] in, , is the number of test batches; weight coefficient: , and ; is the safety degree of the target agricultural product of the i-th test batch, is the mean safety value, It is the reference standard value of safety;
[0090] Based on historical data and food safety management expectations for target agricultural products, several quality thresholds are set in advance; The relationship with the quality threshold is used to determine whether the target agricultural products in the current batch are qualified, and then distinguish them into qualified and unqualified products;
[0091] If the ratio of unqualified products to qualified products exceeds expectations, it means that the quality of the target agricultural products in the current batch is poor. It may meet the current sales standards, but considering that the actual qualified rate is still low, it still needs to be focused on. At this time, an allocation instruction is issued to the outside.
[0092] When in use, after testing the target agricultural products and obtaining the corresponding test data, the current quality or quality of the target agricultural products can be judged based on the obtained test data. If some of its indicators are highly abnormal, it can be said that the quality of the target agricultural products has certain deficiencies. Furthermore, if there are no parameter indicators with excessively high abnormalities, the corresponding quality degree can be constructed on the whole. , according to the quality Determine the quality of the target agricultural products in the current batch. If it can meet the expectations, it can be released into the market after its grade is determined. If it cannot meet the expectations, the unqualified products can be screened out.
[0093] Step 303: after receiving the allocation instruction, the target agricultural products in the current batch are packaged, and an identification code is allocated to the target agricultural products in the current batch, wherein the identification code is a QR code or a bar code; the identification code includes target information, and the target information at least includes: the planting area, harvest date, processing, transportation and storage data of the agricultural products, the identification code and related data are entered into the storage terminal, and a transportation instruction is issued to the outside;
[0094] When using, combine the contents in steps 301 to 303:
[0095] The quality of target agricultural products can When expectations are met, in order to enable relevant data, such as fertilization data and quality data, to be disclosed and traced in a timely manner, when safety problems actually arise in the target agricultural products, traceability can be quickly carried out, and then the links that produce food safety can be analyzed.
[0096] Step 4: After entering the transportation stage, monitor the transportation condition data of the target agricultural products and construct the transportation coefficient based on the transportation condition data set. , if the transport coefficient If the transportation conditions are not within the range, the trained optimization model is used to optimize the current transportation conditions and collect data on each link of the target agricultural products;
[0097] The step 4 includes the following contents:
[0098] Step 401: After receiving the transport instruction, the target agricultural product enters the transport stage, collects and records the transport condition data such as temperature, humidity, and light during the transport process, and summarizes and constructs a transport condition data set; the transport coefficient of the target agricultural product is constructed from the transport condition data set. , where the temperature and humidity After linear normalization, the corresponding data values are mapped to the interval According to the following formula:
[0099]
[0100] Weight coefficient, , ,and , is the average temperature in the current monitoring period, is the qualified standard value of temperature; is the average humidity in the current monitoring period, It is the qualified standard value of humidity.
[0101] Based on historical data and transportation safety management of target agricultural products, the transportation condition range is pre-set; if the transportation coefficient If it is not within the transportation condition range, it means that under the current transportation conditions, the target agricultural products may be affected to a certain extent. In order to ensure the quality and safety of the target agricultural products, at this time, an environmental adjustment instruction is issued to the outside;
[0102] When in use, after the target agricultural products enter the transportation stage, the transportation conditions are monitored. When the transportation conditions are abnormal, an alarm command is issued to the outside. Therefore, when it is judged that the changes in the transportation environment may have a certain impact on the safety of the target agricultural products, timely processing can be carried out to ensure transportation safety.
[0103] Step 402: After receiving the adjustment instruction, use the optimization algorithm to train and obtain the optimization model, using the transportation coefficient As the optimization target, the trained optimization model is used to optimize the current transportation conditions, and the optimized transportation conditions are executed;
[0104] Collect data from all links of the target agricultural products, including planting and acquisition, processing and transportation, quality inspection and product storage, and aggregate the data from all links to build a process data set of the target agricultural products; at this time, issue risk analysis instructions to the outside;
[0105] When used, the contents in steps 401 and 402 are combined;
[0106] When real-time monitoring and alarms are used to determine that the transportation environment of the target agricultural products is abnormal, after determining the optimization target, the trained optimization model is used to optimize and improve the current transportation conditions. This allows the target agricultural products to maintain a better transportation state until the transportation is completed and enters the storage state. At this point, the full-link management of the target agricultural products is completed. By collecting and analyzing the full-link data of the target agricultural products and after targeted processing, the quality of the target agricultural products can also be improved.
[0107] Step 5: Analyze the data of each link of the target agricultural product, obtain the risk parameters and risk degree, and construct the risk coefficient of the target agricultural product based on the risk degree , if the risk factor If the risk threshold is exceeded, the knowledge graph for optimizing the management of all links of agricultural products will provide corresponding optimization solutions for the management of all links of target agricultural products;
[0108] The step five includes the following contents:
[0109] Step 501: after receiving the risk analysis instruction, the corresponding qualified threshold is set for the parameters in each link with reference to improving the quality of the target agricultural product, and the relevant parameters of each link (for example, the amount of fertilizer or pesticide) are compared with the corresponding qualified threshold. If the relevant parameters are not within the qualified threshold, they are used as risk parameters;
[0110] Obtain the difference ratio between the risk parameter and the qualified threshold, take the difference ratio as the risk degree, summarize the risk degrees at each link, and construct a risk data set for the target agricultural product;
[0111] Step 502: Risk levels in risk data set Constructing the risk factor of target agricultural products , among which, the risk After linear normalization, the corresponding data values are mapped to the interval According to the following formula:
[0112]
[0113] in, , m is the number of risk parameters; is the risk degree of the ith risk parameter, is the mean of risk; weight coefficient, , ,and , its value remains the same as the previous value;
[0114] After completing the transportation and storage of target agricultural products, risk thresholds are set in advance based on historical data and risk management of all aspects of target agricultural products. Exceeding the risk threshold, also known as the risk factor If it exceeds expectations, it means that there are certain risks and deficiencies in the planting, processing, transportation and storage of the target agricultural products, which require targeted management. At this time, emergency handling instructions are issued to the outside;
[0115] When using, after completing data collection and analysis, the risk level is constructed based on the gap between the collected data and the reference data, and then the corresponding risk coefficient is constructed. , when managing the target agricultural products in all links, the risk factor The size of the risk factor can be used to determine whether the current full-link management needs to be optimized. If the gap is large, there is a need to improve and optimize the current management of all links, so as to further improve the quality of the target agricultural products in addition to tracing the information of the target agricultural products, so as to make the target agricultural products more competitive.
[0116] Step 503: After receiving the emergency handling instruction, the optimization of each link of agricultural products is used as the target word. After deep retrieval and entity relationship building, a knowledge graph of agricultural product full-link management optimization is pre-built; using the trained matching model, the risk parameter and the difference ratio are combined as risk characteristics, and according to the correspondence between the risk characteristics and the optimization scheme of the target agricultural product link, the knowledge graph of agricultural product full-link management optimization provides the corresponding link optimization scheme for the target agricultural product full-link management, for example, improving the risks and deficiencies in the planting link and the transportation link, and improving the corresponding quality of the target agricultural product when it is exported to the market;
[0117] When using, combine the contents in steps 501 to 503:
[0118] When the current management of all links needs to be optimized, the knowledge map of agricultural product full-link management optimization will provide corresponding link optimization plans for the full-link management of target agricultural products. The implementation of the environmental optimization plan can be used as a reference to deal with the current deficiencies in a targeted manner, so as to avoid increasing the food safety risks of target agricultural products due to insufficient link management. In addition to tracing the safety information, the food safety of target agricultural products can be further guaranteed, thereby promoting the food safety of agricultural products.
[0119] It should be noted that:
[0120] The construction of a knowledge graph for optimizing the management of agricultural products in all links usually includes data collection, preprocessing, entity recognition, relationship extraction, graph construction, optimization and updating. For details, please refer to the following:
[0121] 1. Clarify the objectives and scope of the knowledge graph: Determine the application scenarios and purposes of the knowledge graph, such as supporting agricultural product production decisions, optimizing supply chain management, and improving agricultural product quality. Define the coverage of the knowledge graph, including the types of agricultural products involved, production links, related technologies, and standards.
[0122] 2. Data collection and preprocessing: Collect data related to the management of all aspects of agricultural products, including data sources in various forms such as text, images, and databases. Perform preprocessing operations such as cleaning, deduplication, and format conversion on the collected data for subsequent processing.
[0123] 3. Entity Recognition: Use Named Entity Recognition (NER) technology to extract agricultural product-related entities from text data, such as agricultural product names, varieties, planting techniques, names of pests and diseases, etc. Entity recognition can be performed using rule-based methods, statistical learning-based methods (such as conditional random fields, hidden Markov models), or deep learning models (such as BiLSTM-CRF).
[0124] 4. Relationship extraction: Define the relationship types between entities in the whole process of agricultural product management, such as the relationship between planting technology and agricultural products, the relationship between pests and diseases and prevention methods, etc. Use relationship extraction technology to extract the relationship between entities from text or other data sources to form structured knowledge. Common relationship extraction methods include rule-based methods, template-based methods, supervised learning-based methods, and remote supervision-based methods.
[0125] 5. Graph construction: Integrate the identified entities and extracted relationships into the knowledge graph to form a complete graph structure. Use a graph database (such as Neo4j) or a relational database (such as MySQL) to store the knowledge graph data. Design a reasonable graph structure, including node types, edge types, and attributes, for subsequent query and analysis.
[0126] 6. Knowledge graph optimization: Conduct quality assessment on the knowledge graph to check the accuracy of entity recognition, the completeness of relationship extraction, and the rationality of the graph structure. Correct and optimize the problems found in the assessment, such as correcting incorrect entity recognition results, supplementing missing relationships, etc. Use visualization tools (such as D3.js, ECharts, etc.) to visualize the knowledge graph so that users can intuitively understand the graph structure and content.
[0127] 7. Optimization and update: With the continuous updating and development of knowledge on the management of all aspects of agricultural products, the knowledge graph needs to be updated regularly to maintain its timeliness and accuracy. The knowledge graph can be optimized and updated by regularly crawling new data sources, updating entity and relationship extraction algorithms, etc. Establish a user feedback mechanism to collect users' usage and suggestions on the knowledge graph in order to carry out targeted optimization and improvement.
[0128] The Analytic Hierarchy Process (AHP) is a decision-making method that decomposes decision-related elements into levels such as goals, criteria, and plans, and conducts qualitative and quantitative analysis on this basis. It is particularly suitable for dealing with target systems with hierarchical and staggered evaluation indicators, and when the target value is difficult to describe quantitatively, the AHP is an effective decision-making tool.
[0129] The core of the hierarchical analysis method is to decompose the decision problem into multiple levels to form a hierarchical structure, which usually includes the target level, the criterion level, the sub-criterion level and the solution level. By solving the eigenvector of the judgment matrix, the priority weight of each element of each level to an element of the previous level is obtained, and the final weight of each alternative solution to the total goal is recursively merged by the weighted sum method, so as to find the optimal solution.
[0130] See also Figure 2The present invention provides a traceability system for agricultural product safety information, comprising:
[0131] The quality monitoring unit obtains the quality inspection data of the target agricultural products in the target area, summarizes them and constructs a quality inspection data set, and constructs the safety degree of the target agricultural products from the quality inspection data set. , if the security obtained Without exceeding the safety threshold, data collection instructions are issued to the outside;
[0132] The growth status monitoring unit collects planting data in the growth area of the target agricultural product, builds a planting data set of agricultural products, and monitors the growth status of the target agricultural product. The corresponding growth degree is constructed from the acquired growth status data set. If the growth If the growth threshold is exceeded, a quality inspection instruction will be issued to the outside;
[0133] The quality assessment unit aggregates the quality inspection data to construct a set of agricultural product quality inspection data, and constructs a quality index from the agricultural product quality inspection data set. , according to the quality Determine whether the target agricultural products in the current batch are qualified. If the proportion of unqualified products exceeds expectations, assign identification codes to the target agricultural products in the current batch;
[0134] The transportation status condition unit monitors the transportation condition data of the target agricultural products after entering the transportation stage, and constructs the transportation coefficient based on the transportation condition data set. , if the transport coefficient If the transportation conditions are not within the range, the trained optimization model is used to optimize the current transportation conditions and collect data on each link of the target agricultural products;
[0135] The link optimization unit analyzes the data of each link of the target agricultural product, obtains the risk parameters and risk degree, and constructs the risk coefficient of the target agricultural product based on the risk degree. , if the risk factor When the risk threshold is exceeded, the agricultural product full-link management optimization knowledge graph will provide corresponding link optimization solutions for the full-link management of the target agricultural product.
[0136] The above embodiments can be implemented in whole or in part by software, hardware, firmware or any other combination. When implemented by software, the above embodiments can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions or computer programs. When the computer instructions or computer programs are loaded or executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center by wired (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that contains one or more available media sets. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium. The semiconductor medium can be a solid-state hard disk.
[0137] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0138] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0139] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only some logical function divisions. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0140] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0141] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0142] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, and other media that can store program codes.
[0143] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A method for tracing the safety information of agricultural products, characterized by: include, Obtain the quality inspection data of the target agricultural products in the target area, and construct a quality inspection data set after aggregation. The safety degree Qts of the target agricultural products is constructed from the quality inspection data set. If the obtained safety degree Qts does not exceed the safety threshold, a data collection instruction is issued to the outside. Collect planting data in the growth area of the target agricultural product, build a planting data set of agricultural products, and monitor the growth status of the target agricultural product. The corresponding growth degree Zo is constructed from the acquired growth status data set. If the growth degree Zo exceeds the growth degree threshold, a quality inspection instruction is issued to the outside. The quality inspection data are aggregated to construct a set of agricultural product quality inspection data, and the quality degree Pts is constructed from the agricultural product quality inspection data set. The quality degree Pts is used to determine whether the target agricultural products in the current batch are qualified. If the proportion of unqualified products exceeds expectations, an identification code is assigned to the target agricultural products in the current batch; After entering the transportation stage, the transportation condition data of the target agricultural products are monitored, and the transportation coefficient Yts is constructed from the transportation condition data set. If the transportation coefficient Yts is not within the transportation condition range, the trained optimization model is used to optimize the current transportation conditions, and the data of each link of the target agricultural products are collected; Analyze the data of each link of the target agricultural product, obtain the risk parameters and risk degree, and construct the risk coefficient Fts of the target agricultural product based on the risk degree. If the risk coefficient Fts exceeds the risk threshold, the knowledge graph of agricultural product full-link management optimization will provide the corresponding link optimization plan for the full-link management of the target agricultural product. After receiving the adjustment instruction, the trained optimization model is used to optimize the current transportation conditions and the optimized transportation conditions are implemented; data of each link of the target agricultural product is collected, including data of planting and acquisition, processing and transportation, quality inspection and product storage, and the data of each link is aggregated to construct a process data set of the target agricultural product, and a risk analysis instruction is issued to the outside; After receiving the risk analysis instruction, the relevant parameters of each link are compared with the corresponding qualified threshold. If the relevant parameters are not within the qualified threshold, they are used as risk parameters; Obtain the difference ratio between the risk parameter and the qualified threshold, take the difference ratio as the risk degree, summarize the risk degrees at each link, and construct a risk data set for the target agricultural product; The risk coefficient Fts of the target agricultural product is constructed from the risk data set. If the obtained risk coefficient Fts exceeds the risk threshold, an emergency processing instruction is issued to the outside. Among them, the construction method of the risk coefficient Fts is as follows. After linear normalization of the risk degree Ft, the corresponding data value is mapped to the interval [0,1] according to the following formula: Where i = 1, 2, ..., m, m is the number of risk parameters; Ft i is the risk degree of the ith risk parameter, Ft avg is the mean value of risk; weight coefficient, 0≤F1≤1, 0≤F2≤1, and F1+F2=1; After receiving the emergency handling instruction, the optimization of each link of agricultural products is used as the target word, and the knowledge map of agricultural product full-link management optimization is pre-constructed; the risk parameter and the difference ratio are combined as risk characteristics, and according to the correspondence between the risk characteristics and the optimization plan of the target agricultural product link, the knowledge map of agricultural product full-link management optimization gives the corresponding link optimization plan for the target agricultural product full-link management; The sales area of agricultural products is taken as the target area, and the quality inspection data of the target agricultural products in the target area are obtained. After being summarized, a quality inspection data set is constructed; the safety degree Qts of the target agricultural products is constructed from the quality inspection data set in the following way: the pesticide residue Nw and the heavy metal element content Zw are linearly normalized, and the corresponding data values are mapped to the interval [0,1] according to the following method: Where i = 1, 2, ..., n, n is the total number of test batches, weight coefficient: 0 ≤ Q1 ≤ 1, 0 ≤ Q2 ≤ 1, and Q2 + Q1 = 1; Nw i is the pesticide residue in the i-th test batch, Nw avg is the mean value of pesticide residues, is the qualified reference value of pesticide residue; Zw i is the heavy metal content of the i-th test batch, Zw avg is the average content of heavy metal elements, It is the qualified reference value of heavy metal content; The corresponding growth degree Zo is constructed from the growth status data set of the target agricultural product. After obtaining the yield Cy of the target agricultural product in each sub-region, it is dimensionlessly processed and then calculated according to the following method: Where k2 and k1 are weight coefficients, 0≤k1≤1, 0≤k2≤1, and k1+k2=1, i=1, 2, …n, n is the number of sub-regions, Cy i is the output of the target agricultural product in the ith sub-region, Cy avg is the mean output, is the qualified standard value of output; The construction method of the quality degree Pts is as follows: first, the safety degree Qts of the target agricultural products of different test batches is constructed from the test data, and then the following method is used: Where i = 1, 2, ..., p, p is the number of test batches; weight coefficient: 0 ≤ Δ1 ≤ 1, 0 ≤ Δ2 ≤ 1 and Δ2 + Δ1 = 1; Qts i is the safety of the target agricultural product in the i-th test batch, Qts avg is the mean safety value, It is the reference standard value of safety; After receiving the transportation instruction, the transportation condition data during the transportation process is collected and recorded in the transportation stage, and a transportation condition data set is constructed; the transportation coefficient Yts of the target agricultural product is constructed from the transportation condition data set, and if the transportation coefficient Yts is not within the transportation condition range, an environmental adjustment instruction is issued to the outside; The transport coefficient Yts is generated as follows: after linear normalization of temperature Pb and humidity Pm, the corresponding data values are mapped to the interval [0, 1] according to the following formula: Weight coefficient, 0≤F1≤1, 0≤F2≤1, and F1+F2=1, Pb avg is the average temperature in the current monitoring period, Pm is the qualified standard value of temperature; avg is the average humidity in the current monitoring period, It is the qualified standard value of humidity.
2. The method for tracing agricultural product safety information according to claim 1, characterized in that: After receiving the data collection instruction, the planting area of the target agricultural product is determined, and the planting area is determined as the growth area. Data collection is performed in the growth area to obtain the target crop planting data, and the acquired data is summarized to construct an agricultural crop planting data set; the growth area is divided into several sub-areas, and monitoring points are set in each sub-area. The growth conditions of the target agricultural product are regularly monitored and recorded at each monitoring point, and the acquired growth data is summarized to construct a growth status data set of the target agricultural product.
3. The method for tracing agricultural product safety information according to claim 2, characterized in that: After receiving the quality inspection instruction, a part of the current target agricultural product is extracted as the inspection batch, the inspection batch is inspected, the obtained quality inspection data is summarized, and the corresponding agricultural product quality inspection data set is constructed; Generate the quality degree Pts of the target agricultural product from the agricultural product quality inspection data set; According to the relationship between the obtained quality degree Pts and the quality threshold, they are distinguished into qualified products and unqualified products; an identification code is assigned to the target agricultural products in the current batch, so that the identification code contains target information, including at least: planting area, harvest date, processing, transportation and storage data, and transportation instructions are issued to the outside.
4. A traceability system for agricultural product safety information, using the traceability method according to any one of claims 1 to 3, characterized in that: include: The quality monitoring unit obtains the quality inspection data of the target agricultural products in the target area, and constructs a quality inspection data set after aggregation. The safety degree Qts of the target agricultural products is constructed from the quality inspection data set. If the obtained safety degree Qts does not exceed the safety threshold, a data collection instruction is issued to the outside. The growth status monitoring unit collects planting data in the growth area of the target agricultural product, constructs a planting data set of agricultural products, and monitors the growth status of the target agricultural product. The corresponding growth degree Zo is constructed from the acquired growth status data set. If the growth degree Zo exceeds the growth degree threshold, a quality inspection instruction is issued to the outside. The quality assessment unit aggregates the quality inspection data to construct a set of agricultural product quality inspection data, and constructs a quality degree Pts from the agricultural product quality inspection data set. The quality degree Pts is used to determine whether the target agricultural products in the current batch are qualified. If the proportion of unqualified products exceeds expectations, an identification code is assigned to the target agricultural products in the current batch. The transportation status condition unit monitors the transportation condition data of the target agricultural products after entering the transportation stage, and constructs the transportation coefficient Yts from the transportation condition data set. If the transportation coefficient Yts is not within the transportation condition range, the trained optimization model is used to optimize the current transportation conditions, and the data of each link of the target agricultural products are collected; The link optimization unit analyzes the data of each link of the target agricultural product, obtains the risk parameters and risk degree, and constructs the risk coefficient Fts of the target agricultural product based on the risk degree. If the risk coefficient Fts exceeds the risk threshold, the knowledge graph of agricultural product full-link management optimization will provide corresponding link optimization solutions for the full-link management of the target agricultural product.
Citation Information
Patent Citations
Agricultural product information tracing method and system
CN110298675A
Agricultural product safety tracing method and device, electronic equipment and storage medium
CN115170164A
Source production and marketing information tracing method and system for agricultural products
CN116342152A
