A food traceability system and method based on a chain ring type modular traceability architecture

CN122596964APending Publication Date: 2026-08-18KUNSHAN YIXINGNONG INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202610731399.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-05-26
Publication Date
2026-08-18

AI Technical Summary

Technical Problem

[0004]本发明的目的在于:提供一种基于链环式模块化溯源架构的食品溯源系统及方法,以解决现有食品溯源系统中单点故障导致溯源链条断裂以及跨主体数据协同难的问题

Benefits of technology

[0016] 1. In this invention, the modular traceability architecture divides the traceability chain into multiple independent modules. Each independent module independently records and stores data, and the independent modules are loosely coupled through standard interfaces. This ensures that a single module failure will not cause the entire traceability chain to break, thus solving the problem of single-point failures causing the traceability chain to break in existing food traceability systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122596964A_ABST
    Figure CN122596964A_ABST
Patent Text Reader

Abstract

The application discloses a food traceability system based on a chain ring type modular traceability architecture, comprising: an entry node module for collecting and storing cargo entry data in a park database; a transfer module for recording state monitoring data of cargo in the process of circulation in a fresh food industry park and storing the data in a transfer database; an exit node module for recording cargo exit data and storing the data in an exit database; a voucher generation module for identifying in-park data of cargo circulation in the park through a traceability voucher ID, and encrypting the traceability voucher ID to generate a delivery order two-dimensional code when the cargo exits the park; and the voucher generation module establishes a mapping table of in-park data and external data. The application also discloses a traceability method of the food traceability system. Compared with the prior art, the application solves the problems of single point failure leading to traceability chain breakage and cross-subject data cooperation difficulty in the existing food traceability system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of product traceability system technology, and in particular to a food traceability system and method based on a chain-link modular traceability architecture. Background Technology

[0002] A food traceability system is a comprehensive management platform that records the quality and safety information of food from the source of production to the end consumer, enabling forward tracking or reverse tracing. Its core objectives are to ensure food safety, clarify the responsible parties, and enhance consumer trust.

[0003] Existing food traceability systems typically employ a linear chain structure, relying on upstream and downstream cooperation. The data coupling between each link is high, and no single party can complete the traceability independently. Once data is missing from a certain link, the traceability chain breaks, making it impossible to quantify food safety risks. The usability of the food traceability system is poor, and the data from multiple temperature zones in cold storage is fragmented, making unified tracking impossible. Furthermore, traceability standards for non-standard categories such as fresh fruits, vegetables, and aquatic products are lacking. Summary of the Invention

[0004] The purpose of this invention is to provide a food traceability system and method based on a chain-link modular traceability architecture, so as to solve the problems of single-point failure leading to the breakage of the traceability chain and the difficulty of cross-entity data collaboration in existing food traceability systems.

[0005] To achieve the above objectives, in one respect, this invention discloses a food traceability system based on a chain-link modular traceability architecture, comprising:

[0006] The entry node module is used to collect data on goods entering the park and store it in the entry database;

[0007] The transit module is used to record the status monitoring data of goods during their flow within the fresh food industrial park and store it in the transit database.

[0008] The outbound node module is used to record cargo outbound data and store it in the outbound database;

[0009] The voucher generation module identifies the data of goods flowing within the park in the inbound node module, transit module, and outbound node module through the traceability voucher ID, and encrypts the traceability voucher ID to generate a delivery note QR code when the goods leave the park. The coding structure of the traceability voucher ID is based on the category of goods, with pre-packaged food codes and non-pre-packaged food codes, both of which include the park code.

[0010] The food traceability system's ingress module, transit module, egress module, and voucher generation module are connected via a standard API interface. The voucher generation module establishes a mapping table between internal and external data. This module includes a mapping table management submodule, an access control submodule, and a data aggregation submodule. The mapping table management submodule is used to establish the mapping table between internal and external data and store it in the traceability database of the voucher generation module. The access control submodule is used to define the access permissions for different QR code access roles. The data aggregation submodule dynamically selects the traceability data query range and displays the traceability data results based on the QR code access role's identity recognition result and the corresponding access permissions.

