CN117236972A - Agricultural product traceability management method and system based on blockchain technology - Google Patents

Agricultural product traceability management method and system based on blockchain technology Download PDF

Info

Publication number
CN117236972A
CN117236972A CN202311497884.1A CN202311497884A CN117236972A CN 117236972 A CN117236972 A CN 117236972A CN 202311497884 A CN202311497884 A CN 202311497884A CN 117236972 A CN117236972 A CN 117236972A
Authority
CN
China
Prior art keywords
nth
agricultural products
blockchain
information
time
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202311497884.1A
Other languages
Chinese (zh)
Other versions
CN117236972B (en
Inventor
杨小林
张惠潼
高庆雷
韩磊
庄颜格
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inspur Shandong Agricultural Internet Co Ltd
Original Assignee
Inspur Shandong Agricultural Internet Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Inspur Shandong Agricultural Internet Co Ltd filed Critical Inspur Shandong Agricultural Internet Co Ltd
Priority to CN202311497884.1A priority Critical patent/CN117236972B/en
Publication of CN117236972A publication Critical patent/CN117236972A/en
Application granted granted Critical
Publication of CN117236972B publication Critical patent/CN117236972B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention relates to a method and a system for agricultural product traceability management based on a blockchain technology, and relates to the technical field of information processing, wherein the method for agricultural product traceability management based on the blockchain technology comprises the steps of entering a blockchain for the 1 st time, entering the blockchain for the N time, propagating the blockchain and the like, wherein the step of entering the blockchain for the 1 st time comprises the steps of obtaining product information for the 1 st time, quality inspection for the 1 st time, comparison for the 1 st time and information integration for the 1 st time; the nth step of entering the blockchain comprises the steps of acquiring product information, checking the rationality, performing sampling inspection, comparing and integrating the information and the like; the system comprises an input module, a detection module, a storage module, a scanning module, a calculation module and the like. The invention can reduce the adulterated probability of the same type of agricultural products in the gathering process, further ensure the safety of the agricultural products, and reduce the probability of the blockchain system being interfered.

Description

Agricultural product traceability management method and system based on blockchain technology
Technical Field
The invention relates to the technical field of information processing, in particular to an agricultural product traceability management method and system based on a block chain technology.
Background
People take food as the day, along with the pursuit of people for higher living things, the national and people have higher requirements on food safety, and as an indispensable part of food, the safety of agricultural products is also more and more important. The safety of agricultural products is mainly reflected in the aspects of pesticide use, fertilizer use, fresh-keeping substance use and the like, people can hardly find the use of the products through naked eyes or daily experience, and the non-compliant use of the pesticide, fertilizer or fresh-keeping substance can cause injury to eaters.
The use of the pesticide, the use of the fertilizer and the use of the fresh-keeping substances all occur in the production, transportation, preservation and selling processes, so that the situation of using the pesticide, the fertilizer or the fresh-keeping substances in an unqualified manner is avoided, and when the situation of using the pesticide, the fertilizer or the fresh-keeping substances in an unqualified manner occurs, the source of the unqualified process can be found in time, and the traceability system is needed to trace the production, transportation, preservation and selling processes of agricultural products, so that the unqualified use is modified.
At present, the production, transportation, preservation and selling processes of agricultural products are monitored by using a blockchain technology, the condition of using pesticides, fertilizers or fresh-keeping substances which are not satisfactory can be effectively monitored, and the condition of information tampering can be avoided.
However, the construction of the blockchain technology is a process, namely, only all production, transportation, storage and sellers add the blockchain, and good monitoring can be realized; in addition, the current purchasing and distributing process of agricultural products still has the problems of 'collection' and 'scattering', so that the agricultural products are more difficult to monitor when the popularity of the blockchain is lower, and in conclusion, the adulteration phenomenon is easy to occur when the popularity of the blockchain is lower so as to interfere the layout and the use of the blockchain.
Disclosure of Invention
In order to reduce adulteration phenomenon when the popularity of the blockchain is low and reduce the probability of interference in the layout and use process of the blockchain, the invention provides an agricultural product traceability management method and system based on the blockchain technology.
In a first aspect, the invention provides a method for tracing and managing agricultural products based on a blockchain technology, which adopts the following technical scheme:
agricultural product traceability management method and system based on block chain technology, comprising the following steps:
the 1 st entry into the blockchain: the method comprises a step of acquiring product information for the 1 st time, a step of quality inspection for the 1 st time, a step of comparing for the 1 st time and a step of integrating the 1 st information;
product information is acquired for the 1 st time: when the agricultural product enters the blockchain monitoring system for the 1 st time, acquiring the type, batch and quantity information of the agricultural product;
quality inspection for the 1 st time: carrying out comprehensive quality inspection on agricultural products entering the blockchain monitoring system for the 1 st time, and further obtaining the 1 st quality inspection content information and the 1 st quality inspection time information of the agricultural products;
comparison 1: comparing the 1 st quality inspection content information of the agricultural products with a quality inspection standard value, if the quality inspection standard value is met, the agricultural products are qualified, and executing a 1 st information integration step; if the quality control standard value is not met, the quality control standard value is not met;
information integration 1 st time: integrating agricultural product information in the step of entering the blockchain for the 1 st time, manufacturing a 1 st-stage label for quality inspection qualified agricultural products according to types and batches, recording qualified quantity, quality inspection content, quality inspection time and quality inspection qualification information in the 1 st-stage label, and triggering a blockchain transmission step;
nth entry into blockchain: wherein N is a natural number greater than or equal to 2, and comprises an nth product information acquisition step, an nth rationality inspection step, an nth spot check step, an nth comparison step and an nth information integration step;
product information is acquired for the nth time: acquiring the type of agricultural products, the number of the nth time of entering the blockchain and the quality inspection qualification information of the nth-1 time;
nth rationality test: if the number of the agricultural products in the current type is not more than the number recorded in the N-1 grade label and the quality inspection of the N-1 time is qualified, the method is considered to be reasonable and the N time of sampling inspection step is executed; otherwise, the method is considered unreasonable;
sampling inspection for the nth time: carrying out sampling inspection on agricultural products entering the blockchain monitoring system for the nth time, wherein the sampling inspection coefficient is K, and K is more than 0 and less than 1; further acquiring the content information of the Nth spot check of the agricultural product and the time information of the Nth spot check;
nth comparison: comparing the Nth sampling inspection content information of the agricultural products with a quality inspection standard value, if the N th sampling inspection content information meets the quality inspection standard value, the agricultural products are qualified, and executing an Nth information integration step; if the quality control standard value is not met, the quality control standard value is not met;
nth information integration: integrating agricultural product information in the step of entering the blockchain for the nth time, manufacturing an nth grade label according to types and batches of quality-checked qualified agricultural products, recording qualified quantity, quality-checked content, quality-checked time and quality-checked qualification information in the nth grade label, and triggering a blockchain transmission step;
blockchain propagation: and according to the label, the type, batch, quantity, quality inspection content and quality inspection time information of the agricultural products are transmitted and stored in the blockchain.
By adopting the technical scheme, when the agricultural products enter the blockchain system for the first time, the agricultural products are comprehensively inspected, the products qualified in the inspection are classified, and the types and batches of the agricultural products are classified; when the blockchain system fails to completely cover the production, storage, transportation and other processes of agricultural products, users outside the blockchain system may utilize the blockchain system for adulteration; when the agricultural product enters the blockchain system for the Nth time, judging the quantity of the products and the quality inspection qualification, if the quantity of the agricultural product in the current type is larger than the quantity recorded in the N-1 grade label or the quality inspection qualification information of the Nth time cannot be obtained, proving that the situation of adulteration possibly exists, and therefore regarding the situation as an unreasonable situation and kicking out the blockchain system; therefore, agricultural products in the blockchain system can be guaranteed to be traceable products, and the safety of the agricultural products is guaranteed. Meanwhile, when the popularity rate of the block chain is low, the probability of the block chain system being interfered is reduced, and the normal use of the block chain system is maintained.
Optionally, the nth entering blockchain step further includes a label removing step:
and (5) label removal: removing labels on agricultural products, and executing the step of entering a blockchain for the 1 st time;
and in the nth rationality checking step, if the rationality checking step is not reasonable, a label removing step is also executed.
By adopting the technical scheme, if the quantity of the agricultural products in the current type is larger than the quantity recorded in the N-1 level label or the quality inspection qualified information of the N-1 time cannot be acquired, the agricultural products are not kicked out of the blockchain system, the labels of the agricultural products are removed at the moment, the agricultural products are processed according to the standard of entering the blockchain system for the 1 st time, and unqualified products in the agricultural products are removed, so that the waste phenomenon of the agricultural products is reduced.
Optionally, the nth entering blockchain step further includes a tree partitioning step;
tree partitioning: if the mth portion of the type, lot of agricultural product occurs in the nth entering blockchain step, dividing the agricultural product into a QNPm tree;
in the nth rationality checking step, if the number of agricultural products of the current type and batch is not more than the number recorded in the N-1 level label and the quality inspection of the nth-1 level is qualified, a tree dividing step is further executed;
in the nth information integration step, an nth level tag is also manufactured according to the tree
The method also comprises a searching and counting step and a data judging step;
search statistics: searching agricultural products according to the Nth-level label, and counting the total number of agricultural products of the same type and batch under a certain tree;
and (3) data judgment: if the sum of the numbers of agricultural products of the same type and batch is larger than the total number of agricultural products of the same type and batch in a certain tree, the total number of agricultural products of the same type and batch is considered unreasonable.
By adopting the technical scheme, the aggregation phenomenon and the dispersion phenomenon can occur in the steps of production, transportation, storage and the like of agricultural products; when the agricultural products are scattered, a certain scattering point can be adulterated, and tree division is carried out on the scattering point; if the total amount of the agricultural products after being dispersed is larger than the total amount before being dispersed, the adulteration behavior is proved to exist in the dispersing process, so that the situation is regarded as an unreasonable situation, and the blockchain system is kicked out; therefore, agricultural products in the blockchain system can be guaranteed to be traceable products, and the safety of the agricultural products is further guaranteed; meanwhile, when the popularity rate of the block chain is low, the probability of the block chain system being interfered is reduced, and the normal use of the block chain system is maintained.
Optionally, the method further comprises a step of tracing and marking;
trace back mark: tracing and marking the current type and batch of agricultural products;
in the data judging step, if the data judging step is unreasonable, executing a tracing marking step;
the nth entering blockchain step further comprises a mark judging step and an nth quality inspection step;
and (3) marking judgment: if the current type and batch of agricultural products are marked agricultural products, executing an Nth quality inspection step; if the current type and batch of agricultural products are not marked agricultural products, executing the Nth spot check step;
nth quality inspection: and carrying out comprehensive quality inspection on the agricultural products entering the blockchain monitoring system for the nth time, and further acquiring the content information of the nth quality inspection and the time information of the nth quality inspection of the agricultural products.
By adopting the technical scheme, if the adulteration behavior exists in the dispersing process, the adulteration of the agricultural products of the current type and the batch is possible at the moment, so that when the agricultural products of the current type and the batch enter the blockchain monitoring system again, the agricultural products are comprehensively inspected to reduce the adulteration probability and ensure the stable operation of the blockchain.
Optionally, in the step of acquiring the product information for the nth time, quality inspection time information for the nth-1 time is also acquired;
in the nth sampling inspection step, the sampling inspection method further obtains the time of the sampling inspectionQuality control interval T between the preceding time and the N-1 th quality control time N N-1 The calculation model with the sampling coefficient K is as follows:
by adopting the technical scheme, the longer the quality inspection interval time is, the larger the probability of occurrence of the accident in the processes of production, transportation, storage and the like is, so that the quality inspection interval T is used in the sampling inspection N N-1 The probability of the spot check is determined, so that the probability of the agricultural products being adulterated can be reduced to a greater extent; meanwhile, the agricultural products can be timely found to be adulterated due to single quality inspection, so that the probability of triggering the tracing marking step is reduced, and the detection efficiency is improved.
In a second aspect, the invention provides an agricultural product traceability management system based on a blockchain technology, which adopts the following technical scheme:
agricultural product traceability management system based on blockchain technology comprises the following modules:
an input module: the system is used for inputting the type, batch and quantity information and quality control standard of agricultural products;
and a detection module: the device is used for detecting the quality of agricultural products and outputting detection results;
and a storage module: the device comprises a plurality of input ends, an input module and a detection module, wherein the input ends are connected with the output ends of the input module and the detection module and are used for storing information corresponding to agricultural products;
and a scanning module: the input end is connected with the output end of the storage module, and the output end is connected with the input end of the calculation module and is used for scanning the label so as to acquire information of agricultural products;
and the quality inspection module is used for: the output end is connected with the input end of the storage module and is used for quality inspection of agricultural products and outputting quality inspection results;
the calculation module: the input ends are connected with the output ends of the storage modules, and the output ends are connected with the input ends of the storage modules and used for carrying out logic operation;
the calculation module comprises the following submodules:
and a counting module: for metering the quantity of agricultural products;
the calculation module: for calculating the number of agricultural products to be inspected;
and a comparison module: the quality inspection device is used for comparing the quality inspection result with the quality inspection mark;
the label generating module: a label for generating an agricultural product from the data of the agricultural product;
confidence calculation module: and calculating the credibility of the label information.
By adopting the technical scheme, a user with execution authority in the block chain system can input information into the storage module, and the calculation module generates a label according to the input information; each user joining the blockchain system can obtain information of the agricultural products by scanning the labels. After the agricultural products are processed in the hands of the user with the execution capability, the agricultural products can be input into the blockchain; when the agricultural products are sent to the hands of the user with the execution capability again, the calculation module can calculate the information of the agricultural products again, generate new labels and further update the information of the agricultural products continuously. When the agricultural product is separated from the user with the execution capability, the information of the agricultural product is not lost, and can be updated in real time along with the re-entering of the agricultural product information into the blockchain system, and the credibility of the agricultural product information is determined again, so that the probability of the agricultural product being adulterated is reduced, and when the popularity rate of the blockchain is lower, the probability of the blockchain system being interfered is reduced, and the normal use of the blockchain system is maintained.
Optionally, the computing module further comprises an overwriting module;
and (3) an overwriting module: for deleting information under the tag and rewriting new information.
By adopting the technical scheme, after calculation, if the information under the label is found to be distorted, the overwriting module can modify the information under the label so as to keep the authenticity of the information stored in the storage module.
Optionally, the calculation module further comprises a tree partitioning module,
tree partitioning module: the output end is connected with the input end of the label generating module and is used for tree division of the quantity information of the agricultural products.
By adopting the technical scheme, after the agricultural products of the same type and batch are dispersed, different flow directions of the agricultural products of the type and batch can be determined according to the tree dividing module, so that information of the agricultural products can be traced.
Optionally, the computing module further comprises a marking module;
marking module: for marking tags whose information is suspicious.
Through adopting above-mentioned technical scheme, if temporarily can't confirm the true degree of the information under the label, mark this label to when the agricultural product that the improvement label corresponds next gets into the blockchain system, can reconsider the information of agricultural product again, with the probability that reduces adulteration, ensure the steady operation of blockchain.
Optionally, the calculation module further comprises a timing module and a coefficient calculation module;
and a timing module: determining the time difference between a certain moment and the current moment according to the clock;
and a coefficient calculating module: the input end is connected with the input end of the timing module and used for calculating the sampling inspection coefficient according to the time difference.
By adopting the technical scheme, the time for the agricultural product to leave the blockchain system for monitoring is determined through the timing module, the coefficient during the spot check is determined according to the time, and when the agricultural product enters the blockchain system again for detection, the proportion of the spot check is determined according to the spot check coefficient, so that the difficulty of adulteration is improved, the probability of adulteration is reduced, and the utilization efficiency of the blockchain system is improved.
In summary, the present invention includes at least one of the following beneficial technical effects:
1. through the setting of the nth rationality checking step, when the agricultural product enters the blockchain system for the nth time, the quantity and quality inspection qualification of the product are judged, so that the probability of adulteration of the agricultural products of the same type in the gathering process is reduced, the safety of the agricultural products is further ensured, and meanwhile, the probability of interference of the blockchain system is reduced.
2. Through the setting of tree dividing step, searching and counting step and data judging step, whether the total number of agricultural products entering the blockchain system is reasonable can be monitored in real time, so that the probability of adulteration of the same type of agricultural products in the dispersing process is reduced, the safety of the agricultural products is further ensured, and meanwhile, the probability of interference of the blockchain system is reduced.
3. Through the setting of the nth spot check step, the proportion of the spot check can be reasonably adjusted, so that the probability of agricultural products being adulterated is further reduced to a greater extent, the timeliness of monitoring adulterated is improved, the probability of triggering the tracing marking step is reduced, and the detection efficiency is improved.
Drawings
FIG. 1 is a schematic overall flow diagram of example 1;
FIG. 2 is a flow chart of the 1 st entry blockchain step in embodiment 1;
FIG. 3 is a flowchart illustrating the N-th block chain entry step of embodiment 1;
FIG. 4 is an overall system diagram of example 2;
fig. 5 is a schematic diagram of the sub-module connection of the calculation module in embodiment 2.
Detailed Description
The present invention is described in further detail below in conjunction with fig. 1-5.
Example 1: the embodiment discloses a method and a system for agricultural product traceability management based on a blockchain technology, referring to fig. 1 to 3, the method and the system for agricultural product traceability management based on the blockchain technology comprise a 1 st step of entering a blockchain, a nth step of entering the blockchain, a step of propagating the blockchain, a step of searching and counting, a step of S4, a step of judging data, a step of S5 and a step of traceability marking;
s1: the 1 st entry into the blockchain: the method comprises a step S1-1 of acquiring product information for the 1 st time, a step S1-2 of quality inspection for the 1 st time, a step S1-3 of comparing for the 1 st time and a step S1-4 of integrating the 1 st time information;
s1-1: product information is acquired for the 1 st time: and when the agricultural product enters the blockchain monitoring system for the 1 st time, acquiring the type, batch and quantity information of the agricultural product. Typically, the agricultural product enters the blockchain system 1 st time when harvested, and the type (i.e., variety) of agricultural product, batch (which may be understood as time batch number, geographic batch number, etc. of the harvested agricultural product) and quantity information of the agricultural product need to be entered when entering the blockchain system. Of course, the 1 st entry of agricultural products into the blockchain system may be other time nodes, as long as the type and batch of a certain agricultural product can explicitly correspond to a specific batch of products.
S1-2: quality inspection for the 1 st time: and (3) comprehensively inspecting the quality of the agricultural products entering the blockchain monitoring system for the 1 st time, wherein the quality inspection is performed according to the national standard or the specification of the industry standard, so as to obtain the 1 st quality inspection content information and the 1 st quality inspection time information of the agricultural products.
S1-3: comparison 1: comparing the 1 st quality inspection content information of the agricultural products with a quality inspection standard value, if the quality inspection standard value is met, the agricultural products are qualified, and executing a 1 st information integration step S1-4; if the quality control standard value is not met, the quality control standard value is not met.
S1-4: information integration 1 st time: and integrating the agricultural product information in the step S1 of entering the blockchain for the 1 st time, manufacturing a 1 st-stage label for quality-checked qualified agricultural products according to types and batches, recording qualified quantity, quality-checked content, quality-checked time and quality-checked qualification information in the 1 st-stage label, and triggering the step S3 of propagating the blockchain. After triggering the blockchain propagation step S3, a user in the blockchain system can inquire the information of the agricultural products according to the labels of the agricultural products; unqualified agricultural products cannot enter the blockchain system.
S2: nth entry into blockchain: wherein N is a natural number greater than or equal to 2, and comprises an N-th product information acquisition step S2-1, an N-th rationality inspection step S2-2, a label removal step S2-3, a tree division step S2-4, a label judgment step S2-5, an N-th spot check step S2-6, an N-th quality inspection step S2-7, an N-th comparison step S2-8 and an N-th information integration step S2-9.
S2-1: product information is acquired for the nth time: the method comprises the steps of obtaining the type of agricultural products, the number of the nth time of entering the blockchain, quality inspection qualification information of the nth-1 time and quality inspection time information of the nth-1 time.
S2-2: nth rationality test: if the number of the agricultural products in the current type is not more than the number recorded in the N-1 level label and the quality inspection of the N-1 time is qualified, the method is considered to be reasonable, and a tree dividing step S2-4 is executed; otherwise, it is considered unreasonable, and the de-labelling step S2-3 is performed.
S2-3: and (5) label removal: the labels on the agricultural products are removed and the 1 st entry blockchain step S1 is performed.
For example: when a certain type of agricultural products enter the blockchain system for the 1 st time, the quantity is 10 tons, but when the agricultural products enter the blockchain system for the 2 nd time, the quantity is 12 tons, and the agricultural products can be proved to have a certain adulteration condition when entering the blockchain system for the second time, at the moment, a label removing step S2-3 is executed, and labels on the agricultural products are removed; and treating the agricultural product as a 1 st entry into the blockchain to screen out the adulterated product.
When a certain type of agricultural products and batches enter the blockchain system for the 1 st time, the quantity is 10 tons, but when the agricultural products and batches enter the blockchain system for the 2 nd time, the quantity is 6 tons, and the quality inspection for the 1 st time is displayed on the label, the type of agricultural products and the batches are proved to be reliable in content, but the agricultural products and the batches are conveyed to different places, and at the moment, the tree division step S2-4 is executed.
S2-4: tree partitioning: if the mth portion of the type, lot of agricultural product occurs in the nth entering blockchain step, the agricultural product is partitioned into a QNPm tree.
For example: when a certain type and batch of agricultural products enter the blockchain system for the 1 st time, the quantity of the agricultural products is 10 tons, but the agricultural products are divided into 3 parts to be transported to different areas, and the 3 parts of agricultural products enter the blockchain system for the 2 nd time respectively; the part 1, part 2, is divided into Q2P1 when entering the blockchain system, the part 2, part 2 is divided into Q2P2 when entering the blockchain system, and the part 3, part 2 is divided into Q2P3 when entering the blockchain system.
Similarly, the above-mentioned part 1 is divided into 2 parts again and transported to different areas, the agricultural products of these 2 parts will enter the blockchain system 3 rd time respectively, when the part 1 enters the blockchain system 3 rd time, it is divided into Q2P1-Q3P1, when the part 2 enters the blockchain system 3 rd time, it is divided into Q2P1-Q3P2, and so on.
At the same time, the search statistics step S4 is performed at all times.
S4: search statistics: and searching the agricultural products according to the Nth-level label, counting the total number of the agricultural products of the same type and batch under a certain tree, and executing a data judging step S5.
S5: and (3) data judgment: if the sum of the numbers of the agricultural products of the same type and batch is larger than the total number of the agricultural products of the same type and batch in the tree, the sum is considered unreasonable, and the traceability marking step S6 is executed.
S6: trace back mark: tracing and marking the current type and batch of agricultural products;
for example: when a certain type of agricultural products and batches enter the blockchain system for the 1 st time, the quantity of the agricultural products is 10 tons, but the agricultural products are divided into a plurality of parts to be transported to different areas, and the agricultural products of the plurality of parts enter the blockchain system for the 2 nd time respectively; however, the total number of the 2 nd entering blockchain system does not exceed 10 tons, and if the total number of the 2 nd entering blockchain system exceeds 10 tons, the step S6 of traceback marking is considered unreasonable and the current type and batch of agricultural products are traceback marked.
For another example, after the nth obtaining of the product information step S2-1, the number of the 1 st part is 4 tons, and when the 1 st part is divided into a plurality of parts and transported to different areas, the agricultural products of the plurality of parts enter the blockchain system for 3 rd times respectively, wherein when the 1 st part enters the blockchain system for 3 rd times, the agricultural products are divided into Q2P1-Q3P1, and when the 2 nd part enters the blockchain system for 3 rd times, the agricultural products are divided into Q2P1-Q3P2, if the total number of the agricultural products corresponding to the Q2P1-Q3P1 and the Q2P1-Q3P2 does not exceed 4 tons, and if the total number of the 3 rd entering the blockchain system exceeds 4 tons, the agricultural products of the current type and batch are considered unreasonable, and the tracing marking step S6 traces the agricultural products of the current type and batch.
S2-5: and (3) marking judgment: if the current type and batch of agricultural products are marked agricultural products, executing an Nth quality inspection step S2-7; and if the current type of agricultural products in the batch are not marked agricultural products, executing the Nth spot check step S2-6.
S2-6: sampling inspection for the nth time: performing spot check on agricultural products entering the blockchain monitoring system for the nth time to obtain a quality check interval T between the current time and the (N-1) th quality check time N N-1 And according to the quality inspection interval T N N-1 And calculating a sampling detection coefficient K, wherein a calculation model with the sampling detection coefficient K is as follows:
and then multiplying the sampling coefficient K by the number of agricultural products entering the blockchain monitoring system for the nth time to obtain the number of sampling, and obtaining the content information of the sampling for the nth time and the time information of the sampling for the nth time after the sampling is finished.
S2-7: nth quality inspection: and carrying out comprehensive quality inspection on the agricultural products entering the blockchain monitoring system for the nth time, and further acquiring the content information of the nth quality inspection and the time information of the nth quality inspection of the agricultural products.
In the traceability marking step S6, marked agricultural products are unreasonable in quantity, and the possible adulteration behavior of the agricultural products in the process of scattered transportation can be proved; thus, when the marked agricultural product reenters the blockchain system, a second full quality inspection of the agricultural product is performed to find the adulterated product. If the agricultural products are not marked, the agricultural products are temporarily trusted and only need to be inspected by a sampling inspection mode; the quality inspection is carried out by taking the quality inspection interval as a reference during the sampling inspection, the longer the quality inspection interval is, the higher the possibility that agricultural products are adulterated, the higher the possibility that the agricultural products are deteriorated, so that the sampling inspection proportion is higher; the shorter the quality inspection interval, the lower the likelihood that the agricultural product will be adulterated, and the lower the likelihood that the agricultural product will deteriorate, and therefore the lower the spot check specific gravity. This ensures the quality of the agricultural product being monitored by the blockchain system.
S2-8: nth comparison: comparing the Nth sampling inspection content information of the agricultural products with a quality inspection standard value, if the N th sampling inspection content information meets the quality inspection standard value, the agricultural products are qualified, and executing an Nth information integration step; if the quality control standard value is not met, the quality control standard value is not met.
S2-9: nth information integration: and integrating agricultural product information in the step of entering the blockchain for the nth time, manufacturing an nth-level label for the quality-checked qualified agricultural products according to types, batches and trees, recording qualified quantity, quality-checked content, quality-checked time and quality-checked qualification information in the nth-level label, and triggering a blockchain transmission step.
S3: blockchain propagation: and according to the label, the type, batch, quantity, quality inspection content and quality inspection time information of the agricultural products are transmitted and stored in the blockchain.
The agricultural product traceability management method and system based on the blockchain technology in the embodiment are implemented according to the following principles:
when the popularity of the block chain system is low, the current block chain system cannot spontaneously monitor, distribute and control the agricultural products comprehensively; some speculative molecules choose to take advantage of the loopholes of blockchains when their popularity is low. Therefore, when the popularity of the blockchain system is low, statistics are made on what times the agricultural product enters the blockchain system, and different treatments are performed according to the times the agricultural product enters the blockchain.
Specifically, when agricultural products enter the blockchain system for the first time, the agricultural products of the current type and batch are comprehensively detected to ensure that the agricultural products entering the blockchain system are qualified and a label is established for the agricultural products. Although the agricultural products enter the blockchain system, the agricultural products are still solid, so that conditions of transportation, storage and the like are indispensable, and therefore, the agricultural products of the same type but different batches are collected first, and then the agricultural products are distributed according to requirements of different areas and different times, and the phenomenon of 'collection' and 'scattering' of the agricultural products is the phenomenon.
When the agricultural products are gathered, in order to avoid the loophole of the molecular utilization block chain system, the agricultural products are subjected to rationality test, if the quantity of the agricultural products of the current type and batch is reasonable, the agricultural products are regarded as trusted products, and the agricultural products can run continuously in the block chain; if the quantity of the agricultural products in the current type and batch is unreasonable, the agricultural products are regarded as unreliable products (namely, the products have a high probability of adulteration), the agricultural products are subjected to label removal treatment at the moment, and are regarded as first entering a blockchain system, and comprehensive quality inspection is performed on the agricultural products so as to reduce the probability of adulteration.
When the agricultural products are scattered, in order to avoid the loopholes of the molecular utilization block chain system, the agricultural products are firstly subjected to tree division, so that the agricultural products of the same type and batch are tracked and circulated in different parts; and continuously searching the rationality for counting the quantity of the agricultural products. If the same type and batch of agricultural products but different parts of agricultural products appear in quantity, the current type and batch of agricultural products are marked, and when the current type and batch of agricultural products enter the blockchain system again, the agricultural products are comprehensively inspected to reduce the probability of batch adulteration of the gambling molecules.
When agricultural products of the same type and batch normally enter the blockchain system for the nth time, the agricultural products are temporarily judged to be credible, and only spot check is needed for the agricultural products; however, the same type and batch may cause different intervals between quality checks of agricultural products in different parts because the N times of agricultural products in different parts enter the blockchain system are different. The longer the quality inspection interval is, the higher the possibility that the agricultural products are adulterated is, and the higher the possibility that the agricultural products are deteriorated is, so that the quality inspection is performed by taking the quality inspection interval as a reference during sampling inspection, the longer the quality inspection interval is, the larger the sampling inspection specific gravity is, the shorter the quality inspection interval is, and the sampling inspection specific gravity is smaller, so that the quality of the agricultural products monitored by the block chain system can be ensured, the probability of the agricultural products being traced and marked is reduced, and the use efficiency of the block chain system is improved.
Example 2: the embodiment discloses a agricultural product traceability management system based on a blockchain technology, referring to fig. 4 and 5, the agricultural product traceability management system based on the blockchain technology comprises the following modules: the following modules:
an input module: a plurality of blockchain users with only operation authorities are provided for inputting the type, batch, quantity information and quality inspection standards of agricultural products.
And a detection module: the system is provided with a plurality of blockchain users with operation authorities, and is used for detecting the quality of agricultural products and outputting detection results.
And a storage module: the system is provided with a plurality of blockchain users, and the input ends of the blockchain users are connected with the output ends of the input module and the detection module and are used for storing information corresponding to agricultural products.
The calculation module: the system comprises a plurality of block chain users, wherein the input end of the block chain users is connected with the output end of the storage module, and the output end of the block chain users is connected with the input end of the storage module and used for carrying out logic operation. At the time of computation, a blockchain technique is used for redundant computation to reduce the possibility of tampering with the computation process.
The calculating module comprises a counting module, a comparing module, a calculating module, a label generating module, an overwriting module, a tree dividing module, a marking module, a timing module, a coefficient calculating module and other sub-modules.
And a counting module: the system comprises a storage module, a timing module, a tree dividing module and a tree dividing module, wherein the storage module is used for acquiring information of agricultural products from the storage module, measuring the quantity of the agricultural products, judging whether the quantity of the agricultural products is reasonable or not, and triggering the timing module and the tree dividing module if the quantity of the agricultural products is reasonable; and if not, triggering the marking module.
And a timing module: and determining the time difference between a certain moment and the current moment according to the clock, wherein in specific use, the quality inspection interval is calculated according to the last quality inspection moment and the current moment, and the trigger coefficient calculation module is used for calculating the interval.
And a coefficient calculating module: the input end is connected with the input end of the timing module and used for calculating the sampling detection coefficient according to the time difference (namely the interval between the sampling detection coefficient) and the output end is connected with the input end of the detection module.
The timing module and the coefficient calculation module are used for providing parameters for the detection module so as to determine how to perform quality inspection.
Tree partitioning module: the output end is connected with the input end of the label generating module and is used for tree division of the quantity information of the agricultural products.
And a comparison module: and the quality inspection module is used for comparing the quality inspection result with the quality inspection mark, judging whether the quality inspection result is qualified or not, triggering the label generation module if the quality inspection result is qualified, and otherwise triggering the overwriting module.
The label generating module: a label for the agricultural product is generated from the data of the agricultural product.
And (3) an overwriting module: for deleting information under the tag and rewriting new information.
Marking module: for marking tags whose information is suspicious.
Marking judgment module: for determining whether the label of the current agricultural product is marked.
The marking module and the marking judging module are also used for providing parameters for the detection module so as to determine how to perform quality inspection.
And a scanning module: the system comprises a plurality of block chain users, wherein the block chain users are provided with input ends connected with the output ends of the storage modules, and the output ends are connected with the input ends of the calculation modules and used for scanning labels so as to acquire information of agricultural products.
When the storage module is used for storage, the block chain technology is used for redundant storage so as to reduce the possibility of tampering information.
The computing module further comprises a confidence coefficient computing module;
confidence calculation module: and calculating the credibility of the label information, namely judging whether the information under the same label is the same in the storage module, and judging the label information to be credible if the information under the same label is the same and reaches 51%.
The agricultural product traceability management system based on the blockchain technology in the embodiment has the implementation principle that:
users joining the blockchain system all have calculation authority, storage authority and inquiry authority so as to reduce the probability of information tampering and play a role in monitoring. The user with the operation authority is the user which can affect the quality of the agricultural products, and needs to take care of the quality of the agricultural products and is responsible for the quality of the agricultural products.
When agricultural products of a certain type and batch arrive at the hands of users with operation authority for the first time, the users with operation authority need to input the type and batch of agricultural products, and meanwhile detect the agricultural products, and the detection and calculation process is responsible for all users so as to reduce the probability of detection and counterfeiting. After the detection is finished, all users make labels so that agricultural products can be traced.
When the coverage rate of the blockchain system is low, agricultural products can be temporarily separated from the monitoring of the blockchain system in the processes of transportation, storage and the like, so that when the agricultural products enter the blockchain system again, the calculation module judges and calculates various information of the agricultural products so as to ensure the credibility of the current label of the agricultural products; and a detection plan is formulated according to label information of the agricultural products so as to ensure the quality of the agricultural products in the blockchain system and reduce the load of the blockchain system. After the detection, the label of the agricultural product is updated once again, so that all users can query the latest information of the related agricultural product, and the probability that the gambling molecule gains benefits by using the blockchain system when the coverage rate of the blockchain system is lower is reduced.
The above embodiments are not intended to limit the scope of the present invention, so: all equivalent changes in structure, shape and principle of the invention should be covered in the scope of protection of the invention.

Claims (10)

1. A agricultural product traceability management method based on a blockchain technology is characterized by comprising the following steps of: the method comprises the following steps:
the 1 st entry into the blockchain: the method comprises a step of acquiring product information for the 1 st time, a step of quality inspection for the 1 st time, a step of comparing for the 1 st time and a step of integrating the 1 st information;
product information is acquired for the 1 st time: when the agricultural product enters the blockchain monitoring system for the 1 st time, acquiring the type, batch and quantity information of the agricultural product;
quality inspection for the 1 st time: carrying out comprehensive quality inspection on agricultural products entering the blockchain monitoring system for the 1 st time, and further obtaining the 1 st quality inspection content information and the 1 st quality inspection time information of the agricultural products;
comparison 1: comparing the 1 st quality inspection content information of the agricultural products with a quality inspection standard value, if the quality inspection standard value is met, the agricultural products are qualified, and executing a 1 st information integration step; if the quality control standard value is not met, the quality control standard value is not met;
information integration 1 st time: integrating agricultural product information in the step of entering the blockchain for the 1 st time, manufacturing a 1 st-stage label for quality inspection qualified agricultural products according to types and batches, recording qualified quantity, quality inspection content, quality inspection time and quality inspection qualification information in the 1 st-stage label, and triggering a blockchain transmission step;
nth entry into blockchain: wherein N is a natural number greater than or equal to 2, and comprises an nth product information acquisition step, an nth rationality inspection step, an nth spot check step, an nth comparison step and an nth information integration step;
product information is acquired for the nth time: acquiring the type of agricultural products, the number of the nth time of entering the blockchain and the quality inspection qualification information of the nth-1 time;
nth rationality test: if the number of the agricultural products in the current type is not more than the number recorded in the N-1 grade label and the quality inspection of the N-1 time is qualified, the method is considered to be reasonable and the N time of sampling inspection step is executed; otherwise, the method is considered unreasonable;
sampling inspection for the nth time: carrying out sampling inspection on agricultural products entering the blockchain monitoring system for the nth time, wherein the sampling inspection coefficient is K, and K is more than 0 and less than 1; further acquiring the content information of the Nth spot check of the agricultural product and the time information of the Nth spot check;
nth comparison: comparing the Nth sampling inspection content information of the agricultural products with a quality inspection standard value, if the N th sampling inspection content information meets the quality inspection standard value, the agricultural products are qualified, and executing an Nth information integration step; if the quality control standard value is not met, the quality control standard value is not met;
nth information integration: integrating agricultural product information in the step of entering the blockchain for the nth time, manufacturing an nth grade label according to types and batches of quality-checked qualified agricultural products, recording qualified quantity, quality-checked content, quality-checked time and quality-checked qualification information in the nth grade label, and triggering a blockchain transmission step;
blockchain propagation: and according to the label, the type, batch, quantity, quality inspection content and quality inspection time information of the agricultural products are transmitted and stored in the blockchain.
2. The agricultural product traceability management method based on the blockchain technology according to claim 1, wherein the agricultural product traceability management method is characterized by comprising the following steps of: the nth entering blockchain step further comprises a label removing step:
and (5) label removal: removing labels on agricultural products, and executing the step of entering a blockchain for the 1 st time;
and in the nth rationality checking step, if the rationality checking step is not reasonable, a label removing step is also executed.
3. The agricultural product traceability management method based on the blockchain technology according to claim 1 or 2, wherein the agricultural product traceability management method is characterized by comprising the following steps of: the nth entering blockchain step further comprises a tree dividing step;
tree partitioning: if the mth portion of the type, lot of agricultural product occurs in the nth entering blockchain step, dividing the agricultural product into a QNPm tree;
in the nth rationality checking step, if the number of agricultural products of the current type and batch is not more than the number recorded in the N-1 level label and the quality inspection of the nth-1 level is qualified, a tree dividing step is further executed;
in the nth information integration step, an nth level tag is manufactured according to the tree;
the method also comprises a searching and counting step and a data judging step;
search statistics: searching agricultural products according to the Nth-level label, and counting the total number of agricultural products of the same type and batch under a certain tree;
and (3) data judgment: if the sum of the numbers of agricultural products of the same type and batch is larger than the total number of agricultural products of the same type and batch in a certain tree, the total number of agricultural products of the same type and batch is considered unreasonable.
4. The agricultural product traceability management method based on the blockchain technology according to claim 3, wherein the agricultural product traceability management method is characterized by comprising the following steps of: the method also comprises a tracing marking step;
trace back mark: tracing and marking the current type and batch of agricultural products;
in the data judging step, if the data judging step is unreasonable, executing a tracing marking step;
the nth entering blockchain step further comprises a mark judging step and an nth quality inspection step;
and (3) marking judgment: if the current type and batch of agricultural products are marked agricultural products, executing an Nth quality inspection step; if the current type and batch of agricultural products are not marked agricultural products, executing the Nth spot check step;
nth quality inspection: and carrying out comprehensive quality inspection on the agricultural products entering the blockchain monitoring system for the nth time, and further acquiring the content information of the nth quality inspection and the time information of the nth quality inspection of the agricultural products.
5. The agricultural product traceability management method based on the blockchain technology according to claim 1 or 2, wherein the agricultural product traceability management method is characterized by comprising the following steps of: in the step of acquiring the product information for the nth time, quality inspection time information of the (N-1) th time is also acquired;
in the nth sampling inspection step, a quality inspection interval TNN-1 between the current time and the (N-1) th quality inspection time is also obtained, and a calculation model with a sampling inspection coefficient K is as follows:
6. an agricultural product traceability management system based on a blockchain technology, which is used for applying the agricultural product traceability management method based on the blockchain technology as set forth in any one of claims 1 to 5, and is characterized in that: the method comprises the following modules:
an input module: the system is used for inputting the type, batch and quantity information and quality control standard of agricultural products;
and a detection module: the device is used for detecting the quality of agricultural products and outputting detection results;
and a storage module: the device comprises a plurality of input ends, an input module and a detection module, wherein the input ends are connected with the output ends of the input module and the detection module and are used for storing information corresponding to agricultural products;
and a scanning module: the input end is connected with the output end of the storage module, and the output end is connected with the input end of the calculation module and is used for scanning the label so as to acquire information of agricultural products;
the calculation module: the input ends are connected with the output ends of the storage modules, and the output ends are connected with the input ends of the storage modules and used for carrying out logic operation;
the calculation module comprises the following submodules:
and a counting module: for metering the quantity of agricultural products;
the calculation module: for calculating the number of agricultural products to be inspected;
and a comparison module: the quality inspection device is used for comparing the quality inspection result with the quality inspection mark;
the label generating module: a label for generating an agricultural product from the data of the agricultural product;
confidence calculation module: and calculating the credibility of the label information.
7. The agricultural product traceability management system based on blockchain technology of claim 6, wherein: the computing module also comprises an overwriting module;
and (3) an overwriting module: for deleting information under the tag and rewriting new information.
8. The agricultural product traceability management system based on blockchain technology according to claim 6 or 7, wherein: the calculation module further comprises a tree partitioning module,
tree partitioning module: the output end is connected with the input end of the label generating module and is used for tree division of the quantity information of the agricultural products.
9. The agricultural product traceability management system based on blockchain technology of claim 8, wherein: the computing module further comprises a marking module;
marking module: for marking tags whose information is suspicious.
10. The agricultural product traceability management system based on blockchain technology according to claim 6 or 7, wherein: the calculation module further comprises a timing module and a coefficient calculation module;
and a timing module: determining the time difference between a certain moment and the current moment according to the clock;
and a coefficient calculating module: the input end is connected with the input end of the timing module and used for calculating the sampling inspection coefficient according to the time difference.
CN202311497884.1A 2023-11-13 2023-11-13 Agricultural product traceability management method and system based on blockchain technology Active CN117236972B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311497884.1A CN117236972B (en) 2023-11-13 2023-11-13 Agricultural product traceability management method and system based on blockchain technology

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311497884.1A CN117236972B (en) 2023-11-13 2023-11-13 Agricultural product traceability management method and system based on blockchain technology

Publications (2)

Publication Number Publication Date
CN117236972A true CN117236972A (en) 2023-12-15
CN117236972B CN117236972B (en) 2024-02-09

Family

ID=89093095

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311497884.1A Active CN117236972B (en) 2023-11-13 2023-11-13 Agricultural product traceability management method and system based on blockchain technology

Country Status (1)

Country Link
CN (1) CN117236972B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0660086A (en) * 1992-08-13 1994-03-04 Nec Corp Product quality control system
JP2009015654A (en) * 2007-07-05 2009-01-22 Sharp Corp Quality management system of work and quality management method of work
CN110675008A (en) * 2018-07-02 2020-01-10 上海旺链信息科技有限公司 Data quality verification method and system of Internet of things equipment and storage medium
CN111489128A (en) * 2020-05-12 2020-08-04 江苏布洛氪链数据科技有限公司 Cold chain transportation and temperature intelligent control method based on block chain
CN112564960A (en) * 2020-12-01 2021-03-26 浙商银行股份有限公司 Elastic adjustment consensus method and device based on block link point centrality
CN113902371A (en) * 2021-10-13 2022-01-07 尹紫怡 Cold-chain logistics management system based on block chain technology
CN116307359A (en) * 2023-01-03 2023-06-23 南京春辉科技实业有限公司 Production process management method, device, equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0660086A (en) * 1992-08-13 1994-03-04 Nec Corp Product quality control system
JP2009015654A (en) * 2007-07-05 2009-01-22 Sharp Corp Quality management system of work and quality management method of work
CN110675008A (en) * 2018-07-02 2020-01-10 上海旺链信息科技有限公司 Data quality verification method and system of Internet of things equipment and storage medium
CN111489128A (en) * 2020-05-12 2020-08-04 江苏布洛氪链数据科技有限公司 Cold chain transportation and temperature intelligent control method based on block chain
CN112564960A (en) * 2020-12-01 2021-03-26 浙商银行股份有限公司 Elastic adjustment consensus method and device based on block link point centrality
CN113902371A (en) * 2021-10-13 2022-01-07 尹紫怡 Cold-chain logistics management system based on block chain technology
CN116307359A (en) * 2023-01-03 2023-06-23 南京春辉科技实业有限公司 Production process management method, device, equipment and storage medium

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
景旭,刘滋雨,秦源泽: "基于区块链中继技术的集群式农产品供应链溯源模型", 《农业工程学报》, 30 June 2022 (2022-06-30) *
陈冬梅;: "PCR及其改进技术在食品安全检测中的应用", 食品界, no. 09 *
陈欣雨: "基于区块链的蔬菜安全溯源系统的应用研究", 《信息科技;经济与管理科学》 *

Also Published As

Publication number Publication date
CN117236972B (en) 2024-02-09

Similar Documents

Publication Publication Date Title
Feng et al. Applying blockchain technology to improve agri-food traceability: A review of development methods, benefits and challenges
US10796316B2 (en) Method and system for identifying fraudulent publisher networks
Peng et al. Modeling multivariate cybersecurity risks
Martin et al. Zero tolerance ecology: improving ecological inference by modelling the source of zero observations
CN107093083A (en) Agricultural product quality and safety based on Quick Response Code reviews supervisory systems and its implementation
CN109087005A (en) Monitoring method based on the commodity logistics environment that intelligent contract and mist calculate
Singh et al. Redefining food safety traceability system through blockchain: findings, challenges and open issues
CN108256794A (en) Management system that a kind of grain takes an inventory of warehouses system and grain is taken an inventory of warehouses
Zhang et al. Research on cold chain logistics traceability system of fresh agricultural products based on blockchain
Bolwell et al. Risk factors for interruptions to training occurring before the first trial start of 2-year-old Thoroughbred racehorses
CN116739618B (en) Variable code tracing system based on block chain and data processing method
CN101299248A (en) Meat product safety tracing method
CN116720881B (en) Agricultural product sales supervision early warning method, system and medium based on positioning information
Hidayat et al. A review of detection of pest problem in rice farming by using blockchain and IoT technologies
Padilla Bravo et al. Assessing the impact of unannounced audits on the effectiveness and reliability of organic certification
CN117236972B (en) Agricultural product traceability management method and system based on blockchain technology
Paudel et al. Event dependence and heterogeneity in the adoption of precision farming technologies: A case of US cotton production
CN117035563B (en) Product quality safety risk monitoring method, device, monitoring system and medium
Bell et al. Validation of the OpCost logging cost model using contractor surveys
CN117592840A (en) Digital agricultural product service innovation system
CN112288371A (en) Customs clearance inspection method and device, electronic equipment and computer readable storage medium
Wang et al. Deepfarm: AI-driven management of farm production using explainable causality
CN110296951A (en) A kind of food safety detection system
Santangeli et al. Mixed effects of a national protected area network on terrestrial and freshwater biodiversity
Pandurang et al. A mapping-based podel for preventing Cross site scripting and sql injection attacks on web application and its impact analysis

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant