Method for generating and verifying digital identity of goji berry based on space-time multi-dimensional code

By constructing a chemical fingerprint baseline database of goji berry production areas and BeiDou satellite grid coding, combined with IoT and blockchain technologies, a spatiotemporal multidimensional code digital identity is generated, which solves the problem of raw material mixing in the goji berry traceability system and achieves dual locking of production areas and full-process traceability.

CN123140979APending Publication Date: 2026-11-20NINGXIA INST OF AGRI PROD QUALITY STANDARDS & TESTING TECH (NINGXIA AGRI PROD QUALITY MONITORING CENT)
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611354860.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-03
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

The existing goji berry traceability system cannot accurately pinpoint the product's origin, and there is a problem of raw material mixing. It also lacks a dual verification mechanism at both the chemical and spatial levels, which makes it impossible to guarantee the authenticity of the place of origin.

Method used

A chemical fingerprint baseline database of wolfberry production areas is constructed. Combined with the spatial grid coding of the Beidou satellite navigation system, field data is collected through IoT devices to generate digital identities based on spatiotemporal multidimensional codes. Blockchain is used for evidence storage to achieve full-process traceability of products.

Benefits of technology

This achieves transparent trust transfer from farm to table, ensuring the authenticity of product origin, preventing data tampering, and effectively preventing goji berries from other regions from being passed off as local products.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123140979A_ABST
    Figure CN123140979A_ABST
Patent Text Reader

Abstract

The application discloses a method for generating and verifying digital identity of Chinese wolfberry based on space-time multi-dimensional code, and relates to the technical field of agricultural product traceability. A chemical fingerprint background database of Chinese wolfberry origin is constructed, and planting bases are divided into spatial grid units with unique space-time codes based on Beidou subdivision grid coding technology. Internet of Things equipment is deployed to automatically collect field data and perform space-time consistency verification, and raw materials are subjected to rapid chemical fingerprint detection and comparison when entering the warehouse. A space-time multi-dimensional code digital identity is generated, and the grid code and chemical fingerprint detection results are connected and stored on the blockchain. Users can scan the multi-dimensional code to query and verify the product identity and the authenticity of the origin. The application realizes the chemical and spatial double locking of the authenticity of the Chinese wolfberry origin, and eliminates the origin mixing and data distortion from the source.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of agricultural product traceability technology, and in particular to a method for generating and verifying a unique digital identity for goji berries based on spatiotemporal multidimensional codes. Background Technology

[0002] Goji berries, as an important geographical indication agricultural product, are best known for their production areas such as Zhongning in Ningxia and Jinghe in Xinjiang. However, in the actual operation of the goji berry supply chain, there is a phenomenon of mixing raw materials from different production areas in some bulk goji berry supply chains. Products labeled as originating from a certain geographical indication production area are actually mixed with raw materials from other production areas, making it impossible to guarantee the authenticity of the origin of the final product.

[0003] Existing traceability systems mainly rely on manual records and barcode labels. On the one hand, traditional traceability codes only record general place names and lack a precise binding mechanism with physical plots, making it impossible to pinpoint the true origin of products from a spatial perspective. This makes it difficult to effectively curb the practice of selling goji berries from other regions as local products from a technical standpoint. On the other hand, existing traceability systems only record the place information claimed by the producers and lack an independent verification mechanism based on the product's own physicochemical characteristics, making it impossible to scientifically verify the authenticity of place claims.

[0004] To address the aforementioned issues, existing research has attempted to identify the origin of goji berries using fingerprinting technology. For example, patent application number 202111407434X discloses a method for identifying the origin and storage period of goji berries based on multidimensional fingerprinting. This method establishes a standard fingerprint database for goji berries from different origins and calculates the comprehensive similarity between the sample to be tested and the standard fingerprints to identify the origin. Furthermore, spatiotemporal coding technology has also been explored in the field of agricultural product traceability. For instance, patent application number 2026108173995 discloses a product traceability method based on spatiotemporal codes and dynamic key-derived chains. This method generates multidimensional spatiotemporal continuous codes by acquiring the source spatiotemporal data of physical entities and constructs a supply chain key-derived chain to achieve reverse traceability. Patent application number 2026101525476 discloses a method for aggregating agricultural product data across the entire supply chain based on spatiotemporal coding and blockchain notarization. This method achieves data aggregation by creating on-chain digital entities corresponding to agricultural product batches on the blockchain network.