[0011] On the other hand, the present invention also discloses a traceability method for a food traceability system based on a chain-link modular traceability architecture as described above, comprising the following steps:

[0012] S1. The data of goods flowing within the park in the inbound node module, transit module and outbound node module are identified by the traceability certificate ID, and the traceability certificate ID is encrypted to generate a delivery note QR code when the goods leave the park.

[0013] S2. When the QR code on the shipping order is scanned, the identity of the scanning access role is identified based on a multi-dimensional identity recognition mechanism, which includes identity authentication, scanning device identification, IP address identification, and geolocation verification.

[0014] S3. The voucher generation module determines access permissions based on the identity recognition results of the scanned access role, dynamically selects the traceability data query range in the ingress node module, transit module, and outgress node module, and displays the traceability data results.

[0015] In summary, due to the adoption of the above technical solution, the beneficial effects of the present invention are:

[0016] 1. In this invention, the modular traceability architecture divides the traceability chain into multiple independent modules. Each independent module independently records and stores data, and the independent modules are loosely coupled through standard interfaces. This ensures that a single module failure will not cause the entire traceability chain to break, thus solving the problem of single-point failures causing the traceability chain to break in existing food traceability systems.

[0017] 2. In this invention, to prevent upstream and downstream partners from being unable to access the food traceability system, all data circulating within the park uses a 4-digit park code as the basic identifier for data isolation and association. A mapping table between data within the park and external data is established. When upstream and downstream data are available, automatic association is achieved. When data is not available, an independent data chain within the park is used instead. Cross-system data transmission is achieved through "park identification coding + data mapping layer". Data can be independently linked without relying on upstream and downstream cooperation, ensuring the availability of the traceability system and effectively solving the problem of cross-entity data collaboration in existing food traceability systems. Attached Figure Description

[0018] To more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present invention and should not be regarded as a limitation on the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0019] Figure 1 This is a flowchart of a food traceability system based on a chain-link modular traceability architecture.

[0020] Figure 2 This is a system architecture diagram of a food traceability system based on a chain-link modular traceability architecture.

[0021] Figure 3 This is a data flow diagram for a food traceability system based on a chain-link modular traceability architecture. Detailed Implementation

[0022] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. The components of the embodiments of the present invention described and shown in the accompanying drawings can generally be arranged and designed in various different configurations.

[0023] Therefore, the following detailed description of the embodiments of the invention provided in the accompanying drawings is not intended to limit the scope of the claimed invention, but merely to illustrate selected embodiments of the invention. All other embodiments obtained by those skilled in the art based on the embodiments of the invention without inventive effort are within the scope of protection of the invention.

[0024] Example 1

[0025] On the one hand, the present invention provides a food traceability system based on a chain-link modular traceability architecture, comprising:

[0026] The entry node module is used to collect data on goods entering the park and store it in the entry database;

[0027] The transit module is used to record the status monitoring data of goods during their flow within the fresh food industrial park and store it in the transit database.

[0028] The outbound node module is used to record cargo outbound data and store it in the outbound database;

[0029] The voucher generation module identifies the data of goods flowing within the park in the inbound node module, transit module, and outbound node module through the traceability voucher ID. Based on dynamic QR code generation technology, it encrypts the traceability voucher ID to generate a delivery note QR code when the goods leave the park. The coding structure of the traceability voucher ID is divided into pre-packaged food code and non-pre-packaged food code according to the category of goods. Both the pre-packaged food code and the non-pre-packaged food code include the park code.

[0030] The food traceability system's ingress module, transit module, egress module, and voucher generation module are connected via a standard API interface. The voucher generation module establishes a mapping table between internal and external data. This module includes a mapping table management submodule, an access control submodule, and a data aggregation submodule. The mapping table management submodule establishes the mapping table between internal and external data and stores it in the traceability database of the voucher generation module. The access control submodule defines the access permissions for different scanning roles. When different scanning roles use scanning devices to scan QR codes to obtain traceability information, their access permissions differ. For example, consumers can only view basic product information, while regulatory personnel can obtain full-chain data. The data aggregation submodule dynamically selects the traceability data query range based on the scanning role's identity recognition result and corresponding access permissions, and displays the traceability data results.

