A method and system for whole cycle management and traceability of quinoa germplasm resources, an electronic device and a storage medium
By using a unique identification system of AccessionID, LotID, and LocationID, and an append-written tamper-proof event ledger, the problems of mislabeling, omissions, and mixed batches in quinoa germplasm resource management have been solved, achieving reliable traceability and continuity of the chain of responsibility, and improving management efficiency and data integrity.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- SHANXI JIAQI AGRI TECH CO LTD
- Filing Date
- 2026-03-06
- Publication Date
- 2026-06-09
AI Technical Summary
Traditional quinoa germplasm resource management methods suffer from problems such as mislabeling, omissions, mixed batches, conflicting locations, and difficulty in restoring the chain of responsibility afterward. Furthermore, historical records are easily overwritten and modified, making it difficult to provide a verifiable chain of traceability evidence.
The system employs a unique identification system of AccessionID, LotID, and LocationID, combined with an anti-tampering event ledger that records events and appends. Through hash chains and correction events, it achieves data immutability and the continuity of the chain of responsibility. The system performs integrity checks during writing and querying, and generates a reliable traceability report.
It has achieved a verifiable traceability chain, reduced the risks of mislabeling, mixed batches, and loss of control in the process, improved management efficiency and traceability credibility, and ensured the continuity of the chain of responsibility and the chain of evidence.
Smart Images

