A method and system for deep provenance of meat products
Patent Information
- Application Number
- CN202211041738.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-29
- Publication Date
- 2026-11-03
- Estimated Expiration
- 2042-08-29
AI Technical Summary
The existing traceability information for meat products is incomplete, the query efficiency is low, the query results are not intuitive, it is difficult to determine whether the standards are met, and enterprises cannot obtain accurate traceability query statistics.
By employing matrix indexes and adjacency lists based on traceable product and content classification, combined with search-driven algorithms, a deep traceability system for meat products was developed to achieve efficient querying and data management.
Ensuring data integrity, improving query speed and information intuitiveness, reducing server load, and providing efficient and fast traceability query services, enterprises can obtain detailed traceability statistics.
Smart Images

Figure CN115310991B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to a method and system for deep traceability of meat products, belonging to the field of deep information traceability technology. Background Technology
[0002] Currently, existing meat product traceability systems primarily focus on recording and displaying the operational entities involved in the slaughtering, processing, and logistics of meat products. They fail to comprehensively disclose information regarding slaughtering and processing standards, meat quality grades, cold chain transportation standards, and other relevant details. This results in incomplete traceability information and a lack of credible quality inspection standards. Furthermore, the sheer volume of traceability information for meat products often puts immense pressure on the efficiency of data retrieval via barcode scanning, frequently leading to long query times and a scarcity of reliable and efficient query methods. Summary of the Invention
[0003] Purpose of the invention: In view of the problems and deficiencies in the existing technology, the present invention provides a method and system for deep traceability of meat products, which effectively solves the following pain points of deep traceability of meat products: (1) incomplete or broken traceability information; (2) the traceability query results are not intuitive, there is no production standard to be displayed and compared at the same time, and it is difficult to judge whether the traceability content meets the standards; (3) the traceability query efficiency is low, the query time is long, and the query return data is small; (4) enterprises cannot obtain traceability query statistics.
[0004] Meanwhile, the invention has the following technical advantages: (1) It can ensure the traceability of meat products and meet the user's multi-functional needs for traceability and quality management; (2) The traceability query speed is efficient and the traceability query information is complete and intuitive; (3) It can obtain accurate and complete traceability query statistics, which is conducive to enterprises to make market sales effect statistical analysis.
[0005] Technical solution: A method for deep traceability of meat products, comprising the following steps:
[0006] 101. Define the classification of traceable products, with two dimensions: the first is the product's status attribute type; the second is the product's variety category.
[0007] 102. Arrange and combine the traceability product categories from the two dimensions to form a traceability product category matrix and index it, as shown in the matrix below:
[0008]
[0009] Where A represents the traceability product category a mn The set of n; n is the product status attribute number; m is the product variety category number.
[0010] 103. An adjacency list is formed based on the traceability product classification matrix.
[0011] 104. Establish a traceability product classification index table. The traceability product classification index table includes three fields: index ID, product status attribute type, and product variety category.
[0012] 105, forming a search-driven algorithm P based on product classification for traceability.
[0013] 201 defines the classification of traceability content, with two dimensions: the first is the production and processing stage of the traceability content; the second is the data format of the traceability content.
[0014] 202. The source content classifications of the two dimensions are arranged and combined to form a source content classification matrix and indexed, as shown in the matrix below:
[0015]
[0016] Where B represents the source content category b kj The set; j is the production and processing stage number; k is the data format number.
[0017] 203. An adjacency list is formed based on the source content classification matrix.
[0018] 204. Establish a traceability content classification index table. The traceability content classification index table includes three fields: index ID, production and processing stage of traceability content, and data format of traceability content.
[0019] 205, forming a search-driven algorithm C based on source content classification.
[0020] 301. Based on search-driven algorithm P and search-driven algorithm C, develop a comprehensive traceability query interface Q based on traceability product classification and traceability content classification, which can be called in the meat product deep traceability system to realize the query function.
[0021] The driving algorithm mechanism and interface function implementation mechanism are as follows: input the traceability code of meat products, parse the product batch number, product name and product category according to the traceability product classification matrix and traceability content classification matrix; obtain the product variety category and product status attribute from the parsing results; then generate a set of processing links; use a data structure to encapsulate all the traceability content retrieved by this product traceability code to form a traceability data JSON structure.
[0022] A deep traceability system for meat products includes the following functional units: supply entity management unit, logistics entity management unit, distribution entity management unit, product classification management unit, product management unit, product production standard management unit, product batch management unit, inventory management unit, testing report management unit, logistics order management unit, traceability content management unit, traceability code management unit, and traceability query management unit.
[0023] The supply entity management unit focuses on meat product suppliers and records and manages their basic information.
[0024] The logistics entity management unit takes meat product logistics entities as its target and inputs and manages the basic information of meat product logistics entities.
[0025] The distribution entity management unit, targeting meat product distribution entities, inputs and manages the basic information of meat product distribution entities.
[0026] The product classification management unit takes product classification as its object and inputs and manages: classification name, product status attributes, and product variety data.
[0027] The product management unit, with products as the object, inputs and manages: product name, supplier name, product validity status, and product specification unit data.
[0028] The product production standard management unit takes a single product production standard as its object and inputs and manages the following: supplier name, product name, production and processing stage, and the standard content data corresponding to the production and processing.
[0029] The product batch management unit, with product batches as the object, inputs and manages: product name, product batch number, product batch generation time, product quantity, and product specification unit data.
[0030] The inventory management unit uses a single inventory record as its content to input and manage: product name, product batch number, product quantity, product specification unit, inbound / outbound type, inbound / outbound time, and the name of the person in charge of inbound / outbound.
[0031] The test report management unit, based on the content of a single test report, inputs and manages the following data: product name, product batch number, product quantity, product specification unit, test report number, test report name, test report content, test report result, name of the testing organization, test report upload time, and name of the person who uploaded the test report.
[0032] The logistics order management unit takes a single logistics transportation information item as its object and inputs and manages the following data: product name, product batch number, product quantity, product specification unit, logistics order number, logistics entity name, logistics node region name, logistics node time, logistics vehicle license plate number, vehicle driver's name, and distributor entity name.
[0033] The traceability content management unit takes a single traceability content as its object and inputs and manages the following data: product name, traceability content value, production and processing stage, data format, traceability content collection time, traceability content collector's name, and traceability content collection entity name (including supplier entity, logistics entity, and distribution entity).
[0034] The traceability code management unit generates and manages the following data for each individual traceability code: product name, product batch number, product quantity, product specification unit, traceability code number, and traceability code image address.
[0035] The traceability query management unit generates and manages the following information for each individual traceability query record: traceability code number, distributor name, product name, product batch number, product quantity, product specification unit, product traceability score, traceability query time, traceability query region, and traceability queryer IP data.
[0036] The meat product deep traceability system uses a single product batch as the smallest traceability unit to form the single traceability code.
[0037] Each time the traceability code is scanned, the traceability query interface described in section 301 will be invoked, and the traceability content and standards of a specific production and processing stage of the product batch will be compared. If it meets the standards, 1 point will be awarded; if it does not meet the standards or is missing, 0 points will be awarded. The scores will be accumulated to obtain the product traceability score from the traceability query record. Then, a complete traceability report obtained by scanning the traceability code will be output to the consumer for viewing, including: the name of the distributor, the traceability code number, the product name, the product batch number, the product quantity, the product specification unit, the traceability content JSON, and the product traceability score.
[0038] Each scan of the traceability code will generate a traceability query record as described in the traceability query management unit.
[0039] Beneficial effects: Compared with the prior art, the method and system for deep traceability of meat products provided by the present invention have the following advantages:
[0040] (1) Effectively ensure the integrity of data in the process of collecting and managing product traceability content, help enterprises better manage project and product data, and allow consumers to have a more comprehensive understanding of product traceability information and reference standards; (2) Intuitively browse whether the product traceability content meets the production and processing standards, which helps enterprises to summarize problems and improve product quality and quality level, while allowing consumers to have a more intuitive understanding of product quality and production and processing standard compliance; (3) Based on the efficient traceability query technology of search-driven algorithm, it can reduce server operating load and request queue blocking, improve the energy efficiency of infrastructure use, and provide more efficient and faster traceability query services. Attached Figure Description
[0041] Figure 1 This is a schematic diagram of the search-driven algorithm and query interface functional mechanism of an embodiment of the present invention;
[0042] Figure 2 This is a functional unit connection diagram of the meat product deep traceability system according to an embodiment of the present invention;
[0043] Figure 3 This is an embodiment of the present invention representing the adjacency chain formation based on the traceability product classification matrix;
[0044] Figure 4 This is an embodiment of the present invention that demonstrates the formation of adjacency chains based on a source content classification matrix. Detailed Implementation
[0045] The present invention will be further illustrated below with reference to specific embodiments. It should be understood that these embodiments are for illustrative purposes only and are not intended to limit the scope of the invention. After reading the present invention, any modifications of the present invention in various equivalent forms by those skilled in the art will fall within the scope defined by the appended claims.
[0046] A method for deep traceability of meat products includes the following steps:
[0047] 101. Define the classification of traceable products, which consists of two dimensions. The first is the product's state attribute type, such as: carcass, cut fresh meat, pre-packaged fresh meat, seasoned processed raw meat products, and seasoned processed cooked meat products; let n=1 represent pre-packaged fresh meat, n=2 represent seasoned processed raw meat products, n=3 represent seasoned processed cooked meat products, etc. The second is the product's breed category, such as: pig, beef, mutton, chicken, duck, etc., let m=1 represent beef, m=2 represent mutton.
[0048] 102. Arrange and combine the traceability product categories from the two dimensions to form a traceability product category matrix and index it, as shown in the matrix below:
[0049]
[0050] A: Product category for traceability mn A set of.
[0051] 103. Based on the traceability product classification matrix, an adjacency list is formed. An example is shown below. Figure 3 As shown, the formation process is as follows:
[0052]
[0053]
[0054] 104 corresponds to the establishment of a traceability product classification index table in the database.
[0055] Table 1. Traceability Product Classification Index
[0056] Index ID Variety categories State Attributes 1 Cow (m=1) Pre-packaged fresh meat (n=1) 2 Sheep (m=2) Pre-packaged fresh meat (n=1) 3 Cow (m=1) Seasoned and processed raw meat products (n=2) 4 Sheep (m=2) Seasoned and processed raw meat products (n=2) 5 Cow (m=1) Seasoned and processed cooked meat products (n=3) 6 Sheep (m=2) Seasoned and processed cooked meat products (n=3)
[0057] 105. A search-driven algorithm P based on product classification for traceability is formed. The core function of the algorithm is as follows:
[0058]
[0059]
[0060] This algorithm can reduce the complexity of the retrieval operation of the traceable product classification matrix from O(n2) to O(n+e) and improve efficiency.
[0061] 201 defines the classification of traceability content, with two dimensions. The first is the production and processing stage of the traceability content, such as: breeding, slaughtering, processing, testing, logistics, etc.; defined as: j=1: breeding, j=2: slaughtering, j=3: processing, j=4: testing, j=5: logistics. The second is the data format of the traceability content, such as: text, numbers, images, videos, etc.; defined as: k=1: characters, k=2: images, k=3: videos.
[0062] 202. The source content classifications of the two dimensions are arranged and combined to form a source content classification matrix and indexed, as shown in the matrix below:
[0063]
[0064] B: Source tracing content classification b kj A set of.
[0065] 203. An adjacency list is formed based on the source content classification matrix, as illustrated in the example below. Figure 3 As shown, the formation process is as follows:
[0066]
[0067]
[0068] 204 corresponds to the establishment of a source content classification index table for the database.
[0069] Table 2. Source Traceability Content Classification Index
[0070] Index ID Link Data format 1 Aquaculture (j=1) Character (k=1) 2 Slaughter (j=2) Character (k=1) 3 Processing (j=3) Character (k=1) 4 Detection (j=4) Character (k=1) 5 Logistics (j=5) Character (k=1) 6 Aquaculture (j=1) Image (k=2) 7 Slaughter (j=2) Image (k=2) 8 Processing (j=3) Image (k=2) 9 Detection (j=4) Image (k=2) 10 Logistics (j=5) Image (k=2) 11 Aquaculture (j=1) Video (k=3) 12 Slaughter (j=2) Video (k=3) 13 Processing (j=3) Video (k=3) 14 Detection (j=4) Video (k=3) 15 Logistics (j=5) Video (k=3)
[0071] 205. A search-driven algorithm C based on source content classification is formed, with the core logic being the same as in 105. Similarly, this algorithm can reduce the complexity of the source content classification matrix retrieval operation from O(n²) to O(n+e) and improve efficiency.
[0072] 301. Based on search-driven algorithms P and C, develop a comprehensive traceability query interface Q that integrates product and content classification for traceability. This interface is used to implement query functions in a deep traceability system for meat products. The driving algorithm mechanism and interface function implementation mechanism are as follows: Figure 1 As shown. Input the product traceability code, parse the product batch number, product name, and product category; obtain the variety category and status attribute from the parsing results; then generate a set of processing links; use a data structure to encapsulate all the traceability content retrieved for this product traceability code, forming a traceability data JSON structure.
[0073] The meat product deep traceability system includes the following functional units: supply entity management unit, logistics entity management unit, distribution entity management unit, product category management unit, product management unit, product production standard management unit, product batch management unit, inventory management unit, testing report management unit, logistics order management unit, traceability content management unit, traceability code management unit, and traceability query management unit. The connection structure of all functional units is as follows: Figure 2 As shown.
[0074] In the supply entity management unit, the following information is entered and managed for meat product suppliers: entity name, unified social credit code, contact person name, contact person telephone number, and address.
[0075] In the logistics entity management unit, the following information is entered and managed for meat product logistics entities: entity name, unified social credit code, contact person name, contact person telephone number, and address.
[0076] In the distribution entity management unit, the following information is entered and managed for meat product distribution entities: entity name, unified social credit code, contact person name, contact person telephone number, and address.
[0077] In the product category management unit, the following information is entered and managed: category name, product status attributes, and product variety, based on the product category.
[0078] In the product management unit, the following information is entered and managed by product: product name, supplier name, product validity status, and product specification unit.
[0079] In the product production standard management unit, the following information is entered and managed for each individual product production standard: supplier name, product name, production and processing stage, and standard content.
[0080] In the product batch management unit, the following information is entered and managed based on the product batch: product name, product batch number, product batch generation time, product quantity, and product specification unit.
[0081] In the inventory management unit, the following information is entered and managed on a single inventory record basis: product name, product batch number, product quantity, product specification unit, inbound / outbound type, inbound / outbound time, and name of the person in charge of inbound / outbound.
[0082] In the test report management unit, the following information is entered and managed for each individual test report: product name, product batch number, product quantity, product specification unit, test report number, test report name, test report content, test report results, name of the testing organization, test report upload time, and name of the person who uploaded the test report.
[0083] In the logistics order management unit, the following information is entered and managed for each individual logistics transportation item: product name, product batch number, product quantity, product specification unit, logistics order number, logistics entity name, logistics node region name, logistics node time, logistics vehicle license plate number, vehicle driver's name, and distribution entity name.
[0084] In the traceability content management unit, each traceability item is used as an object to enter and manage the following: product name, traceability content value, production and processing stage, data format, traceability content collection time, traceability content collector's name, and traceability content collection entity name (including supplier entity, logistics entity, and distribution entity).
[0085] The traceability code management unit generates and manages individual traceability codes, including: product name, product batch number, product quantity, product specification unit, traceability code number, and traceability code image address.
[0086] The traceability query management unit generates and manages the following information for each individual traceability query record: traceability code number, distributor name, product name, product batch number, product quantity, product specification unit, product traceability score, traceability query time, traceability query region, and traceability queryer IP address.
[0087] The system uses a single product batch as the smallest traceability unit, forming a single traceability code within the traceability code management unit. Specifically, it generates and manages the following information for each single traceability code: product name, product batch number, product quantity, product specification unit, traceability code number, and traceability code image address.
[0088] In this system, the mechanism of the search-driven algorithms P and C and the interface Q that implement the deep source tracing query function are described with the following example:
[0089] When the interface described in 301 is called, the product traceability code X is input as a parameter. The traceability code encoding mechanism parses the code to obtain that X represents a steak product with batch number 202201011098872. Further, based on the data managed by the system's classification, the steak product is identified as a product under the category "Beef (m=1), Seasoned Processed Raw Meat Products (n=2)". This category points to the following links and data structure matrix value sets: "Processing (j=3), Image (k=2)", "Detection (j=4), Image (k=2)", "Logistics (j=5), Text (k=1)". The search-driven algorithm is invoked to point to the traceability content storage path corresponding to batch number 202201011098872 in the Redis database, and the encapsulated data JSON structure is quickly rendered. An example of pseudocode is shown below:
[0090]
[0091] Each time the traceability code described in 413 is scanned, the traceability query interface described in 301 will be invoked, and the traceability content and standards of a specific production and processing stage of the product batch will be compared. If it meets the standards, 1 point will be awarded; if it does not meet the standards or is missing, 0 points will be awarded. The product traceability score obtained from the traceability query record will be accumulated, and then a complete traceability report obtained from scanning the traceability code will be output to the consumer for browsing, including: the name of the distributor, the traceability code number, the product name, the product batch number, the product quantity, the product specification unit, the traceability content JSON, and the product traceability score.
[0092] Each scan of the traceability code will generate a traceability query record. Specifically, each traceability query record generates and manages the following information: traceability code number, distributor name, product name, product batch number, product quantity, product specification unit, product traceability score, traceability query time, traceability query region, and traceability queryer's IP address.
Claims
1. A method for deep traceability of meat products, characterized in that, Includes the following steps:
101. Define the classification of traceable products, which consists of two dimensions: the first is the type of product status attribute; the second is the product variety category.
102. Arrange and combine the traceability product categories from the two dimensions to form a traceability product category matrix and index it, as shown in the matrix below: A= Where A represents the product category for traceability. The set; n is the product status attribute number; m is the product variety category number; 103. An adjacency list is formed based on the traceability product classification matrix; 104. Establish a traceability product classification index table. The traceability product classification index table includes three fields: index ID, product status attribute type, and product variety category. 105, forming a search-driven algorithm P based on product classification for traceability; 201 defines the classification of traceability content, with two dimensions: the first is the production and processing stage of the traceability content; the second is the data format of the traceability content.
202. The source content categories of the two dimensions are arranged and combined to form a source content category matrix and indexed, as shown in the matrix below: B= Where B represents the category of source tracing content. The set; j is the production and processing stage number; k is the data format number; 203. An adjacency list is formed based on the source content classification matrix; 204. Establish a traceability content classification index table. The traceability content classification index table includes three fields: index ID, production and processing stage of traceability content, and data format of traceability content. 205, forming a search-driven algorithm C based on source-tracing content classification; 301. Based on search-driven algorithm P and search-driven algorithm C, develop a comprehensive traceability query interface Q based on traceability product classification and traceability content classification, which can be called in the meat product deep traceability system to realize the query function.
2. The method for deep traceability of meat products according to claim 1, characterized in that, The driving algorithm mechanism and interface function implementation mechanism are as follows: input the traceability code of meat products, parse the product batch number, product name and product category according to the traceability product classification matrix and traceability content classification matrix; obtain the product variety category and product status attribute from the parsing results; then obtain the set of processing links; encapsulate all the traceability content retrieved by this product traceability code with a data structure to form a traceability data JSON structure.
3. A deep traceability system for meat products, characterized in that, The functional units include the following: supply entity management unit, logistics entity management unit, distribution entity management unit, product category management unit, product management unit, product production standard management unit, product batch management unit, inventory management unit, testing report management unit, logistics order management unit, traceability content management unit, traceability code management unit, and traceability query management unit. The supply entity management unit, targeting meat product suppliers, inputs and manages the basic information of meat product suppliers. The logistics entity management unit, with meat product logistics entities as the target, inputs and manages the basic information of meat product logistics entities; The distribution entity management unit, targeting meat product distribution entities, inputs and manages the basic information of meat product distribution entities; The product classification management unit, taking product classification as the object, inputs and manages: classification name, product status attributes, and product variety data; In the product classification management unit, the classification of traceable products is defined in two dimensions: the first is the type of product status attribute; the second is the product variety category. The traceability product categories based on the two dimensions are arranged and combined to form a traceability product category matrix, which is then indexed and numbered, as shown in the matrix below: A= Where A represents the product category for traceability. The set; n is the product status attribute number; m is the product variety category number; An adjacency list is formed based on the product classification matrix for traceability; Establish a traceability product classification index table, which includes three fields: index ID, product status attribute type, and product variety category. The product management unit, with products as the object, inputs and manages: product name, supplier name, product validity status, and product specification unit data; The product production standard management unit takes a single product production standard as its object and inputs and manages: supplier name, product name, production and processing stage, and standard content data corresponding to the production and processing. The product batch management unit, taking product batches as the object, inputs and manages: product name, product batch number, product batch generation time, product quantity, and product specification unit data. The inventory management unit uses a single inventory record as its content to input and manage: product name, product batch number, product quantity, product specification unit, inbound / outbound type, inbound / outbound time, and name of the person in charge of inbound / outbound. The test report management unit, based on the content of a single test report, inputs and manages the following: product name, product batch number, product quantity, product specification unit, test report number, test report name, test report content, test report results, name of the testing organization, test report upload time, and name of the person who uploaded the test report. The logistics order management unit takes a single logistics transportation information item as its object and inputs and manages the following data: product name, product batch number, product quantity, product specification unit, logistics order number, logistics entity name, logistics node region name, logistics node time, logistics vehicle license plate number, vehicle driver's name, and distributor entity name. The traceability content management unit takes a single traceability content as its object and inputs and manages the following data: product name, traceability content value, production and processing stage, data format, traceability content collection time, traceability content collector's name, and traceability content collection entity's name. In the traceability content management unit, the classification of traceability content is defined, with two dimensions: the first is the production and processing stage of the traceability content; the second is the data format of the traceability content. The traceability content classifications based on these two dimensions are arranged and combined to form a traceability content classification matrix, which is then indexed and numbered, as shown in the matrix below: B= Where B represents the category of source tracing content. The set of; j is the production and processing stage number; k is the data format number; an adjacency list is formed based on the traceability content classification matrix; a traceability content classification index table is established, which includes three fields: index ID, production and processing stage of the traceability content, and data format of the traceability content; The traceability code management unit generates and manages the following data for each individual traceability code: product name, product batch number, product quantity, product specification unit, traceability code number, and traceability code image address. The traceability query management unit generates and manages the following information based on a single traceability query record: traceability code number, distributor name, product name, product batch number, product quantity, product specification unit, product traceability score, traceability query time, traceability query region, and traceability queryer IP data. Based on search-driven algorithm P and search-driven algorithm C, a comprehensive traceability query interface Q based on traceability product classification and traceability content classification was developed to implement query functions in the meat product deep traceability system. The meat product deep traceability system uses a single product batch as the smallest traceability unit to form the single traceability code.
4. The meat product deep traceability system according to claim 3, characterized in that, During the traceability query process, the traceability content of the processing stage is compared with the corresponding standards. If the processing stage meets the standards, 1 point is awarded; if it does not meet the standards or is missing, 0 points are awarded. The scores are accumulated to obtain the product traceability score from the traceability query record. Then, a complete traceability report obtained by scanning the traceability code is output to consumers for browsing, including: the name of the distributor, the traceability code number, the product name, the product batch number, the product quantity, the product specification unit, the traceability content JSON, and the product traceability score.
5. The meat product deep traceability system according to claim 3, characterized in that, Each scan of the traceability code will generate a traceability query record as described in the traceability query management unit.
6. The meat product deep traceability system according to claim 3, characterized in that, Basic information includes the entity name, unified social credit code, contact person name, contact person telephone number and address.
Citation Information
Patent Citations
Food information traceability method based on pre-made single linked list data structure
CN108346055A
Tropical fruit and vegetable agricultural product quality safety traceability system and method
CN113627952A
