Vegetable whole-course tracing method

By adopting blockchain technology and unified coding standards in the vegetable traceability system, the problems of incomplete data collection and easy attacks in centralized databases are solved, and the safety, transparency and efficient management of vegetable traceability data are achieved, and consumer query experience and food safety are improved.

CN120450720AInactive Publication Date: 2025-08-08江苏汶河食品有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510549401.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-28
Publication Date
2025-08-08
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

There are problems in the existing vegetable traceability system that lacks data collection links and inconsistent coding rules, resulting in inability to communicate information, and centralized databases are vulnerable to network attacks, affecting the security and timeliness of data storage.

Method used

The platform is built using blockchain technology, deploy nodes in the planting, processing, logistics and sales links, and use unified coding standards and multi-level coding systems, combining sensors and intelligent detection equipment to record and encrypt data to achieve data immutability and transparency.

Benefits of technology

It improves the security, transparency and timeliness of vegetable traceability data to ensure the integrity and accuracy of the data. Consumers can query detailed traceability information through traceability codes to enhance food safety guarantees.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120450720A_ABST
    Figure CN120450720A_ABST
Patent Text Reader

Abstract

The invention discloses a vegetable whole-course tracing method, and relates to the related field of agricultural technologies, and the method comprises the steps: building a block chain platform, and deploying block chain nodes in a planting base, a processing enterprise, a logistics enterprise and a seller; in a vegetable planting link, recording environment, insect pest and planting information in a vegetable planting process, and generating a vegetable traceability code; in a vegetable processing link, recording operation information and a quality detection result in a processing process, uploading processing process information to the block chain, and updating traceability data of the vegetables; in a vegetable transportation link, recording positioning data and environment monitoring data of a transportation vehicle, uploading the monitoring data and arrival information to a block chain, and updating traceability data of vegetables; in a vegetable selling link, a seller inputs vegetable stock and selling information, and a consumer inquires detailed traceability information of vegetables by inputting the traceability code on a vegetable package. The safety problem of vegetable tracing data storage is solved, and the diversity, timeliness and accuracy of data are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to agricultural technology-related fields, and in particular to a method for full-process traceability of vegetables. Background Art

[0002] Vegetable traceability refers to the establishment of a complete information system to track and record the entire life cycle of vegetables from planting, processing, transportation, sales to final consumption, so as to make the quality and safety information of vegetables searchable, traceable and manageable.

[0003] Vegetable traceability provides consumers with comprehensive and transparent information about vegetables. With a simple query, consumers can access information such as the origin, cultivation process, and quality inspection results, enhancing their confidence in vegetable quality and safety. Furthermore, vegetable traceability provides strong technical support for regulatory authorities, enabling them to quickly locate the source of problematic vegetables and implement timely recall measures, preventing substandard vegetables from entering the market and safeguarding consumer health and safety.

[0004] Currently, the implementation of vegetable traceability suffers from missing data collection links, preventing comprehensive quality and safety information from being reflected throughout the vegetable lifecycle. Furthermore, IoT coding rules vary across regions and enterprises, hindering information interoperability and sharing. The centralized database used in the vegetable traceability system presents a single point of failure during information transmission, making it vulnerable to cyberattacks that can lead to data loss and impact the normal operation of the traceability system. Summary of the Invention

[0005] To address the technical issues of the above-mentioned existing technologies, this application provides a method for tracing vegetables throughout the entire process, from planting, processing, transportation to sales, and completely recording detailed data in the vegetable supply chain. During data collection, additional sensor types and intelligent detection equipment are added, and vegetable traceability data is stored on the blockchain to improve data storage security. Furthermore, a unified coding standard and multi-level coding system are adopted to assign a unique identifier to each vegetable batch, and the coding data is automatically updated, thereby improving the timeliness and accuracy of traceability information.

[0006] This application provides a vegetable full-process traceability method, including:

[0007] (1) Build a blockchain platform and deploy blockchain nodes in planting bases, processing enterprises, logistics companies and sellers;

[0008] (2) During the vegetable planting process, record the environment, pests and planting information during the vegetable planting process and generate a vegetable traceability code;

[0009] (3) In the vegetable processing stage, record the operation information and quality inspection results during the processing, upload the processing information to the blockchain, and update the traceability data of the vegetables;

[0010] (4) During the vegetable transportation process, the positioning data and environmental monitoring data of the transport vehicles are recorded, the monitoring data and arrival information are uploaded to the blockchain, and the traceability data of the vegetables is updated;

[0011] (5) In the vegetable sales process, sellers enter vegetable inventory and sales information, and consumers query the detailed traceability information of the vegetables by entering the traceability code on the vegetable packaging.

[0012] Furthermore, blockchain technology ensures data immutability, transparency, and decentralization through encryption algorithms and consensus mechanisms. Each block in the blockchain stores data records for a specified time period, and cryptography is used to construct a secure and reliable chain, forming a distributed ledger. The detailed application architecture of the blockchain platform built for vegetable traceability is as follows:

[0013] Data layer: Responsible for data storage and structuring, including environmental data collected by IoT devices, as well as information on planting, processing, transportation, and sales. Data is packaged into blocks, each containing the hash value of the previous block, forming an immutable chain structure.

[0014] The network layer is responsible for communication between nodes, data transmission, and verification. Blockchain nodes are deployed at every stage of the vegetable supply chain, including planting bases, processing companies, logistics companies, and retailers, to ensure distributed storage and sharing of data.

[0015] Consensus layer: The consensus layer is responsible for enabling highly distributed nodes in a decentralized blockchain network to efficiently reach consensus on the validity of block data. The consensus mechanism is the mechanism by which nodes in the blockchain network reach an agreement, ensuring that all nodes in the network store the same blockchain data.

[0016] Smart contract layer: Define a series of smart contracts to automatically record and verify information about vegetables at each stage of the supply chain.

[0017] Application layer: Develop user interfaces for consumers, producers, and regulators, providing query and management capabilities. The application layer uses data visualization tools to display real-time and historical data from the vegetable supply chain, facilitating analysis and decision-making.

[0018] Furthermore, in the vegetable planting process, temperature and humidity sensors, light sensors, and soil nutrient sensors are installed at key locations in the vegetable planting area to collect planting environment data in real time;

[0019] Intelligent pest monitoring equipment is installed at the entrance and center of the vegetable greenhouse, using image recognition technology to monitor the number and type of pests in real time;

[0020] The watering and fertilization records of vegetables are manually entered. The collected environmental data, pest data, and planting information are stored in the local server. The data is cleaned to remove outliers and noise data and converted into a unified format.

[0021] Furthermore, the GS1 standard was adopted to encode vegetable products, ensuring global uniqueness and universality. Unique coding information was generated for each batch of vegetables, including variety code, origin code, and batch code. A data structure was designed to store environmental data, pest data, and planting information. This data was then linked to the generated coding information to generate a unique traceability code for each batch of vegetables.

[0022] Furthermore, during vegetable processing, detailed records should be kept of the operation time, operator, processing equipment number, and process parameters for the cleaning, cutting, and packaging steps. Processed vegetables should be inspected for quality, including appearance, nutrient content, pesticide residues, and microbiological indicators, and the test results should be recorded in detail.

[0023] Furthermore, during the transportation of vegetables, the GPS positioning device collects the vehicle's location information in real time at a set frequency, stores and analyzes the received location information, and generates a vehicle's driving trajectory map, showing the vehicle's transportation route from the starting point to the end point.

[0024] Temperature sensors and humidity sensors monitor the temperature and humidity in the vehicle compartment in real time, collect data at a certain frequency, and perform real-time verification on the received environmental monitoring data. When the detected temperature and humidity exceed the preset threshold range, the alarm mechanism is immediately triggered to adjust the refrigeration equipment and ventilation system.