[0005] However, fingerprinting technology is mainly used in laboratory sampling and has not yet been organically integrated with the "one item, one code" digital identity system in product circulation, failing to establish a complete chain of origin authenticity verification from farm to table. Existing spatiotemporal coding technologies mainly address the issue of reliable evidence storage for data flow, lacking a dual verification mechanism at both physical and chemical levels for the authenticity of the source data itself, i.e., whether the raw materials actually originate from the claimed geographical area. Therefore, this paper proposes a method for generating and verifying the one-item-one-code digital identity for goji berries based on spatiotemporal multidimensional codes. Summary of the Invention

[0006] The main objective of this invention is to provide a method for generating and verifying the unique digital identity of goji berries based on spatiotemporal multidimensional codes, which can effectively solve the technical problems of raw material "mixing" and source "distortion" in the existing goji berry traceability system.

[0007] To achieve the above objectives, this invention provides a method for generating and verifying a unique digital identity for goji berries based on spatiotemporal multidimensional codes, comprising the following steps: Step S1, Identifying the Origin: A baseline database of chemical fingerprints for wolfberry production areas was constructed. Wolfberry samples from multiple years, varieties, and locations in core production areas were collected. At least one of the following methods was used: high-performance liquid chromatography (HPLC), gas chromatography-mass spectrometry (GC-MS), or ultra-high-performance liquid chromatography-quadrupole time-of-flight mass spectrometry (UPLC-Q-TOF-MS). This extracted a set of characteristic fingerprint indicators strongly correlated with the production area, forming standard fingerprint profiles for each production area. These characteristic fingerprint indicators include the content and proportion of mineral elements, and stable isotope ratios (such as δ¹⁸O₂). 13 C、δ 15 N, δ 2 H), a multivariate fingerprint spectrum of Lycium barbarum polysaccharides (including UV fingerprint spectrum, HPSEC fingerprint spectrum, IR spectral fingerprint spectrum), and a fingerprint spectrum of Lycium barbarum leaf polyphenols, at least one of the following:

[0008] Simultaneously, based on the global grid coding technology of the BeiDou Navigation Satellite System, the goji berry planting base is divided into spatial grid units with unique spatiotemporal codes. These unique spatiotemporal codes include time coding segments and spatial coding segments, with the time coding segment accurate to the second and the spatial coding segment accurate to the centimeter level. Each grid unit is then linked to land ownership, variety information, and theoretical yield. The theoretical yield is determined based on the grid unit area, goji berry tree age, and variety, thus achieving source-level land ownership confirmation.

[0009] Step S2, Data Collection and Access Verification: IoT sensing devices, including temperature and humidity sensors, soil multi-parameter monitoring modules, light intensity sensors, and GPS positioning devices, are deployed within each grid unit to automatically collect field environmental parameters and agricultural operation data. The system compares the GPS trajectory of the agricultural operation data collection terminal with the electronic fence range of the corresponding grid unit in real time. Only when the operation trajectory is within the electronic fence is the collected data recorded as valid data, thus achieving spatiotemporal consistency verification.

[0010] Upon arrival of raw materials, each batch of goji berries undergoes rapid chemical fingerprint testing using near-infrared spectroscopy or portable mass spectrometry. The results are then compared and verified against the standard fingerprint spectrum obtained in step S1. The comparison and verification employs a pre-defined chemometric discriminant model to determine the origin of the goji berries. This model is established based on the standard fingerprint spectrum using principal component analysis-linear discriminant analysis (PCA-LDA) or partial least squares-discriminant analysis (PLS-DA). Only raw materials that pass the verification are allowed to proceed to subsequent processing stages.

