Tracing management method and system for meat products
By adopting the combination of blockchain network and regulatory center in the meat product traceability system, the problem of unreliability in data in traditional systems is solved, the authenticity and integrity of data is realized, and the reliability of the traceability system is improved.
Patent Information
- Application Number
- CN202510102705.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-22
- Publication Date
- 2025-05-16
AI Technical Summary
The data in traditional meat product traceability systems are unreliable and are susceptible to tampering, misoperation or technical vulnerabilities, which leads to the threat of the accuracy and completeness of the information.
The traceability management system combined with blockchain network and regulatory center is adopted to ensure the immutability and integrity of transaction records through the distributed ledger characteristics of blockchain. The regulatory center is responsible for registration management, authority allocation and data query.
Through blockchain technology, it is ensured that the data of meat products at every supply chain link can be verified, ensuring the authenticity and integrity of information, reducing the risk of data tampering, and improving the reliability of data.
Smart Images

Figure CN120013553A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of meat product traceability management, and in particular to a meat product traceability management method and system. Background Art
[0002] With the frequent occurrence of food safety issues, especially quality and safety accidents in the meat products sector, the public's trust in meat products has gradually declined, and meat traceability management has become particularly important. Meat product traceability management can ensure that every link of the product from breeding, slaughtering to processing and sales can be tracked and verified, and potential safety hazards can be discovered and eliminated in a timely manner. By establishing a transparent and traceable traceability system, consumers can clearly understand the source and circulation path of meat products and enhance their trust in food safety. Regulatory authorities can implement monitoring more effectively, respond quickly to food safety incidents, and avoid the spread of food safety risks.
[0003] Data in traditional traceability systems are usually stored in centralized databases, which may be affected by data tampering, misoperation or technical loopholes, threatening the accuracy and integrity of information. In this case, the data that regulators rely on may not be completely reliable, thus affecting their regulatory effectiveness. Summary of the invention
[0004] The purpose of the present invention is to solve the problem of unreliable data mentioned in the above background technology and to propose a traceability management method and system for meat products.
[0005] In a first aspect of the present invention, there is provided a traceability management system for meat products, the system comprising a supervision center, a blockchain network and a plurality of participating nodes; wherein:
[0006] The regulatory center is used to register, manage and allocate permissions to each supply chain node, making it a participating node in accounting;
[0007] The target participating node is used to generate a transaction record based on the traceability data of the node and upload the transaction record to the blockchain network; the target participating node is any participating node;
[0008] The blockchain network is used to verify the transaction records and write the verified transaction records into the blockchain;
[0009] The supervision center is also used to receive query requests and perform data query according to the query requests to obtain traceability information of meat products; the query request includes a traceability code.
[0010] Optionally, the target participating nodes include:
[0011] A data acquisition module is used to obtain the traceability data of the participating node;
[0012] A backtracking index determination module is used to obtain the hash value of the block where the target product's most recent transaction record is located according to the product identification of the target product, and use the hash value as the backtracking index;
[0013] A transaction data generation module is used to generate initial transaction records based on traceability data;
[0014] A backtracking index embedding module, used for embedding the backtracking index into the initial transaction record to obtain a target transaction record;
[0015] The transaction record upload module is used to digitally sign the target transaction record and upload it to the blockchain network.
[0016] Optionally, the traceability data includes structured data and unstructured data; the blockchain network includes a blockchain and an interplanetary file system;
[0017] The transaction record generation module includes:
[0018] A file storage module, used for uploading the unstructured data to the Interstellar File System to obtain a file hash value;
[0019] The record generation module is used to combine the structured data and the file hash value to obtain an initial transaction record.
[0020] Optionally, the transaction record includes product identification, node identification, operation type, file hash, and timestamp;
[0021] The blockchain network includes a verification module, which is specifically used to:
[0022] Check whether the digital signature of the transaction record is valid;
[0023] Check whether the product ID and node ID match;
[0024] If the check result is no, the verification fails.
[0025] Optionally, the supervision center stores a traceability table locally; the traceability table includes a product identification and the latest transaction location;
[0026] The regulatory center includes:
[0027] The new position acquisition module is used to obtain the hash value of the new block when the new block is added to the blockchain;
[0028] The product update query module is used to traverse the new block and obtain the product identification of each transaction record on the new block as the index to be updated;
[0029] The new position matching module is used to replace the corresponding latest transaction position with the hash value of the new block according to the index to be updated.
[0030] Optionally, the multiple participating nodes are divided into breeding nodes, slaughtering nodes, processing nodes, transportation nodes and sales nodes. When the target participating node is not a breeding node, the target participating node also includes:
[0031] The product qualification confirmation module is used to query the blockchain according to the product identification when receiving the product provided by the upstream node, and obtain the product inspection qualification information to ensure the material is qualified.
[0032] A second aspect of the present invention provides a method for traceability management of meat products, the method comprising:
[0033] Receive the registration request information sent by each entity in the meat product supply chain. After review, grant each entity the corresponding role authority, so that each entity can upload the traceability data to the blockchain network as a node in the business process, and when receiving products provided by the upstream node, query the blockchain according to the product identification to ensure that the materials are qualified before receiving; the node identity includes breeding node, slaughtering node, processing node, transportation node and sales node;
[0034] Receive the traceability query request information sent by the consumer terminal, and query on the blockchain according to the traceability code in the traceability query request information to obtain the traceability information of the product, and feed back the traceability information to the consumer terminal.
[0035] Optionally, the supervision center stores a traceability table locally; the traceability table includes a product identification and the latest transaction location;
[0036] The traceability information of the product obtained by querying the blockchain according to the traceability code in the traceability query request information includes:
[0037] Segment the traceability code according to preset rules to obtain product identifications at various stages;
[0038] According to the target identifier, a query is performed in the traceability table to obtain the latest transaction location; the target identifier is a product identifier of any link;
[0039] Determine the target block according to the latest transaction position;
[0040] Traverse the target block to obtain the transaction record containing the traceability code;
[0041] Determine the location of the next query block based on the backtracking index in the transaction record; continue backtracking until the backtracking index is equal to the preset sentinel value, then stop backtracking;
[0042] According to the transaction records obtained during the backtracking process, relevant traceability data is obtained from the Interstellar File System;
[0043] Based on the traceability data of each link, the traceability information of the product is integrated.
[0044] Beneficial effects of the present invention:
[0045] The present invention proposes a traceability management system for meat products, which includes a supervision center, a blockchain network and multiple participating nodes; wherein: the supervision center is used to register and manage each supply chain node and allocate permissions to make it a participating node participating in accounting; the target participating node is used to generate transaction records according to the traceability data of the node, and upload the transaction records to the blockchain network; the target participating node is any participating node; the blockchain network is used to verify the transaction records and write the verified transaction records into the blockchain; the supervision center is also used to receive query requests, and perform data queries according to the query requests to obtain the traceability information of meat products; the query request includes a traceability code.
[0046] The distributed ledger feature of blockchain ensures that once a transaction record is written into the blockchain, it cannot be tampered with or deleted. This means that the data of meat products at each link of the supply chain can be verified, ensuring the authenticity and integrity of the information, reducing the risk of data tampering, and improving data reliability. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] The present invention will be further described below in conjunction with the accompanying drawings.
[0048] Figure 1 An architecture diagram of a meat product traceability management system is provided for an embodiment of the present invention.
[0049] Figure 2 A flowchart of a source tracing query is provided for an embodiment of the present invention. DETAILED DESCRIPTION
[0050] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0051] The embodiment of the present invention provides a traceability management system for meat products. Figure 1 , Figure 1 This is an architecture diagram of a meat product traceability management system provided by an embodiment of the present invention. The system includes a supervision center, a blockchain network, and multiple participating nodes; wherein:
[0052] The supervision center is used to register and manage each supply chain node and allocate permissions to make it a participating node in accounting.
[0053] The target participating node is used to generate transaction records based on the traceability data of the node and upload the transaction records to the blockchain network.
[0054] The blockchain network is used to verify transaction records and write verified transaction records into the blockchain.
[0055] The supervision center is also used to receive query requests and perform data queries based on the query requests to obtain traceability information of meat products.
[0056] Among them, the blockchain network type adopts a consortium chain; the target participating node is any participating node; and the query request includes a traceability code.
[0057] The meat product traceability management system provided by the embodiment of the present invention uses the distributed ledger feature of blockchain to ensure that once the transaction record is written into the blockchain, it cannot be tampered with or deleted. This means that the data of meat products in each supply chain link can be verified, ensuring the authenticity and integrity of the information, reducing the risk of data tampering, and improving the reliability of the data.
[0058] In one implementation, consumers can conduct product traceability inquiries through the query portal provided by the regulatory center.
[0059] In one embodiment, the target participating nodes include:
[0060] The data acquisition module is used to obtain the traceability data of the participating node.
[0061] The backtracking index determination module is used to obtain the hash value of the block where the target product's most recent transaction record is located based on the product identification of the target product, and use the hash value as the backtracking index.
[0062] The transaction data generation module is used to generate initial transaction records based on the traceability data.
[0063] The backtracking index embedding module is used to embed the backtracking index into the initial transaction record to obtain the target transaction record.
[0064] The transaction record upload module is used to digitally sign the target transaction record and upload it to the blockchain network.
[0065] In one implementation, by introducing a backtracking index, the system can quickly trace back to the historical transaction records of the target product, avoiding global traversal of the blockchain and improving the traceability and query speed of traceability information.
[0066] In one embodiment, the provenance data includes structured data and unstructured data; the blockchain network includes a blockchain and an interplanetary file system;
[0067] The transaction record generation module includes:
[0068] The file storage module is used to upload unstructured data to the Interstellar File System and obtain the file hash value.
[0069] The record generation module is used to combine structured data and file hash values to obtain initial transaction records.
[0070] In one implementation, structured data includes product identification, node identification, timestamp and other data, which can be directly stored in the block. Unstructured data includes pictures, documents, videos, etc., which are large in size and are stored through the InterPlanetary File System (IPFS), which solves the storage space limitation problem that may be faced when storing large files on the blockchain.
[0071] In one embodiment, the transaction record includes a product identification, a node identification, an operation type, a file hash, and a timestamp;
[0072] The blockchain network includes a verification module, which is specifically used to: check whether the digital signature of the transaction record is valid, and check whether the product identification and node identification match.
[0073] If the check result is no, the verification fails.
[0074] In one implementation, by verifying the validity of the digital signature of the transaction record, it can be ensured that the transaction record is indeed from the authorized node, preventing forged transactions and malicious tampering. Checking whether the product identification and node identification match can ensure that the information in the transaction record is consistent with the actual situation. For example, if the product identification does not match the node identification, it means that the record may be forged or there is an error. This check helps maintain the accuracy and consistency of traceability data.
[0075] In one implementation, the verification function module can also be used to check whether the inspection operation complies with the preset process specifications. For example, when uploading slaughter records at the slaughter node, if the query finds that the animal health inspection report has not been uploaded, the upload is judged to be non-compliant and the verification fails. The slaughter record data can only be uploaded after the inspection report is uploaded, thereby ensuring the integrity of the traceability information.
[0076] In one embodiment, the supervision center stores the traceability table locally; the traceability table includes the product identification and the latest transaction location;
[0077] The regulatory centers include:
[0078] The new position acquisition module is used to obtain the hash value of the new block when the new block is added to the blockchain.
[0079] The product update query module is used to traverse the new block and obtain the product identification of each transaction record on the new block as the index to be updated.
[0080] The new position matching module is used to replace the corresponding latest transaction position with the hash value of the new block according to the index to be updated.
[0081] In one implementation, the latest transaction location of the product is continuously maintained and updated by the supervision center to ensure that the traceability information of each product is always up to date and accurate. This allows the latest transaction records of the product to be queried quickly and accurately, avoiding invalid traversal of step-by-step backtracking and improving the retrieval rate.
[0082] In one embodiment, the plurality of participating nodes are divided into breeding nodes, slaughtering nodes, processing nodes, transportation nodes and sales nodes. When the target participating node is not a breeding node, the target participating node also includes:
[0083] The product qualification confirmation module is used to query the blockchain according to the product identification when receiving products provided by the upstream node, and obtain product inspection qualification information to ensure the quality of the materials.
[0084] In one implementation, when receiving products from upstream nodes, by querying the product inspection information in the blockchain according to the product identification, it can ensure that each product has undergone strict quality inspection before entering the next link. This can effectively prevent unqualified or quality-problematic products from entering the downstream links and ensure product quality and safety.
[0085] In one implementation, blockchain technology is used to ensure that each node has access to transparent, tamper-proof inspection information, avoiding misoperation or quality problems caused by information asymmetry. Each participating node can understand whether the product is qualified in a timely manner and make the right decision.
[0086] The embodiment of the present invention provides a traceability management method for meat products, which is applied to a supervision center. The method includes:
[0087] Receive the registration request information sent by each entity in the meat product supply chain. After review, grant each entity the corresponding role authority, so that each entity can upload the traceability data to the blockchain network as a node in the business process, and when receiving products provided by the upstream node, query the blockchain according to the product identification to ensure that the materials are qualified before acceptance;
[0088] Receive the traceability query request information sent by the consumer terminal, and query on the blockchain according to the traceability code in the traceability query request information to obtain the traceability information of the product, and feed back the traceability information to the consumer terminal.
[0089] Among them, the node identities include breeding nodes, slaughtering nodes, processing nodes, transportation nodes and sales nodes. Different supplier nodes have the authority to upload their own relevant traceability data, as well as the authority to query the shared information uploaded by other nodes.
[0090] Based on the traceability management method for meat products provided by the embodiment of the present invention, the distributed ledger characteristics of the blockchain ensure that once the transaction record is written into the blockchain, it cannot be tampered with or deleted. This means that the data of meat products in each supply chain link can be verified, ensuring the authenticity and integrity of the information, reducing the risk of data tampering, and improving the reliability of the data.
[0091] In one embodiment, the supervision center stores the traceability table locally; the traceability table includes the product identification and the latest transaction location;
[0092] See also Figure 2 , Figure 2 A flowchart of a traceability query provided by an embodiment of the present invention. The traceability information of the product obtained by querying on the blockchain according to the traceability code in the traceability query request information includes:
[0093] Step S201, segmenting the traceability code according to a preset rule to obtain product identifications at each stage.
[0094] Step S202: query the traceability table according to the target identifier to obtain the latest transaction location.
[0095] Step S203, determine the target block according to the latest transaction position, traverse the target block, and obtain the transaction record containing the traceability code.
[0096] Step S204, determine the location of the next query block according to the backtracking index in the transaction record; continue to backtrack and query until the backtracking index is equal to the preset sentinel value, and then stop backtracking.
[0097] Step S205, obtaining relevant traceability data from the Interstellar File System based on the transaction records obtained during the backtracking process.
[0098] Step S206, integrating the traceability data of each link to obtain the traceability information of the product.
[0099] Among them, the target identifier is the product identifier of any link; the sentinel value is equal to -1, indicating that the product identifier of this transaction record appears on the blockchain for the first time.
[0100] In one implementation, by querying the latest transaction location in the traceability table, the regulatory center can quickly locate the target block, thereby greatly improving the query efficiency. Whenever it is necessary to query the traceability information, the system can find the relevant block by gradually tracing back the transaction records and quickly obtain the corresponding traceability data, avoiding the traversal of invalid blocks and making the entire query process more efficient.
[0101] In one implementation, the supervision center uses the identity of a virtual user to conduct a traceability query, and obtains limited traceability data, that is, traceability data that is allowed to be displayed to consumers, such as inspection reports of meat products at various stages. For private data, such as evidence videos of operation processes, only the supervision center and the uploader of the private data have the authority to view it.
[0102] In one implementation, the supervision center is also used to assign a unique identification code to each animal. After the animal is born or the animal cub is purchased, the breeding node applies to the supervision center for the animal code as the product identification of the animal during the breeding stage. After the slaughtering node receives the animal for slaughter, one individual is divided into multiple individuals, and the product identification of the slaughtering stage is obtained by increasing the length of the identification. For example, if the animal code is A123456 and it becomes two parts after slaughter, the product identifications of the two products are A123456-01 and A123456-02; and so on. During the product circulation process, when the number changes, the identification length is expanded so that the final retail product has a unique identification code, which can be used as a traceability code.
[0103] The above is a detailed description of an embodiment of the present invention, but the content is only a preferred embodiment of the present invention and cannot be considered to limit the scope of implementation of the present invention. All equivalent changes and improvements made within the scope of the present invention should still fall within the scope of the patent coverage of the present invention.
Claims
1. A traceability management system for meat products, characterized in that: The system includes a regulatory center, a blockchain network and multiple participating nodes; wherein: The regulatory center is used to register, manage and allocate permissions to each supply chain node, making it a participating node in accounting; The target participating node is used to generate a transaction record based on the traceability data of the node and upload the transaction record to the blockchain network; the target participating node is any participating node; The blockchain network is used to verify the transaction records and write the verified transaction records into the blockchain; The supervision center is also used to receive query requests and perform data query according to the query requests to obtain traceability information of meat products; the query request includes a traceability code.
2. A meat product traceability management system according to claim 1, characterized in that: The target participating nodes include: A data acquisition module is used to obtain the traceability data of the participating node; A backtracking index determination module is used to obtain the hash value of the block where the target product's most recent transaction record is located according to the product identification of the target product, and use the hash value as the backtracking index; A transaction data generation module is used to generate initial transaction records based on traceability data; A backtracking index embedding module, used for embedding the backtracking index into the initial transaction record to obtain a target transaction record; The transaction record upload module is used to digitally sign the target transaction record and upload it to the blockchain network.
3. A meat product traceability management system according to claim 2, characterized in that: The traceability data includes structured data and unstructured data; the blockchain network includes a blockchain and an interplanetary file system; The transaction record generation module includes: A file storage module, used for uploading the unstructured data to the Interstellar File System to obtain a file hash value; The record generation module is used to combine the structured data and the file hash value to obtain an initial transaction record.
4. A meat product traceability management system according to claim 3, characterized in that: Transaction records include product ID, node ID, operation type, file hash, and timestamp; The blockchain network includes a verification module, which is specifically used to: Check whether the digital signature of the transaction record is valid; Check whether the product ID and node ID match; If the check result is no, the verification fails.
5. The meat product traceability management system according to claim 2, characterized in that: The supervision center stores the traceability table locally; the traceability table includes product identification and the latest transaction location; The regulatory center includes: The new position acquisition module is used to obtain the hash value of the new block when the new block is added to the blockchain; The product update query module is used to traverse the new block and obtain the product identification of each transaction record on the new block as the index to be updated; The new position matching module is used to replace the corresponding latest transaction position with the hash value of the new block according to the index to be updated.
6. A meat product traceability management system according to claim 2, characterized in that: The plurality of participating nodes are divided into breeding nodes, slaughtering nodes, processing nodes, transportation nodes and sales nodes. When the target participating node is not a breeding node, the target participating node also includes: The product qualification confirmation module is used to query the blockchain according to the product identification when receiving products provided by the upstream node, and obtain product inspection qualification information to ensure the quality of the materials.
7. A meat product traceability management method, applied to a supervision center, characterized in that: The method comprises: Receive the registration request information sent by each entity in the meat product supply chain. After review, grant each entity the corresponding role authority, so that each entity can upload the traceability data to the blockchain network as a node in the business process, and when receiving products provided by the upstream node, query the blockchain according to the product identification to ensure that the materials are qualified before receiving; the node identity includes breeding node, slaughtering node, processing node, transportation node and sales node; Receive the traceability query request information sent by the consumer terminal, and query on the blockchain according to the traceability code in the traceability query request information to obtain the traceability information of the product, and feed back the traceability information to the consumer terminal.
8. A meat product traceability management method according to claim 7, characterized in that: The supervision center stores the traceability table locally; the traceability table includes product identification and the latest transaction location; The traceability information of the product obtained by querying the blockchain according to the traceability code in the traceability query request information includes: Segment the traceability code according to preset rules to obtain product identifications at various stages; According to the target identifier, a query is performed in the traceability table to obtain the latest transaction location; the target identifier is a product identifier of any link; Determine the target block according to the latest transaction position; Traverse the target block to obtain the transaction record containing the traceability code; Determine the location of the next query block based on the backtracking index in the transaction record; continue backtracking until the backtracking index is equal to the preset sentinel value, then stop backtracking; According to the transaction records obtained during the backtracking process, relevant traceability data is obtained from the Interstellar File System; Based on the traceability data of each link, the traceability information of the product is integrated.