A blockchain-based food safety monitoring and digital traceability system

By using multi-channel biosensor detection and cryptographic evidence generation, the problems of hardware authentication and environmental authenticity in existing food traceability systems have been solved, thus achieving the integrity and credibility of food safety monitoring and digital traceability.

CN123160174APending Publication Date: 2026-11-24GUANGZHOU FUCHI TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611265086.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-20
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing blockchain-based food safety traceability systems cannot verify the authenticity of biosensor detection data before it is uploaded to the blockchain, cannot identify structural traceability gaps where single-indicator detection masks multiple risk indicators, and cannot prevent the replacement of sensor hardware identity and the falsification of detection behavior environment.

Method used

Employing a multi-channel biosensor detection layer, a hardware-level oracle binding layer, a cryptographic evidence generation layer, and a blockchain storage and verification layer, the system achieves hardware identity binding, environmental information collection, and cryptographic evidence generation through a multi-channel microfluidic biosensor array chip, edge computing chip, and smart contracts. This generates hardware-sample joint fingerprints and dynamic encrypted salts, enabling zero-knowledge proofs and digital signatures to ensure the authenticity and integrity of the data.

Benefits of technology

It effectively prevents sensor hardware replacement and detection environment falsification, ensures the authenticity and integrity of detection data, eliminates the traceability gap caused by single-index detection covering multiple risk indicators, and improves the credibility of traceability information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123160174A_ABST
    Figure CN123160174A_ABST
Patent Text Reader

Abstract

This invention discloses a blockchain-based food safety monitoring and digital traceability system, relating to the fields of food safety and blockchain traceability technology. The system includes a multi-channel biosensor detection layer, a hardware-level oracle binding layer, a cryptographic evidence generation layer, and a blockchain storage and verification layer. It extracts hardware physical feature vectors and fuses them with sample biochemical response feature vectors to generate a hardware-sample joint fingerprint, binding the sensor hardware identity with the food sample identity. It collects environmental temperature, humidity, and micro-vibration signals to generate dynamic encrypted salts, combining detection data to generate commitment values, zero-knowledge proofs, and digital signatures. Through multi-channel parallel detection and smart contract coverage verification, it eliminates structural traceability gaps. This invention can block paths to hardware replacement, data replay, and falsification due to missing indicators, improving the authenticity and completeness of traceability data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of food safety and blockchain traceability technology, specifically to a blockchain-based food safety monitoring and digital traceability system. Background Technology

[0002] In recent years, blockchain technology has been widely used in food safety monitoring and digital traceability due to its decentralized, tamper-proof, and end-to-end traceability characteristics. Electrochemical biosensing technology, especially pesticide residue, heavy metal, and pathogen detection technology based on screen-printed electrodes, has become one of the mainstream methods for rapid food detection due to its advantages of low cost and fast response speed. At the same time, edge computing chips, represented by microcontroller chips, have the computing power to run lightweight cryptographic algorithms such as elliptic curve digital signature algorithms and hash digest algorithms, and can complete the necessary cryptographic operations locally on resource-constrained detection terminals. Consortium blockchain architecture has also been widely used to build distributed ledger systems for food traceability, providing the hardware and platform foundation for the deep integration of electrochemical biosensing technology and blockchain evidence storage technology.

[0003] Existing blockchain food traceability systems typically rely on personnel using testing instruments to complete tests. The results are then uploaded to the blockchain node in the form of a data form via host computer software, mobile applications, or IoT gateways. A typical implementation involves personnel using portable electrochemical sensors to test food samples for one or a few indicators, obtaining raw electrical signals. The devices or host computers process these signals to obtain numerical test results. These results, along with manually entered sample numbers and testing timestamps, are packaged in a data form via a gateway or mobile application. The packaged data is then uploaded to the blockchain node via the IoT gateway, where a consensus mechanism writes it into a block and generates a timestamp and hash value for subsequent querying and traceability. Some improved solutions automate the collection and uploading of test data using IoT devices, reducing manual data entry. However, the underlying technology still involves directly writing the electrical signal values ​​output by the sensors into the blockchain as a trusted data source without cryptographically verifying the authenticity of the values ​​during the generation process or binding or verifying the identity of the sensing hardware itself.