[0031] On the other hand, please see Figure 1-3 The present invention also discloses a traceability method for a food traceability system based on a chain-link modular traceability architecture as described above, comprising the following steps:

[0032] S1. The data of goods flowing within the park in the inbound node module, transit module and outbound node module are identified by the traceability certificate ID, and the traceability certificate ID is encrypted to generate a delivery note QR code when the goods leave the park.

[0033] S2. When the QR code on the shipping order is scanned, the identity of the person scanning the code is identified based on a multi-dimensional identity recognition mechanism.

[0034] S3. The voucher generation module determines access permissions based on the identity recognition results of the scanned access role, dynamically selects the traceability data query range in the ingress node module, transit module, and outgress node module, and displays the traceability data results.

[0035] The coding system for prepackaged foods includes the park code, production date, product code, and warehouse entry number, while the coding system for non-prepackaged foods includes the park code, arrival date, category code, and warehouse entry number. Two coding systems are constructed based on product categories for packaged and non-prepackaged foods to achieve classification and traceability.

[0036] The coding for prepackaged food can be done using the park code + 20260411 + 000100 + 0001, where “000100” is the category code, “0001” is the warehousing serial number, and the number of digits in each segment is configurable.

[0037] Non-prepackaged food codes can be formatted as: park code + 20260411 + V00100 + 0001, where "V00100" is the category code, "V" represents vegetables, "F" represents fruits, "S" represents aquatic products, and "0001" is the warehouse entry number.

[0038] The entry node module includes a data access submodule, an entry registration submodule, and a data verification submodule. The data access submodule uses data cleaning algorithms to standardize the raw data provided by suppliers, resulting in supplier data. The supplier data specifically includes basic supplier information such as supplier name, address, and qualification certificates, as well as basic cargo information such as cargo weight, certificate of origin, test report, and batch number. The entry registration submodule records the entry inspection data and entry logistics data obtained from the actual measurement of the cargo upon entry into the park after identifying the cargo category, resulting in entry registration data. The entry registration data includes entry inspection data such as cargo weight and temperature obtained from the actual measurement of the cargo entering the fresh food industrial park by IoT devices such as electronic scales, as well as entry logistics data such as cargo entry time, logistics carrier, and carrier vehicle information. The data verification submodule compares the supplier data and the entry registration data. After verifying that the data difference meets the requirements, the supplier data and the entry registration data are merged to obtain cargo entry data and stored in the entry database.

[0039] The data verification submodule compares the corresponding data in the supplier data and the park entry registration data. Based on whether the difference between the two data exceeds a set threshold, it performs tiered processing. For example, when comparing the weight data of goods in the supplier data and the park entry registration data, if the numerical deviation is less than the set threshold, the deviation value is recorded and marked as normal error. Similarly, for the transport temperature provided by the supplier and the actual temperature measured upon arrival, if the temperature deviation exceeds the threshold, an anomaly warning is triggered, and data fusion is not performed. During subsequent data fusion, corrections are automatically made based on the park entry inspection data in the park entry registration data. However, if the numerical deviation exceeds the set threshold, an anomaly warning is triggered, subsequent data fusion is not performed, an abnormal entry record is generated and stored in the park entry database, prompting manual intervention.

[0040] The transit module includes a location tracking submodule, an environmental monitoring submodule, a data association submodule, and a near-expiration warning submodule. The location tracking submodule records the movement of goods within the park, sorting operations, and processing status, and generates location tracking data. The environmental monitoring submodule records environmental data in real time during the storage or transit of goods. Environmental data includes temperature zone identifiers, temperature, and humidity. Temperature zone identifiers identify the temperature zone location of goods stored in the cold storage. The data association submodule associates the location tracking data and environmental data based on timestamps to obtain status monitoring data, which serves as an intermediate link in the traceability chain and stores the data for this link independently. The near-expiration warning submodule issues near-expiration warnings based on the product category and status monitoring data. For pre-packaged foods, the warning time is calculated backward from the shelf life, and warnings are issued in advance. For non-pre-packaged foods, warnings are issued in advance based on a comprehensive judgment of "reference shelf life + initial quality inspection level + storage environment".