Figure FT_1 
Figure FT_2 
Figure FT_3
Abstract
Description
Technical Field
[0001] This invention belongs to the field of information management technology for crop germplasm resource preservation and breeding, specifically involving database management, physical flow traceability, and a reliable quality audit mechanism for quinoa germplasm resources. Background Technology
[0002] Quinoa breeding and industrialization rely on a long-term, stable germplasm resource system. Germplasm resource management typically involves multiple stages, including collection / introduction, storage, preservation, evaluation, rejuvenation and renewal, sampling and packaging, transfer and relocation, quality testing, inventory and reconciliation, and external sharing and distribution. It is characterized by multiple locations, multiple personnel, and long cycles. Traditional management methods often rely on updatable database records, which suffer from problems such as mislabeling, omissions, batch mixing, conflicting location usage, and difficulty in restoring the chain of responsibility afterward. Furthermore, historical records can be overwritten and modified, making it difficult to provide a verifiable traceability evidence chain in auditing and external sharing scenarios. Summary of the Invention
[0003] 3.1 Technical problems to be solved
[0004] This invention aims to provide a full-cycle management and traceability solution for quinoa germplasm resources with an "additionally written tamper-proof event ledger" as its core, so that the traceability link has verifiable integrity, thereby improving traceability credibility and reducing the risks of mislabeling, mixed batches and loss of control in circulation.
[0005] 3.2 Technical Solution
[0006] This invention establishes a unique identifier system of AccessionID, LotID, LocationID, and EventID, binding physical containers to a database. Event records are generated for all lifecycle operations and appended to the event ledger. Each event record includes a preceding digest value and the current digest value, and further includes an authentication value. The system performs integrity checks during writes and / or queries, generating audit alerts for tampering. Error correction is achieved by appending correction events without rewriting historical records.
[0007] 3.3 Beneficial Effects
[0008] Compared with conventional management methods that allow overwriting updates of historical records, this invention has at least the following advantages: (1) Tamper detection: arbitrary modification, deletion or insertion of historical records will cause the summary chain or authentication verification to fail; (2) Clear evidence chain: error correction is achieved by adding correction events, and the responsibility chain and evidence chain are continuous; (3) Reliable traceability: traceability reports with integrity verification can be output, which are suitable for external sharing and audit inspection; (4) Improved management efficiency: the probability of mislabeling and mixed batches is reduced by location occupancy verification, permission verification and abnormal closed loop. Attached Figure Description
[0009] Figure 1 Schematic diagram of the overall architecture of the quinoa germplasm resource management and traceability system.
[0010] The system adopts a five-layer architecture, with the whole life cycle management of quinoa germplasm resources as the core. It covers the entire process of germplasm entry, preservation, identification, breeding, experimentation, distribution and traceability, so as to achieve germplasm management, data searchability, source traceability and quality control.
[0011] Figure 2 Schematic diagram of the full life cycle event traceability process for quinoa germplasm resources.
[0012] This process covers the entire life cycle of quinoa germplasm resources: from germplasm collection, storage, identification and evaluation, breeding and propagation, production and planting, processing and distribution to product traceability, forming a complete closed loop. Through unique identification, the source can be traced, the destination can be tracked, and the responsibility can be investigated.
[0013] Figure 3 : Unique identifier and physical label are linked.
[0014] The unique identifier uses a structured coding system of "type-year-origin-serial number" and is linked to the physical germplasm through a QR code label.
[0015] Figure 4 Location coding diagram.
[0016] The location coding adopts a five-level hierarchical coding system of "main warehouse - warehouse - shelf - layer - grid" to achieve precise positioning of germplasm storage location. The two are linked to form the basis of full-chain traceability of "identifier - label - location".
[0017] Figure 5 Schematic diagram of anomaly identification and CAPA quality closed-loop process
[0018] The process revolves around abnormal data, quality issues, and labeling and location errors in the management of quinoa germplasm resources. It sequentially completes the identification of abnormalities, record registration, cause analysis, CAPA measure formulation, implementation and rectification, effect verification and closed-loop archiving, forming a traceable and improveable quality management closed loop.
[0019] Figure 6 Diagram of the tamper-proof event ledger (append-only) hash chain and correction events.
[0020] The core structure of the hash chain forms a chain binding by associating each event hash value with the previous event hash, thus preventing data tampering. The correction event processing flow adopts the "chain tail append" mode, which does not delete or modify the original chain data, but adds correction event records with modified content, associated original event IDs and operation traces, ensuring the integrity, traceability and non-repudiation of quinoa germplasm resource traceability data. Detailed Implementation
[0021] The present invention will be further described below with reference to the accompanying drawings. The embodiments described are for illustrative purposes only and are not intended to limit the scope of protection of the present invention.
[0022] 5.1 Unique Identifier and Location Code
[0023] AccessionID is used to uniquely identify quinoa germplasm; LotID is used to uniquely identify the seed batch associated with AccessionID; LocationID is used to uniquely identify the storage location. LocationID preferably uses hierarchical coding, with the recommended coding rule as follows: LocationID = PY - <Store> - F <Frame three digits> - L <Layer two digits> - P <Plot two digits> where: Storage point PY represents Pingyao; Store is 01 or 02; Frame is F001–F120; Layer is L01–L06; Plot is P01–P48. Example: PY-01-F037-L03-P12. Location occupancy rules should be used to limit the same LocationID to only one LotID at any given time (or limit it according to capacity rules) to avoid mixed storage and misplacement.
[0024] 5.2 Event Logs and Event Types
[0025] The entire operation cycle generates event logs, and the event types include at least: warehousing, sampling, packaging, transfer, rejuvenation update, quality inspection, inventory, external distribution, and disposal. In addition to basic fields, event logs can optionally include measurement information (net weight, estimated number of grains, moisture content, germination rate, etc.) and supporting evidence (photos, test reports).
[0026] 5.3 Anti-tampering event ledger structure
[0027] The event ledger appends event records chronologically. Each event record contains business fields and integrity protection information. Integrity protection information includes: a previous digest value (DigestPrev, the digest value of the previous record), a current digest value (DigestCur), and an authentication value (AuthTag). DigestCur is calculated by combining at least the business fields with DigestPrev; AuthTag is calculated by digitally signing DigestCur or using a message authentication code. Once written to the ledger, direct modification or deletion of existing records is not supported; when an error is detected, a correction event is appended, referencing the EventID of the event being corrected and recording the reason and supporting evidence.
[0028] 5.4 Integrity Verification and Audit Alerts
[0029] The system performs integrity checks during traceability queries, inventory counts, external distribution approvals, cross-warehouse transfers, restoration updates, quality inspection accounting, or scheduled inspections: verifying the continuity of the digest chain (whether DigestPrev equals the previous DigestCur), the consistency of recalculated DigestCur, and the validity of the authentication value AuthTag. If any check fails, an audit alarm record is generated, and the scope of impact (related to AccessionID / LotID / EventID) is output.
[0030] 5.5 Anomalies and CAPA Closure
[0031] When consistency checks (binding relationships, location occupancy, thresholds, permissions, state machine order, etc.) fail, an anomaly record is generated, and corrective and / or preventive measures are formed through the CAPA (find the problem + correct the problem + prevent recurrence + auditable evidence) process. After the loop is closed, the anomaly status is updated.
[0032] 5.6 Traceability Link Output
[0033] The system can output traceability links by AccessionID or LotID, including a chronological list of events, current storage location, anomaly / CAPA status, and supporting evidence. External distribution can generate accompanying traceability reports.
[0034] 5.7 Batch Summary Fingerprint Consistency Verification
[0035] A batch summary fingerprint FingerprintID (e.g., calculated from a set of key phenotypic descriptors and / or a molecular marker summary) can be generated for LotID. After rejuvenation updates or cross-repository transfers, a consistency comparison is performed, and if the value is below a threshold, a confounding risk warning is triggered.
[0036] 6. Examples
[0037] Example 1: Comparison of Errors and Efficiency Before and After System Launch
[0038] Mislabeling / omission incident rate (%): 0.12 before launch; 0.02 after launch.
[0039] Inventory efficiency (units / person / hour): 350 before launch; 600 after launch.
[0040] Inventory accuracy (%): 98.7 before going live; 99.8 after going live.
[0041] Abnormal closed-loop cycle (days): 14-30 days before launch; 3-7 days after launch.
Claims
1. A method for full-cycle management and traceability of quinoa germplasm resources, characterized in that, include: (1) Generate a unique germplasm identifier AccessionID for quinoa germplasm resources; generate a unique batch identifier LotID for seed batches associated with the AccessionID; (1) Generate a location identifier LocationID for the storage unit; (2) Encode at least the LotID into a machine-readable identifier of the seed container, and establish a binding relationship between the machine-readable identifier and the AccessionID and LotID; (3) Generate an event record when performing a full-cycle operation on the quinoa germplasm resource, the event record containing at least the event identifier EventID, AccessionID, LotID, LocationID, event type, time information and operator identifier; (4) Write the event record into the event ledger in an append-only manner, and generate integrity protection information for each written event record, wherein: (4.1) The integrity protection information includes a prior digest value and a current digest value; the current digest value is calculated from the business field of at least the event record and the prior digest value; (4.2) The integrity protection information further includes an authentication value, the authentication value being calculated by digitally signing or message authentication code the current digest value; (4.3) The event ledger does not allow direct modification or deletion of existing event records. When an error occurs, it is achieved by appending and writing a correction event, which contains reference information of the corrected event; (5) When writing event records and / or responding to traceability queries, the event ledger is subjected to integrity verification; when the integrity verification fails, an audit alarm record is generated; (6) In response to query requests, the traceability link corresponding to AccessionID or LotID is output, which includes at least a list of events arranged in chronological order and the current storage location.
2. The method according to claim 1, wherein the machine-readable identifier includes one or more of QR codes, barcodes, and RFID.
3. The method according to claim 1, wherein the digest value is calculated by a hash function on the combined input of "business field concatenation value and preceding digest value", and the hash function is selected from SHA-256, SHA-3 or SM3.
4. The method according to claim 1, wherein the authentication value is a digital signature or a message authentication code, the digital signature algorithm is selected from RSA or elliptic curve signature algorithm, and the message authentication code is selected from HMAC.
5. The method according to claim 1, wherein integrity verification is triggered in at least one scenario: inventory count, external distribution approval, cross-warehouse transfer, restoration update, quality inspection accounting, or scheduled inspection.
6. The method according to claim 1, wherein the correction event includes a correction, invalidation or supplementation event, and the correction event includes the EventID of the event being corrected and the correction reason field, thereby forming a correction chain.
7. The method according to claim 1, wherein the full-cycle operation includes one or more of the following: warehousing, sampling, packaging, transfer, rejuvenation and renewal, quality inspection, inventory, external distribution, and scrapping.
8. The method according to claim 1, wherein LocationID is a hierarchical code, including warehouse location, warehouse number, frame number, layer number, and position number; the preferred coding rule is LocationID = PY-<warehouse>-F<frame three-digit>-L<layer two-digit>-P<position two-digit>, wherein the warehouse is 01 or 02, the frame is F001–F120, the layer is L01–L06, and the position is P01–P48.
9. A quinoa germplasm resource management and traceability system, characterized in that, include: The event acquisition module is used to generate event logs; The event ledger module is used to store event records in an append-only manner and generate the preceding summary value, the current summary value, and the authentication value for each event record. The integrity verification module is used to verify the continuity of the preceding digest value chain, the consistency of the current digest value, and the validity of the authentication value, and generates an audit alarm when errors occur. The traceability query module is used to output traceability links and audit reports.
10. The system according to claim 9 further includes an access control module and an audit module for hierarchical access control and key operation logging.
11. An electronic device comprising a processor and a memory, the memory storing a computer program that, when executed by the processor, implements the method of any one of claims 1-8.
12. A computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method of any one of claims 1-8.