An intelligent management system for fresh product quality and safety traceability
By constructing a traceability chain and sequential transmission of features in the fresh product traceability system, combined with data obfuscation processing, the problem of information islands and data security in the existing technology is solved, and the full traceability of fresh products and the intelligence of the management system are realized.
Patent Information
- Application Number
- CN202210766507.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-30
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2042-06-30
AI Technical Summary
In the existing fresh product traceability system, the coding method, traceability system and data supervision operate independently, resulting in insufficient information interconnection and interconnection, forming an 'information island', making it difficult to achieve fine-grained control and precise positioning of responsibilities, and there are difficulties in authenticity verification and data storage. Risk of privacy leakage.
Design an intelligent management system for quality and safety traceability of fresh products, including a traceability chain building module, a quality safety data storage module and a storage data confusion module. By constructing a product traceability chain, feature sequence transmission and confusion processing, the safe storage and traceability of data are ensured. .
It realizes the full traceability of fresh products, avoids the risk of data loss and tampering, improves the integrity and management efficiency of the traceability system, and ensures data security and privacy protection.
Smart Images

Figure CN115271753B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of traceability technology, and more specifically, to an intelligent management system for fresh product quality and safety traceability. Background Art
[0002] The supply and demand network of fresh products involves multiple stages including production, warehousing, processing, transportation, sales and consumption. From the source of production to final consumption by consumers, the supply chain is long and complex, involving many and scattered entities and a wide and extensive geographical span. Any break in the chain may cause information disconnection, making it more difficult to trace responsibility and for government supervision.
[0003] In the existing technology, blockchain technology has been implemented in many fields and has achieved certain results in the exploration of fresh product traceability systems. However, in the existing traceability system, the coding method, traceability system and data supervision often operate independently. Enterprises work independently, lack information intercommunication and interconnection, have different coding and opaque data, resulting in irregular traceability systems, incompatibility of upstream and downstream data, and the formation of "information islands", which makes traceability difficult. Once an enterprise joins the traceability network, it is difficult for the supervision system to achieve fine-grained control and effectively supervise the data on the chain. Once a safety responsibility accident occurs, it is difficult to accurately locate the responsibility, accurately trace the product, and recall the problem products in time, and it is impossible to supervise the supply network in real time. Therefore, it is urgent to break down information barriers and form a benign interaction between the various modules of the supply network. There is a relative lack of research on the interoperability of such information. There are two main solutions for traceability information management: One solution is to store traceability data off-chain and store plaintext information summaries on-chain, verifying the authenticity of the data through on-chain and off-chain collaboration to increase storage capacity. However, if the off-chain data is tampered with, it is difficult to recover and there is a risk of real data loss. On the other hand, companies upload all product information to the blockchain, and private information is easily leaked. Coding and data storage operate independently. Illegal modification, cracking or batch forgery of traceability codes internally or externally will cause a break in the chain between upstream and downstream companies. Summary of the invention
[0004] The present invention aims to solve at least one of the technical problems existing in the prior art. To this end, one object of the present invention is to propose an intelligent management system for fresh product quality and safety traceability, comprising:
[0005] The traceability chain building module is used to build the product traceability chain;
[0006] Quality and safety data storage module, which is used to select traceability blocks on the product traceability chain within the feature sequence for quality and safety data storage;
[0007] A storage data obfuscation module, which is used to perform obfuscation processing when storing quality and safety data;
[0008] Traceability module,The traceability module is used to extract quality and safety data within the traceability block.
[0009] Furthermore, the traceability chain building module is used to build the product traceability chain including:
[0010] Constructing a starting traceability block and an end traceability block in the selected network, wherein the starting traceability block and the end traceability block are both used to store the first sending node and the first receiving node of the quality and safety data;
[0011] Constructing several traceability blocks, wherein the traceability blocks are used to store the quality and safety data and the second sending node and the second receiving node of the quality and safety data;
[0012] Arrange several traceability blocks according to a preset length, wherein the first positions of several traceability blocks are connected to the starting traceability block, and the last positions of several traceability blocks are connected to the ending traceability block.
[0013] Furthermore, arranging several traceability blocks according to a preset length includes:
[0014] Get the attribute code of the traceability block;
[0015] Connect the traceability blocks with the same attribute code in sequence to form a horizontal chain with the same attribute, where the beginning and the end of the horizontal chain are not connected to each other;
[0016] Randomly select any traceability block in the horizontal chain with the same attribute and connect it with the traceability block of different attribute codes.
[0017] Furthermore, the quality and safety data storage module is used to select the traceability block on the product traceability chain in the feature sequence for quality and safety data storage, including:
[0018] When quality safety data is input into the starting traceability block, the first sending node of the starting traceability block is obtained;
[0019] Sequentially transmit quality and safety data in the product traceability chain through characteristic sequence;
[0020] When the quality and safety data is sequentially transmitted to the endpoint traceability block, the first receiving node of the endpoint traceability block is obtained;
[0021] A traceability block corresponding to a second receiving node between the first sending node and the first receiving node is selected for quality and safety data storage.
[0022] Furthermore, the quality and safety data is sequentially transmitted in the product traceability chain through the characteristic sequence, including:
[0023] Get the starting tracing block, the ending tracing block and the tracing block;
[0024] Randomly select the traceability blocks in the horizontal chain with the same attributes arranged in a preset length as the pre-selected traceability blocks;
[0025] Connect the starting traceability block, the pre-selected traceability block and the end traceability block in sequence to form a feature sequence chain;
[0026] Pass the quality safety data on the feature sequence chain to complete the feature sequence.
[0027] Further, selecting a traceability block corresponding to a second receiving node between the first sending node and the first receiving node for quality safety data storage includes:
[0028] Obtain the traceability values of all traceability blocks in the horizontal chain with the same attribute to which the traceability block corresponding to the second receiving node belongs;
[0029] Select the traceability block with the largest traceability value in the horizontal chain with the same attribute as the storage traceability block;
[0030] Store quality and safety data in the storage traceability block.
[0031] Furthermore, the traceability value of the traceability block includes:
[0032] Get the total storage bytes and total available bytes of the traceability block. If the ratio of the total available bytes to the total storage bytes is greater than 50%, the storage adjustment coefficient is 0.3.
[0033] If the ratio of the total number of available bytes to the total number of stored bytes is greater than 30% and less than 50%, the storage adjustment factor is 0.18;
[0034] If the ratio of the total number of available bytes to the total number of stored bytes is less than 20% and greater than 5%, the storage adjustment factor is 0.07;
[0035] If the ratio of the total number of available bytes to the total number of stored bytes is less than 5%, the storage adjustment factor is 0;
[0036] The total number of bytes of quality and safety data is obtained, and the traceability value is obtained by multiplying the ratio of the total number of bytes of quality and safety data to the total number of available bytes by the storage adjustment coefficient.
[0037] Furthermore, the storage data obfuscation module is used to perform obfuscation processing when storing quality and safety data, including:
[0038] Obtain a traceability block that generates a second sending node and a second receiving node, and mark it as a confusing traceability block, wherein the confusing traceability block stores the second sending node and the second receiving node at the same time;
[0039] Acquire quality and safety data, and select any byte segment to inject characteristic characters, wherein the quality and safety data injected with the characteristic characters is marked as obfuscated data;
[0040] The obfuscation data is stored in the obfuscation traceability block to complete the obfuscation process.
[0041] Furthermore, the obfuscated data and the quality safety data are associated with the quality safety data, and when the quality safety data is deleted, the obfuscated data is also deleted;
[0042] The total number of bytes of the obfuscated data and the quality safety data is the same, and the signatures and attributes of the obfuscated data and the quality safety data are the same.
[0043] Furthermore, the traceability module is used to extract the quality and safety data in the traceability block, including:
[0044] Sending the attribute code of the traceability block, the second receiving node, and the traceability value of the storage traceability block to the extraction terminal;
[0045] When the extraction terminal inputs the attribute code, the second receiving node and the traceability value, the corresponding traceability block is matched and the quality and safety data corresponding to the second receiving node is extracted.
[0046] Additional aspects and advantages of the present invention will be partially given in the following description. Similarly, the present application performs timeline traceability of quality and safety data by checking the first sending node, the second receiving node and the second sending node, thereby ensuring the full traceability and 100% traceability of the traceability, avoiding the inability to achieve full-process traceability information management, ensuring the traceability of the full-process timeline process of fresh products, improving the traceability perfection of fresh products, and achieving time traceability of fresh products throughout the process;
[0047] By arranging the traceability blocks according to the preset length, the integrity of the traceability chain can be guaranteed, and the traceability chain can be prevented from being too simple and being broken, resulting in data loss. Similarly, by arranging the blocks according to the preset length, a traceability chain model can be obtained, which is convenient for hardware implementation.
[0048] By sending the attribute code of the traceability block, the second receiving node and the traceability value of the stored traceability block, the unique traceability data required for the traceability block is obtained, thereby avoiding the risk of traceability data being tampered with; the traceability data is batch queried and managed through the traceability block, thereby realizing the intelligent management of the traceability system data, improving the effectiveness of the traceability system data processing, facilitating the query and management of various data, and providing a strong basis for product traceability. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:
[0050] Figure 1 is a flowchart according to an embodiment of the present invention;
[0051] Figure 2 is a schematic diagram of a traceability chain according to an embodiment of the present invention;
[0052] Figure 3 is a schematic diagram of a horizontal chain with the same attribute according to an embodiment of the present invention;
[0053] Figure 4 Schematic diagram of a confusing tracing block according to an embodiment of the present invention. DETAILED DESCRIPTION
[0054] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be understood as limiting the present invention.
[0055] In the description of the present invention, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", "clockwise", "counterclockwise", "axial", "radial", "circumferential" and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the referred device or element must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as limiting the present invention.
[0056] In the description of the present invention, "first feature" and "second feature" may include one or more such features, "plurality" means two or more, a first feature "above" or "below" the second feature may include the first and second features being directly in contact, or may include the first and second features not being in direct contact but being in contact through another feature between them, and a first feature "above", "above" and "above" the second feature may include the first feature being directly above or diagonally above the second feature, or may simply mean that the first feature is horizontally higher than the second feature.
[0057] The following describes an intelligent management system for tracing the quality and safety of fresh products according to an embodiment of the present invention with reference to the accompanying drawings;
[0058] Reference Figure 1-4 As shown, according to an embodiment of the present invention, the following may be included:
[0059] The traceability chain construction module is used to build a product traceability chain. During the specific implementation, the starting traceability block and the end traceability block are constructed in the selected network. The selected network here can be the industrial Internet of Things, the Internet, or the blockchain. There is no limitation on the selected network here.
[0060] Among them, the starting traceability block and the end traceability block are both used to store the first sending node and the first receiving node of quality and safety data. Here, the starting traceability block and the end traceability block are only used as places to record the flow information of quality and safety data, so the starting traceability block and the end traceability do not have data storage functions.
[0061] Construct several traceability blocks, where the traceability block can be regarded as the main body for storing quality and safety data, and each traceability block is used to store quality and safety data.
[0062] Among them, the traceability block is also used to store the quality and safety data and the second sending node and the second receiving node of the quality and safety data;
[0063] Correspondingly, the second receiving node is generated after the first sending node. For example, the first sending node generated by the starting traceability block is 2022 / 4 / 25 / 10 / 11 / 39, and the second receiving node can be 2022 / 4 / 25 / 10 / 11 / 40 or 2022 / 4 / 25 / 11 / 11 / 39 or 2022 / 4 / 26 / 10 / 11 / 39. The corresponding second sending node is also generated after the first sending node. At the same time, the second sending node is also satisfied to be generated after the second receiving node. For example, the first sending node is 2022 / 4 / 25 / 10 / 11 / 39, and the second receiving node is 2022 / 4 / 25 / 10 / 11 / 4, then the second sending node is 2022 / 4 / 25 / 11 / 11 / 39 or 2022 / 4 / 26 / 10 / 11 / 39;
[0064] Here, the timeline traceability of quality and safety data is performed by checking the first sending node, the second receiving node and the second sending node to ensure the full traceability and 100% traceability, avoid the inability to achieve full-process traceable information management, ensure the traceability of the full-process timeline process of fresh products, improve the traceability perfection of fresh products, and realize the time traceability of fresh products throughout the entire process.
[0065] Similarly, the second sending node arranges several traceability blocks according to a preset length, wherein the first positions of several traceability blocks are connected to the starting traceability block, and the last positions of several traceability blocks are connected to the ending traceability block. For example, the attribute code of the traceability block is obtained; the traceability blocks with the same attribute code are connected in sequence to form a horizontal chain with the same attribute, wherein the beginning and the end of the horizontal chain are not connected to each other; any traceability block in the horizontal chain with the same attribute is arbitrarily selected to connect with the traceability block with a different attribute code.
[0066] By arranging the traceability blocks according to the preset length, the integrity of the traceability chain can be guaranteed, and the traceability chain can be prevented from being too simple and being broken, resulting in data loss. Similarly, by arranging them according to the preset length, a traceability chain model can be obtained, which is convenient for hardware implementation.
[0067] The quality and safety data storage module is used to select the traceability block on the product traceability chain in the feature sequence for quality and safety data storage. Specifically, when the quality and safety data is input into the starting traceability block, the first sending node of the starting traceability block is obtained;
[0068] The quality and safety data is sequentially transmitted on the product traceability chain through the feature sequence. For example, the start traceability block, the end traceability block and the traceability block are obtained;
[0069] Randomly select the traceability blocks in the horizontal chain with the same attributes arranged in a preset length as the pre-selected traceability blocks;
[0070] Connect the starting traceability block, the pre-selected traceability block and the end traceability block in sequence to form a feature sequence chain;
[0071] Pass the quality safety data on the feature sequence chain to complete the feature sequence.
[0072] When the quality and safety data is sequentially transmitted to the endpoint traceability block, the first receiving node of the endpoint traceability block is obtained;
[0073] Select the traceability block corresponding to the second receiving node between the first sending node and the first receiving node for quality and safety data storage, for example, obtain the traceability values of all traceability blocks in the horizontal chain with the same attribute to which the traceability block corresponding to the second receiving node belongs;
[0074] The traceability block with the largest traceability value in the horizontal chain with the same attribute is selected as the storage traceability block. For example, the total number of storage bytes and the total number of available bytes of the traceability block are obtained. If the ratio of the total number of available bytes to the total number of storage bytes is greater than 50%, the storage adjustment coefficient is 0.3;
[0075] If the ratio of the total number of available bytes to the total number of stored bytes is greater than 30% and less than 50%, the storage adjustment factor is 0.18;
[0076] If the ratio of the total number of available bytes to the total number of stored bytes is less than 20% and greater than 5%, the storage adjustment factor is 0.07;
[0077] If the ratio of the total number of available bytes to the total number of stored bytes is less than 5%, the storage adjustment factor is 0;
[0078] The total number of bytes of quality and safety data is obtained, and the traceability value is obtained by multiplying the ratio of the total number of bytes of quality and safety data to the total number of available bytes by the storage adjustment coefficient.
[0079] Store quality and safety data in the storage traceability block;
[0080] A storage data obfuscation module is used to perform obfuscation processing when storing quality and safety data. For example, a traceability block that generates a second sending node and a second receiving node is obtained and marked as an obfuscated traceability block, wherein the obfuscated traceability block stores the second sending node and the second receiving node at the same time;
[0081] Obtain quality and safety data, and select any byte segment to inject characteristic characters, wherein the quality and safety data injected with characteristic characters is marked as obfuscated data; store the obfuscated data in an obfuscated traceability block to complete the obfuscation process, where the obfuscated data is associated with the quality and safety data, and when the quality and safety data is deleted, the obfuscated data is also deleted;
[0082] The total number of bytes of the obfuscated data and the quality safety data is the same, and the signatures and attributes of the obfuscated data and the quality safety data are the same.
[0083] Traceability module,The traceability module is used to extract quality and safety data within the traceability block.
[0084] Sending the attribute code of the traceability block, the second receiving node, and the traceability value of the storage traceability block to the extraction terminal;
[0085] When the extraction terminal inputs the attribute code, the second receiving node and the traceability value, the corresponding traceability block is matched and the quality and safety data corresponding to the second receiving node is extracted.
[0086] By sending the attribute code of the traceability block, the second receiving node and the traceability value of the stored traceability block, the unique traceability data required for the traceability block is obtained, thereby avoiding the risk of traceability data being tampered with; the traceability data is batch queried and managed through the traceability block, thereby realizing the intelligent management of the traceability system data, improving the effectiveness of the traceability system data processing, facilitating the query and management of various data, and providing a strong basis for product traceability.
[0087] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0088] In the description of this specification, the description with reference to the terms "embodiment", "specific embodiment", "example", etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.
[0089] Although the embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the claims and their equivalents.
Claims
1. An intelligent management system for fresh product quality and safety traceability, characterized in that: include: The traceability chain building module is used to build the product traceability chain; Quality and safety data storage module, which is used to select traceability blocks on the product traceability chain within the feature sequence for quality and safety data storage; A storage data obfuscation module, which is used to perform obfuscation processing when storing quality and safety data; The traceability module is used to extract the quality and safety data in the traceability block; The traceability chain building module is used to build the product traceability chain including: Constructing a starting traceability block and an end traceability block in the selected network, wherein the starting traceability block is used to store the first sending node of the quality and safety data, and the end traceability block is used to store the first receiving node of the quality and safety data; constructing several traceability blocks, wherein the traceability blocks are used to store the quality and safety data and the second sending node and the second receiving node of the quality and safety data; Arrange several traceability blocks according to a preset length, wherein the first position of several traceability blocks is connected to the starting traceability block, and the last position of several traceability blocks is connected to the ending traceability block; Arranging several traceability blocks according to preset lengths includes: Get the attribute code of the traceability block; Connect the traceability blocks with the same attribute code in sequence to form a horizontal chain with the same attribute, where the beginning and the end of the horizontal chain are not connected to each other; Randomly select any traceability block in the horizontal chain with the same attribute and connect it with the traceability block of different attribute codes; The quality and safety data storage module is used to select the traceability blocks on the product traceability chain within the feature sequence for quality and safety data storage, including: When quality safety data is input into the starting traceability block, the first sending node of the starting traceability block is obtained; Sequentially transmit quality and safety data in the product traceability chain through characteristic sequence; When the quality and safety data is sequentially transmitted to the destination traceability block, the first receiving node of the destination traceability block is obtained; the traceability block corresponding to the second receiving node between the first sending node and the first receiving node is selected for quality and safety data storage; The quality and safety data is transmitted sequentially in the product traceability chain through characteristic sequences, including: Get the starting tracing block, the ending tracing block and the tracing block; Randomly select the traceability blocks in the horizontal chain with the same attribute in a preset length as the pre-selected traceability blocks; sequentially connect the starting traceability block, the pre-selected traceability block and the end traceability block to form a feature sequence chain; Pass the quality safety data on the feature sequence chain to complete the feature sequence; Selecting the traceability block corresponding to the second receiving node between the first sending node and the first receiving node for quality safety data storage includes: Obtain the traceability values of all traceability blocks in the horizontal chain with the same attribute to which the traceability block corresponding to the second receiving node belongs; Select the traceability block with the largest traceability value in the horizontal chain with the same attribute as the storage traceability block; Store quality and safety data in the storage traceability block; The storage data obfuscation module is used to perform obfuscation processing when storing quality and safety data, including: Obtain a traceability block that generates a second sending node and a second receiving node, and mark it as a confusing traceability block, wherein the confusing traceability block stores the second sending node and the second receiving node at the same time; Acquire quality and safety data, and select any byte segment to inject characteristic characters, wherein the quality and safety data injected with the characteristic characters is marked as obfuscated data; The obfuscation data is stored in the obfuscation traceability block to complete the obfuscation process; The obfuscated data is associated with the quality and safety data. When the quality and safety data is deleted, the obfuscated data is also deleted. The total number of bytes of the obfuscated data and the quality safety data is the same, and the signatures and attributes of the obfuscated data and the quality safety data are the same; The traceability module is used to extract quality and safety data in the traceability block, including: Sending the attribute code of the traceability block, the second receiving node, and the traceability value of the storage traceability block to the extraction terminal; When the extraction terminal inputs the attribute code, the second receiving node and the traceability value, the corresponding traceability block is matched and the quality and safety data corresponding to the second receiving node is extracted.
2. According to claim 1, the fresh product quality and safety traceability intelligent management system is characterized by: The traceability values of the traceability block include: Get the total storage bytes and total available bytes of the traceability block. If the ratio of the total available bytes to the total storage bytes is greater than 50%, the storage adjustment coefficient is 0.
3. If the ratio of the total number of available bytes to the total number of stored bytes is greater than 30% and less than 50%, the storage adjustment factor is 0.18; If the ratio of the total number of available bytes to the total number of stored bytes is less than 20% and greater than 5%, the storage adjustment factor is 0.07; If the ratio of the total number of available bytes to the total number of stored bytes is less than 5%, the storage adjustment factor is 0; The total number of bytes of quality and safety data is obtained, and the traceability value is obtained by multiplying the ratio of the total number of bytes of quality and safety data to the total number of available bytes by the storage adjustment coefficient.
Citation Information
Patent Citations
Application candidate set generating method and apparatus and service device
CN105045910A
Product tracing method and system based on block chain and storage medium
CN109727043A
communication method based on a full duplex MAC protocol in a wireless network
CN109756320A
Fresh food logistics data management method, device and system
CN110060011A
Whole-course traceability supervision system for ticket payment flow three-chain cross validation of product safety
CN110930171A