[0011] Step S3, Digital Identity Generation and On-Chain Evidence Storage: Each verified product is assigned a unique spatiotemporal multidimensional code digital identity. This spatiotemporal multidimensional code is either a three-dimensional graphic code based on color layering or a multi-layered stacked graphic code. Its encoding structure includes a time encoding segment, a spatial encoding segment, a product batch encoding segment, and an anti-counterfeiting encryption encoding segment generated using an asymmetric encryption algorithm. The spatiotemporal multidimensional code is forcibly associated with the grid encoding in step S1 and the chemical fingerprint detection results in step S2. The digital identity is also associated with the product's entire production process data, processing parameters, logistics information, quality inspection reports, geographical indication certification marks, etc. Geographical indication certification marks include geographical indication certification trademarks, geographical indication special marks, agricultural product geographical indications, and enterprise trademarks.

[0012] All data associated with the digital identity is stored on the blockchain via a smart contract. The smart contract includes data verification logic to check whether the data to be uploaded contains complete grid codes and chemical fingerprint verification results; if the verification fails, the data is rejected from being uploaded. The data block structure of the traceability evidence chain includes: traceability pointer code, spatiotemporal code, product status code, public key and signature data of the person responsible for supply chain flow, chemical fingerprint feature data, and hash value of the preceding block, forming an immutable traceability evidence chain.

[0013] Step S4, Terminal Verification: End users scan the spatiotemporal multidimensional code to decode and obtain a digital identity. They then query the traceability evidence chain on the blockchain to obtain the product's entire lifecycle data. The front-end visualization system displays the entire process information of the product from planting, harvesting, processing to transportation in a timeline mode, highlighting the geographical location information corresponding to the grid code and the verification results of the chemical fingerprint. The verification results include a "origin matching pass / mismatch" judgment.

[0014] Preferably, the present invention also includes early warning and response: When the chemical fingerprint comparison verification fails in step S2, the system automatically marks the batch of raw materials as "place of origin questionable" and freezes its subsequent circulation qualification; when the system detects that the cumulative output of any grid unit exceeds the theoretical output bound in step S1, it automatically triggers an "abnormal production capacity" warning; the warning information is stored on the blockchain and pushed to the regulatory node. Beneficial effects

[0015] Compared with the prior art, the present invention has the following beneficial effects: This solution establishes a baseline database of chemical fingerprints for goji berries from their production areas, utilizes modern instrumental analysis techniques to extract characteristic fingerprint indicators that are strongly correlated with the production area, and combines this with spatial grid coding based on the BeiDou satellite navigation system to achieve a dual "chemical + spatial" lock on the authenticity of the product's production area. This ensures that once the raw materials leave the specific production area, they cannot pass identity verification, thus technically solving the problem of "goji berries from other regions being passed off as local products."

[0016] This solution deploys IoT sensing devices within each grid unit to automatically collect field environmental parameters and agricultural operation data. Combined with real-time comparison of GPS tracks and electronic fences, it ensures that the data is truly linked to specific plots, eliminating the possibility of data embellishment and tampering under traditional manual recording methods.

[0017] This solution stores all chemical fingerprint test results, grid codes, and end-to-end data on the blockchain, leveraging its immutability to solidify the evidence chain. End consumers can scan the code to obtain a clear determination of "origin matching passed / not matched," achieving transparent and trust-based transmission from farm to table. Attached Figure Description

[0018] Figure 1 This is a flowchart illustrating the method for generating and verifying the unique digital identity of wolfberry based on spatiotemporal multidimensional codes according to the present invention.

[0019] Figure 2 This is a schematic diagram illustrating the process of constructing the wolfberry origin chemical fingerprint baseline database of this invention.

[0020] Figure 3 This is a schematic diagram of the spatial grid coding division based on the BeiDou satellite navigation system according to the present invention.

[0021] Figure 4 This is a schematic diagram of the deployment and spatiotemporal consistency verification process of IoT sensing devices according to the present invention. Detailed Implementation

[0022] To make the purpose, technical solution, and advantages of this application clearer, the following description is provided in conjunction with the appendix. Figures 1 to 4The present application will be further described in detail below with reference to embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.