[0004] The aforementioned existing technologies have the following drawbacks: First, because existing solutions only directly upload the electrical signal values ​​output by the sensor as a trusted data source to the blockchain without verifying the identity of the sensor hardware, malicious actors can physically replace the sensor probe or tamper with the electrical signal transmission link to allow false data to enter the blockchain as legitimate detection data. The immutability of the blockchain only protects the false data from secondary tampering after it is uploaded to the chain; it cannot trace the fact that the data was forged before being uploaded. In other words, existing systems cannot solve the specific problem of the oracle dilemma, a recognized challenge in the blockchain field, in the context of food biosensing detection. Second, because existing solutions do not collect the environmental spatiotemporal information at the time of detection and cryptographically combine it with the detection data... Furthermore, due to several issues, malicious actors can launch data replay attacks by substituting qualified samples for testing or reusing historical qualified data. The on-chain data itself cannot prove that the testing actually occurred at the claimed time and in the real physical environment. Thirdly, since existing solutions typically only test and record single or a few indicators on the chain, and smart contracts do not verify the completeness of the tested indicators, when a key safety indicator is not tested but the overall record shows that the test is qualified, a structural traceability gap is formed that conceals the real risk. Consumers and regulators find it difficult to identify the existence of this gap, thus greatly reducing the completeness and credibility of traceability information. To address these issues, we propose a blockchain-based food safety monitoring and digital traceability system. Summary of the Invention

[0005] The purpose of this invention is to provide a blockchain-based food safety monitoring and digital traceability system.

[0006] To address the aforementioned deficiencies in existing technologies, the technical problem this invention aims to solve is that existing blockchain-based food safety traceability systems can only guarantee that detection data is not tampered with after being uploaded to the blockchain, but cannot verify the authenticity of biosensor detection data before it is uploaded to the blockchain or during the mapping process from the physical domain to the digital domain. Specifically, it cannot verify whether the identity of the sensor hardware used in the detection activity is genuine or has been replaced, whether the detection activity actually occurred at the claimed time and in the real physical environment, and the structural traceability gap problem of single-indicator detection masking multiple risk indicators has not been identified and eliminated by existing technologies.

[0007] To address the aforementioned technical problems, this invention provides a blockchain-based food safety monitoring and digital traceability system. This system includes a multi-channel biosensor detection layer that works in concert with each other, a hardware-level oracle binding layer, a cryptographic evidence generation layer, and a blockchain storage and verification layer.

[0008] The multi-channel biosensor detection layer includes a multi-channel microfluidic biosensor array chip. The chip is provided with a common inlet, a microfluidic shunt channel network connected to the common inlet, and multiple detection branches distributed and connected by the microfluidic shunt channel network. Each detection branch is provided with a three-electrode system, and the surface of the working electrode of each detection branch is modified with a sensitive film layer for a predetermined detection index, thereby realizing the simultaneous sampling and parallel detection of multiple safety indicators of food samples.

[0009] The hardware-level oracle binding layer includes an environmental sensing module and an edge computing chip integrated on the same substrate as the multi-channel microfluidic biosensor array chip. The edge computing chip sequentially applies multiple excitation signals of different frequencies to the working electrodes and collects the corresponding impedance responses to obtain a hardware physical feature vector that can characterize the unique identity of the sensor hardware. At the same time, it collects the sample biochemical reaction curve to obtain a sample biochemical response feature vector that can characterize the unique biochemical characteristics of the food sample used in this test. Then, the two types of feature vectors are fused and a hash operation is performed to obtain a hardware-sample joint fingerprint, which is used to uniquely bind the identity of the detection hardware and the identity of the detection sample at the source of the detection data generation.

[0010] The cryptographic evidence generation layer encodes and fuses the ambient temperature, humidity, micro-vibration signals, and sampling timestamps synchronously collected by the environmental perception module to obtain a unique and unpredictable dynamic encryption salt. It then fuses the detection data, the dynamic encryption salt, and the hardware-sample joint fingerprint and performs a hash operation to obtain a commitment value that uniquely binds the four elements: detection data, detection environment, detection hardware, and sample identity. Using the detection data, dynamic encryption salt, and hardware-sample joint fingerprint as witness information, and the commitment value as a public statement, a zero-knowledge proof is generated. This proves the authenticity of the detection behavior without revealing the specific details of the detection data. Finally, the device's private key is used to sign the commitment value and the zero-knowledge proof, resulting in a digital signature used to prove the legality of the data source.