[0025] When the transport vehicle arrives at the destination, the arrival time and specific location of the vehicle are recorded through the GPS positioning system and timestamp function; after the vehicle arrives, the goods are inspected, including the appearance, quality and quantity of the vegetables, and the inspection results are recorded.

[0026] Furthermore, a sales management system is established for the vegetable sales process to record vegetable inventory and sales information. Inventory quantities are updated in real time based on sales. When a certain number of vegetables are sold, the system automatically deducts the corresponding amount from inventory and records the real-time inventory status. When vegetables are sold, the sales management system records the time, quantity, and price of the vegetable sales.

[0027] Furthermore, the data on vegetable planting, processing, transportation and sales are organized in a certain format and converted into a structured data format. The data is encrypted using a hash algorithm to generate a unique hash value as the data code.

[0028] The newly encoded information is sent to the blockchain platform interface. Upon receiving the data, the platform verifies it. Once verified, the data is packaged into a new block and added to the blockchain's chain structure. The new block is then broadcast to all nodes in the blockchain network, where each node verifies the block through consensus. Once consensus is reached, the new block is permanently recorded on the blockchain, updating the vegetable's traceability data.

[0029] The present invention discloses the following technical effects:

[0030] This invention provides a method for full-process vegetable traceability. By building a blockchain platform, it comprehensively records supply chain data for vegetables, from planting, processing, transportation, to sales. Leveraging its immutable, decentralized, transparent, and smart contract-based features, the blockchain platform enhances data security, transparency, and efficiency, providing data assurance for vegetable traceability. To collect vegetable data at each stage, a variety of sensors and intelligent detection equipment are deployed to comprehensively cover data from planting, processing, transportation, and sales, ensuring rich, accurate, and reliable data collection, laying a solid data foundation for the vegetable traceability process. Furthermore, based on Internet of Things (IoT) coding technology, this invention employs a unified coding standard and a multi-level coding system to assign a unique identifier to each vegetable batch. The coded data is automatically updated via the blockchain platform, improving the timeliness of traceability information. Consumers simply enter the traceability code on the vegetable packaging to access detailed traceability information, including key information such as planting method and origin. This not only enables consumers to make purchasing decisions that are consistent with their personal health and environmental priorities based on traceability information, but also significantly enhances their shopping experience while effectively ensuring food safety. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] To more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings of the embodiments of the present invention are briefly introduced below. Flowcharts are used in this application to illustrate the operations performed by the system according to the embodiments of the present application. It should be understood that the preceding or following operations are not necessarily performed in precise order. Instead, various steps may be processed in reverse order or simultaneously as needed. Furthermore, other operations may be added to these processes, or one or more operations may be removed from these processes.

[0032] Figure 1 A flow chart of a method for full-process traceability of vegetables provided in an embodiment of the present application. DETAILED DESCRIPTION

[0033] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below.

[0034] In order to make the purpose, technical solutions and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings. The described embodiments should not be regarded as limiting this application. All other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0035] In the following description, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or server that includes a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or modules that are not explicitly listed or are inherent to these processes, methods, products, or devices. Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art to which this application belongs. The terms used herein are for the purpose of describing the embodiments of this application only.

[0036] Example 1: This embodiment of the present application provides a method for full-process vegetable traceability. This method is implemented on a blockchain platform and leverages blockchain technology's encryption algorithms and consensus mechanisms to ensure data immutability, transparency, and decentralization. In a blockchain architecture, each block in the blockchain stores data records within a specified time period and uses cryptography to construct a secure and reliable chain, thereby forming a distributed ledger.

[0037] In this embodiment, the detailed application architecture of the blockchain platform built during the vegetable traceability process is as follows:

[0038] Data layer: responsible for the storage and structuring of data, including environmental data collected by IoT devices, as well as information on planting, processing, transportation and sales.