[0023] Example 1: Construction of Origin Chemical Fingerprint Database and Establishment of Discriminant Model Sample collection: Taking the core production area of ​​Ningxia Zhongning wolfberry as the target, no less than 200 wolfberry samples were collected from different townships, different tree ages (3 years, 5 years, 8 years), and different years (three consecutive harvest seasons) in this production area. At the same time, 50 control samples were collected from other major production areas such as Jinghe in Xinjiang and Jingyuan in Gansu.

[0024] Chemical fingerprint data determination: 1) Mineral element determination: The contents of more than 14 mineral elements, including K, Ca, Na, Mg, Cu, Mn, Zn, Fe, Sr, Ba, Cr, Co, Ni, and Se, in the sample were determined by inductively coupled plasma mass spectrometry (ICP-MS) and denoted as vectors. , where n is the number of element types.

[0025] 2) Stable isotope ratio determination: The stable isotope ratio of the sample was determined using an elemental analyzer-stable isotope ratio mass spectrometer (EA-IRMS). Stable isotope ratios: Where X is the isotope to be tested ( or ), The ratio of heavy to light isotope abundance in the sample to be tested (e.g.) ), This refers to the corresponding isotope ratio of the international standard.

[0026] 3) Establishment of Lycium barbarum polysaccharide fingerprinting: Lycium barbarum polysaccharides were extracted using hot water extraction. UV standard fingerprinting (recording the ultraviolet absorption spectrum in the wavelength range of 190-600 nm), HPSEC standard fingerprinting (recording the molecular weight distribution curve), and IR standard fingerprinting (recording the molecular weight distribution curve) were established respectively. (Infrared absorption spectrum within the range).

[0027] Multidimensional fingerprint data fusion and normalization processing: Mineral element content data, stable isotope ratio data, and various spectral fingerprint data are concatenated into a fused feature vector. , where d is the total dimension of the fused features. Z-score normalization is performed on the data for each dimension: ; in Let j be the mean of the j-th feature across all samples. Standard deviation, These are the normalized eigenvalues.

[0028] PCA dimensionality reduction and PLS-DA discriminant model establishment: The normalized fused feature data are used to construct a matrix. Where N is the total number of samples and d is the feature dimension. Dimensionality reduction is performed using Principal Component Analysis (PCA): T = XW, where... The loading matrix is ​​formed by the eigenvectors corresponding to the first k largest eigenvalues. The score matrix is ​​denoted by k, which is the number of principal components retained (determined by a cumulative variance contribution rate ≥ 85%).

[0029] Using the PCA-reduced score matrix T as the independent variable, the sample origin category label... (C represents the number of origin categories) is the dependent variable. A partial least squares-discriminant analysis (PLS-DA) model is established. PLS-DA reduces dimensionality by maximizing the covariance between the independent and dependent variables: T = XR, where R is the weight matrix, maximizing the covariance between T and Y. Leave-one-out cross-validation is used to determine the optimal number of latent variables L. The model output is the predicted probability that the sample belongs to each origin category. ; Where t is the PLS-DA score vector of the new sample. Let be the regression coefficient vector of class c.

[0030] Origin matching similarity calculation: For the sample to be tested, its similarity to the standard fingerprint of the c-th place of origin is calculated using the generalized cosine of the included angle method: ; in The normalized feature vector of the sample to be tested. Let be the average feature vector of all samples from origin c. Set the origin matching threshold to Sim ≥ 0.90.

[0031] Example 2: Spatiotemporal grid coding of a wolfberry planting base Global mesh encoding generation: Taking a goji berry planting base with geographical indication certification in Jinghe County, Xinjiang as an example, the base covers a total area of ​​approximately 200 mu (about 33 acres). Based on the global subdivision grid coding technology of the BeiDou satellite navigation system, the GeoSOT geospatial subdivision model is used to divide the planting area into standardized spatial grid units.