[0011] The blockchain evidence storage and verification layer includes a blockchain network with deployed smart contracts. The smart contracts sequentially perform signature verification, zero-knowledge proof verification, and detection coverage verification on the received evidence data packets. The detection coverage verification involves comparing the actual set of indicators that have been detected with the pre-registered set of mandatory indicators to obtain the coverage rate, and then comparing the coverage rate with a preset coverage rate threshold. After the signature verification and zero-knowledge proof verification both pass, the smart contract marks the data as a complete traceability record or adds an insufficient coverage tag to the on-chain ledger according to the detection coverage verification result. If the signature verification or zero-knowledge proof verification fails, the transaction is rejected and an anomaly alarm is triggered.

[0012] Compared with the prior art, the beneficial effects of the present invention by adopting the above technical solution are as follows:

[0013] 1. This invention generates a hardware-sample joint fingerprint by fusing the hardware physical feature vector extracted by multi-frequency impedance spectroscopy with the biochemical response feature vector of food samples and hashing it. Since the hardware physical feature vector originates from the uncontrollable and difficult-to-replicate microscopic physical differences in the electrode manufacturing process, and the sample biochemical response feature vector originates from the instantaneous biochemical reaction of the food sample itself, the fusion of the two makes the joint fingerprint difficult to forge by replacing the sensor probe or by replaying pre-recorded historical signals. Thus, it blocks the path of forgery at the source of sensor detection, such as the physical replacement of the sensor probe or the use of fake samples for testing.

[0014] 2. This invention encodes dynamic environmental factors such as ambient temperature, ambient humidity, and micro-vibration signals collected synchronously at the moment of sampling into cryptographic salts, and fuses them with detection data and joint fingerprints to generate commitment values, zero-knowledge proofs, and digital signatures. This makes it possible forged or replayed data to be rejected by the smart contract because it cannot provide matching real environmental factors, thereby cryptographically proving the real occurrence of the detection behavior and effectively preventing data replay and man-in-the-middle injection attacks.

[0015] 3. This invention achieves parallel detection of multiple indicators in a single sampling using a multi-channel microfluidic biosensor array. A smart contract compares the actual set of detected indicators with the pre-registered set of mandatory indicators to generate a detection coverage certificate. Detection records with insufficient coverage are automatically labeled with a warning tag, thereby eliminating structural traceability gaps caused by the compliance of a single indicator masking other risk indicators and significantly improving the completeness and credibility of traceability information. Attached Figure Description

[0016] Figure 1 This is a schematic diagram of the overall four-layer business process of the system in this embodiment of the invention;

[0017] Figure 2 This is a schematic diagram of the hardware and sample joint fingerprint generation process in an embodiment of the present invention;

[0018] Figure 3 This is a schematic diagram of the cryptographic evidence packet generation and on-chain verification process in an embodiment of the present invention. Detailed Implementation

[0019] The following is in conjunction with the appendix Figure 1-3 The specific embodiments of the present invention will be further described below. It should be noted that the description of these embodiments is for the purpose of helping to understand the present invention, but does not constitute a limitation of the present invention.

[0020] Furthermore, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.

[0021] The blockchain-based food safety monitoring and digital traceability system provided by this invention consists of four parts: a multi-channel biosensor detection layer, a hardware-level oracle binding layer, a cryptographic evidence generation layer, and a blockchain storage and verification layer. In use, food samples and test solutions enter the multi-channel microfluidic biosensor array chip through the inlet. This chip integrates multiple independent electrochemical detection units, such as pathogen detection channels, heavy metal detection channels, and veterinary drug residue detection channels. The electrochemical signals generated by the working electrodes of each detection channel are fed into the edge computing chip via a multiplexed analog front-end. An environmental sensing module integrated on the same substrate as the sensor array synchronously collects the temperature at the moment of sampling. The edge computing chip processes the collected raw signals, including humidity gradient change curves and micro-vibration signals. It uses a hardware physical feature extraction module, a spatiotemporal environment encoding module, a hash and zero-knowledge proof generation module, and a digital signature module to generate cryptographically reinforced evidence data packets. These evidence data packets are sent to the blockchain light node access module via a communication interface. The smart contract deployed in the blockchain network performs signature verification, zero-knowledge proof verification, and detection coverage verification on the received data packets. After the verification is passed, the data is written into the multi-dimensional evidence chain data structure on the chain. The terminal query module reads the evidence chain data on the chain and displays traceability information to consumers and regulators.

