Traceability data rating system and method based on blockchain

By deploying smart contracts on the blockchain, rating agricultural product characteristics information is solved, the problem of difficult to guarantee the authenticity of agricultural product ratings is achieved, and the rating process is transparent and immutable, which enhances consumer confidence.

CN114819990BActive Publication Date: 2025-05-09SHANGHAI ZHENG YUAN COMPUTER TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210429881.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-22
Publication Date
2025-05-09
Estimated Expiration
2042-04-22

AI Technical Summary

Technical Problem

The existing technology is difficult to ensure the authenticity of agricultural product ratings, which leads to the loss of consumers' confidence in high-value-added agricultural products and disrupts market order and economic development.

Method used

A blockchain-based traceability data rating system is adopted to rate the characteristic information of agricultural products through smart contracts, and the corresponding components are found based on the rating results and component association logic, and the on-chain component address is obtained to ensure that the rating process is transparent and tamper-free.

Benefits of technology

It realizes the authenticity and effectiveness of agricultural product ratings, avoids the problem that administrators can modify data at will in traditional rating methods, and enhances consumers' confidence in high-value-added agricultural products.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114819990B_ABST
    Figure CN114819990B_ABST
Patent Text Reader

Abstract

The present invention discloses a traceability data rating system and method based on blockchain, wherein the system comprises: a setting module, which is used to collect product characteristic information and component information contained in a preset component library, and set the component association logic of the characteristic information and the component; wherein the component library comprises a plurality of components for constituting a picture; an upload module, which is used to put the component library on the chain; a deployment module, which is used to deploy a smart contract on the chain, wherein the smart contract comprises a rating logic and a component association logic for scoring the characteristic information of the product; wherein the smart contract rates the characteristic information of the product on the chain according to the rating logic, and searches for the corresponding component in the component library according to the rating result and the component association logic, and obtains the component address on the chain. The present invention realizes a reliable traceability data rating.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a blockchain-based traceability data rating system and method thereof. Background Art

[0002] As people's living standards continue to improve, the concept of pursuing a healthier and greener diet has gradually gained popularity. Modern agriculture has gradually changed from the rough model of the past to a refined agricultural model. Foods labeled with organic vegetables, pure grain-fed beef, mutton and pork have become more popular. Since these labeled agricultural products are different from ordinary agricultural products in terms of production and breeding, their quality is also better. Consumers are very willing to pay for agricultural products that "match quality and price". However, as the terminal of the entire economic cycle, consumers cannot directly observe the entire production environment process of the purchased agricultural products. Some unscrupulous merchants often take advantage of this information blind spot to "pass inferior goods off as good ones" and "pass fake goods off as real ones" to make high profits. Counterfeiting methods are also emerging in an endless stream. "Fake labels" and "real labels and fake goods" have caused consumers to be skeptical of agricultural products such as "green", "organic" and "pure grain-fed", which has greatly hit the market's confidence in high-value-added agricultural products and destroyed the market order and the high-quality cycle of economic development.

[0003] Therefore, agricultural product information traceability plays an extremely important role in the development of modern agriculture. How to ensure the authenticity of agricultural product ratings in traceability information has become an urgent problem to be solved. Summary of the invention

[0004] The main purpose of the present invention is to provide a blockchain-based traceability data rating system and method to solve the problem of how to ensure the authenticity and effectiveness of agricultural product ratings.

[0005] According to one aspect of the present invention, a traceability data rating system based on blockchain is proposed, which includes: a setting module, used to collect product characteristic information and component information contained in a preset component library, and set the characteristic information and component association logic; wherein the component library includes multiple components for constituting a picture; an upload module, used to put the component library on the chain; a deployment module, used to deploy a smart contract on the chain, wherein the smart contract includes a rating logic and a component association logic for scoring the characteristic information of the product; wherein the smart contract rates the characteristic information of the product on the chain according to the rating logic, searches for the corresponding component in the component library according to the rating result and the component association logic, and obtains the component address on the chain.

[0006] Among them, the traceability data rating system also includes: an event monitoring module, which is used to call the smart contract to execute product rating after monitoring the chain event notification of product traceability information.

[0007] The rating logic includes: determining the product level according to the basic score and weight ratio of each characteristic information, wherein the basic score is related to the rarity of the product.

[0008] The smart contract determines the corresponding component according to the characteristic information, component association logic and rarity.

[0009] If there are multiple components, the smart contract randomly selects one of them.

[0010] According to another aspect of the present invention, a traceability data rating method based on blockchain is proposed, which includes: collecting product characteristic information and component information contained in a preset component library, and setting component association logic between the characteristic information and the components; wherein the component library includes multiple components for constituting a picture; putting the component library on the chain; deploying a smart contract on the chain, wherein the smart contract includes a rating logic and a component association logic for scoring the characteristic information of the product; wherein the smart contract rates the characteristic information of the product on the chain according to the rating logic, and searches for the corresponding component in the component library according to the rating result and the component association logic, and obtains the component address on the chain.