[0039] Using blockchain's distributed ledger technology, data is packaged into blocks. Each block contains the hash value of the previous block, forming an unalterable chain structure. Once the block data is tampered with, the hash value will change, destroying the continuity of the entire chain and making tampering extremely easy to detect. Data is stored on multiple nodes in the network, and each node maintains a complete copy of the ledger to ensure data security and reliability.

[0040] Asymmetric encryption technology is used to implement digital signatures and encrypted communications. Digital signatures are used to verify the sender's identity and data integrity, while encrypted communications are used to protect the security of data during transmission.

[0041] Each block contains a timestamp that records the time when the block was created, ensuring the sequence and timeliness of information recording.

[0042] The network layer is responsible for communication between nodes, data transmission, and verification. Blockchain nodes are deployed at every stage of the vegetable supply chain, including planting bases, processing companies, logistics companies, and retailers, to ensure distributed storage and sharing of data.

[0043] The use of P2P peer-to-peer network communication technology and real-time synchronization of ledger status through the P2P protocol makes the blockchain network decentralized. The decentralized network structure improves the fault tolerance and security of the system. Even if some nodes have problems, the entire network can still operate normally.

[0044] When a node generates a new block, it broadcasts this data to the entire network. When each node receives the new block data, it verifies the data to verify the legitimacy of the data and whether the hash value of the block meets the requirements.

[0045] Consensus layer: The consensus layer is responsible for enabling highly distributed nodes in a decentralized blockchain network to efficiently reach consensus on the validity of block data. The consensus mechanism is the mechanism by which nodes in a blockchain network reach agreement, ensuring that all nodes in the network store the same blockchain data. This layer uses a practical Byzantine fault-tolerant algorithm and reaches consensus through a voting mechanism among nodes.

[0046] Smart Contract Layer: Define a series of smart contracts to automatically record and verify information about vegetables at each stage of the supply chain. Smart contract code is written in a specific programming language, compiled into bytecode, and published to the blockchain network. Smart contracts automatically execute according to pre-set conditions without human intervention. The results of smart contract execution are automatically written to the blockchain, ensuring data authenticity and immutability. The smart contract operations for each stage of the vegetable supply chain are as follows:

[0047] Planting stage: When information is entered, the smart contract automatically writes environmental data, pest data and planting information into the blockchain; according to the preset watering and fertilizing schedule, the smart contract automatically reminds the grower to perform the corresponding operations.

[0048] Processing stage: When processing is completed, the smart contract automatically records the processing time, industry and operator information; when the quality inspection results are uploaded, the smart contract automatically verifies the validity of the inspection results and updates the data on the blockchain.

[0049] Transportation link: When the transport vehicle starts, the smart contract automatically records the transportation time and route; when the transportation environment data exceeds the preset range, the smart contract automatically triggers an alarm and notifies relevant personnel to take measures.

[0050] Sales process: When a sale is completed, the smart contract automatically records the sales time, price, and quantity information; based on the sales situation, the smart contract automatically updates the inventory quantity and generates an inventory report.

[0051] Application layer: Develop user interfaces for consumers, producers, and regulatory authorities, providing query and management capabilities. The application layer uses data visualization tools to display real-time data and historical records of the vegetable supply chain, facilitating analysis and decision-making:

[0052] On the consumer interface, information such as the vegetable's growing environment and transportation routes is displayed in the form of charts and maps. Consumers can query detailed traceability information of the vegetables by entering the traceability code on the vegetable packaging or scanning the QR code;

[0053] On the producer interface, producers can view and manage data on the blockchain, optimize production processes, and improve production efficiency;

[0054] On the regulatory department interface, the regulatory department can monitor each link of the vegetable supply chain in real time, check the production, processing, transportation and sales of the enterprise, use the data on the blockchain to conduct data analysis, discover potential problems, and take timely measures.