[0022] In the hardware-level oracle joint fingerprint generation mechanism, the edge computing chip controls the signal generation module to sequentially apply multiple sinusoidal excitation signals of different frequencies to the working electrodes of the multi-channel microfluidic biosensor array. The frequency sequence is denoted as follows: Subsequently, the chip acquires the complex impedance response of the electrodes at various excitation frequencies through a simulated front-end to obtain the impedance sequence. Each impedance value reflects the microscopic roughness and local resistance distribution differences on the surface of the screen-printed electrode, which cannot be artificially replicated due to the manufacturing process. Normalization and feature extraction of this impedance sequence yields a hardware physical feature vector, denoted as... Simultaneously, or within a very short time window adjacent to the extraction of physical hardware features, the sensor array performs a predetermined biochemical reaction detection on the food sample, such as reacting with a specific antibody, aptamer, or chemical chromogenic agent. The current-time response curve during the reaction is collected, and after feature extraction, the sample's biochemical response feature vector is obtained, denoted as... , hardware physical feature vector With the biochemical response feature vector of the sample The fused feature vector is obtained by concatenating the features in a predetermined order, and a cryptographic hash operation is performed on the fused feature vector to generate a hardware-sample joint fingerprint. The calculation method is as follows:

[0023] ;

[0024] In the formula, This refers to a cryptographic hash function, such as a secure hash algorithm. The hardware physical feature vector extracted from the multi-frequency impedance spectrum is used to characterize the uniqueness of the sensor hardware. The feature vector extracted from the sample biochemical response curve is used to characterize the unique biochemical characteristics of the food sample used in this test. The symbol is... This represents the sequential concatenation operation of feature vectors. The resulting hardware-sample joint fingerprint uniquely identifies that the detection was indeed performed on a specific food sample by that specific sensing hardware. This stems from the uncontrollable and difficult-to-reproduce microscopic physical differences during electrode manufacturing. Originating from the immediate biochemical reactions of the food sample itself, the fusion of the two results in a joint fingerprint. It is difficult to forge by replacing the sensor probe, and it is also difficult to forge by replaying pre-recorded historical signals, thus blocking the dual forgery path at the hardware level and the sample level at the source of data generation.

[0025] In the anti-spoofing on-chain mechanism of multi-factor cross-validation of spatiotemporal environment, the environmental perception module and the biosensor detection are started simultaneously to collect the ambient temperature at the moment of sampling. Ambient humidity Micro-vibration signals And the sampling timestamp provided by the local precise clock of the edge computing chip. The edge computing chip performs hash encoding on the above environmental parameters to generate a dynamic cryptographic salt, which is calculated as follows:

[0026] ;

[0027] In the formula, Represents a cryptographic hash function. The ambient temperature value at the moment of sampling. The ambient humidity value at the moment of sampling. These are the vibration characteristic values ​​output by the micro-vibration sensor. For local precise sampling timestamps, symbols This indicates a sequential data concatenation operation. As a cryptographic salt determined by the above four dynamic environmental factors, it is unique and unpredictable;

[0028] The edge computing chip will process the raw detection data obtained in this test. The dynamic encryption salt generated in the aforementioned steps and hardware-sample joint fingerprinting A fusion hash is performed to generate a commitment value, which is calculated as follows:

[0029] ;

[0030] In the formula, This is the raw detection data set obtained from this multi-channel detection, which can be the electrochemical signal or its characteristic value set for each channel. Encrypting salts for dynamic environments. For hardware-sample joint fingerprinting, The final generated data commitment value is uniquely bound to four elements: detection data, detection environment, detection hardware, and sample identity.