[0011] Among them, the traceability data rating method also includes: after monitoring the chain event notification of product traceability information, calling the smart contract to execute product rating.

[0012] The rating logic includes: determining the product level according to the basic score and weight ratio of each characteristic information, wherein the basic score is related to the rarity of the product.

[0013] The smart contract determines the corresponding component according to the characteristic information, component association logic and rarity.

[0014] If there are multiple components, the smart contract randomly selects one of them.

[0015] According to the technical solution of the present invention, by deploying it on the blockchain in the form of a smart contract for trusted execution according to the set logic, and displaying the rules on the final consumer side, the disadvantage of the traditional rating method that the administrator can modify the original data and rating rules at will is avoided. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0017] Figure 1It is a structural block diagram of a traceability data rating system based on blockchain according to an embodiment of the present invention;

[0018] Figure 2 is a schematic diagram of associating characteristic information with components according to an embodiment of the present invention;

[0019] Figure 3 is a schematic diagram of product rating logic according to an embodiment of the present invention;

[0020] Figure 4 It is a flowchart of a blockchain-based traceability data rating method according to an embodiment of the present invention. DETAILED DESCRIPTION

[0021] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the specific embodiments of the present invention and the corresponding drawings. 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 making creative work are within the scope of protection of the present invention.

[0022] The technical solutions provided by various embodiments of the present invention are described in detail below in conjunction with the accompanying drawings.

[0023] According to an embodiment of the present invention, a traceability data rating system based on blockchain is provided, which is applicable to the fields of breeding, animal husbandry, agriculture and animal husbandry. Figure 1 As shown, the system at least includes:

[0024] The setting module 10 is used to collect the characteristic information of the product and the component information contained in the component library, and set the component association logic of the characteristic information and the component. Among them, the characteristic information of the product can also be called traceability information, including data such as brand, process, production link, environment, quality, etc. The component library is a pre-set database including multiple components for constituting a picture. The component is a fragment that constitutes a picture, and multiple components can be spliced ​​into a picture. The component association logic is also called characteristic component association logic, including the association relationship between characteristic information and components.

[0025] The uploading module 20 is used to upload the component library to the component chain.

[0026] The deployment module 30 is used to deploy a smart contract on the component chain, wherein the smart contract includes a rating logic and a component association logic for scoring the product's characteristic information. The rating logic includes: a basic score corresponding to the characteristic information, a weight of the characteristic information, and a rarity of the characteristic information.

[0027] Among them, the smart contract performs product rating on the characteristic information of the product traceability information on the chain according to the rating logic, and searches for the corresponding component in the component library according to the rating result and the component association logic, and obtains the component address on the chain.

[0028] The smart contracts in this application are also called chaincodes or application codes. They are programs deployed in the nodes of the blockchain network. The nodes execute the smart contracts called in the received transactions to update or query the key-value data in the state database.

[0029] The details of the above-mentioned processing are described below.

[0030] refer to Figure 2 Before the traceability begins, the system needs to collect the characteristic information of the traceable products to be tracked and the component information contained in the component library, and set their association logic. Among them, the characteristic information of the product is uploaded to the traceability chain. For example, taking "rice" as an example, the characteristic information may include: soil environmental quality, variety type, planting cycle, proportion of organic fertilizer, water source water quality and other information; taking "cattle and sheep breeding" as an example, the characteristic information may include: variety type, breeding years, feed type, origin, etc. For meat products, component types may include: head, trunk, etc., and according to the degree of rarity, the component types can be further divided into: extremely rare, rare, special, ordinary, etc., such as "trunk-rare", "head-special", etc.

[0031] For traceability, select a suitable smart contract and deploy it on the component chain. The smart contract mainly includes two functions: product rating and component association logic. After the contract is deployed, register the event monitoring service in the system's event monitoring module. The service specifies the traceability chain address to be monitored and associates it with the deployed contract. The chain message of product characteristic information can be monitored through the traceability chain address.

[0032] The smart contract receives the characteristic information of a product, including: A, B, C (breeding cycle), and the actual values ​​of D (A1, B1, C1, D1). The smart contract processes each characteristic data in turn.

[0033] Combined with reference Figure 3 , the algorithm and calculation process of the example are as follows:

[0034] 1. After receiving data C1, determine the data range to which C1 belongs based on the association logic, and classify the data according to its rarity. The result is "rare", and the basic score is 3.

[0035] 2. Add the trait basic score and the trait rating ratio of 20% to get a trait score of 0.6.

[0036] 3. Similarly, rate the values ​​A1, B1, and D1, assuming that the corresponding rating scores are 1.2 / 0.9 / 0.3.

[0037] 4. The final product score is (1.2+0.9+0.6+0.3) / 4*100=75.

[0038] After rating the trait data, the basic score is 3, and the system will make visual associations based on this. For example, if the rarity score of the trait "breeding cycle" is known to be 3, and the associated component type of the trait is known to be "trunk", the system will randomly select a component from all components with the attribute "trunk-rare" and return the on-chain storage address P of the component. Repeat the above steps to find the on-chain address of the corresponding component of each trait, and finally obtain the component address set P1. Then, upload the components of the component library to the blockchain for storage, and then send a request to the component chain according to the component address and obtain the corresponding component, and call the generate image function to synthesize multiple components into a complete image corresponding to the product.