[0055] Example 2: This application example provides a method for tracing vegetables throughout the entire process. Figure 1 As shown, the method includes:

[0056] Step S10: Build a blockchain platform and deploy blockchain nodes in planting bases, processing companies, logistics companies, and sellers.

[0057] In this example, a blockchain platform was built based on Hyperledger Fabric, with a consensus mechanism suitable for consortium chains, namely the Practical Byzantine Fault Tolerance algorithm, and Solidity as the smart contract language. A sufficient number of blockchain nodes were deployed at planting bases, processing companies, logistics companies, and retailers to ensure network stability and decentralization. Network communication between nodes was configured, with the node network addresses, port numbers, and consensus mechanism set. Initialization scripts were then run to ensure the nodes could join the blockchain network.

[0058] Step S20, in the vegetable planting process, records the environment, pests and planting information during the vegetable planting process and generates a vegetable traceability code.

[0059] In this embodiment, temperature and humidity sensors, light sensors, and soil nutrient sensors are installed at key locations in the vegetable planting area to collect planting environment data in real time;

[0060] Intelligent pest monitoring equipment is installed at the entrance and center of the vegetable greenhouse, using image recognition technology to monitor the number and type of pests in real time;

[0061] The watering and fertilization records of vegetables are manually entered. The collected environmental data, pest data, and planting information are stored in the local server. The data is cleaned to remove outliers and noise data and converted into a unified format.

[0062] Vegetable products are coded using the GS1 standard to ensure global uniqueness and universality. Unique coding information is generated for each batch of vegetables, including variety code, origin code, and batch code.

[0063] Design a data structure. This example uses JSON format to store environmental data, pest data, and planting information. This data is associated with the generated coding information to generate a unique traceability code for each batch of vegetables. In this example, the traceability code format used is:

[0064] VVVV-PPPP-BBBB-TTTT

[0065] Among them, VVVV is the variety code, which is used to identify the variety of vegetables and consists of four digits or letters; PPPP is the origin code, which is used to identify the origin of vegetables and consists of four digits or letters; BBBB is the batch code, which is used to identify batches of the same variety from the same origin and uses four digits to indicate the order of the batch in the origin; TTTT is the timestamp, which uses eight digits to indicate the year, month, day and time.

[0066] Step S30: In the vegetable processing link, the operation information and quality inspection results of the processing process are recorded, the processing process information is uploaded to the blockchain, and the traceability data of the vegetables is updated.

[0067] In this example, the operation time, operator, processing equipment number and process parameters of the cleaning, cutting and packaging steps are recorded in detail. The detailed process is as follows:

[0068] During the vegetable washing process, record the name of the washing equipment, washing time, type and amount of cleaning agent used, and water quality test results;

[0069] During the vegetable cutting process, record the name of the cutting equipment, cutting method, cutting size and cutting time;

[0070] During the vegetable packaging process, record the type, specifications of the packaging materials, packaging time and the name of the packing person.

[0071] The processed vegetables are inspected for quality, including appearance quality, nutritional content, pesticide residues and microbiological indicators, and the test results are recorded in detail. The details of the quality inspection are as follows:

[0072] Appearance quality inspection: Use visual inspection and sensory evaluation, combined with comparison to standard samples. Observe the vegetables for uniform, vibrant color, and any discoloration or fading. Check the vegetables for intact shapes, deformities, and damage. Measure the vegetables to ensure they meet specifications. Check the surface for smoothness and for spots, rot, or insect damage. Record the inspection time, inspector, and results.

[0073] Nutrient content testing: Use high-performance liquid chromatography to determine the vitamin content of vegetables, atomic absorption spectrometry to determine the mineral content of vegetables, and Kjeldahl nitrogen analyzer to determine the protein content of vegetables. Record the name of the testing equipment, testing methods, and test results.

[0074] Pesticide residue detection: Use gas chromatography-mass spectrometry to detect pesticide residues, including organophosphorus and pyrethroids, and record the name of the detection equipment, detection method and test results.