[0031] Edge computing chips utilize lightweight zero-knowledge proof generation algorithms to detect data. Dynamic encryption salt With joint fingerprint As witness information, in the form of commitment value As a public statement, generate zero-knowledge proofs. This is used to prove to the verifier that the detection data, environmental salinity, and hardware fingerprint satisfying the commitment relationship do exist, without directly disclosing all the details of the original detection data on the blockchain. This balances the need for data authenticity verification and the protection of commercially sensitive information. The edge computing chip further uses the device private key pre-stored in a secure storage area. Regarding the committed value With zero-knowledge proof The concatenated result is subjected to elliptic curve digital signature operation to generate a digital signature, which is calculated as follows:

[0032] ;

[0033] In the formula, This is the device's unique private key, written to a secure storage area at the factory and cannot be exported. Indicates using private key The elliptic curve digital signature operation was performed. The final generated digital signature proves that the data packet was indeed generated by a legitimate device holding the corresponding private key, preventing man-in-the-middle attacks from injecting forged data. The edge computing chip will detect the data. Encryption salt Joint fingerprint Commitment value Zero-knowledge proof With digital signatures Encapsulated into a transaction to be uploaded to the blockchain according to a predetermined data structure, the transaction is sent to the blockchain light node access module via a communication interface and submitted to the smart contract for verification. The smart contract verifies the digital signature sequentially. Does it match the device registration public key? Zero-knowledge proof Does the commitment relationship and encrypted salt meet? The transaction is allowed to be written to the block and generate an on-chain timestamp only after all three checks pass, provided that the implied spatiotemporal environment is within the preset threshold range. Otherwise, the transaction is rejected and an abnormal alarm is triggered, indicating that there may be data replay or environment forgery.

[0034] In the multi-component concurrent detection and on-chain evidence void elimination mechanism, the multi-channel microfluidic biosensor array chip has a common sample inlet on its chip substrate. Downstream of the sample inlet is a microfluidic shunt channel network that evenly distributes the sample solution to each independent detection branch. Each detection branch has a three-electrode system, namely a working electrode, a counter electrode, and a reference electrode. The surface of the working electrode of each branch is pre-modified with a sensitive membrane layer for specific indicators, such as a specific aptamer membrane layer for pathogenic bacteria, a chelating agent membrane layer for heavy metals, and an antibody membrane layer for veterinary drug residues. The electrode pins of each branch converge into the multiplexed signal output interface at the edge of the chip and are connected to the analog front-end multi-channel acquisition module of the edge computing chip. An environmental sensing module is integrated in the same area of ​​the chip substrate and shares the same sampling clock with each detection branch to ensure the consistency of multi-indicator detection data and environmental data in terms of time reference.

[0035] The system pre-registers a set of mandatory inspection indicators for specific food categories in a smart contract, denoted as... Each element represents a safety indicator to be detected, such as a pathogen, a heavy metal, or a veterinary drug residue. During a single sampling process, the multi-channel microfluidic biosensor array chip simultaneously performs electrochemical detection on the corresponding indicators for each channel, obtaining the set of indicators actually detected in this sampling, denoted as... Edge computing chips will collect actual detection indicators. The detection results from each channel are encapsulated together in the multi-indicator detection result field and the detection coverage proof field of the transaction body. After receiving the transaction, the smart contract calculates the coverage of this detection, and the calculation method is as follows:

[0036] ;

[0037] In the formula, This refers to the set of indicators actually completed in this test. This is the set of mandatory inspection indicators pre-registered for this food category. This represents the number of elements in the intersection of the actual detection indicators and the set of mandatory detection indicators. This represents the total number of elements in the set of mandatory indicators. The coverage rate for this test is a real number greater than zero and not greater than one. The smart contract will calculate the coverage rate. Compared with the preset coverage threshold If a comparison is made, Not less than If the detection coverage is deemed satisfactory, the transaction is allowed to be written normally to the main chain and marked as a complete traceability record. Less than If a structural traceability gap is identified, the transaction is still written to the chain, but the smart contract automatically adds a label indicating insufficient coverage and a list of uncovered indicators. This allows the querying module to clearly alert consumers and regulators to the risks, avoiding misleading conclusions that a single qualified indicator may obscure the overall security status. When the terminal query module reads the on-chain records, it generates a structured traceability report based on the coverage label in the transaction and the detection result fields of each indicator, which is available for consumers and regulators to review.

