Agricultural product traceability management system
By designing an agricultural product traceability management system and integrating agricultural data using blockchain and multimodal fusion algorithm, the problem of insufficient data integration and processing capabilities in the existing system is solved, the integrity of agricultural product data and the reliability of query are achieved, and the standardization and supervision efficiency of agricultural production are improved.
Patent Information
- Application Number
- CN202411742146.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-29
- Publication Date
- 2025-03-14
AI Technical Summary
The existing agricultural data acquisition and management systems have problems such as single data types, low collection efficiency and insufficient data processing capabilities, and it is difficult to integrate multimodal data to provide complete and accurate backtracking information.
Design an agricultural product traceability management system, including data collection unit, data association unit and query unit, ensure the integrity and uniqueness of data through blockchain technology, and use multimodal fusion algorithm to integrate data at different stages.
It realizes the completeness and uniqueness of agricultural product data, improves the reliability of backtracking information query, ensures the safety and reliability of agricultural products, and improves the efficiency of agricultural product quality supervision and the standardization of agricultural production.
Smart Images

Figure CN119624478A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of digital agriculture, and in particular to an agricultural product traceability management system. Background Art
[0002] Agricultural product traceability management can quickly trace the source of problems, prevent the circulation of substandard products, and protect consumer health. Through traceability management, it can promote the standardization of agricultural production, improve regulatory efficiency, and support the sustainable development of the agricultural industry and international trade compliance.
[0003] The current agricultural data collection and management system has certain limitations, such as single data type, low collection efficiency, insufficient data processing capabilities, etc. Since there are a large number of multimodal data with complex types from the growth to the sales of crop products, the traceability mechanism provided by the existing technology often cannot integrate these multimodal data to feedback more complete and accurate traceability information.
[0004] Therefore, in order to solve the above problems, an agricultural product traceability management system is needed that can ensure the integrity and uniqueness of agricultural product data and improve the reliability of traceability information query, thereby ensuring the safety and reliability of agricultural products. Summary of the invention
[0005] In view of this, the purpose of the present invention is to overcome the defects in the prior art and provide an agricultural product traceability management system that can ensure the integrity and uniqueness of agricultural product data, improve the reliability of traceability information query, and thus ensure the safety and reliability of agricultural products.
[0006] The agricultural product traceability management system of the present invention comprises a data collection unit, a data association unit and a query unit;
[0007] The data collection unit is used to collect data information of agricultural products in the growth stage, production stage, processing stage and transportation stage;
[0008] The data association unit is used to receive data information of each stage, add a unique product identifier for the same crop, associate data information of two adjacent stages based on the unique product identifier, and store the product identifier and the associated information in the blockchain;
[0009] The query unit is used to query the information of agricultural products at various stages from the blockchain.
[0010] Furthermore, the data information of the growth stage includes environmental data and growth data; the environmental data includes soil temperature, soil moisture and soil pH value; the growth data includes image information of crop growth;
[0011] Data information in the production stage includes picking information, processing information, inspection information, and packaging information;
[0012] The data information of the processing stage includes processing data and quality inspection data; the processing data includes processing temperature, processing humidity and processing time;
[0013] The data information in the transportation stage includes GPS data and sales data; the GPS data includes the transportation route and transportation location; the sales data includes the sales location and sales volume.
[0014] Furthermore, the environmental data and the growth data are preprocessed, specifically including: using a filtering algorithm or a wavelet transform to remove noise in the data; and reducing the data volume by a lossless compression algorithm or a lossy compression method.
[0015] Furthermore, the preprocessed data is subjected to fusion analysis, specifically including: integrating data from different sources and different types into a unified semantic space through data alignment, feature extraction and multimodal fusion algorithms.
[0016] Furthermore, a unique product identifier is constructed as follows:
[0017] Taking ECODE as the basis and combining the characteristics of OID hierarchical management, multi-level encoding rules are designed;
[0018] Using the uniqueness principle of the OID system, a unique number is assigned to each level, combined with ECODE to achieve fine-grained identification.
[0019] Furthermore, a transaction record is created for each crop product on the blockchain, and each data update is added to the chain as a new transaction block; wherein each transaction block contains a reference to the previous block.
[0020] Further, in the blockchain, smart contract design is performed:
[0021] The cropData structure is used to store agricultural product information; the cropData structure includes cropID, stage, dataType, dataValue and timestamp; the cropID is used to uniquely identify the ID of each agricultural product; the stage is used to indicate which stage the data belongs to; the dataType is used to identify the type of data; the dataValue is used to indicate the actual data value; the timestamp is used to indicate the timestamp of the data record;
[0022] Use the CropHistory structure to store all CropData records for a specific cropID;
[0023] Map cropID to its corresponding CropHistory and set restrictions to control writing, deleting or querying data.
[0024] Furthermore, set limiting conditions, including:
[0025] Permission verification: Only administrators or contributors are allowed to add crop-related data;
[0026] Data existence verification: Verify whether the requested crop history record exists;
[0027] Input data validation: Verify whether the input data is valid.
[0028] The beneficial effects of the present invention are as follows: the agricultural product traceability management system disclosed by the present invention integrates data from different stages of crops, effectively integrates multimodal data, and effectively combines data with various stages and product identifications to provide complete and accurate traceability information. The use of blockchain ensures the integrity and uniqueness of data, improves the reliability of traceability information query, ensures the safety and reliability of agricultural products, improves the efficiency of agricultural product quality supervision, promotes agricultural production standardization, and promotes the digital transformation of the industry. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] The present invention will be further described below in conjunction with the accompanying drawings and embodiments:
[0030] Figure 1 This is a schematic diagram of the principle of the traceability management system of the present invention;
[0031] Figure 2 It is a schematic diagram of the interactive process of the traceability management system of the present invention. DETAILED DESCRIPTION
[0032] The present invention is further described below in conjunction with the accompanying drawings, as shown in the drawings:
[0033] This embodiment discloses an agricultural product traceability management system, including a data collection unit, a data association unit, and a query unit;
[0034] The data collection unit is used to collect data information of agricultural products in the growth stage, production stage, processing stage and transportation stage;
[0035] The data association unit is used to receive data information of each stage, add a unique product identification for the same crop, associate data information of two adjacent stages based on the unique product identification, and store the product identification and the associated information in the blockchain; wherein the production stage is associated with the data of the growth stage, the processing stage is associated with the data of the production stage, and the transportation stage is associated with the data of the processing stage;
[0036] The query unit is used to query the information of agricultural products at various stages from the blockchain.
[0037] The data collection unit includes sensors and data collection equipment; the data association unit includes edge computing equipment and a server; the query unit includes an access device, and the access device includes a PC, a tablet, or a smart phone. The server can be an IoT perception work center, which is used for device optimization and protocol adaptation, mass connection management, data standardization, data storage and sharing, device management, rule engine and event alarm, and data interface provision.
[0038] In this embodiment, data information corresponding to agricultural products at different stages is collected or acquired respectively through various types of sensors and data acquisition equipment, wherein the various types of sensors include soil sensors and environmental sensors.
[0039] The data information of the growth stage includes environmental data and growth data; the environmental data includes soil temperature, soil moisture and soil pH value; the growth data includes image information of crop growth;
[0040] The data information in the production stage includes picking information, inspection information and packaging information. In the production stage, handheld terminals and RFID / NFC readers can be used to enter and read product identification. Handheld terminals are used for on-site data entry and label scanning; RFID / NFC readers are used to read product label information.
[0041] The data information of the processing stage includes processing data and quality inspection data; the processing data includes processing temperature, processing humidity and processing time; wherein the quality inspection data is obtained by visually inspecting the crops through image recognition equipment;
[0042] The data information in the transportation stage includes GPS data and sales data; the GPS data includes the transportation route and transportation location; the sales data includes the sales location and sales volume. In the transportation stage, other data in the transportation, such as temperature, image data, etc., can also be uploaded by using temperature sensors, image recognition equipment, etc.
[0043] By collecting data and information during the growth, production, processing and transportation stages, we can comprehensively track the status and history of agricultural products, ensure product quality and safety, improve production transparency, and provide detailed product source information.
[0044] In this embodiment, the environmental data and the growth data are preprocessed, specifically including:
[0045] Edge computing devices use filtering algorithms or wavelet transforms to remove noise from sensor signals, or effectively suppress complex noise through deep learning models such as autoencoders to improve data quality. Among them, filtering algorithms include low-pass filtering or Kalman filtering.
[0046] Edge devices use lossless compression algorithms or lossy compression methods to reduce data volume, thereby reducing transmission and storage consumption. Lossless compression algorithms include Huffman coding, and lossy compression methods include discrete cosine transform or quantization.
[0047] In this embodiment, the preprocessed data is subjected to fusion analysis, specifically including:
[0048] Data from different sources and different types (such as images and sensor signals) are integrated into a unified semantic space through data alignment, feature extraction, and multimodal fusion algorithms to improve information integrity and consistency. Among them, multimodal fusion algorithms include weighted averaging, Bayesian models, or deep learning.
[0049] The fused data can also be processed through pattern recognition, time series analysis, or classification and prediction models based on machine learning / deep learning to discover potential correlations and predict trends.
[0050] In this embodiment, a unique product identifier is constructed according to the following method:
[0051] Taking ECODE as the basis and combining the characteristics of OID hierarchical management, multi-level coding rules are designed, such as "origin-product-batch"; using the uniqueness principle of the OID system, unique numbers are assigned to each level, and combined with ECODE to achieve fine-grained identification, such as specific to a single batch or a single product.
[0052] Among them, ECODE is the item code. The general structure of ECODE code is three-part, consisting of version (V), coding system identifier (NSI) and master code (MD). It can record the full information of agricultural products and realize the full monitoring and traceability from farmland to table. OID is the object identifier, which is a string composed of a digital sequence. It has its global uniqueness and ensures that objects in the system can be accurately identified.
[0053] In this embodiment, a transaction record is created for each crop product on the blockchain, and each data update is added to the chain as a new transaction block; wherein each transaction block contains a reference (hash value) of the previous block. When a user wants to query the traceability information, he or she can interact with the agricultural product traceability management system to obtain the traceability information contained in the blockchain. Among them, the basis for the query can be achieved through product identification.
[0054] In this embodiment, considering that the data of crops at different stages need to be associated, the following smart contract design is performed in the blockchain:
[0055] The cropData structure is used to store agricultural product information; the cropData structure includes cropID, stage, dataType, dataValue and timestamp; the cropID is used to uniquely identify the ID of each agricultural product; the stage is used to indicate which stage the data belongs to (growth, production, processing, transportation); the dataType is used to identify the type of data, which can be text, number or image hash, etc.; the dataValue is used to indicate the actual data value, which can be a text description, a number or an image hash value according to the dataType; the timestamp is used to indicate the timestamp of the data record;
[0056] By setting the cropData structure, related data can be stored and accessed in a structured manner, thereby improving the readability and maintainability of the code.
[0057] The CropHistory structure is used to store all CropData records of a specific cropID; wherein the CropHistory structure is in the form of an array structure.
[0058] Map cropID to its corresponding CropHistory to facilitate retrieval of the entire history; and set limiting conditions to control writing, deleting or querying data.
[0059] In this embodiment, the limiting conditions are set, specifically including:
[0060] Permission verification: Only administrators or contributors are allowed to add crop-related data;
[0061] Data existence verification: Verify whether the requested crop history record exists;
[0062] Input data validation: Verify whether the input data is valid.
[0063] In order to ensure the security of data access, specifically, it can also be set that: only administrators can call modified functions, only administrators or contributors can call modified functions, executed when the contract is deployed, set the deployer as the administrator, the function of adding crop data, only administrators or contributors can call, the function of obtaining crop history, anyone can call it, but only public data can be obtained, if the data point is not private, or the caller is an administrator, it is added to the public data array.
[0064] The present invention provides an agricultural product traceability management system based on production process data and blockchain, which realizes the full traceability of agricultural product input information, management and disposal information, and relevant responsible entities from planting, processing, storage, circulation and other links. And according to ECODE, OID, etc., agricultural product traceability coding rules are established to realize the traceability of planting site information, picking and packaging information, storage and processing information, transportation and sales information, etc. Agricultural product traceability information can be queried by government management agencies, the public and manufacturers.
[0065] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the purpose and scope of the technical solution of the present invention, which should be included in the scope of the claims of the present invention.
Claims
1. An agricultural product traceability management system, characterized by: It includes a data collection unit, a data association unit and a query unit; The data collection unit is used to collect data information of agricultural products in the growth stage, production stage, processing stage and transportation stage; The data association unit is used to receive data information of each stage, add a unique product identifier for the same crop, associate data information of two adjacent stages based on the unique product identifier, and store the product identifier and the associated information in the blockchain; The query unit is used to query the information of agricultural products at various stages from the blockchain.
2. The agricultural product traceability management system according to claim 1, characterized in that: The data information of the growth stage includes environmental data and growth data; the environmental data includes soil temperature, soil moisture and soil pH value; the growth data includes image information of crop growth; Data information in the production stage includes picking information, processing information, inspection information, and packaging information; The data information of the processing stage includes processing data and quality inspection data; the processing data includes processing temperature, processing humidity and processing time; The data information in the transportation stage includes GPS data and sales data; the GPS data includes the transportation route and transportation location; the sales data includes the sales location and sales volume.
3. The agricultural product traceability management system according to claim 2, characterized in that: Preprocessing the environmental data and growth data includes: removing noise from the data using filtering algorithms or wavelet transforms; reducing the data volume using lossless compression algorithms or lossy compression methods.
4. The agricultural product traceability management system according to claim 3, characterized in that: The preprocessed data is subjected to fusion analysis, specifically including: integrating data from different sources and different types into a unified semantic space through data alignment, feature extraction and multimodal fusion algorithms.
5. The agricultural product traceability management system according to claim 1, characterized in that: Construct a unique product identifier as follows: Taking ECODE as the basis and combining the characteristics of OID hierarchical management, multi-level encoding rules are designed; Using the uniqueness principle of the OID system, a unique number is assigned to each level, combined with ECODE to achieve fine-grained identification.
6. The agricultural product traceability management system according to claim 1, characterized in that: A transaction record is created on the blockchain for each crop product, and each data update is added to the chain as a new transaction block; each transaction block contains a reference to the previous block.
7. The agricultural product traceability management system according to claim 6, characterized in that: In the blockchain, smart contract design is performed: The cropData structure is used to store agricultural product information; the cropData structure includes cropID, stage, dataType, dataValue and timestamp; the cropID is used to uniquely identify the ID of each agricultural product; the stage is used to indicate which stage the data belongs to; the dataType is used to identify the type of data; and the dataValue is used to indicate the actual data value; The timestamp is used to represent the timestamp of the data record; Use the CropHistory structure to store all CropData records for a specific cropID; Map cropID to its corresponding CropHistory and set restrictions to control writing, deleting or querying data.
8. The agricultural product traceability management system according to claim 7, characterized in that: Set limiting conditions, including: Permission verification: Only administrators or contributors are allowed to add crop-related data; Data existence verification: Verify whether the requested crop history record exists; Input data validation: Verify whether the input data is valid.