[0075] Microbial indicator testing: Use the plate count method to test the total bacterial colony count of vegetables, that is, the total number of bacteria on the surface of vegetables; use the enzyme-linked immunosorbent assay to detect Salmonella, Staphylococcus aureus, etc. Record the test methods and results.

[0076] Through the above testing and recording methods, the quality of processed vegetables can be comprehensively and accurately evaluated to ensure that they meet food safety standards and provide consumers with safe and healthy vegetable products.

[0077] Step S40: During the vegetable transportation process, GPS positioning systems and environmental monitoring equipment are installed on the transport vehicles, and the monitoring data and arrival information are uploaded to the blockchain to update the traceability data of the vegetables.

[0078] In this embodiment, the GPS positioning device collects the vehicle's location information in real time at a set frequency, stores and analyzes the received location information, and generates a vehicle's driving trajectory map to show the vehicle's transportation route from the starting point to the end point.

[0079] Temperature sensors and humidity sensors monitor the temperature and humidity in the vehicle compartment in real time, collect data at a certain frequency, and perform real-time verification on the received environmental monitoring data. When the detected temperature and humidity exceed the preset threshold range, the alarm mechanism is immediately triggered to adjust the refrigeration equipment and ventilation system.

[0080] When the transport vehicle arrives at the destination, the arrival time and specific location of the vehicle are recorded through the GPS positioning system and timestamp function; after the vehicle arrives, the goods are inspected, including the appearance, quality and quantity of the vegetables, and the inspection results are recorded.

[0081] Step S50: In the vegetable sales process, the seller enters the vegetable inventory and sales information, and the consumer queries the detailed traceability information of the vegetables by entering the traceability code on the vegetable packaging.

[0082] In this embodiment, a sales management system is established for vegetable sales, recording inventory and sales information and integrating data with the blockchain platform. Inventory quantities are updated in real time based on sales activity. When a certain number of vegetables are sold, the system automatically deducts the corresponding amount from inventory and records the real-time inventory status. When vegetables are sold, the sales management system records the time, quantity, and price of the sale.

[0083] In the above steps, the detailed process of updating vegetable traceability data is as follows: the data of vegetable planting, processing, transportation and sales are organized in a certain format, converted into a structured data format, and the data is encrypted using a hash algorithm to generate a unique hash value as the data code.

[0084] The newly encoded information is sent to the blockchain platform interface. Upon receiving the data, the platform verifies it. Once verified, the data is packaged into a new block and added to the blockchain's chain structure. The new block is then broadcast to all nodes in the blockchain network, where each node verifies the block through consensus. Once consensus is reached, the new block is permanently recorded on the blockchain, updating the vegetable's traceability data.

[0085] The above specific embodiments do not constitute a limitation to the scope of protection of this application. It should be understood by those skilled in the art that various modifications, combinations and substitutions can be made according to design requirements and other factors. Any modifications, equivalent replacements and improvements made within the spirit and principles of this application should be included in the scope of protection of this application. In some cases, the actions or steps recorded in this application can be performed in an order different from that in the embodiments and can still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

Claims

1. A vegetable full-process traceability method, characterized in that: The method comprises: (1) Build a blockchain platform and deploy blockchain nodes in planting bases, processing enterprises, logistics companies and sellers; (2) During the vegetable planting process, record the environment, pests and planting information during the vegetable planting process and generate a vegetable traceability code; (3) In the vegetable processing stage, record the operation information and quality inspection results during the processing, upload the processing information to the blockchain, and update the traceability data of the vegetables; (4) During the vegetable transportation process, the positioning data and environmental monitoring data of the transport vehicles are recorded, the monitoring data and arrival information are uploaded to the blockchain, and the traceability data of the vegetables is updated; (5) In the vegetable sales process, sellers enter vegetable inventory and sales information, and consumers query the detailed traceability information of the vegetables by entering the traceability code on the vegetable packaging.