[0038] The on-chain multi-dimensional evidence chain data structure includes a block header and a transaction list. The block header records the block height, the hash of the previous block, and the timestamp of the current block. Each transaction in the transaction list corresponds to a complete detection behavior. The transaction body contains the device identity field, spatiotemporal environment field, multi-indicator detection result field, detection coverage proof field, zero-knowledge proof field, and device signature field. The smart contract completes the above coverage verification before writing the transaction body to ensure that every traceability record written on the chain is accompanied by complete and reliable coverage information.

[0039] Taking the testing process of a batch of chilled pork products as an example, the specific implementation of this invention is illustrated. The set of mandatory testing indicators pre-registered in the smart contract for this food category includes three items: pathogenic bacteria, heavy metals, and veterinary drug residues. Testing personnel add the food sample and the test droplet to the common inlet of the multi-channel microfluidic biosensor array chip. The sample enters the pathogenic bacteria detection branch, heavy metal detection branch, and veterinary drug residue detection branch respectively through the microfluidic diversion channel network. The edge computing chip applies multi-frequency scanning excitation signals to the working electrodes of each branch, collects impedance spectra, and extracts hardware physical feature vectors. Simultaneously, it collects the current-time response curves of each branch and extracts the sample biochemical response feature vectors. After fusing and hashing, a hardware-sample joint fingerprint is generated. The environmental sensing module simultaneously collects the ambient temperature, ambient humidity, and micro-vibration signals at the moment of sampling. The system combines sampling timestamps to generate dynamic encrypted salts. The edge computing chip fuses the detection data from the three detection branches, the dynamic encrypted salts, and the joint fingerprint to generate a commitment value. Based on this, it generates zero-knowledge proofs and digital signatures, encapsulates them into evidence data packets, and submits them to the blockchain network via the communication interface. The smart contract sequentially performs signature verification and zero-knowledge proof verification on the evidence data packets and calculates the coverage rate between the actual set of indicators tested and the pre-registered set of mandatory indicators. Since all three mandatory indicators have been tested, the coverage rate calculation result reaches the preset threshold. The smart contract determines that the coverage of this test is qualified, writes the transaction into the main chain, and marks it as a complete traceability record. After the terminal query module reads the record on the chain, it displays a complete traceability report to consumers and regulators, including the test results of the three indicators, testing environment information, and a qualified coverage label.

[0040] In another embodiment of the present invention, the method of extracting hardware physical feature vectors can also be replaced by: using the initial power-on state of the static random access memory unit built into the multi-channel microfluidic biosensor array chip as the source of hardware physical unclonable features, that is, using the fixed but unpredictable initial state presented by the static random access memory unit at the moment of power-on due to the random deviation of the transistor threshold voltage, extracting hardware feature vectors and then performing fusion hashing processing with the sample biochemical response feature vectors to generate a joint fingerprint. This embodiment can also achieve strong binding between hardware identity and sample identity, and the corresponding extraction circuit is easier to integrate with existing microcontroller chips, and can be used as an effective supplement or alternative implementation method to the multi-frequency impedance spectroscopy scheme.

[0041] In another embodiment of the present invention, the generation method of zero-knowledge proof can also be replaced by: when the computing power or storage resources of the edge computing chip are limited, a commitment-disclosure mechanism combined with a trusted execution environment is adopted as an alternative. Specifically, after the detection data, dynamic cryptographic salt and joint fingerprint are fused and calculated in the secure area of ​​the trusted execution environment to generate a commitment value, only the commitment value and the remote proof generated based on the proof key of the trusted execution environment are put on the chain. The smart contract verifies the validity of the remote proof to confirm that the commitment value is indeed generated in a trusted hardware environment. This achieves a similar anti-counterfeiting effect to zero-knowledge proof with lower computing power overhead and can serve as an effective supplementary solution in resource-constrained edge device scenarios.

[0042] Although the present invention has been disclosed above with reference to preferred embodiments, it is not intended to limit the present invention. Any person skilled in the art can make possible changes and modifications without departing from the spirit and scope of the present invention. Therefore, any modifications, equivalent changes and alterations made to the above embodiments based on the technical essence of the present invention without departing from the content of the technical solution of the present invention shall fall within the protection scope defined by the claims of the present invention.