[0032] The GeoSOT model performs a multi-level hierarchical subdivision of Earth's space, establishing the following encoding mapping: ; Where λ is longitude (-180° to 180°), φ is latitude (-90° to 90°), h is altitude (unit: meters), and level is the subdivision level (value range 0-32, corresponding to global to centimeter-level resolution). The encoding G is a binary string with a length of 4 × level bits, where the first bit is the sign bit, bits 2-32 are the latitude encoding, bits 33-63 are the longitude encoding, and bits 64 and above are the altitude encoding.

[0033] In this embodiment, level=26 is selected, corresponding to a grid size of approximately 10m × 10m. The precise location of the grid cells is defined by the latitude and longitude coordinates of the four corners: ; in and It is uniquely determined by the level value.

[0034] Time-coded segment generation: Where t is the time-coded segment value, and UnixTimestamp is the current Unix timestamp (accurate to the second). The preset time base is (00:00:00 on January 1, 2020), and Δt is the time granularity (1 second). The complete spatiotemporal encoding is: ; Where G is the spatial code (104 bits), and binary(t,32) is the 32-bit binary representation of the time code, totaling 136 bits, which is unique globally.

[0035] Theoretical yield verification model: Theoretical yield of grid cells The following empirical model was used for calculation: ; in: Let be the area (in acres) of the i-th grid cell, calculated using the latitude and longitude coordinates of the four corners of the grid. For small-scale grids with sides approximately 10 meters long, the spherical infinitesimal element approximation formula is used: ; Where R is the average radius of the Earth (6371 km), Δλ is the longitude span (in radians) of the grid, and φ is the latitude (in radians) of the grid center; this method is based on a small-angle approximation, and the error is negligible at the centimeter-level grid scale, providing sufficient engineering accuracy. For higher accuracy, the formula for the area of ​​a spherical trapezoid can be used for correction; The benchmark yield (unit: kg / mu) is determined based on the average yield of this variety over the past 3 years. α is the tree age correction factor, with α=0.6 for 3-year-old trees, α=1.0 for 5-year-old trees, and α=1.2 for 8-year-old trees; β(T) is the temperature stress correction factor. Where T is the average daily temperature during the reproductive period. This is the optimal growth temperature for this variety (e.g., 28℃). Temperature tolerance parameter (taken as 5℃); γ(S) is the soil fertility correction coefficient, which is determined by combining the soil organic matter content, pH value, and electrical conductivity measured by the sensor. ; in, The normalized organic matter content index. The optimal pH value is 7.5. It is the normalized conductivity index.

[0036] Production warning threshold setting: Set the cumulative output warning threshold for the i-th grid cell. When the cumulative output When the output exceeds the warning threshold, the system will automatically trigger a "production capacity anomaly" warning.

[0037] Example 3: IoT Data Acquisition and Spatiotemporal Consistency Verification IoT Sensing Device Deployment: An integrated IoT data acquisition terminal is deployed within each grid cell, integrating temperature and humidity sensors, soil pH and conductivity monitoring modules, light intensity sensors, and a GPS positioning module. The device samples every 10 minutes. The sensing data vector of the i-th grid cell at time t is: ; The device uploads data to the platform in real time via NB-IoT or 4G / 5G networks.

[0038] Spatiotemporal consistency verification algorithm: Harvesting personnel are equipped with mobile devices running a dedicated app. Upon startup, the app continuously acquires GPS location sequences at a frequency of 1Hz. Where m is the total number of location sampling points in this harvesting operation.

[0039] Define the electronic fence of the i-th grid cell as a polygonal region. Its boundary is determined by the vertex coordinate sequence. Definition. The ray casting method is used to determine GPS sampling points. Is it in internal: ; The condition for passing the verification is defined as follows: the proportion of sampling points falling within the electronic fence exceeds the threshold η (η is set to 0.80): ; Define the spatial validity of the harvested data as Define the harvesting time. Harvesting must be done within the time window allowed by the grid. Inside: ; If and only if and At that time, the data collected in that batch is recorded as valid data by the system and automatically associated with the corresponding grid code.