2. A vegetable full-process traceability method according to claim 1, characterized in that: The application architecture of the blockchain platform includes data layer, network layer, consensus layer, smart contract layer and application layer.

3. A vegetable full-process tracing method as claimed in claim 2, characterized in that: The data layer is responsible for collecting, storing, and managing information on planting, processing, logistics, and sales in the vegetable supply chain. The network layer is used to distribute and share data across all links in the vegetable supply chain. The consensus layer enables distributed nodes to reach consensus in a decentralized blockchain network. The smart contract layer is used to define a series of smart contracts that automatically record and verify information about vegetables at all stages of the supply chain. The application layer develops user interfaces for consumers, producers, and regulatory authorities, and provides query and management services.

4. A vegetable full-process traceability method according to claim 1, characterized in that: During the vegetable planting process, temperature and humidity sensors, light sensors, and soil nutrient sensors are installed at key locations in the vegetable planting area to collect planting environment data in real time; Intelligent pest monitoring equipment is installed at the entrance and center of the vegetable greenhouse, using image recognition technology to monitor the number and type of pests in real time; The watering and fertilizing records of vegetables are entered manually; the collected environmental data, pest data, and planting information are stored in the local server, and the data is cleaned to remove outliers and noise data and converted into a unified format.

5. A vegetable full-process tracing method as claimed in claim 4, characterized in that: The GS1 standard is used to generate unique coding information for each batch of vegetables, including variety code, origin code and batch code; a data structure is designed to store environmental data, pest data and planting information, and these data are associated with the generated coding information to generate a unique traceability code for each batch of vegetables.

6. A vegetable full-process traceability method according to claim 1, characterized in that: During the vegetable processing process, the operation time, operators, processing equipment number and process parameters of the cleaning, cutting and packaging links are recorded in detail; the quality of the processed vegetables is inspected, including appearance quality, nutritional content, pesticide residues and microbial indicators, and the test results are recorded in detail.

7. The vegetable full-process traceability method according to claim 1, characterized in that: During the transportation of vegetables, the GPS positioning device collects the vehicle's location information in real time at a set frequency, stores and analyzes the received location information, and generates a vehicle trajectory map to show the vehicle's transportation route from the starting point to the end point; Temperature sensors and humidity sensors monitor the temperature and humidity in the vehicle cabin in real time, collect data at a certain frequency, and perform real-time verification on the received environmental monitoring data. When the detected temperature and humidity exceed the preset threshold range, an alarm mechanism is immediately triggered to adjust the cooling equipment and ventilation system; When the transport vehicle arrives at the destination, the arrival time and specific location of the vehicle are recorded through the GPS positioning system and timestamp function; after the vehicle arrives, the goods are inspected, including the appearance, quality and quantity of the vegetables, and the inspection results are recorded.

8. The vegetable full-process traceability method according to claim 1, characterized in that: A sales management system is established in the vegetable sales process to record the inventory information and sales information of vegetables; the inventory quantity is updated in real time according to the sales situation. When a certain number of vegetables are sold, the system automatically deducts the corresponding quantity from the inventory and records the real-time status of the inventory; when vegetables are sold, the time, quantity and price of the vegetable sales are entered through the sales management system.

9. The vegetable full-process traceability method according to claim 1, characterized in that: The blockchain data update process is as follows: the data on vegetable planting, processing, transportation and sales is organized according to a certain format, converted into a structured data format, and encrypted using a hash algorithm to generate a unique hash value as the data code; The new coded information is sent to the blockchain platform interface. After receiving the data, the blockchain platform verifies the data. After verification, the data is packaged into a new block and added to the chain structure of the blockchain; the new block is broadcast to all nodes in the blockchain network, and each node performs consensus verification on the block; After consensus is reached, the new block is permanently recorded on the blockchain, updating the traceability data of the vegetables.