Claims

1. A blockchain-based food safety monitoring and digital traceability system, characterized in that, include: A multi-channel biosensing detection layer includes a multi-channel microfluidic biosensor array chip. The multi-channel microfluidic biosensor array chip is provided with a common inlet, a microfluidic shunt channel network connected to the common inlet, and multiple detection branches distributed and connected by the microfluidic shunt channel network. Each detection branch is provided with a three-electrode system, and the surface of the working electrode of each detection branch is modified with a sensitive film layer for a predetermined detection index. The hardware-level oracle binding layer includes an environmental sensing module and an edge computing chip integrated on the same substrate as the multi-channel microfluidic biosensor array chip. The environmental sensing module is used to synchronously collect ambient temperature, ambient humidity, and micro-vibration signals at the moment of sampling. The edge computing chip is used to sequentially apply multiple excitation signals of different frequencies to the working electrode and collect the corresponding impedance response to obtain the hardware physical feature vector. The edge computing chip is also used to collect the sample biochemical reaction curve to obtain the sample biochemical response feature vector. The edge computing chip synchronously extracts the hardware physical feature vector and the sample biochemical response feature vector within the same sampling time window, and fuses the two and performs a hash operation to obtain a hardware-sample joint fingerprint used to inseparably and strongly bind the identity of the detection hardware with the identity of the food sample being detected, so as to block any fraudulent path of replacing the sensor probe alone or replacing the detection sample alone. The cryptographic evidence generation layer is configured to encode and fuse the ambient temperature, ambient humidity, micro-vibration signal, and sampling timestamp collected by the environmental sensing module to obtain a dynamic encryption salt; fuse the detection data, the dynamic encryption salt, and the hardware-sample joint fingerprint and perform a hash operation to obtain a commitment value; use the detection data, the dynamic encryption salt, and the hardware-sample joint fingerprint as witness information, and use the commitment value as a public statement to generate a zero-knowledge proof; and use the device private key pre-stored in the secure storage area to sign the commitment value and the zero-knowledge proof to obtain a digital signature. The blockchain evidence storage and verification layer includes a blockchain network with deployed smart contracts. These smart contracts sequentially perform signature verification, zero-knowledge proof verification, and detection coverage verification on received evidence data packets. The evidence data packets contain the detection data, the dynamic encrypted salt, the hardware-sample joint fingerprint, the commitment value, the zero-knowledge proof, and the digital signature. The detection coverage verification compares the actual set of indicators that have been detected with a pre-registered set of mandatory indicators to obtain a coverage rate, and then compares the coverage rate with a preset coverage rate threshold. Provided that both signature verification and zero-knowledge proof verification pass, the smart contract determines the writing method based on the result of the detection coverage verification: when the coverage rate is not less than the preset coverage threshold, the evidence data packet is marked as a complete traceability record and written to the on-chain ledger. When the coverage rate is less than the preset coverage rate threshold, the evidence data packet is appended with an insufficient coverage label and a list of uncovered indicators and then written into the on-chain ledger. If the signature verification or the zero-knowledge proof verification fails, the evidence data packet will not be written to the on-chain ledger.

2. The food safety monitoring and digital traceability system based on blockchain according to claim 1, characterized in that: The edge computing chip sequentially applies multiple excitation signals of different frequencies to the working electrodes, which are sinusoidal excitation signals, and the frequency sequence is denoted as follows: The edge computing chip acquires the complex impedance response of the working electrode at each of the specified frequencies to obtain an impedance sequence. The edge computing chip normalizes and extracts features from the impedance sequence to obtain the hardware physical feature vector.

3. The food safety monitoring and digital traceability system based on blockchain according to claim 1, characterized in that, The hardware-sample joint fingerprint is calculated as follows: ; In the formula, Represents a cryptographic hash function. The physical feature vector of the hardware, Let be the biochemical response feature vector of the sample, with symbol . This represents the sequential concatenation operation of feature vectors. This is the hardware-sample joint fingerprint.