[0040] Example 4: Rapid Detection of Chemical Fingerprints and Verification of Origin Portable near-infrared spectroscopy rapid detection: Upon raw material receipt, samples are taken from each batch (not exceeding 500 kg per batch), and diffuse reflectance spectra are collected using a portable near-infrared spectrometer in the 1000-2500 nm wavelength range. Each spectrum is... The absorbance values ​​at each wavelength point constitute: ,in (Corresponding wavelength interval 1nm).

[0041] Spectral preprocessing: The original spectrum was smoothed using a standard normal variable transformation (SNV) and Savitzky-Golay convolution (window width 15 points, polynomial order 3): ; in is the PLS-DA score vector of the sample to be tested (p is the number of latent variables). Let be the average score vector of all training samples from the c-th origin.

[0042] The overall similarity score is the maximum value among all origin categories: ; The rules for determining the place of origin are as follows: like The origin matching is successful, and the output result is: Similar place of origin; like The batch of raw materials was automatically frozen as it was deemed to have "questionable origin".

[0043] Example 5: Spatiotemporal Multidimensional Code Digital Identity Encoding Structure and Generation Multidimensional code encoding structure: Spatiotemporal multidimensional codes are three-dimensional graphic codes based on the layered overlay of CMYK four colors, with each layer being an independent DataMatrix or QR code matrix. A single-layer code matrix is ​​m×m (m ranges from 100 to 300), and the color value of each cell is selected from the four CMYK colors: ; Encoded information mapping: The spatiotemporal multidimensional code encoded information vector V is composed of the following fields: ; Where Type is the encoding type identifier (8 bits). This is a time-coded segment (32 bits). This is a spatial coding segment (104 bits, i.e., GeoSOT coding). Product batch number (48 digits, supports approximately...) (Batch number), Sig is the digital signature (512 bits).

[0044] The digital signature Sig is generated using the SM2 national standard asymmetric encryption algorithm: Where sk is the enterprise's private key, and H(·) is the SM3 hash algorithm (outputs a 256-bit hash value). This refers to the aforementioned encoded information excluding Sig.

[0045] Information capacity calculation: Total number of bits of information after four layers of stacking: Compared to a regular QR code (Version 40 has a maximum capacity of approximately 2953 bytes, or approximately 23624 bits), this 3D code has four times the information capacity of a regular QR code of the same area.

[0046] Spatiotemporal multidimensional code generation process: Step 1: Divide V into 4 subsequences These are mapped to four layers: Cyan, Magenta, Yellow, and Key, respectively. Step 2: Perform Reed-Solomon error correction coding on each subsequence layer to generate the corresponding QR code matrix. ; Step 3: Overlay the four layers of QR codes in CMYK color space to generate the final multidimensional code image.

[0047] Example 6: Blockchain Evidence Chain Data Structure and Smart Contract Verification Data block structure definition: A single data block in the chain of evidence The following structured definition is adopted: ; The fields are defined as follows: Block number (incrementing from 0); : Block generation timestamp (Unix time, accurate to the second); : The complete spatiotemporal encoding of product association; Product current status code (planting → harvesting → processing → testing → warehousing → logistics → sales); : The public key of the person responsible for the flow of goods in the supply chain; : Signing key data in a block using the responsible person's private key; : Hash digest of chemical fingerprint detection results (SM3); : Hash value of the preceding block (this field is all 0s in the genesis block); Workload proof of random numbers.

[0048] Block hash calculation: Block The hash value is calculated using the following formula: ; Where H(·) is the SM3 cryptographic hash algorithm. Proof-of-work requires hash... n The first d bits are 0 (d is 24, which corresponds to a hash operation difficulty of about 16.7M).

[0049] Smart contract on-chain verification logic: When a smart contract receives a request to upload data to the blockchain, it performs the following verification process: : Verification 1: Integrity Check ("Missing spatiotemporal coding") ("Missing chemical fingerprint") Verification 2: Spatiotemporal encoding format verification ("Spatiotemporal coding length abnormal") ("Timecode is earlier than system base time") Verification 3: Digital Signature Verification ("Digital signature verification failed") Verification 4: Preorder hash matching verification (non-genesis block) ("Preorder hash mismatch") .

