Agricultural traceability data system management method based on block chain technology
By introducing blockchain technology and smart contracts in the agricultural traceability system, the data security and traceability efficiency in traditional agricultural traceability data management have been solved, and the efficient and credible data management of cucumber quality detection is realized.
Patent Information
- Application Number
- CN202411921897.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-25
- Publication Date
- 2025-01-24
- Estimated Expiration
- 2044-12-25
AI Technical Summary
Traditional agricultural traceability data management has problems such as difficulty in collecting data, easy data tampering, unreasonable traceability chain management, serious information island phenomenon, low data storage security, and imperfect trust mechanism.
Adopting an agricultural traceability data system management method based on blockchain technology, by deploying blockchain node equipment in cucumber planting areas and purchase points, quality inspection and data uploading of cucumbers are carried out, and smart contracts are used for data evaluation and processing analysis. Achieve data traceability and security.
It improves the attention of cucumber quality testing and the application of blockchain technology, ensure the integrity and security of data, quickly trace the quality of cucumber quality, and enhance consumers' trust and satisfaction with cucumber products.
Smart Images

Figure CN119359328A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of agricultural data management, and in particular to a method for managing an agricultural traceability data system based on blockchain technology. Background Art
[0002] As people's requirements for food safety and agricultural product quality continue to increase, agricultural traceability systems have become increasingly important. Traditional agricultural traceability data management has many problems, such as difficult data collection, easy data tampering, unreasonable traceability chain management, serious information island phenomenon, low data storage security, and imperfect trust mechanism. Blockchain technology, with its decentralized, tamper-proof, and traceable characteristics, provides new ideas and methods for solving these problems. Therefore, it is particularly important to invent a method for managing an agricultural traceability data system based on blockchain technology.
[0003] The prior art, such as the invention application patent with announcement number: CN110782258A, discloses a blockchain-based agricultural full-industry chain traceability system, including a technical support layer, a digital village layer, an agricultural supply chain layer, a supply and marketing layer, and a nutrition and health layer. There is an association between the cooperatives, farmers, and large enterprises in the digital village layer and the agricultural supply chain layer. The agricultural supply chain platform is associated with the agricultural big data platform, and can provide corresponding interfaces to associate with other e-commerce platforms, that is, to associate the traceability end information with the product on other e-commerce platforms; the advantages are: the invention solves the trust problem, avoids human errors, breaks the traditional information island, that is, decentralization and non-tamperability, creates a healthy system for agricultural products, and creates increased income and efficiency for the industry.
[0004] The existing technology also has the following defects, which are specifically reflected in: 1. In the existing technology, not much attention is paid to cucumber quality inspection. If cucumber quality inspection is not carried out, some poor quality cucumbers may enter the market at a lower price, and the cucumbers may have poor taste and defective appearance, affecting the eating experience and reducing the trust in cucumber products. It will not only affect the sales of cucumbers, but also have a negative impact on the market of related processed products, reducing the economic benefits of the entire cucumber industry chain.
[0005] 2. In the existing technology, there is not much attention paid to blockchain technology, the information is incoherent and there is a lack of unified standards. When a problem occurs and needs to be traced, it is difficult to find the source of the problem quickly and accurately, which increases the time and cost of tracing, is not conducive to taking timely measures to solve the problem, and reduces consumer participation and experience, thereby hindering the improvement of cucumber quality, resulting in large fluctuations in product quality and difficulty in ensuring safety. Summary of the invention
[0006] The purpose of the present invention is to provide an agricultural traceability data system management method based on blockchain technology, which solves the problems existing in the background technology.
[0007] To solve the above technical problems, the present invention adopts the following technical solutions: The present invention provides an agricultural traceability data system management method based on blockchain technology, including: step one, quality inspection and data uploading, deploying blockchain node equipment in each cucumber planting area and purchasing point, randomly sampling from each batch of cucumbers according to a preset ratio to obtain each batch of sample cucumbers, obtaining parameters of each batch of sample cucumbers, encrypting the parameter data using the encryption algorithm of the blockchain, uploading it to the blockchain network through the blockchain node, and automatically obtaining the encrypted data by the smart contract, evaluating the appearance quality coefficient of each batch of sample cucumbers according to a predetermined formula, evaluating the quality coefficient of each batch of sample cucumbers, and then evaluating the quality coefficient of each batch of cucumbers, and encrypting and storing them in the blockchain.
[0008] Step 2: Processing method analysis and blockchain decision-making. Based on the quality coefficient of each batch of cucumbers stored in the blockchain, the blockchain smart contract is used to analyze the processing method of each batch of cucumbers. If the processing method of the cucumbers is direct sales, the decision results and related data are recorded on the blockchain, and the subsequent smart contract process for analyzing the transportation and storage methods of each batch of cucumbers is triggered. If the processing method of the cucumbers is secondary processing, the smart contract will record the relevant batch information on the blockchain and notify the relevant processing enterprise nodes.
[0009] Step 3: Analysis of influencing factors and blockchain traceability. Extract the information of each batch of cucumbers that have undergone secondary processing from the blockchain, and extract the data of the planting area of each batch of cucumbers from the blockchain node corresponding to the monitoring station in the planting area. The smart contract automatically obtains the data, evaluates the environmental suitability coefficient of cucumbers in each planting area according to the established formula, and evaluates the improvement coefficient of agricultural operations in each planting area on the quality of cucumbers. Based on the environmental suitability coefficient of cucumbers in each planting area and the improvement coefficient of agricultural operations in each planting area on the quality of cucumbers, analyze the factors affecting the quality of cucumbers, and record the relevant information on the blockchain.
[0010] Preferably, the specific analysis method for evaluating the appearance quality coefficient of each sample of each batch of cucumbers is as follows:
[0011] The smart contract extracts the nodule density, nodule hardness, and uniformity of cucumbers from the parameters of each batch and sample of cucumbers, and evaluates the appearance quality coefficient of each batch and sample of cucumbers. The calculation formula is: ,in represents the appearance quality coefficient of the i-th sample cucumber in the p-th batch, , , They represent the nodule density, nodule hardness and uniformity of the i-th cucumber sample in the p-th batch, , , They represent the suitable nodule density, suitable nodule hardness, and suitable uniformity of the cucumber stored in the blockchain, respectively. , , They represent the weight factors of suitable nodule density, suitable nodule hardness, and suitable uniformity of the cucumbers stored in the blockchain, respectively. p represents the number of each batch of cucumbers. , q is a positive integer greater than 2, i represents the number of each sample cucumber, , j is a positive integer greater than 2, e represents a natural constant, , , , .
[0012] Preferably, the quality coefficient of each batch of cucumber samples is evaluated by a specific analysis method: the smart contract extracts the astringency, carotene content, and seed maturity of the cucumbers from the parameters of each batch of cucumber samples, and then evaluates the quality coefficient of each batch of cucumber samples. The calculation formula is: ,in represents the quality coefficient of the i-th sample cucumber in the p-th batch, , , They represent the astringency, carotene content, and seed maturity of the i-th cucumber sample in the p-th batch, respectively. , , They respectively represent the suitable astringency, suitable carotene content, and suitable seed maturity of the cucumbers stored in the blockchain.
[0013] Preferably, the quality coefficient of each batch of cucumbers is evaluated by a specific analysis method: based on the appearance quality coefficient of each sample of each batch of cucumbers and the quality coefficient of each sample of each batch of cucumbers, the quality coefficient of each batch of cucumbers is evaluated, and the calculation formula is: ,in represents the quality coefficient of the pth batch of cucumbers, , They represent the weight factors of the appearance quality coefficient of cucumbers and the quality coefficient of cucumbers stored in the blockchain, respectively. j represents the number of sample cucumbers. , , .
[0014] Preferably, the processing method of each batch of cucumbers is analyzed by using a blockchain smart contract. The specific analysis method is: the smart contract extracts the quality coefficient of each batch of cucumbers, and compares it with the quality coefficient of suitable cucumbers stored in the blockchain. If the quality coefficient of a batch of cucumbers is higher than the quality coefficient of suitable cucumbers stored in the blockchain, the smart contract automatically determines that the processing method of the batch of cucumbers is direct sale, and obtains batches of cucumbers sold directly; if the quality coefficient of a batch of cucumbers is lower than the quality coefficient of suitable cucumbers stored in the blockchain, the smart contract automatically determines that the processing method of the batch of cucumbers is secondary processing, and obtains batches of cucumbers subjected to secondary processing, thereby obtaining the processing method of each batch of cucumbers.
[0015] Preferably, the analysis of the transportation and storage methods of each batch of cucumbers is specifically performed by the following analysis method: the smart contract extracts the distances of each sales address of the cucumbers, and compares them with the transportation distance ranges corresponding to the normal temperature transportation and storage, cold chain transportation and storage, and controlled atmosphere transportation and storage stored in the blockchain through the blockchain smart contract; if the distance of a certain sales address of the cucumbers is within the transportation distance range corresponding to the normal temperature transportation and storage stored in the blockchain, the smart contract automatically determines that the transportation and storage method of the cucumbers at this sales address is normal temperature transportation and storage; if the distance of a certain sales address of the cucumbers is within the transportation distance range corresponding to the cold chain transportation and storage stored in the blockchain, the smart contract automatically determines that the transportation and storage method of the cucumbers at this sales address is cold chain transportation and storage; if the distance of a certain sales address of the cucumbers is within the transportation distance range corresponding to the controlled atmosphere transportation and storage stored in the blockchain, the smart contract automatically determines that the transportation and storage method of the cucumbers at this sales address is controlled atmosphere transportation and storage.
[0016] The normal temperature transportation and storage refers to a cargo transportation method carried out at natural ambient temperature, which does not require special temperature control of the transportation environment. The cold chain transportation and storage means that the cucumbers always maintain a certain temperature range throughout the transportation process, and the temperature range is determined according to the mass coefficient of the cucumbers. The controlled atmosphere transportation and storage refers to the use of professional gas regulating equipment on the basis of a refrigerated truck. During transportation, the gas concentration is adjusted in time according to the respiration of the cucumbers and the gas changes in the car to extend the shelf life of the cucumbers.
[0017] Preferably, the temperature range is determined according to the quality coefficient of the cucumber. The specific analysis method is: based on the historical transportation and storage data stored in the blockchain, the smart contract extracts the quality coefficient of the cucumbers stored in each cold chain transportation before transportation and the quality coefficient of the cucumbers stored in each cold chain transportation after transportation, calculates the change in the quality coefficient of the cucumbers stored in each cold chain transportation, and compares it with the safety change in the quality coefficient of the cucumbers stored in the blockchain. If the change in the quality coefficient of the cucumbers stored in a certain cold chain transportation is higher than the safety change, the smart contract automatically determines that the temperature range of the cold chain transportation storage is unqualified; if the change in the quality coefficient of the cucumbers stored in a certain cold chain transportation is lower than the safety change, the smart contract automatically determines that the temperature range of the cold chain transportation storage is qualified. After obtaining the qualified cold chain transportation storage temperature ranges, the smart contract compares them with each other to determine the minimum and maximum temperatures, and uses them as the minimum and maximum temperatures of the temperature range suitable for cucumber transportation and storage, respectively, and encrypts and stores them on the blockchain. At the same time, during the transportation process, the temperature sensor data of the transport vehicle is monitored in real time using blockchain technology. If the temperature exceeds the set range, the smart contract immediately triggers an early warning message and notifies the relevant parties.
[0018] Preferably, the environmental suitability coefficient of cucumbers in each planting area is evaluated by a specific analysis method: the smart contract extracts light intensity, soil moisture, and temperature from the environmental data of each planting area, and evaluates the environmental suitability coefficient of cucumbers in each planting area. The calculation formula is: ,in represents the environmental suitability coefficient of cucumber in the mth planting area, , , Respectively represent the light intensity, soil moisture, and temperature of the mth planting area, , , They represent the appropriate light intensity, soil moisture, and temperature for the cucumbers stored in the blockchain. , , They represent the suitable light intensity weight factor, suitable soil moisture weight factor, and suitable temperature weight factor of the cucumber stored in the blockchain, respectively. m represents the number of each planting area. , , , , .
[0019] Preferably, the evaluation of the improvement coefficient of agricultural operations in each planting area on the quality of cucumbers is specifically analyzed by the following method: the smart contract extracts the agricultural operation data of each planting area, evaluates the improvement coefficient of pesticides on the quality of cucumbers in each planting area, evaluates the improvement coefficient of fertilizers on the quality of cucumbers in each planting area, and then evaluates the improvement coefficient of agricultural operations in each planting area on the quality of cucumbers. The calculation formula is: ,in represents the improvement coefficient of the agricultural operation on cucumber quality in the mth planting area, represents the improvement coefficient of pesticide on cucumber quality in the mth planting area, represents the improvement coefficient of fertilizer on cucumber quality in the mth planting area, and They respectively represent the weight factors of the improvement coefficient of the quality of cucumbers caused by pesticides and the weight factors of the improvement coefficient of the quality of cucumbers caused by fertilizers stored in the blockchain.
[0020] Preferably, the factors affecting the quality of cucumbers are analyzed, and the specific analysis method is: the smart contract extracts the environmental suitability coefficient of cucumbers in each planting area and the improvement coefficient of the agricultural operation on the quality of cucumbers in each planting area, and compares them with the environmental suitability coefficient of cucumbers and the improvement coefficient of the agricultural operation on the quality of cucumbers stored in the blockchain respectively; if the environmental suitability coefficient of cucumbers in a certain planting area is lower than the environmental suitability coefficient of cucumbers stored in the blockchain, the smart contract automatically determines that the environment of the planting area is abnormal, and determines that the environment is an influencing factor of cucumber quality; if the improvement coefficient of the agricultural operation on the quality of cucumbers in a certain planting area is lower than the improvement coefficient of the agricultural operation on the quality of cucumbers stored in the blockchain, the smart contract automatically determines that the agricultural operation of the planting area is abnormal, and determines that the agricultural operation is an influencing factor of cucumber quality.
[0021] The beneficial effects of the present invention are as follows: 1. In the present invention, the attention paid to the quality inspection of cucumbers is increased, and the quality inspection of cucumbers is carried out from two aspects: appearance quality and quality. The cucumbers that have passed the quality inspection are guaranteed in terms of appearance, taste and nutrition. Consumers can buy cucumbers with better quality, which improves consumers' satisfaction with cucumbers and enhances consumers' trust in cucumber products, thereby promoting cucumber consumption.
[0022] 2. In the present invention, more attention is paid to blockchain technology. Blockchain can completely record every link and data in the agricultural traceability process. All information from farmland soil and climate conditions to agricultural product processing and transportation can be completely stored on the blockchain, which helps to improve the quality of cucumbers. When quality problems occur in cucumbers, they can be quickly traced, which increases consumer confidence in cucumber products and is conducive to establishing a good brand image. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0024] Figure 1 The present invention is a schematic flow chart of the steps for implementing the method. DETAILED DESCRIPTION
[0025] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0026] Reference Figure 1 As shown, the present invention provides an agricultural traceability data system management method based on blockchain technology, including: step one, quality inspection and data chain, deploying blockchain node equipment in each cucumber planting area and purchasing point, randomly sampling from each batch of cucumbers according to a preset ratio to obtain each batch of sample cucumbers, obtaining parameters of each batch of sample cucumbers, encrypting the parameter data using the encryption algorithm of the blockchain, uploading it to the blockchain network through the blockchain node, automatically obtaining the encrypted data by the smart contract, evaluating the appearance quality coefficient of each batch of sample cucumbers according to a predetermined formula, evaluating the quality coefficient of each batch of sample cucumbers, and then evaluating the quality coefficient of each batch of cucumbers, and encrypting and storing them in the blockchain.
[0027] It should be noted that the preset ratio is analyzed by extracting historical data from a database, where the historical data include the ratio of batches of cucumbers sold directly to batches of cucumbers processed for the second time. For example, if the ratio of batches of cucumbers sold directly to batches of cucumbers processed for the second time is 9:1, then the preset ratio is relatively low, such as 10%.
[0028] In a specific embodiment, the evaluation of the appearance quality coefficient of each batch of cucumber samples is performed by a specific analysis method: the smart contract extracts the nodule density, nodule hardness, and uniformity of the cucumbers from the parameters of each batch of cucumber samples, and evaluates the appearance quality coefficient of each batch of cucumber samples. The calculation formula is: ,in represents the appearance quality coefficient of the i-th sample cucumber in the p-th batch, , , They represent the nodule density, nodule hardness and uniformity of the i-th cucumber sample in the p-th batch, , , They represent the suitable nodule density, suitable nodule hardness, and suitable uniformity of the cucumber stored in the blockchain, respectively. , , They represent the weight factors of suitable nodule density, suitable nodule hardness, and suitable uniformity of the cucumbers stored in the blockchain, respectively. p represents the number of each batch of cucumbers. , q is a positive integer greater than 2, i represents the number of each sample cucumber, , j is a positive integer greater than 2, e represents a natural constant, , , , .
[0029] It should be noted that the nodule density, nodule hardness and uniformity of each cucumber sample are obtained by computer vision processing and analysis, the hardness of each cucumber sample is obtained by a hardness meter, the suitable nodule density, suitable nodule hardness and suitable uniformity of the cucumber, the weight factor of the suitable nodule density of the cucumber, the weight factor of the suitable nodule hardness and the weight factor of the suitable uniformity are set by professionals.
[0030] In a specific embodiment, the quality coefficient of each batch of cucumber samples is evaluated by a specific analysis method: the smart contract extracts the astringency, carotene content, and seed maturity of the cucumbers from the parameters of each batch of cucumber samples, and then evaluates the quality coefficient of each batch of cucumber samples. The calculation formula is: ,in represents the quality coefficient of the i-th sample cucumber in the p-th batch, , , They represent the astringency, carotene content, and seed maturity of the i-th cucumber sample in the p-th batch, respectively. , , They respectively represent the suitable astringency, suitable carotene content, and suitable seed maturity of the cucumbers stored in the blockchain.
[0031] It should be noted that the astringency, carotene content, and seed maturity of each cucumber sample were obtained by high performance liquid chromatography-mass spectrometry, the carotene content of each cucumber sample was obtained by gas chromatography, and the seed maturity of each cucumber sample was obtained by computer vision processing and analysis, and the appropriate astringency, appropriate carotene content, and appropriate seed maturity of the cucumber are set by professionals.
[0032] In the present invention, the attention paid to the quality inspection of cucumbers is increased, and the quality inspection of cucumbers is carried out from two aspects of appearance quality and quality. The cucumbers that pass the quality inspection are guaranteed in appearance, taste and nutrition, etc. Consumers can buy cucumbers with better quality, which improves consumers' satisfaction with cucumbers and enhances consumers' trust in cucumber products, thereby promoting cucumber consumption.
[0033] In a specific embodiment, the quality coefficient of each batch of cucumbers is evaluated by a specific analysis method: based on the appearance quality coefficient of each sample of cucumbers in each batch and the quality coefficient of each sample of cucumbers in each batch, the quality coefficient of each batch of cucumbers is evaluated, and the calculation formula is: ,in represents the quality coefficient of the pth batch of cucumbers, , They represent the weight factors of the appearance quality coefficient of cucumbers and the quality coefficient of cucumbers stored in the blockchain, respectively. j represents the number of sample cucumbers. , , .
[0034] It should be noted that the weight factor of the cucumber's appearance quality coefficient, the weight factor of the cucumber's quality coefficient, and the appropriate cucumber's quality coefficient are set by professionals.
[0035] Step 2: Processing method analysis and blockchain decision-making. Based on the quality coefficient of each batch of cucumbers stored in the blockchain, the blockchain smart contract is used to analyze the processing method of each batch of cucumbers. If the processing method of the cucumbers is direct sales, the decision results and related data are recorded on the blockchain, and the subsequent smart contract process for analyzing the transportation and storage methods of each batch of cucumbers is triggered. If the processing method of the cucumbers is secondary processing, the smart contract will record the relevant batch information on the blockchain and notify the relevant processing enterprise nodes.
[0036] In a specific embodiment, the processing method of each batch of cucumbers is analyzed by using a blockchain smart contract. The specific analysis method is: the smart contract extracts the quality coefficient of each batch of cucumbers, and compares it with the quality coefficient of suitable cucumbers stored in the blockchain. If the quality coefficient of a batch of cucumbers is higher than the quality coefficient of suitable cucumbers stored in the blockchain, the smart contract automatically determines that the processing method of the batch of cucumbers is direct sale, and obtains batches of cucumbers sold directly. If the quality coefficient of a batch of cucumbers is lower than the quality coefficient of suitable cucumbers stored in the blockchain, the smart contract automatically determines that the processing method of the batch of cucumbers is secondary processing, and obtains batches of cucumbers that are secondary processed, and then obtains the processing method of each batch of cucumbers.
[0037] In a specific embodiment, the transportation and storage methods of each batch of cucumbers are analyzed, and the specific analysis method is as follows: the smart contract extracts the distances of each sales address of the cucumbers, and compares them with the transportation distance ranges corresponding to the normal temperature transportation storage, cold chain transportation storage, and controlled atmosphere transportation storage stored in the blockchain through the blockchain smart contract. If the distance of a certain sales address of the cucumbers is within the transportation distance range corresponding to the normal temperature transportation storage stored in the blockchain, the smart contract automatically determines that the transportation and storage method of the cucumber at this sales address is normal temperature transportation storage; if the distance of a certain sales address of the cucumbers is within the transportation distance range corresponding to the cold chain transportation storage stored in the blockchain, the smart contract automatically determines that the transportation and storage method of the cucumber at this sales address is cold chain transportation storage; if the distance of a certain sales address of the cucumbers is within the transportation distance range corresponding to the controlled atmosphere transportation storage stored in the blockchain, the smart contract automatically determines that the transportation and storage method of the cucumber at this sales address is controlled atmosphere transportation storage.
[0038] It should be noted that the transportation distance ranges corresponding to the normal temperature transportation and storage, cold chain transportation and storage, and controlled atmosphere transportation and storage are set by professionals.
[0039] The normal temperature transportation and storage refers to a cargo transportation method carried out at natural ambient temperature, which does not require special temperature control of the transportation environment. The cold chain transportation and storage means that the cucumbers always maintain a certain temperature range throughout the transportation process, and the temperature range is determined according to the mass coefficient of the cucumbers. The controlled atmosphere transportation and storage refers to the use of professional gas regulating equipment on the basis of a refrigerated truck. During transportation, the gas concentration is adjusted in time according to the respiration of the cucumbers and the gas changes in the car to extend the shelf life of the cucumbers.
[0040] In a specific embodiment, the temperature range is determined according to the quality coefficient of the cucumber. The specific analysis method is: based on the historical transportation storage data stored in the blockchain, the smart contract extracts the quality coefficient of the cucumbers stored in each cold chain transportation before transportation and the quality coefficient of the cucumbers stored in each cold chain transportation after transportation, calculates the change in the quality coefficient of the cucumbers stored in each cold chain transportation, and compares it with the safety change in the quality coefficient of the cucumbers stored in the blockchain. If the change in the quality coefficient of the cucumbers stored in a certain cold chain transportation is higher than the safety change, the smart contract automatically determines that the temperature range of the cold chain transportation storage is unqualified; if the change in the quality coefficient of the cucumbers stored in a certain cold chain transportation is lower than the safety change, the smart contract automatically determines that the temperature range of the cold chain transportation storage is qualified. After obtaining the qualified cold chain transportation storage temperature ranges, the smart contract compares them with each other to determine the minimum and maximum temperatures, and uses them as the minimum and maximum temperatures of the temperature range suitable for cucumber transportation and storage, respectively, and encrypts and stores them on the blockchain. At the same time, during the transportation process, the temperature sensor data of the transport vehicle is monitored in real time using blockchain technology. If the temperature exceeds the set range, the smart contract immediately triggers an early warning message and notifies the relevant parties.
[0041] It should be noted that the safe change in the quality coefficient of the cucumbers stored in the blockchain is set by professionals.
[0042] Step 3: Analysis of influencing factors and blockchain traceability. Extract the information of each batch of cucumbers that have undergone secondary processing from the blockchain, and extract the data of the planting area of each batch of cucumbers from the blockchain node corresponding to the monitoring station in the planting area. The smart contract automatically obtains the data, evaluates the environmental suitability coefficient of cucumbers in each planting area according to the established formula, and evaluates the improvement coefficient of agricultural operations in each planting area on the quality of cucumbers. Based on the environmental suitability coefficient of cucumbers in each planting area and the improvement coefficient of agricultural operations in each planting area on the quality of cucumbers, analyze the factors affecting the quality of cucumbers, and record the relevant information on the blockchain.
[0043] In a specific embodiment, the environmental suitability coefficient of cucumbers in each planting area is evaluated by a specific analysis method: the smart contract extracts light intensity, soil moisture, and temperature from the environmental data of each planting area, and evaluates the environmental suitability coefficient of cucumbers in each planting area. The calculation formula is: ,in represents the environmental suitability coefficient of cucumber in the mth planting area, , , Respectively represent the light intensity, soil moisture, and temperature of the mth planting area, , , They represent the appropriate light intensity, soil moisture, and temperature for the cucumbers stored in the blockchain. , , They represent the suitable light intensity weight factor, suitable soil moisture weight factor, and suitable temperature weight factor of the cucumber stored in the blockchain, respectively. m represents the number of each planting area. , , , , .
[0044] It should be noted that the suitable light intensity, suitable soil moisture, suitable temperature, suitable light intensity weight factor, suitable soil moisture weight factor, and suitable temperature weight factor for the cucumbers are set by professionals, and the light intensity of each area is obtained by a photoelectric sensor, and the soil moisture of each planting area is obtained by a soil moisture sensor. The temperature of each planting area is obtained by querying the historical data or real-time data of the meteorological station, and the light intensity of each planting area, the soil moisture of each planting area, and the temperature of each planting area refer to the average within the monitoring time range.
[0045] In a specific embodiment, the evaluation of the improvement coefficient of agricultural operations in each planting area on the quality of cucumbers is specifically analyzed as follows: the smart contract extracts the agricultural operation data of each planting area, evaluates the improvement coefficient of pesticides in each planting area on the quality of cucumbers, evaluates the improvement coefficient of fertilizers in each planting area on the quality of cucumbers, and then evaluates the improvement coefficient of agricultural operations in each planting area on the quality of cucumbers. The calculation formula is: ,in represents the improvement coefficient of the agricultural operation on cucumber quality in the mth planting area, represents the improvement coefficient of pesticide on cucumber quality in the mth planting area, represents the improvement coefficient of fertilizer on cucumber quality in the mth planting area, and They respectively represent the weight factors of the improvement coefficient of the quality of cucumbers caused by pesticides and the weight factors of the improvement coefficient of the quality of cucumbers caused by fertilizers stored in the blockchain.
[0046] It should be noted that the weight factors of the improvement coefficients of the pesticides on the quality of cucumbers and the fertilizers on the quality of cucumbers stored in the blockchain are set by professionals. The specific analysis method for evaluating the improvement coefficients of the pesticides on the quality of cucumbers in each planting area is as follows: the smart contract extracts the type, dosage, and frequency of use of each pesticide in each planting area, and then evaluates the improvement coefficients of the pesticides on the quality of cucumbers in each planting area. The calculation formula is: ,in represents the improvement coefficient of pesticide on cucumber quality in the mth planting area, , , They represent the type, dosage, and frequency of pesticide use in the mth planting area. , , They respectively indicate the appropriate type, dosage and frequency of use of pesticides.
[0047] It should also be noted that the type, dosage, and frequency of use of the appropriate pesticides are selected based on the type of pests and diseases. Through accurate diagnosis of pests and diseases, pesticides are selected in a targeted manner. Pesticides are used when cucumbers are infested with pests and diseases. Similarly, the improvement coefficient of fertilizers on cucumber quality in each planting area is obtained. I will not go into details again.
[0048] In a specific embodiment, the factors affecting cucumber quality are analyzed, and the specific analysis method is: the smart contract extracts the environmental suitability coefficient of cucumbers in each planting area and the improvement coefficient of agricultural operations on cucumber quality in each planting area, and compares them with the environmental suitability coefficient of cucumbers and the improvement coefficient of agricultural operations on cucumber quality stored in the blockchain respectively. If the environmental suitability coefficient of cucumbers in a certain planting area is lower than the environmental suitability coefficient of cucumbers stored in the blockchain, the smart contract automatically determines that the environment of the planting area is abnormal, and determines that the environment is an influencing factor of cucumber quality. If the improvement coefficient of agricultural operations on cucumber quality in a certain planting area is lower than the improvement coefficient of agricultural operations on cucumber quality stored in the blockchain, the smart contract automatically determines that the agricultural operations in the planting area are abnormal, and determines that the agricultural operations are an influencing factor of cucumber quality.
[0049] It should be noted that the improvement coefficient of the pesticide on the cucumber quality stored in the blockchain and the improvement coefficient of the fertilizer on the cucumber quality stored in the blockchain are set by professionals.
[0050] In the present invention, more attention is paid to blockchain technology. Blockchain can completely record every link and data in the agricultural traceability process. All information from farmland soil and climate conditions to agricultural product processing and transportation can be completely stored on the blockchain, which helps to improve the quality of cucumbers. When quality problems occur in cucumbers, they can be quickly traced, which increases consumer confidence in cucumber products and is conducive to establishing a good brand image.
[0051] The above contents are merely examples and explanations of the concept of the present invention. Those skilled in the art may make various modifications or additions to the specific embodiments described or replace them in a similar manner. As long as they do not deviate from the concept of the invention or exceed the scope defined by the present invention, they shall all fall within the protection scope of the present invention.
Claims
1. A method for managing an agricultural traceability data system based on blockchain technology, characterized in that: include: Step 1: Quality inspection and data upload. Blockchain node devices are deployed in each cucumber planting area and purchasing point. Random sampling is performed from each batch of cucumbers according to a preset ratio to obtain the parameters of each batch of cucumbers. The parameter data is encrypted using the encryption algorithm of the blockchain and uploaded to the blockchain network through the blockchain node. The smart contract automatically obtains the encrypted data, evaluates the appearance quality coefficient of each batch of cucumbers according to the established formula, evaluates the quality coefficient of each batch of cucumbers, and then evaluates the quality coefficient of each batch of cucumbers, which is encrypted and stored in the blockchain. Step 2: Processing method analysis and blockchain decision-making. Based on the quality coefficient of each batch of cucumbers stored in the blockchain, the blockchain smart contract is used to analyze the processing method of each batch of cucumbers. If the processing method of the cucumbers is direct sales, the decision result and related data are recorded on the blockchain, and the subsequent smart contract process for analyzing the transportation and storage methods of each batch of cucumbers is triggered. If the processing method of the cucumbers is secondary processing, the smart contract records the relevant batch information on the blockchain and notifies the relevant processing enterprise nodes; Step 3: Analysis of influencing factors and blockchain traceability. Extract the information of each batch of cucumbers that have undergone secondary processing from the blockchain, and extract the data of the planting area of each batch of cucumbers from the blockchain node corresponding to the monitoring station in the planting area. The smart contract automatically obtains the data, evaluates the environmental suitability coefficient of cucumbers in each planting area according to the established formula, and evaluates the improvement coefficient of agricultural operations in each planting area on the quality of cucumbers. Based on the environmental suitability coefficient of cucumbers in each planting area and the improvement coefficient of agricultural operations in each planting area on the quality of cucumbers, analyze the factors affecting the quality of cucumbers, and record the relevant information on the blockchain.
2. According to claim 1, a method for managing an agricultural traceability data system based on blockchain technology is characterized in that: The specific analysis method for evaluating the appearance quality coefficient of each batch of cucumber samples is as follows: The smart contract extracts the nodule density, nodule hardness, and uniformity of cucumbers from the parameters of each batch and sample of cucumbers, and evaluates the appearance quality coefficient of each batch and sample of cucumbers. The calculation formula is: ,in represents the appearance quality coefficient of the i-th sample cucumber in the p-th batch, , , They represent the nodule density, nodule hardness and uniformity of the i-th cucumber sample in the p-th batch, , , They represent the suitable nodule density, suitable nodule hardness, and suitable uniformity of the cucumber stored in the blockchain, respectively. , , They represent the weight factors of suitable nodule density, suitable nodule hardness, and suitable uniformity of the cucumbers stored in the blockchain, respectively. p represents the number of each batch of cucumbers. , q is a positive integer greater than 2, i represents the number of each sample cucumber, , j is a positive integer greater than 2, e represents a natural constant, , , , .
3. According to claim 2, a method for managing an agricultural traceability data system based on blockchain technology is characterized in that: The specific analysis method for evaluating the quality coefficient of each batch of cucumber samples is as follows: The smart contract extracts the astringency, carotene content, and seed maturity of cucumbers from the parameters of each batch and sample of cucumbers, and then evaluates the quality coefficient of each batch and sample of cucumbers. The calculation formula is: ,in represents the quality coefficient of the i-th sample cucumber in the p-th batch, , , They represent the astringency, carotene content, and seed maturity of the i-th cucumber sample in the p-th batch, respectively. , , They respectively represent the suitable astringency, suitable carotene content, and suitable seed maturity of the cucumbers stored in the blockchain.
4. According to claim 3, a method for managing an agricultural traceability data system based on blockchain technology is characterized in that: The specific analysis method for evaluating the quality coefficient of each batch of cucumbers is as follows: Based on the appearance quality coefficient of each batch of cucumbers and the quality coefficient of each batch of cucumbers, the quality coefficient of each batch of cucumbers is evaluated. The calculation formula is: ,in represents the quality coefficient of the pth batch of cucumbers, , They represent the weight factors of the appearance quality coefficient of cucumbers and the quality coefficient of cucumbers stored in the blockchain, respectively. j represents the number of sample cucumbers. , , .
5. According to claim 4, a method for managing an agricultural traceability data system based on blockchain technology is characterized in that: The blockchain smart contract is used to analyze the processing methods of each batch of cucumbers. The specific analysis method is as follows: The smart contract extracts the quality coefficient of each batch of cucumbers, and compares it with the quality coefficient of suitable cucumbers stored in the blockchain. If the quality coefficient of a batch of cucumbers is higher than the quality coefficient of suitable cucumbers stored in the blockchain, the smart contract automatically determines that the processing method of this batch of cucumbers is direct sale, and obtains batches of cucumbers sold directly. If the quality coefficient of a batch of cucumbers is lower than the quality coefficient of suitable cucumbers stored in the blockchain, the smart contract automatically determines that the processing method of this batch of cucumbers is secondary processing, and obtains batches of cucumbers processed by secondary processing, and then obtains the processing method of each batch of cucumbers.
6. According to claim 5, a method for managing an agricultural traceability data system based on blockchain technology is characterized in that: The specific analysis method for analyzing the transportation and storage methods of each batch of cucumbers is as follows: The smart contract extracts the distances of each cucumber sales address, and compares them with the transportation distance ranges corresponding to normal temperature transportation storage, cold chain transportation storage, and controlled atmosphere transportation storage stored in the blockchain through the blockchain smart contract. If the distance of a certain cucumber sales address is within the transportation distance range corresponding to normal temperature transportation storage stored in the blockchain, the smart contract automatically determines that the transportation and storage method of the cucumber at this sales address is normal temperature transportation storage; if the distance of a certain cucumber sales address is within the transportation distance range corresponding to cold chain transportation storage stored in the blockchain, the smart contract automatically determines that the transportation and storage method of the cucumber at this sales address is cold chain transportation storage; if the distance of a certain cucumber sales address is within the transportation distance range corresponding to controlled atmosphere transportation storage stored in the blockchain, the smart contract automatically determines that the transportation and storage method of the cucumber at this sales address is controlled atmosphere transportation storage; The normal temperature transportation and storage refers to a cargo transportation method carried out at natural ambient temperature, which does not require special temperature control of the transportation environment. The cold chain transportation and storage means that the cucumbers always maintain a certain temperature range throughout the transportation process, and the temperature range is determined according to the mass coefficient of the cucumbers. The controlled atmosphere transportation and storage refers to the use of professional gas regulating equipment on the basis of a refrigerated truck. During transportation, the gas concentration is adjusted in time according to the respiration of the cucumbers and the gas changes in the car to extend the shelf life of the cucumbers.
7. The method for managing an agricultural traceability data system based on blockchain technology according to claim 6 is characterized in that: The temperature range is determined according to the mass coefficient of the cucumber, and the specific analysis method is: Based on the historical transportation and storage data stored in the blockchain, the smart contract extracts the quality coefficient of the cucumbers stored in each cold chain transportation before transportation and the quality coefficient of the cucumbers stored in each cold chain transportation after transportation, calculates the change in the quality coefficient of the cucumbers stored in each cold chain transportation, and compares it with the safe change in the quality coefficient of the cucumbers stored in the blockchain. If the change in the quality coefficient of the cucumbers stored in a cold chain transportation is higher than the safe change, the smart contract automatically determines that the temperature range of the cold chain transportation storage is unqualified; if the change in the quality coefficient of the cucumbers stored in a cold chain transportation is lower than the safe change, the smart contract automatically determines that the temperature range of the cold chain transportation storage is qualified. After obtaining the qualified cold chain transportation storage temperature ranges, the smart contract compares them with each other to determine the minimum and maximum temperatures, and uses them as the minimum and maximum temperatures suitable for cucumber transportation and storage, respectively, and encrypts and stores them on the blockchain. At the same time, during the transportation process, the temperature sensor data of the transport vehicle is monitored in real time using blockchain technology. If the temperature exceeds the set range, the smart contract immediately triggers an early warning message and notifies the relevant parties.
8. The method for managing an agricultural traceability data system based on blockchain technology according to claim 5 is characterized in that: The specific analysis method for evaluating the environmental suitability coefficient of cucumbers in each planting area is as follows: The smart contract extracts light intensity, soil moisture, and temperature from the environmental data of each planting area to evaluate the environmental suitability coefficient of cucumbers in each planting area. The calculation formula is: ,in represents the environmental suitability coefficient of cucumber in the mth planting area, , , Respectively represent the light intensity, soil moisture, and temperature of the mth planting area, , , They represent the appropriate light intensity, soil moisture, and temperature for the cucumbers stored in the blockchain. , , They represent the suitable light intensity weight factor, suitable soil moisture weight factor, and suitable temperature weight factor of the cucumber stored in the blockchain, respectively. m represents the number of each planting area. , , , , .
9. The method for managing an agricultural traceability data system based on blockchain technology according to claim 8, characterized in that: The specific analysis method for evaluating the improvement coefficient of agricultural operations in each planting area on cucumber quality is as follows: The smart contract extracts the agricultural operation data of each planting area, evaluates the improvement coefficient of pesticides on cucumber quality in each planting area, evaluates the improvement coefficient of fertilizers on cucumber quality in each planting area, and then evaluates the improvement coefficient of agricultural operations on cucumber quality in each planting area. The calculation formula is: ,in represents the improvement coefficient of the agricultural operation on cucumber quality in the mth planting area, represents the improvement coefficient of pesticide on cucumber quality in the mth planting area, represents the improvement coefficient of fertilizer on cucumber quality in the mth planting area, and They respectively represent the weight factors of the improvement coefficient of the quality of cucumbers caused by pesticides and the weight factors of the improvement coefficient of the quality of cucumbers caused by fertilizers stored in the blockchain.
10. The method for managing an agricultural traceability data system based on blockchain technology according to claim 9, characterized in that: The factors affecting cucumber quality are analyzed, and the specific analysis method is as follows: The smart contract extracts the environmental suitability coefficient of cucumbers in each planting area and the improvement coefficient of agricultural operations on cucumber quality in each planting area, and compares them with the environmental suitability coefficient of cucumbers and the improvement coefficient of agricultural operations on cucumber quality stored in the blockchain. If the environmental suitability coefficient of cucumbers in a certain planting area is lower than the environmental suitability coefficient of cucumbers stored in the blockchain, the smart contract automatically determines that the environment of the planting area is abnormal, and determines that the environment is an influencing factor of cucumber quality. If the improvement coefficient of agricultural operations on cucumber quality in a certain planting area is lower than the improvement coefficient of agricultural operations on cucumber quality stored in the blockchain, the smart contract automatically determines that the agricultural operations in the planting area are abnormal, and determines that agricultural operations are an influencing factor of cucumber quality.
Citation Information
Patent Citations
Agricultural whole industry chain traceability system based on block chain
CN110782258A
Quality grading method and quality grading system for agricultural products
CN110517160A
Article recognition method and device
CN113077412A
Agricultural product quality safety tracking device based on block chain
CN114951010A
Agricultural production information tracing method based on block chain
CN115879961A