[0041] The environmental monitoring submodule includes a non-prepackaged food inspection unit and a temperature zone monitoring unit. The non-prepackaged food inspection unit is used to conduct freshness inspections of non-prepackaged foods according to a set time. The freshness inspection unit issues inspection reminders regularly to prompt staff to conduct quality testing and evaluation of non-prepackaged foods and record the results, thereby improving the quality testing results of non-prepackaged foods. The temperature zone monitoring unit is used to monitor the temperature and humidity of the frozen temperature zone, refrigerated temperature zone, and ambient temperature zone in the cold storage, as well as the location switching records of goods between temperature zones. For example, when goods are moved from the refrigerated temperature zone to the frozen temperature zone, a differentiated environmental data collection strategy is adopted according to the temperature zone in which the goods are located.

[0042] The outbound node module includes a destination management submodule, an outbound verification submodule, and an in-transit data access submodule. The destination management submodule records the shipping destination, shipping origin, logistics carrier, and departure time to obtain cargo destination data. The outbound verification submodule compares the outbound inspection data obtained from physical measurements of the goods leaving the industrial park with the outbound records, performs a first-in-first-out (FIFO) check, and obtains outbound registration data after verifying data matching. During FIFO verification, the outbound order is compared with the inbound time order; a warning is triggered if the FIFO principle is violated. Cargo outbound data includes outbound registration data and cargo destination data, forming a data record and destination lock for food leaving the industrial park. The in-transit data access submodule receives environmental data from external transportation vehicles through a standardized interface and associates it with the traceability certificate ID. To support optional access and association of in-transit data after leaving the industrial park, the in-transit data access submodule can optionally receive environmental data from external transportation vehicles through a standardized interface.

[0043] In the modular traceability architecture of the food traceability system, the traceability chain is divided into multiple independent modules. Each independent module records and stores data independently, and the independent modules are loosely coupled through standard interfaces. This ensures that the failure of a single module will not cause the entire traceability chain to break, thus solving the problem of single-point failure leading to the breakage of the traceability chain in existing food traceability systems.

[0044] To prevent upstream and downstream partners from being unable to access the food traceability system, all data circulating within the park uses a 4-digit park code as the basic identifier for data isolation and association. A mapping table between internal and external data is established. When upstream and downstream data is available, the external system interface is automatically queried based on the supplier ID / carrier ID to achieve automatic association. When data is unavailable, a timeout degradation strategy is implemented. If there is no response within 3 seconds, the data is downgraded to an independent data chain, which is replaced by an independent data chain within the park. Cross-system data transfer is achieved through "park identification coding + data mapping layer". Data connection can be achieved independently without relying on upstream and downstream cooperation, ensuring the availability of the traceability system and effectively solving the problem of cross-entity data collaboration in existing food traceability systems. That is, when upstream supplier data and downstream sales data are available, the food traceability system binds the traceability certificate ID to an external ID. When scanning the code to view traceability information, it displays the full-chain data of "upstream supply data + park data + downstream sales data". However, when upstream supplier data and downstream sales data are not available, the food traceability system extracts the park data stored in the ingress node module, transit module and egress node module based on the traceability certificate ID, forming an independent data chain within the park based on the park's internal circulation data.

[0045] Example 2

[0046] Based on the above embodiments, this embodiment further improves upon the following technical solutions: the multi-dimensional identity recognition mechanism of the food traceability system includes identity authentication, barcode scanning device recognition, IP address recognition, and geographical location verification.

[0047] When the food traceability system identifies the user by scanning a code, it first performs identity authentication.

[0048] Anonymous users are identified as consumers and provided with basic information such as product information, storage temperature curve, park certification mark, and purchase channel.