[0050] Example 7: Terminal QR code verification and visual display Decoding and verification process: Consumers scan the spatiotemporal multi-dimensional code on the product packaging with their smartphones. The client app then calls the decoding module and executes the following steps in sequence: Step 1: Image Acquisition and Preprocessing. The multi-dimensional barcode image I is acquired using the mobile phone camera and then converted to grayscale, binarized, and tilted.

[0051] Step 2: Layered Decoding. The corrected image is separated into four channels: CMYK. Each layer is then decoded using a QR code to extract sub-sequences. , and reassembled into a complete information vector V.

[0052] Step 3: Signature Verification. Extract the digital signature Sig and public key PubKey from V, and verify the signature validity: Warning: Digital signature verification failed; product may have been counterfeited. Step 4: Blockchain query. (Based on the decoded data.) Use this as an index to query all records on the blockchain from the genesis block to the latest block: ,and ; Step 5: Visual Display. The front-end system displays complete product lifecycle information in a timeline format, including: 1) Source information: "Plot No. XX, XX Town, Jinghe County, Xinjiang (Grid Code: JH-2026-073-015)", marked with latitude and longitude coordinates ( ); 2) Origin verification information: "Chemical fingerprint origin matching verification: Passed (Similarity Sim=0.96, Classification: Jinghe wolfberry)"; 3) Agricultural records: Displays the time of each fertilization and irrigation and IoT sensor data in chronological order. Each record contains an associated grid code and timestamp. 4) Processing Information: Displays the drying temperature curve (temperature value and duration), processing time, and processing plant information; 5) Logistics Information: Displays the time, geographical location, and transportation environment temperature data of each transit node.

[0053] In this example, a trust scoring mechanism can also be set up: Based on the query results, the system automatically calculates the product's overall trust score. : ; in: To match the origin of chemical fingerprints with similarity scores (0-1), the weights are... ; For timeline information coverage (0-1), the weight is... ; Weighting for supply chain completeness (number of covered nodes / number of standard nodes) ; The weight of the geographical indication certification mark verification pass rate (0-1). .

[0054] when At that time, the interface displays the "Certified Product" logo for consumers to refer to when making a decision.

[0055] The foregoing has shown and described the basic principles, main features, and advantages of the present invention. Those skilled in the art should understand that the present invention is not limited to the above embodiments. The embodiments and descriptions in the specification are merely illustrative of the principles of the invention. Various changes and modifications can be made to the invention without departing from its spirit and scope, and all such changes and modifications fall within the scope of the present invention as claimed. The scope of protection of this invention is defined by the appended claims and their equivalents.

Claims

1. A method for generating and verifying a unique digital identity for goji berries based on spatiotemporal multidimensional codes, characterized in that, Includes the following steps: S1. Construct a chemical fingerprint baseline database of wolfberry production areas, extract a set of characteristic fingerprint indicators that are strongly correlated with the production area from wolfberry samples in the core production area, and form a standard fingerprint map of each production area; Based on the global segmentation grid coding technology of the Beidou satellite navigation system, divide the wolfberry planting base into spatial grid units with unique spatiotemporal codes, and bind the grid units with land ownership and theoretical yield to realize the confirmation of the source of production area. S2, deploy IoT sensing devices in each grid cell to automatically collect field environmental parameters and agricultural operation data, and verify the spatiotemporal consistency of the data with the corresponding grid code; When raw materials enter the warehouse, each batch of goji berries undergoes rapid chemical fingerprint testing. The test results are compared and verified with standard fingerprint spectra. Only raw materials that pass the verification are allowed to proceed to the next stage. S3, generate a unique spatiotemporal multidimensional code digital identity for each verified product, wherein the spatiotemporal multidimensional code is forcibly associated with the grid coding of step S1 and the chemical fingerprint detection result of step S2; and store all data associated with the digital identity on the blockchain to form an immutable traceability evidence chain. S4 allows end users to scan a spatiotemporal multi-dimensional code to query and verify the product's digital identity information and place of origin through blockchain.