[0039] It should be noted that the traceability chain and component chain mentioned above are both blockchains, and this application uses different naming methods according to their different functions. The type of blockchain can be a private blockchain or a consortium blockchain.

[0040] Figure 4 is a flowchart of a blockchain-based traceability data rating method according to an embodiment of the present invention. Figure 4 As shown, the method comprises the following steps:

[0041] Step S402, collecting product characteristic information and component information contained in a preset component library, and setting component association logic between the characteristic information and the components; wherein the component library includes a plurality of components for forming a picture;

[0042] Step S404, putting the component library on the chain;

[0043] Step S406, deploying a smart contract on the chain, wherein the smart contract includes a rating logic and a component association logic for scoring the characteristic information of the product;

[0044] Among them, the smart contract rates the product characteristics information of the product on the chain according to the rating logic, searches for the corresponding component in the component library according to the rating result and the component association logic, and obtains the component address on the chain.

[0045] The operation steps of the method of the present invention correspond to the structural features of the system, and can be referenced to each other, and will not be described in detail again.

[0046] Although the present disclosure has been described in detail with reference to specific embodiments of the present disclosure, it will be understood by those skilled in the art that various changes and modifications may be made therein without departing from the spirit and scope of the embodiments. Therefore, the present disclosure is intended to cover modifications and variations of the present disclosure, and any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention shall be included within the scope of the claims of the present disclosure and their equivalents.

[0047] In addition, the features disclosed in the above description or claims or drawings, in their specific form or according to the mode for performing the disclosed functions or the method or process for obtaining the disclosed results, can be used alone or in any combination of these features to implement the present invention in their different forms. Specifically, one or more features of any embodiment described herein can be combined with one or more features of any other embodiment described herein.

[0048] Protection may also be sought for any features disclosed in any one or more of the publications cited in conjunction with the present disclosure and / or incorporated by reference.

Claims

1. A blockchain-based traceability data rating system, characterized in that: include: A setting module, used to collect the characteristic information of the product and the component information contained in the preset component library, and set the component association logic between the characteristic information and the components; wherein the component library includes a plurality of components for constituting a picture; and the component association logic includes the association relationship between the characteristic information and the components; An upload module, used to upload the component library and characteristic information to the chain respectively; A deployment module, used to deploy a smart contract on the chain, wherein the smart contract includes a rating logic and a component association logic for scoring the characteristic information of the product; The rating logic includes: the basic score corresponding to the trait information, the weight of the trait information, and the rarity of the trait information; An event monitoring module is used to call the smart contract to perform product rating after monitoring the on-chain event notification of product characteristic information; Among them, the smart contract rates the product characteristics information of the product on the chain according to the rating logic, searches for the corresponding component in the component library according to the rating result and the component association logic, obtains the component address on the chain, and calls the image generation function to synthesize multiple components into a complete image corresponding to the product for visual association.

2. The system according to claim 1, characterized in that The rating logic includes: determining the product level according to the basic score and weight ratio of each characteristic information, wherein the basic score is related to the rarity of the product.

3. The system according to claim 2, characterized in that The smart contract determines the corresponding component based on the characteristic information, component association logic and rarity.

4. The system according to claim 3, characterized in that If there are multiple components, the smart contract randomly selects one of the components.

5. A blockchain-based traceability data rating method, characterized in that: include: Collecting product feature information and component information contained in a preset component library, and setting component association logic between the feature information and the components, wherein the component association logic includes an association relationship between the feature information and the components; wherein the component library includes a plurality of components for constituting a picture; Uploading the component library and the characteristic information to the chain respectively; Deploy a smart contract on the chain, wherein the smart contract includes a rating logic and a component association logic for scoring the characteristic information of the product; The rating logic includes: the basic score corresponding to the trait information, the weight of the trait information, and the rarity of the trait information; After monitoring the on-chain event notification of the product characteristic information, the smart contract is called to execute product rating; wherein the smart contract rates the product characteristic information on the chain according to the rating logic, searches for the corresponding component in the component library according to the rating result and the component association logic, obtains the on-chain component address, and calls the image generation function to synthesize multiple components into a complete image corresponding to the product for visual association.

6. The method according to claim 5, characterized in that The rating logic includes: determining the product level according to the basic score and weight ratio of each characteristic information, wherein the basic score is related to the rarity of the product.

7. The method according to claim 6, characterized in that The smart contract determines the corresponding component based on the characteristic information, component association logic and rarity.

8. The method according to claim 7, characterized in that If there are multiple components, the smart contract randomly selects one of the components.

Citation Information

Patent Citations

  • Aquatic product block chain traceability optimization system and method

    CN113506117A

  • Agricultural product rating system based on block chain technology

    CN113705947A