[0049] For QR code scanning, the system identifies the user as a corporate account login, verifies whether the IP address is a fixed IP address on the corporate intranet, and verifies whether the scanning location is a corporate address based on GPS positioning and base station information. Once the user is confirmed to be a corporate user, the system displays production, logistics, and sales data such as processing batches, quality reports, and logistics tracks.

[0050] For those who use government digital identity authentication and log in through dedicated equipment or government systems, after verifying that the device is a dedicated law enforcement device or that the IP address is accessed through a government private network, full-chain compliance data including testing records and licenses will be displayed. Device characteristics include information such as device model and operating system type.

[0051] In addition, for those identified as enterprise users scanning QR codes, the enterprise sales system reads and inherits the traceability certificate ID, enabling external sales data and park data to be automatically linked through a mapping table.

[0052] When the traceability system encounters contradictory or incomplete identity information during the process of identifying the role accessed by scanning the code, it adopts a downgraded display strategy and uniformly grants anonymous user permissions.

[0053] Example 3

[0054] Based on the above embodiments, this embodiment further improves upon the following technical solutions: When acquiring traceability data in the food traceability system, if there is a data gap in the status monitoring data of the transit module, the voucher generation module initiates a fault-tolerant completion mechanism. Based on the traceability voucher ID, it acquires the data on goods entering the park and goods leaving the park, and completes the data according to time logic and business logic. The completed data is then compared with historical data to verify its rationality.

[0055] For example, if there is a lack of data on the duration of goods entering the park, the difference between the entry and exit times of goods in the data on goods entering and leaving the park can be used to calculate the duration of goods staying in the park. Furthermore, based on the existence of data on goods entering and leaving the park, it is assumed that the goods have completed the standard operating procedures within the park, thereby supplementing the missing operating procedures in the status monitoring data and avoiding the incomplete traceability data caused by the absence of a single link.

[0056] Similarly, when environmental data is missing, the flow path is estimated based on the environmental data of adjacent goods in the same temperature zone, and when location data is missing, the flow path is estimated based on the inbound and outbound locations.

[0057] After the data was completed, its rationality was verified by comparing it with the data distribution of the same type of goods in the past.

[0058] The above description is only a preferred embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any equivalent substitutions or modifications made by those skilled in the art within the scope of the technology disclosed in the present invention, based on the technical solution and inventive concept of the present invention, should be covered within the scope of protection of the present invention.

Claims

1. A food traceability system based on a chain-link modular traceability architecture, characterized in that, include: The entry node module is used to collect data on goods entering the park and store it in the entry database; The transit module is used to record the status monitoring data of goods during their flow within the fresh food industrial park and store it in the transit database. The outbound node module is used to record cargo outbound data and store it in the outbound database; The voucher generation module identifies the data of goods flowing within the park in the entry node module, transit module, and exit node module through the traceability voucher ID, and encrypts the traceability voucher ID to generate a delivery note QR code when the goods leave the park. The coding structure of the traceability voucher ID is based on the category of goods, with pre-packaged food codes and non-pre-packaged food codes. Both the pre-packaged food codes and the non-pre-packaged food codes include the park code. The food traceability system's ingress module, transit module, outgress module, and voucher generation module are connected via a standard API interface, and the voucher generation module establishes a mapping table between internal and external data.

2. The food traceability system based on a chain-link modular traceability architecture according to claim 1, characterized in that, The prepackaged food code includes the park code, production date, product code, and warehousing serial number, while the non-prepackaged food code includes the park code, arrival date, category code, and warehousing serial number.

3. A food traceability system based on a chain-link modular traceability architecture according to claim 1, characterized in that, The credential generation module includes a mapping table management submodule, an access control submodule, and a data aggregation submodule. The mapping table management submodule is used to establish a mapping table between data within the park and external data, and stores the mapping table in the traceability database of the credential generation module. The access control submodule is used to define the access permissions of different QR code access roles. The data aggregation submodule dynamically selects the traceability data query range based on the identity recognition result of the QR code access role and the access permissions corresponding to the identity, and displays the traceability data results.