4. The food safety monitoring and digital traceability system based on blockchain according to claim 1, characterized in that, The dynamic encryption salt is calculated as follows: ; In the formula, Represents a cryptographic hash function. The ambient temperature is... The ambient humidity is... The vibration characteristic value corresponding to the micro-vibration signal. The sampling timestamp, symbol This indicates a sequential data concatenation operation. This refers to the dynamic encryption salt.

5. A blockchain-based food safety monitoring and digital traceability system according to claim 1, characterized in that, The commitment value is calculated as follows: ; The digital signature is calculated as follows: ; In the formula, The detection data, For the dynamic encryption salt, For the hardware-sample joint fingerprint, For the stated commitment value, This is the device's private key. This indicates an elliptic curve digital signature operation performed using the device's private key. For the zero-knowledge proof, For the digital signature.

6. The food safety monitoring and digital traceability system based on blockchain according to claim 1, characterized in that: The coverage rate is calculated as follows: ; In the formula, This refers to the set of indicators that were actually tested in this instance. For the set of mandatory test indicators registered in advance, The set of indicators With the set of mandatory inspection indicators The number of elements in the intersection. This represents the total number of elements in the set of mandatory inspection indicators. The coverage rate is mentioned.

7. A blockchain-based food safety monitoring and digital traceability system according to claim 1, characterized in that: The working electrode surfaces of each detection branch are respectively modified with an aptamer sensitive membrane layer for detecting pathogenic bacteria indicators, a chelating agent sensitive membrane layer for detecting heavy metal indicators, and an antibody sensitive membrane layer for detecting veterinary drug residue indicators. The environmental sensing module shares the same sampling clock with each detection branch.

8. A blockchain-based method for food safety monitoring and digital traceability, characterized in that, include: Multi-channel electrochemical detection of food samples was performed using a multi-channel microfluidic biosensor array chip to obtain detection data; Multiple excitation signals of different frequencies are sequentially applied to the working electrodes of the multi-channel microfluidic biosensor array chip and the corresponding impedance responses are collected to obtain hardware physical feature vectors. Sample biochemical reaction curves are collected to obtain sample biochemical response feature vectors. The hardware physical feature vectors and sample biochemical response feature vectors are fused and hash operations are performed to obtain hardware-sample joint fingerprints. Simultaneously collect ambient temperature, humidity, and micro-vibration signals, as well as the sampling timestamp, at the moment of sampling. Encode and fuse these signals to obtain a dynamic encryption salt. Fuse the detection data, the dynamic encryption salt, and the hardware-sample joint fingerprint and perform a hash operation to obtain a commitment value. Use the detection data, the dynamic encryption salt, and the hardware-sample joint fingerprint as witness information, and the commitment value as a public statement to generate a zero-knowledge proof. Sign the commitment value and the zero-knowledge proof using the device's private key to obtain a digital signature. The evidence data packet, containing the detection data, the dynamic cryptographic salt, the hardware-sample joint fingerprint, the commitment value, the zero-knowledge proof, and the digital signature, is sent to a blockchain network with a smart contract. The smart contract sequentially verifies the evidence data packet through signature verification, zero-knowledge proof verification, and detection coverage verification. The detection coverage verification involves comparing the actual set of indicators that have been detected with the pre-registered set of mandatory indicators to obtain the coverage rate, and then comparing the coverage rate with a preset coverage rate threshold. After the signature verification, zero-knowledge proof verification, and detection coverage verification all pass, the evidence data packet is written into the on-chain ledger.

9. A blockchain-based food safety monitoring and digital traceability method according to claim 8, characterized in that: The hardware physical feature vector is obtained by: collecting the initial state of the static random access memory unit built into the multi-channel microfluidic biosensor array chip at the moment of power-on due to the transistor threshold voltage deviation, and extracting features from the initial state to obtain the hardware physical feature vector.

10. A blockchain-based food safety monitoring and digital traceability method according to claim 8, characterized in that: The generation steps of the zero-knowledge proof are replaced as follows: within the secure zone of the Trusted Execution Environment (TEE), the detection data, the dynamic cryptographic salt, and the hardware-sample joint fingerprint are fused and calculated to generate the commitment value; a remote proof is generated based on the proof key of the TEE; the commitment value and the remote proof are sent to the smart contract; and the smart contract verifies the validity of the remote proof to confirm that the commitment value was generated within the TEE.