Agricultural product quality tracing method based on Internet of Things
Through the combination of the Internet of Things and trusted third-party servers, information sharing and quality control in all links of the agricultural product supply chain are realized, and the problems of opacity and inaccurate quality control in the existing technology are solved, and a low-cost and efficient agricultural product quality traceability solution is provided.
Patent Information
- Application Number
- CN202311839763.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-28
- Publication Date
- 2025-07-29
AI Technical Summary
The existing technology is difficult to achieve low information sharing, opaque data, and poor quality control accuracy among all links in the agricultural product supply chain, and blockchain technology has high cost and complex contract implementation problems.
Using Internet of Things technology, through a variety of information collection methods and equipment, combined with trusted third-party servers, information in the production, sales and consumption of agricultural products is verified and saved multiple times, including hierarchical management of public data and private data to ensure the reliability and accuracy of the data.
It has achieved accurate traceability and control of agricultural product quality, prevented farmers from using inferior products as good ones, merchants sold counterfeits, protected consumer rights, and was cheap and easy to implement.
Smart Images

Figure CN120387831A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of agricultural informatization. Specifically, it relates to a method for tracing the quality of agricultural products based on the Internet of Things. Background Art
[0002] Food is the paramount necessity of the people. The safety of food is directly related to the happiness of people's lives and the stable development of society. Therefore, ensuring food safety is an important factor in the national development process. In terms of policies, various national departments have put forward comprehensive requirements for the construction of a "traceability system" for edible agricultural products. In terms of laws, the state has promulgated Article 42 of the Food Safety Law, aiming to regulate food producers and operators to establish a food safety traceability system for the food they produce, and then integrate the fragmented systems to build a food safety traceability system, so as to ensure that the food produced can be traced and supervised. These policies and laws are all aimed at realizing the traceability of food information and ensuring food safety.
[0003] At present, the industry has carried out a lot of exploration and application in the construction of traceability systems and achieved positive results. However, most of them are for tracing a certain link in the agricultural product supply chain, and the effect is relatively limited. Problems such as low information sharing degree, opaque data, and poor accuracy of quality control among various links have not been solved. Chinese Patent CN114581111A uses a combination of the Internet of Things and blockchain to solve the above problems. However, due to the disadvantages of blockchain itself, new technical problems have arisen. For example, building a complete blockchain network requires many nodes to connect and achieve decentralized services, and building nodes requires a high cost. In addition, professional IT management personnel are also needed. The decentralized nature of blockchain makes the contract more complex. Traditional contracts may have competitive and accidental situations, while in blockchain, many processes are involved, and each step must be verified, as well as the consideration of the risks of both parties, which makes the contract more complex and difficult to implement. Summary of the Invention
[0004] The technical problem solved by the present invention is: how to simply, efficiently, and at low cost trace all links in the agricultural product supply chain simultaneously and achieve precise quality control.
[0005] In order to achieve the above invention purpose, the present invention provides a method for tracing the quality of agricultural products based on the Internet of Things, which mainly includes the following steps: Step 1, agricultural product production stage; collect various information in the agricultural product production process through various information collection methods and information collection devices, analyze and process the collected information, and then upload it to the farmer-side server and the trusted third-party server respectively. Among them, the analyzed and processed information data is saved in the format [first public data, first private data].
[0006] Step 2: Stage of agricultural products leaving the field; the merchant obtains the first public data by scanning the QR code and sends the first public data to the trusted third-party server, and the trusted third-party server verifies the first public data sent by the merchant; if the verification passes, proceed to the next step; otherwise, prompt for a fake product.
[0007] Step 3: Stage of agricultural products sales; collect various information during the sales process of agricultural products through various information collection methods and information collection devices, analyze and process the collected information and then upload it to the merchant server, and at the same time upload it to the trusted third-party server to expand the original data. Among them, the analyzed and processed information data is saved in the merchant server in the format [second public data, second private data], and the data expanded by the trusted third-party server is saved in the format [first public data, second public data, first private data, second private data].
[0008] Step 4: Stage of consumer purchase.
[0009] Step 4.1: The consumer obtains the first public data and the second public data by scanning the QR code. At this time, automatically send the first public data and the second public data to the trusted third-party server, send the first public data to the farmer server, and send the second public data to the merchant server for preliminary verification respectively. If the verification passes, proceed to the next step; otherwise, prompt for a fake product.
[0010] Step 4.2: The merchant server conducts a re-verification. If the verification passes, proceed to the next step; otherwise, prompt for a fake product.
[0011] Step 4.3: The trusted third-party server conducts a re-verification. If the verification passes, prompt the consumer to purchase with confidence; otherwise, prompt for a fake product.
[0012] As a preferred technical solution of the present invention, the various information collection methods include automatic collection and manual collection; the various information collection devices include various sensors and cameras.
[0013] As a preferred technical solution of the present invention, the first public data includes the type of agricultural product, batch number, and production place; the first private data includes environmental temperature and humidity, illuminance, soil condition, and production monitoring video.
[0014] As a preferred technical solution of the present invention, the second public data includes warehousing information, grade information, grading personnel, quality inspection report, sales unit, sales time, and selling price; the second private data includes transportation cost, purchase price, and processing monitoring video.
[0015] As a preferred technical solution of the present invention, step 2 specifically includes: Step 2.1: Query whether the first public data sent by the merchant is included in the trusted third-party server. If it is included, proceed to the next step; otherwise, prompt for a false product.
[0016] Step 2.2: Match the corresponding first private data according to the first public data, and send the first private data to the farmer-side server. Query whether the first private data is included in the farmer-side server. If it is included, the verification passes; otherwise, prompt for a false product.
[0017] As a preferred technical solution of the present invention, the preliminary verification in step 4.1 specifically includes: Query whether the farmer-side server, the merchant-side server, and the trusted third-party server respectively include the first public data and / or the second public data. If all are included, the verification passes; otherwise, the verification fails.
[0018] As a preferred technical solution of the present invention, step 4.2 specifically includes: The merchant-side server matches the corresponding second private data according to the received second public data, and sends the second private data to the trusted third-party server. Query whether the second private data is included in the trusted third-party server. If it is included, the verification passes; otherwise, prompt for a false product.
[0019] As a preferred technical solution of the present invention, step 4.3 specifically includes: The trusted third-party server matches the first private data according to the second private data sent by the merchant, and sends the matched first private data to the farmer-side server for verification. If the verification passes, prompt the consumer to purchase with confidence, and at the same time delete the corresponding data in the farmer-side server, the merchant-side server, and the trusted third-party server; otherwise, prompt for a false product.
[0020] The present invention also provides a computer storage medium, which stores program instructions. When the program instructions run, they control the device where the computer storage medium is located to execute the method described in any one of the above.
[0021] The present invention also provides a processor, which is used to run a program. When the program runs, it executes the method described in any one of the above.
[0022] Compared with the prior art, the beneficial effects of the present invention are at least as follows: In the present invention, first, a trusted third party is introduced to monitor data in multiple links such as the production and sales of agricultural products, ensuring the reliability of the data; second, during the stage when agricultural products leave the field, the agricultural products purchased by merchants from farmers are traced, guaranteeing the quality of agricultural products from the source and preventing farmers from passing off inferior goods as good ones; finally, when consumers purchase agricultural products, the data is verified multiple times. On the one hand, it prevents merchants from selling fake and shoddy products, and on the other hand, it can also promptly detect data tampering. The present invention is low-cost, simple and efficient, and easy to implement, providing a new solution for solving the traceability of agricultural product quality. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 It is a step flowchart of a method for tracing the quality of agricultural products based on the Internet of Things according to the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0024] In order to make the objectives, technical solutions and advantages of the present invention clearer and more understandable, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0025] It can be understood that the terms "first", "second", etc. used in the present application may be used herein to describe various elements, but unless otherwise specified, these elements are not limited by these terms. These terms are only used to distinguish the first element from another element. For example, without departing from the scope of the present application, the first xx script may be called the second xx script, and similarly, the second xx script may be called the first xx script.
[0026] The present invention provides a method for tracing the quality of agricultural products based on the Internet of Things as Figure 1 shown, which is mainly realized by performing the following step process: Step 1, the agricultural product production stage; various information collection methods and information collection devices are used to collect various information in the production process of agricultural products, and the collected information is analyzed and processed and then uploaded to the farmer-side server and the trusted third-party server respectively. Among them, the analyzed and processed information data is saved in the format [first public data, first private data].
[0027] Step 2, the stage when agricultural products leave the field; the merchant obtains the first public data by scanning the QR code and sends the first public data to the trusted third-party server, and the trusted third-party server verifies the first public data sent by the merchant; if the verification passes, proceed to the next step; otherwise, prompt a fake product.
[0028] Step 3: Agricultural product sales stage; various information collection methods and information collection devices are used to collect various information during the sales process of agricultural products. After the collected information is analyzed and processed, it is uploaded to the merchant-side server, and at the same time, it is uploaded to the trusted third-party server to expand the original data. Among them, the analyzed and processed information data is saved in the merchant-side server in the format [Second public data, Second private data], and the data expanded by the trusted third-party server is saved in the format [First public data, Second public data, First private data, Second private data].
[0029] Step 4: Consumer purchase stage.
[0030] Step 4.1: The consumer obtains the First public data and the Second public data by scanning the QR code. At this time, the First public data and the Second public data are automatically sent to the trusted third-party server, the First public data is sent to the farmer-side server, and the Second public data is sent to the merchant-side server for preliminary verification respectively. If the verification is passed, proceed to the next step; otherwise, prompt for a fake product.
[0031] Step 4.2: The merchant-side server conducts a re-verification. If the verification is passed, proceed to the next step; otherwise, prompt for a fake product.
[0032] Step 4.3: The trusted third-party server conducts a re-verification. If the verification is passed, prompt the consumer to purchase with confidence; otherwise, prompt for a fake product.
[0033] Specifically, the inventor found that most of the existing traceability systems can only find that the quality of agricultural products does not match the actual label, and it is impossible to timely discover which link has problems. Moreover, when problems are discovered, adverse effects have already occurred, and losses cannot be stopped in time, causing irreparable losses to the economic interests and reputation of farmers, merchants, or consumers. Therefore, it is necessary to conduct a full-process traceability in each stage before agricultural products are purchased by consumers.
[0034] Further, the various information collection methods include automatic collection and manual collection; the various information collection devices include various sensors and cameras.
[0035] Specifically, some information can be automatically collected by sensors, while some information needs to be collected manually through methods such as manual registration; various sensors can be temperature and humidity sensors, light sensors, rain sensors, chemical analysis sensors, etc., and cameras can record necessary means such as providing security alarms through video monitoring.
[0036] Further, the first public data includes the types of agricultural products, batch numbers, and production locations; the first private data includes environmental temperature and humidity, illuminance, soil conditions, and production monitoring videos.
[0037] Specifically, the types, batch numbers, and production locations of agricultural products are necessary information for judging their sources and values, and need to be clearly disclosed to merchants and consumers, and can be saved as the first public data; however, some data may involve technical secrets / patents in the production process and are not convenient to be disclosed to the public, such as environmental temperature and humidity, illuminance, soil conditions, etc., and can be saved as the first private data.
[0038] Further, the second public data includes warehousing information, grade information, grading personnel, quality inspection reports, sales units, sales times, and selling prices; the second private data includes transportation costs, purchase prices, and processing monitoring videos.
[0039] Specifically, the grade information, grading personnel, quality inspection reports, etc. of agricultural products are also necessary information for judging whether their quality is compliant and their value levels, and need to be clearly disclosed to consumers and can be saved as the first public data; while information such as transportation costs and purchase prices involves business secrets and is not convenient to be disclosed to the public, and can be saved as the second private data.
[0040] Further, step 2 specifically includes: Step 2.1: Query whether the first public data sent by the merchant is included in the trusted third-party server. If it is included, proceed to the next step; otherwise, prompt false goods.
[0041] Step 2.2: Match the corresponding first private data according to the first public data, and send the first private data to the farmer-side server. Query whether the first private data is included in the farmer-side server. If it is included, the verification passes; otherwise, prompt false goods.
[0042] Specifically, preliminary traceability is carried out at the stage when agricultural products leave the field. Merchants can confirm the reliable and clear source of agricultural products by scanning codes to prevent farmers from selling inferior products as high-quality ones. For example, "Yangcheng Lake hairy crabs" are special products of Suzhou City, Jiangsu Province and are China's National Geographical Indication Products. Due to their large size, plump bodies, blue shells, white bellies, golden claws, yellow hairs, and rich nutritional and medicinal values, they are deeply loved by consumers, and their selling prices are often higher than those of other brands of hairy crabs. Yangcheng Lake hairy crabs are geographical indication products and also a local business card. However, it is not uncommon in the market for news about "bathed crabs" posing as "Yangcheng Lake hairy crabs". Crabs from other places are transported to Yangcheng Lake, soaked in water here, and then sent to other places, and they then become Yangcheng Lake hairy crabs. Such chaos has damaged the reputation of Yangcheng Lake hairy crabs. To prevent the above problems from the source, the present invention provides a solution. During the growth process of Yangcheng Lake hairy crabs, various information in their production process is collected. After the collected information is analyzed and processed, it is uploaded to the farmer-side server and the trusted third-party server respectively. Among them, the analyzed and processed information data is saved in the format [first public data, first private data]. When merchants purchase Yangcheng Lake hairy crabs, by scanning the QR code, they can promptly find out whether farmers are being fraudulent and using other hairy crabs to pose as Yangcheng Lake hairy crabs. At the same time, they can also promptly inform farmers that there are other suspicious persons posing as such through other means.
[0043] Further, the specific implementation of the preliminary verification in step 4.1 includes: Respectively query whether the farmer-side server, the merchant-side server, and the trusted third-party server contain the first public data and / or the second public data. If all contain them, the verification passes; otherwise, the verification fails.
[0044] Specifically, by sending a query request to the farmer-side server, the merchant-side server, and the trusted third-party server, simple query verification can be carried out only by accessing public data, and fake and shoddy products can be discovered in the first time.
[0045] Further, step 4.2 specifically includes: The merchant-side server matches the corresponding second private data according to the received second public data and sends the second private data to the trusted third-party server. Query whether the trusted third-party server contains the second private data. If it contains it, the verification passes; otherwise, a fake product is prompted.
[0046] Specifically, if the merchant - side server has the above - mentioned second privacy data while the trusted third - party server does not, it can be determined that the merchant is engaged in fraud. The consumer can be reminded in a timely manner, and other additional measures can be taken to mark the merchant while terminating the verification, or notify the regulatory department to investigate the merchant. If the evidence is conclusive, corresponding penalties can be imposed.
[0047] Further, step 4.3 specifically includes: The trusted third - party server matches the first privacy data based on the second privacy data sent by the merchant and sends the matched first privacy data to the farmer - side server for verification. If the verification passes, it prompts the consumer to purchase with confidence and deletes the corresponding data in the farmer - side server, the merchant - side server, and the trusted third - party server; otherwise, it prompts a false product.
[0048] Specifically, based on the successful verification in step 4.2, under normal circumstances, the product should be genuine. Step 4.3 conducts a re - verification by matching the first privacy data. Once an anomaly is found, it indicates that there is information tampering or a cyber - attack on the farmer - side server, the trusted third - party server, or the merchant - side server, and the vulnerability can be discovered and maintained in a timely manner.
[0049] According to another aspect of the embodiments of the present invention, a computer storage medium is provided. The computer storage medium stores program instructions. When the program instructions run, they control the device where the computer storage medium is located to execute the method described in any one of the above.
[0050] According to another aspect of the embodiments of the present invention, a processor is provided. The processor is used to run a program. When the program runs, it executes the method described in any one of the above.
[0051] It should be understood that although the steps in the flowcharts of the embodiments of the present invention are shown in sequence according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless there is a clear description in this article, the execution of these steps has no strict order limit, and these steps can be executed in other orders. Moreover, at least a part of the steps in each embodiment may include multiple sub - steps or multiple stages. These sub - steps or stages are not necessarily executed at the same moment, but can be executed at different moments. The execution order of these sub - steps or stages is not necessarily sequential, but can be executed alternately or in turn with at least a part of other steps or sub - steps or stages of other steps.
[0052] Those of ordinary skill in the art can understand that all or part of the processes of implementing the methods in the above embodiments can be completed by instructing relevant hardware through a computer program. The above program can be stored in a non-volatile computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above methods. Among them, any reference to a memory, storage, database, or other medium used in the various embodiments provided in this application can include non-volatile and / or volatile memories. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), Rambus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and Rambus dynamic RAM (RDRAM), etc.
[0053] The technical features of the above embodiments can be combined arbitrarily. For the sake of brevity of description, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered as the scope described in this specification.
[0054] The above embodiments only represent several implementation manners of the present invention. The description is relatively specific and detailed, but it should not be construed as a limitation on the scope of the patent of the present invention. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present invention, several modifications and improvements can still be made, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention should be subject to the appended claims.
[0055] The above is only the preferred embodiment of the present invention and is not used to limit the present invention. Any modifications, equivalent replacements, and improvements made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. An agricultural product quality traceability method based on the Internet of Things, characterized in that, It includes the following steps: Step 1, agricultural product production stage; various information collection methods and information collection devices are used to collect various information during the production process of agricultural products. After analyzing and processing the collected information, it is uploaded to the farmer-side server and the trusted third-party server respectively. Among them, the analyzed and processed information data is saved in the format [first public data, first private data]; Step 2, agricultural product leaving the field stage; the merchant obtains the first public data by scanning the QR code and sends the first public data to the trusted third-party server. The trusted third-party server verifies the first public data sent by the merchant; if the verification passes, proceed to the next step; otherwise, prompt for a fake product; Step 3, agricultural product sales stage; various information collection methods and information collection devices are used to collect various information during the sales process of agricultural products. After analyzing and processing the collected information, it is uploaded to the merchant-side server, and at the same time uploaded to the trusted third-party server to expand the original data. Among them, the analyzed and processed information data is saved in the format [second public data, second private data] on the merchant-side server, and the expanded data on the trusted third-party server is saved in the format [first public data, second public data, first private data, second private data]; Step 4, consumer purchase stage; Step 4.1, the consumer obtains the first public data and the second public data by scanning the QR code. At this time, the first public data and the second public data are automatically sent to the trusted third-party server, the first public data is sent to the farmer-side server, and the second public data is sent to the merchant-side server for preliminary verification respectively. If the verification passes, proceed to the next step; otherwise, prompt for a fake product; Step 4.2, the merchant-side server conducts a re-verification. If the verification passes, proceed to the next step; otherwise, prompt for a fake product; Step 4.3, the trusted third-party server conducts a re-verification. If the verification passes, prompt the consumer to purchase with confidence; otherwise, prompt for a fake product.
2. The method for tracing the quality of agricultural products based on the Internet of Things according to claim 1, wherein, The various information collection methods include automatic collection and manual collection; the various information collection devices include various sensors and cameras.
3. The method for tracing the quality of agricultural products based on the Internet of Things according to claim 1, wherein, The first public data includes the type of agricultural product, batch number, and production location; the first private data includes environmental temperature and humidity, light intensity, soil conditions, and production monitoring video.
4. A method for tracing the quality of agricultural products based on the Internet of Things according to claim 1, characterized in that, The second public data includes warehousing information, grade information, grading personnel, quality inspection report, sales unit, sales time, and selling price; the second private data includes transportation cost, purchase price, and processing monitoring video.
5. The method for tracing the quality of agricultural products based on the Internet of Things according to claim 1, characterized in that, Step 2 specifically includes: Step 2.1, query whether the first public data sent by the merchant is included in the trusted third-party server. If it is included, proceed to the next step; otherwise, prompt for a fake product; Step 2.2: Match the corresponding first private data according to the first public data, and send the first private data to the farmer client server. Query whether the first private data is included in the farmer client server. If it is included, the verification passes; otherwise, a false product is prompted.
6. The method for tracing the quality of agricultural products based on the Internet of Things according to claim 1, wherein, The specific preliminary verification in Step 4.1 includes: Query whether the first public data and / or the second public data are included in the farmer client server, the merchant client server, and the trusted third-party server respectively. If all are included, the verification passes; otherwise, the verification fails.
7. A method for tracing the quality of agricultural products based on the Internet of Things according to claim 1, characterized in that, Step 4.2 specifically includes: The merchant client server matches the corresponding second private data according to the received second public data, and sends the second private data to the trusted third-party server. Query whether the second private data is included in the trusted third-party server. If it is included, the verification passes; otherwise, a false product is prompted.
8. A method for tracing the quality of agricultural products based on the Internet of Things according to claim 7, characterized in that, Step 4.3 specifically includes: The trusted third-party server matches the first private data according to the second private data sent by the merchant, and sends the matched first private data to the farmer client server for verification. If the verification passes, prompt the consumer to buy with confidence, and at the same time delete the corresponding data in the farmer client server, the merchant client server, and the trusted third-party server; otherwise, a false product is prompted.
9. A computer storage medium, characterized in that, The computer storage medium stores program instructions, wherein when the program instructions run, they control the device where the computer storage medium is located to execute the method according to any one of claims 1 to 8.
10. A processor, characterized in that, The processor is used to run a program, wherein when the program runs, it executes the method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Chinese herbal medicine tracing system based on block chain and Internet of Things
CN114581111A