2. The method for generating and verifying a unique digital identity for wolfberries based on spatiotemporal multidimensional codes according to claim 1, characterized in that, The characteristic fingerprint indicators strongly correlated with the place of origin include at least one of the following: mineral element content and ratio, stable isotope ratio, organic component fingerprint spectrum, and wolfberry leaf polyphenol fingerprint spectrum; the standard fingerprint spectrum is established by at least one of the following methods: high performance liquid chromatography, gas chromatography-mass spectrometry, or ultra-high performance liquid chromatography-quadrupole time-of-flight mass spectrometry.

3. The method for generating and verifying a unique digital identity for wolfberries based on spatiotemporal multidimensional codes according to claim 1, characterized in that, The global grid coding is a globally unique code generated based on a multi-level discrete partitioning model of Earth space. The unique spatiotemporal code includes a time coding segment and a spatial coding segment. The theoretical yield is determined based on the grid cell area, wolfberry tree age, and variety.

4. The method for generating and verifying a unique digital identity for wolfberries based on spatiotemporal multidimensional codes according to claim 1, characterized in that, The IoT sensing devices include a temperature and humidity sensor, a soil multi-parameter monitoring module, a light intensity sensor, and a GPS positioning device; the spatiotemporal consistency verification is as follows: the system compares the GPS trajectory of the agricultural operation data collection terminal with the electronic fence range of the corresponding grid unit in real time, and only when the operation trajectory is inside the electronic fence is the collected data recorded as valid data.

5. The method for generating and verifying a unique digital identity for wolfberries based on spatiotemporal multidimensional codes according to claim 1, characterized in that, The rapid detection of chemical fingerprints employs near-infrared spectroscopy or portable mass spectrometry; the comparison and verification uses a pre-set chemometric discriminant model to determine the place of origin. The discriminant model is established based on the standard fingerprint spectrum in step S1 through principal component analysis-linear discriminant analysis or partial least squares-discriminant analysis.

6. The method for generating and verifying a unique digital identity for wolfberries based on spatiotemporal multidimensional codes according to claim 1, characterized in that, The spatiotemporal multidimensional code is either a three-dimensional graphic code based on color layer overlay or a multidimensional graphic code based on multi-layer stacking; the digital identity is also associated with at least one of the following information: full-process production data of the product, processing parameters, logistics information, quality inspection report, and geographical indication certification mark.

7. The method for generating and verifying a unique digital identity for wolfberries based on spatiotemporal multidimensional codes according to claim 1, characterized in that, The blockchain-based on-chain evidence storage adopts a blockchain smart contract, which includes data on-chain verification logic and traceability triggering logic. The data on-chain verification logic verifies whether the data to be uploaded to the chain contains complete grid code and chemical fingerprint verification results. If the verification fails, the data is rejected from being uploaded to the chain.

8. The method for generating and verifying a unique digital identity for wolfberries based on spatiotemporal multidimensional codes according to claim 1, characterized in that, The data block structure of the traceability evidence chain includes: traceability pointer encoding, spatiotemporal encoding, product status encoding, public key and signature data of the person responsible for supply chain flow, chemical fingerprint feature element data and hash value of the preceding block.

9. The method for generating and verifying a unique digital identity for wolfberries based on spatiotemporal multidimensional codes according to claim 1, characterized in that, The end-user verification process includes: scanning the spatiotemporal multidimensional code and decoding it to obtain a digital identity identifier; querying the traceability evidence chain on the blockchain to obtain product lifecycle data; and the front-end visualization system displaying the entire process information of the product from planting, harvesting, processing to transportation in a timeline mode, highlighting the geographical location information corresponding to the grid code and the verification results of the chemical fingerprint.

10. The method for generating and verifying a unique digital identity for wolfberries based on spatiotemporal multidimensional codes according to any one of claims 1-9, characterized in that, Also includes: When the chemical fingerprint comparison verification fails in step S2, the system automatically marks the batch of raw materials as "place of origin questionable" and freezes its subsequent circulation qualification. When the system detects that the cumulative output of any grid cell exceeds the theoretical output bound in step S1, it automatically triggers a "production capacity anomaly" warning. The warning information is stored on the blockchain and pushed to the regulatory node.