4. A food traceability system based on a chain-link modular traceability architecture according to claim 1, characterized in that, The entry node module includes a data access submodule, an entry registration submodule, and a data verification submodule. The data access submodule uses a data cleaning algorithm to standardize the raw data provided by the supplier to obtain supplier data. The entry registration submodule is used to record the entry inspection data and entry logistics data obtained by physical measurement of goods upon entry into the park after identifying the category of goods, to obtain entry registration data. The data verification submodule is used to compare the supplier data and the entry registration data. After verifying that the data difference meets the requirements, the supplier data and the entry registration data are fused to obtain the goods entry data and stored in the entry database.

5. A food traceability system based on a chain-link modular traceability architecture according to claim 4, characterized in that, The data verification submodule compares the corresponding data in the supplier data and the park entry registration data, and performs tiered processing based on whether the difference between the two data exceeds a set threshold.

6. A food traceability system based on a chain-link modular traceability architecture according to claim 1, characterized in that, The transit module includes a location tracking submodule, an environmental monitoring submodule, a data association submodule, and a near-expiration warning submodule. The location tracking submodule records the movement of goods in the warehouse, sorting operations, and processing status within the park, and generates location tracking data. The environmental monitoring submodule records environmental data in real time during the storage or transit of goods. The environmental data includes temperature zone identifiers, temperature, and humidity. Temperature zone identifiers are used to identify the temperature zone location of goods stored in the cold storage. The data association submodule associates the location tracking data and environmental data based on timestamps to obtain status monitoring data. The near-expiration warning submodule issues near-expiration warnings based on the type of goods and status monitoring data.

7. A food traceability system based on a chain-link modular traceability architecture according to claim 6, characterized in that, The environmental monitoring submodule includes a non-prepackaged food inspection unit and a temperature zone monitoring unit. The non-prepackaged food inspection unit is used to inspect the freshness of non-prepackaged food according to a set time. The temperature zone monitoring unit is used to monitor the temperature and humidity of the frozen temperature zone, refrigerated temperature zone, and ambient temperature zone in the cold storage, as well as the location switching record of the goods in the temperature zone.

8. A food traceability system based on a chain-link modular traceability architecture according to claim 1, characterized in that, The outbound node module includes a destination management submodule, an outbound verification submodule, and an in-transit data access submodule. The destination management submodule is used to record the shipping destination, shipping logistics origin, logistics carrier, and departure time to obtain cargo destination data. The outbound verification submodule is used to compare the outbound detection data obtained from the physical measurement of the goods when they leave the park with the cargo outbound record, perform first-in-first-out (FIFO) verification, and obtain outbound registration data after verifying data matching. During FIFO verification, the outbound order is compared with the inbound time. The cargo outbound data includes outbound registration data and cargo destination data. The in-transit data access submodule is used to receive environmental data from external transportation vehicles through a standardized interface and associate it with the traceability certificate ID.

9. A traceability method for a food traceability system based on a chain-link modular traceability architecture as described in any one of claims 1-8, characterized in that, Includes the following steps: S1. The data of goods flowing within the park in the inbound node module, transit module and outbound node module are identified by the traceability certificate ID, and the traceability certificate ID is encrypted to generate a delivery note QR code when the goods leave the park. S2. When the QR code on the shipping order is scanned, the identity of the scanning access role is identified based on a multi-dimensional identity recognition mechanism, which includes identity authentication, scanning device identification, IP address identification, and geolocation verification. S3. The voucher generation module determines access permissions based on the identity recognition results of the scanned access role, dynamically selects the traceability data query range in the ingress node module, transit module, and outgress node module, and displays the traceability data results.

10. The tracing method according to claim 9, characterized in that, In step S3, when acquiring traceability data, if there is missing data in the status monitoring data of the transit module, the voucher generation module activates the fault-tolerant completion mechanism. Based on the traceability voucher ID, it acquires the goods entering the park data and the goods leaving the park data, and completes the data according to the time logic and business logic. The completed data is then compared with historical data to verify its rationality.