CN111291114B - Service information processing method of agricultural and livestock product tracing system based on block chain - Google Patents

Service information processing method of agricultural and livestock product tracing system based on block chain Download PDF

Info

Publication number
CN111291114B
CN111291114B CN202010036026.7A CN202010036026A CN111291114B CN 111291114 B CN111291114 B CN 111291114B CN 202010036026 A CN202010036026 A CN 202010036026A CN 111291114 B CN111291114 B CN 111291114B
Authority
CN
China
Prior art keywords
evaluation
information
product
manufacturer
node
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010036026.7A
Other languages
Chinese (zh)
Other versions
CN111291114A (en
Inventor
刘维东
杨志伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inner Mongolia University
Original Assignee
Inner Mongolia University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Inner Mongolia University filed Critical Inner Mongolia University
Priority to CN202010036026.7A priority Critical patent/CN111291114B/en
Publication of CN111291114A publication Critical patent/CN111291114A/en
Application granted granted Critical
Publication of CN111291114B publication Critical patent/CN111291114B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K17/00Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations
    • G06K17/0022Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations arrangements or provisious for transferring data to distant stations, e.g. from a sensing device
    • G06K17/0029Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations arrangements or provisious for transferring data to distant stations, e.g. from a sensing device the arrangement being specially adapted for wireless interrogation of grouped or bundled articles tagged with wireless record carriers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/018Certifying business or products
    • G06Q30/0185Product, service or business identity fraud
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Systems or methods specially adapted for specific business sectors, e.g. utilities or tourism
    • G06Q50/02Agriculture; Fishing; Mining
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Abstract

The invention belongs to the technical field of block chains, and discloses a service information processing method of an agricultural and livestock product tracing system based on a block chain, wherein the agricultural and livestock product tracing system is built based on hardware such as RFID tags, RFID scanning terminals, computers and the like and software platforms such as Ethengfang, intelligent contract and the like; after the system is built, information is uploaded and traced, a product circulation chain is obtained through product tracing information, and basic evaluation data and other basic data of manufacturers on the product circulation chain, including but not limited to transaction amount and inventory, are read through an intelligent contract; calculating an evaluation transfer value and an evaluation comprehensive service score through the calculation node; and taking the comprehensive service evaluation score of the manufacturer node as the basis of the service evaluation of the manufacturer node, generating a printable ranking report of the manufacturer service, and screening high-quality service by using ranking information of the report. The invention has high tightness of service evaluation, uniform evaluation mode, public information and difficult tampering.

Description

Service information processing method of agricultural and livestock product tracing system based on block chain
Technical Field
The invention belongs to the technical field of block chains, and particularly relates to a service information processing method of an agricultural and livestock product tracing system based on a block chain.
Background
Currently, the current state of the art commonly used in the industry is such that: the block chain is an accounting technology which is jointly maintained by multiple parties, adopts cryptography to ensure transmission and access safety, realizes data consistent storage, is difficult to tamper and prevents repudiation. And the service evaluation is to screen out a high-quality service provider by applying a scientific evaluation method according to data on the block chain number.
With the development of blockchain technology, the application scenarios of blockchain are expanding, and many vendors provide services to the outside based on blockchain.
The block chain and agricultural and livestock products are traced, so that the problems that data are easy to tamper, information is not transparent, and manufacturers do not trust each other can be well solved. The traditional agricultural and livestock product transaction and evaluation method is point-to-point evaluation, the evaluation of a downstream manufacturer can only be received by a single upstream, the evaluation standards are not uniform and opaque, and effective comparison is difficult to form. The traditional evaluation is that manufacturers respectively receive own evaluation, the evaluation standard is not uniform and opaque, and effective comparison is difficult to carry out when the services provided by the manufacturers are compared. Because the traditional evaluation is that manufacturers respectively accept own evaluation, the downstream manufacturers are difficult to obtain the evaluation data of the upstream manufacturers when selecting the upstream manufacturers, important selection basis is lacked, and even if the upstream manufacturers disclose the evaluation data, the data is very easy to be tampered because the traditional system is a c/s architecture, and whether the disclosed data is real or not cannot be confirmed.
In summary, the problems of the prior art are as follows: (1) poor closeness of the evaluation service.
(2) The evaluation criteria are not uniform and opaque, making effective comparisons difficult.
(3) The information distribution is asymmetric, and the evaluation is easy to be tampered.
The difficulty of solving the technical problems is as follows: the evaluation data of the traditional method is point-to-point, the evaluation influence of different processing manufacturers on products in the product circulation process is not considered, and further, the influence of customer evaluation on manufacturer service is not considered or is difficult to consider in service evaluation of the manufacturers.
The significance of solving the technical problems is as follows: when the manufacturer is evaluated, the evaluation is transmitted according to a point-to-chain transmission mode, so that the influence of the evaluation on the manufacturer on a product circulation chain can be effectively reflected, and the service of the manufacturer can be evaluated by reasonably utilizing the evaluation information.
Disclosure of Invention
Aiming at the problems in the prior art, the invention provides a service information processing method of an agricultural and livestock product tracing system based on a block chain.
The invention is realized in such a way, and provides a service information processing method of an agricultural and animal product tracing system based on a block chain, which specifically comprises the following steps:
firstly, building a farm and livestock product tracing system based on a block chain by using hardware equipment such as an electronic tag, an RFID scanning terminal, a computer and the like and software platforms such as an Etherhouse and the like;
step two, completing system construction, uploading and tracing information, obtaining a product circulation chain through product tracing information, and reading basic evaluation data and other basic data of the product circulation chain through an intelligent contract, wherein the basic evaluation data comprises but is not limited to transaction amount and inventory; and the evaluation data of the products of the same manufacturer are processed in an accumulation way;
calculating an evaluation transfer value and evaluating the comprehensive service to calculate a comprehensive service score;
and step four, taking the comprehensive service evaluation value of the manufacturer node as the basis of the service evaluation of the manufacturer node, and screening high-quality service.
Further, in the first step, the hardware construction specifically includes:
(1) The method comprises the steps that a farm uses an RFID tag to establish a primary electronic tag file for farm and livestock products, the RFID tag stores basic information of a culture, and the basic information of the culture comprises but is not limited to a culture number and an anti-counterfeiting code;
(2) When agricultural and livestock products are segmented and processed, establishing a secondary electronic tag file through an RFID tag, wherein the RFID tag stores basic information of the products, and the basic information comprises but is not limited to product numbers and product anti-counterfeiting information;
(3) When agricultural and livestock products are circulated, the scanning terminal is used for reading the electronic tags to obtain basic information of the products, and circulation information is uploaded to the block chain link points through the terminal.
Further, in the first step, the software construction specifically includes:
1) Building a block chain network: adopting an Ether house platform block chain technology as a bottom layer technology, adding all manufacturers passing through the circulation process of agricultural and livestock products into a block chain network as a node, and synchronizing all data in the existing block chain system;
2) Writing an intelligent contract for storing data and reading data into a blockchain network;
3) And (3) building a data transmission service: the data transmission service is responsible for standardizing the uploaded data, calling corresponding contracts to upload the data and obtain the data; the service will continuously increase the value of the product according to the uploaded information such as the service cost, the outflow price and the like in the circulation of the commodity, so that the outflow price of the product is always higher than the inflow price when the price of the product at a certain node is obtained, and the value-increased part is the service cost of the actual manufacturer.
Further, in the second step, the information uploading and tracing specifically includes:
a. uploading the basic information of the manufacturer node, submitting the basic information to a supervisor by the manufacturer, checking the information by the supervisor and submitting the information to a data transmission service, and uploading the information to a block chain by calling an upload information contract by the data transmission service;
b. uploading product circulation information, scanning the electronic tag by the manufacturer node through the terminal when the product flows in to obtain product circulation information, and sending evaluation information to the evaluation contract through the terminal by the manufacturer node; when the product flows out, the manufacturer node submits the product processing information to the data transmission service;
c. tracing product circulation information: when a consumer or a manufacturer node scans a product electronic tag through a terminal to obtain related information of a product, the related information of the product is submitted to a data exchange service, the data exchange service calls an intelligent contract, and product circulation information and other related information in a block chain are read through the intelligent contract.
Further, in step 2), the intelligent contract specifically includes:
the intelligent contracts comprise an uploading information contract, a reading information contract and an evaluation contract;
the uploading information contract is used for uploading the basic information of the manufacturer node, the product circulation information, the recorded transaction information and the like;
the information reading contract is used for reading product circulation information, manufacturer basic information, manufacturer evaluation and other related information;
the evaluation contract is used for storing evaluation data and transmitting the evaluation data after the consumer and the downstream node of product circulation evaluate the commodity.
Further, in step three, the evaluation transfer value calculation method specifically includes:
an evaluation transport chain of length N, N, extracted from the network structure k (k ∈ N) represents a vendor node, k represents the node's number in the circulation chain, P k (k e N) represents the evaluation of the current vendor node on the upstream vendor node, R k (k belongs to N) represents that the node accounts for the total value-added proportion of the value-added of the product in the product circulation chain, G k And (k belongs to N) represents the price of the product after the value of the manufacturer node k is increased through processing, k-1 represents the last node of the manufacturer node k, Q represents the price of the product when the product is put into the hands of a consumer, and w represents the proportion of the processed product in the initial product. P 0 The evaluation of the consumer is represented, and M represents that M evaluation transmission chains exist in the block chain network;
wherein R is k The calculation formula is as follows:
Figure BDA0002366029100000041
1) In a single product circulation chain, the evaluation information received by the node is calculated as follows:
Figure BDA0002366029100000042
C ik (i, k belongs to N) represents the evaluation value of the kth manufacturer node in the ith product circulation chain, P 0 Indicates the consumer's rating value, P j Indicates the product evaluation value of the jth node, R ik (i, k belongs to N) represents that the value added to the product by the kth manufacturer node in the ith product circulation chain accounts for the total value added proportion;
2) In a plurality of product circulation chains, the evaluation data of a manufacturer node is composed of the evaluation data transmitted by the plurality of product circulation chains, and the evaluation information received by the manufacturer node has the following calculation formula:
Figure BDA0002366029100000043
S m (m is equal to N) represents the sum of evaluation values of the node in m product circulation chains, C ik And (i, k epsilon N) represents the evaluation value of the kth node in the ith product circulation chain.
Further, in the third step, the method for evaluating comprehensive services specifically includes:
firstly, taking a manufacturer node evaluation value as an index, and selecting other evaluation indexes from information acquired by an intelligent contract, wherein the evaluation indexes include but are not limited to inventory, transaction amount and infrastructure;
secondly, normalizing each index to form a normalized matrix, and performing normalization processing on the matrix to form a normalized matrix X, wherein the row of the matrix is determined by the number of manufacturer nodes participating in evaluation, and the column of the matrix is determined by the number of evaluation indexes;
Figure BDA0002366029100000051
each column of the X matrix represents the normalized values of the same index of different manufacturer nodes, each row represents the normalized values of all the indexes of one manufacturer node, X nm (N, m ∈ N) represents an evaluation value of the mth index of the nth vendor node;
thirdly, taking the maximum value of each row to form a set M, taking the minimum value of each row to form a set M, wherein the maximum value set M is the manufacturer with the best indexes, and the minimum value M is the manufacturer with the worst indexes:
M=(M 1 ,M 2 …,M m )=(max{x 11 ,…,x n1 },max{x 12 ,…,x n2 },…,max{x 1m ,…,x nm })
m=(m 1 ,m 2 …,m m )=(min{x 11 ,…,x n1 },min{x 12 ,…,x n2 },…,min{x 1m ,…,x nm })
determining that the index data is set M to be the best quality service manufacturer node, and the index data is set M to be the worst service manufacturer node;
fourthly, calculating the difference between all the evaluation manufacturers and the nodes of the manufacturers with the optimal quality and the nodes of the manufacturers with the worst quality, and obtaining the comprehensive evaluation value of the nodes of the manufacturers according to the difference value, wherein the calculation formula is as follows:
Figure BDA0002366029100000052
m j (j ∈ N) represents the value with subscript j in set m, m is index number, x nm M index, v, representing the nth vendor node j (j. Epsilon. N) represents an index x nm The weight of the evaluation result; and T is the evaluation value of the comprehensive service of the manufacturer node, a printable webpage report of the manufacturer service ranking is generated by utilizing T, and manufacturers providing high-quality service are screened out by utilizing information on the webpage report.
The invention also aims to provide an information data processing terminal for realizing the service information processing method of the block chain-based agricultural and livestock product traceability system.
Another object of the present invention is to provide a computer-readable storage medium, comprising instructions, which when run on a computer, cause the computer to execute the service information processing method of the block chain-based farm animal product traceability system.
The invention also aims to provide the agricultural and livestock product traceability system based on the block chain, which realizes the service information processing method of the agricultural and livestock product traceability system based on the block chain.
In summary, the advantages and positive effects of the invention are:
(1) The degree of closeness of the evaluation service is high. The evaluation mode of the invention is a point-to-chain evaluation mode, the evaluation is transmitted along a product service providing chain, and service providers are closely connected through evaluation transmission.
(2) The invention has uniform evaluation modes. And a uniform evaluation mode is adopted, so that the service provided by a manufacturer can be compared conveniently.
(3) The invention discloses information and is difficult to tamper. The block chain system data storage adopts a distributed mode, each node stores complete data, and data tampering is very difficult.
Compared with the prior art, the invention has the following advantages:
comparison table
Figure BDA0002366029100000061
/>
Drawings
Fig. 1 is a flowchart of a service information processing method of a block chain-based farm animal product traceability system according to an embodiment of the present invention.
Fig. 2 is a flow chart of screening of premium services provided by an embodiment of the present invention.
Fig. 3 is a schematic tracing diagram provided in the embodiment of the present invention.
Fig. 4 is a schematic diagram of single evaluation delivery provided by an embodiment of the present invention.
Fig. 5 is a schematic diagram of multiple evaluation delivery provided by an embodiment of the invention.
FIG. 6 is a diagram of simulation data for a system output provided by an embodiment of the present invention.
Fig. 7 is a diagram of simulation results of system output provided by the embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is further described in detail with reference to the following embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and do not limit the invention.
In the prior art, the tightness of the evaluation service is poor. The evaluation criteria are not uniform and opaque, making effective comparisons difficult. The information distribution is asymmetric, and the evaluation is easy to be tampered.
To solve the above problems, the present invention will be described in detail below with reference to the accompanying drawings.
As shown in fig. 1, the method for processing service information of a block chain-based farm animal product traceability system provided in the embodiment of the present invention specifically includes:
s101, establishing a block chain-based agricultural and livestock product tracing system by using hardware devices such as an electronic tag, an RFID scanning terminal, a computer and the like and software platforms such as an Etherhouse and the like.
S102, completing system construction, uploading and tracing information, obtaining a product circulation chain through product tracing information, and reading basic evaluation data and other basic data of the product circulation chain through an intelligent contract, wherein the basic evaluation data comprises but is not limited to transaction amount and inventory; and the evaluation data of the products of the same manufacturer are accumulated.
And S103, evaluating the transmission numerical value and calculating the comprehensive service score through the calculation node.
And S104, generating a printable vendor service ranking webpage report by taking the comprehensive service evaluation value of the vendor node as a basis for vendor node service evaluation, and screening out vendors providing high-quality service by using information on the webpage report.
Fig. 2 is a flow chart of screening of premium services provided by an embodiment of the present invention.
In step S101, the hardware establishment provided in the embodiment of the present invention specifically includes:
(1) Establishing a primary electronic tag file for agricultural and livestock products by using an RFID tag in a farm, wherein basic information of a culture is stored in the RFID tag, and the basic information of the culture comprises but is not limited to a culture number and an anti-counterfeiting code;
(2) When agricultural and livestock products are processed in a dividing mode, a secondary electronic tag file is established after division through an RFID tag, and the RFID tag stores basic information of the products, wherein the basic information comprises but is not limited to product numbers and product anti-counterfeiting information;
(3) When agricultural and livestock products are circulated, the scanning terminal is used for reading the electronic tags to obtain basic information of the products, and circulation information is uploaded to the block chain link points through the terminal.
In step S101, the software establishment provided in the embodiment of the present invention specifically includes:
1) Building a block chain network: the method adopts an Ether house platform block chain technology as a bottom layer technology, adds all manufacturers passing through the circulation process of agricultural and livestock products into a block chain network as a node, and synchronizes all data in the existing block chain system.
2) Intelligent contracts for storing and reading data into a blockchain network are written.
3) And (3) building a data transmission service: the data transmission service is responsible for standardizing the uploaded data, calling corresponding contracts to upload the data and obtain the data; the service will continuously increase the value of the product according to the uploaded information such as the service cost, the outflow price and the like in the circulation of the commodity, so that the outflow price of the product is always higher than the inflow price when the price of the product at a certain node is obtained, and the value-increased part is the service cost of the actual manufacturer.
As shown in fig. 3, in step S102, the information uploading and tracing provided by the embodiment of the present invention specifically includes:
a. and uploading the basic information of the manufacturer node, submitting the basic information to a supervisor by the manufacturer, checking the information by the supervisor and submitting the information to the data transmission service, and uploading the information to the block chain by calling an upload information contract by the data transmission service.
b. Uploading product circulation information, scanning the electronic tag by the manufacturer node through the terminal when the product flows in to obtain product circulation information, and sending evaluation information to the evaluation contract through the terminal by the manufacturer node; and when the product flows out, the manufacturer node submits the product processing information to the data transmission service.
c. Tracing product circulation information: when a consumer or a manufacturer node scans a product electronic tag through a terminal to obtain related information of a product, the related information of the product is submitted to a data exchange service, the data exchange service calls an intelligent contract, and product circulation information and other related information in a block chain are read through the intelligent contract.
In step 2), the intelligent contract provided by the embodiment of the invention specifically comprises:
the intelligent contracts comprise an uploading information contract, a reading information contract and an evaluation contract;
the information uploading contract is used for uploading basic information of the manufacturer nodes, product circulation information, transaction information recording and the like.
The read information contract is used for reading product circulation information, manufacturer basic information, manufacturer evaluation and other relevant information.
The evaluation contract is used for storing evaluation data and transmitting the evaluation data after the consumers and the downstream nodes of product circulation evaluate the commodities.
As shown in fig. 4 to 5, in step S103, the method for calculating an evaluation transfer value provided in the embodiment of the present invention specifically includes:
an evaluation transport chain of length N, N, extracted from the network structure k (k is an element of N) represents a vendor node, k represents the number of the node in the circulation chain, P k (k ∈ N) represents the evaluation of the current vendor node on the upstream vendor node, R k (k belongs to N) represents that the node accounts for the proportion of the product added value to the product added value in the product circulation chain, G k And (k belongs to N) represents the price of the product after the value of the manufacturer node k is increased through processing, k-1 represents the last node of the manufacturer node k, Q represents the price of the product when the product is put into the hands of a consumer, and w represents the proportion of the processed product in the initial product. P 0 Representing consumer ratings, and M representing M rating delivery chains in the blockchain network.
Wherein R is k The calculation formula is as follows:
Figure BDA0002366029100000091
1) In a single product circulation chain, the evaluation information received by the node is calculated as follows:
Figure BDA0002366029100000101
/>
C ik (i, k belongs to N) represents the evaluation value of the kth manufacturer node in the ith product circulation chain, P 0 Indicates the consumer's rating value, P j Indicates the product evaluation value of the jth node pair, R ik And (i, k belongs to N) represents that the k manufacturer node in the ith product circulation chain gives the product added value to account for the total added value proportion.
2) In a plurality of product circulation chains, the evaluation data of a manufacturer node is composed of the evaluation data transmitted by the plurality of product circulation chains, and the evaluation information received by the manufacturer node has the following calculation formula:
Figure BDA0002366029100000102
S m (m is equal to N) represents the sum of evaluation values of the node in m product circulation chains, C ik And (i, k epsilon N) represents the evaluation value of the kth node in the ith product circulation chain.
In step S103, the method for evaluating a comprehensive service provided in the embodiment of the present invention specifically includes:
first, the evaluation value of the vendor node is used as an index, and other evaluation indexes including but not limited to the stock quantity, the transaction amount and the infrastructure are selected from the information acquired by the smart contract.
Secondly, normalizing each index to form a normalized matrix, and normalizing the matrix to form a normalized matrix X, wherein the row of the matrix is determined by the number of manufacturer nodes participating in evaluation, and the column of the matrix is determined by the number of evaluation indexes;
Figure BDA0002366029100000103
each column of the X matrix represents the normalized values of the same index of different manufacturer nodes, each row represents the normalized values of all the indexes of one manufacturer node, X nm (N, m ∈ N) represents the evaluation value of the mth index of the nth vendor node.
Thirdly, taking the maximum value of each row to form a set M, taking the minimum value of each row to form a set M, wherein the maximum value set M is the manufacturer with the best indexes, and the minimum value M is the manufacturer with the worst indexes:
M=(M 1 ,M 2 …,M m )=(max{x 11 ,…,x n1 },max{x 12 ,…,x n2 },…,max{x 1m ,…,x nm })
m=(m 1 ,m 2 …,m m )=(min{x 11 ,…,x n1 },min{x 12 ,…,x n2 },…,min{x 1m ,…,x nm })
and determining that the index data is set M to be the best service manufacturer node, and determining that the index data is set M to be the worst service manufacturer node.
Fourthly, calculating the difference between all the evaluation manufacturers and the nodes of the manufacturers with the best quality and the nodes of the manufacturers with the worst quality, and obtaining the comprehensive evaluation value of the nodes of the manufacturers according to the difference value, wherein the calculation formula is as follows:
Figure BDA0002366029100000111
m j (j ∈ N) represents the value with subscript j in set m, m is index number, x nm M index, v, representing the nth vendor node j (j. Epsilon. N) represents an index x nm The weight of the evaluation result; and T is the evaluation value of the comprehensive service of the manufacturer node, a printable webpage report of the manufacturer service ranking is generated by utilizing T, and manufacturers providing high-quality service are screened out by utilizing information on the webpage report.
The technical solution and technical effects of the present invention are further described with reference to specific embodiments.
Examples
The service information processing method of the block chain-based agricultural and livestock product tracing system provided by the embodiment of the invention specifically comprises the following steps:
firstly, the method comprises the following steps: and (3) building a block chain-based agricultural and livestock product tracing system by using hardware devices such as an electronic tag, an RFID scanning terminal, a computer and the like and software platforms such as an Ethern.
1) Hardware set-up
The method comprises the following steps that a farm uses RFID tags to build a first-level electronic tag file for agricultural and livestock products, and basic information of cultured objects, such as cultured object numbers and anti-counterfeiting codes, is stored in the RFID tags.
When the agricultural and livestock products are processed in a splitting mode, secondary electronic tag archives are built after the agricultural and livestock products are split through the RFID tags, and basic information of the products, such as product numbers and product anti-counterfeiting information, is stored in the RFID tags.
When agricultural and livestock products circulate, the scanning terminal is used for reading the electronic tags to obtain basic information of the products, and then circulation information is uploaded to the block chain link points through the terminal.
2) Software building
a. And building a block chain network. The bottom layer adopts an Ethernet platform block chain technology, all manufacturers passing through the circulation process of agricultural and livestock products are added into a block chain network as a node, and all data in the existing block chain system are synchronized.
b. And (5) compiling an intelligent contract. The intelligent contracts are used for storing data and reading data in a block chain network, and the number of the main intelligent contracts is three, namely, uploading information contracts, reading information contracts and evaluating contracts, wherein the uploading information contracts are mainly used for uploading basic information of manufacturer nodes, product circulation information, recording transaction information and the like; the information contract reading is mainly used for reading product circulation information, manufacturer basic information, manufacturer evaluation and the like; the evaluation contract is mainly used for storing evaluation data and transmitting the evaluation data after a consumer and a downstream node of product circulation evaluate commodities.
c. And building a data transmission service, wherein the data transmission service is responsible for standardizing the uploaded data and calling corresponding contract uploading data and acquiring the data. The service will continuously increase the value of the product according to the uploaded information such as the service cost, the outflow price and the like in the circulation of the commodity, so that the outflow price of the product is always higher than the inflow price when the price of the product at a certain node is obtained, and the value-increased part is the service cost of the actual manufacturer.
3) Uploading and tracing of agricultural and livestock product information
And uploading the basic information of the manufacturer node, submitting the basic information to a supervisor by the manufacturer, checking the information by the supervisor and submitting the information to the data transmission service, and uploading the information to the block chain by calling an upload information contract by the data transmission service.
And uploading product circulation information. When the product flows in, the manufacturer node scans the electronic tag through the RFID terminal to obtain product circulation information, and the manufacturer node can send evaluation information to an evaluation contract through the terminal; when the product flows out, the manufacturer node submits the product processing information to the data transmission service.
Tracing product circulation information:
the tracing manner is as shown in fig. 3, taking mutton tracing as an example, when a consumer or a manufacturer node scans an electronic tag of a product through a terminal, obtains related information of the product, such as a product ID, submits the information such as the product ID to a data exchange service, the data exchange service calls an intelligent contract, and reads product circulation information and other related information in a block chain through the intelligent contract.
Secondly, the method comprises the following steps: and acquiring and processing relevant data of a manufacturer.
1) Obtaining a product flow chain: and after the agricultural and livestock product tracing block chain system is built, obtaining a product circulation chain through product tracing information.
2) Data acquisition: and reading basic evaluation data and other basic data of a product circulation chain through an intelligent contract, such as transaction amount, inventory amount and the like.
3) Data preprocessing: and accumulating the evaluation data of the products of the same manufacturer.
Thirdly, the method comprises the following steps: evaluating integrated services
1) Computing node along-chain assignment evaluation
FIG. 4 shows an evaluation propagation chain of length 4, N, extracted from the network structure k (k is an element of N) represents a vendor node, k represents the number of the node in the distribution chain (the same applies below), and P k (k ∈ N) represents the evaluation of the current vendor node on the upstream vendor node, R k (k belongs to N) represents that the node accounts for the total value-added proportion of the value-added of the product in the product circulation chain, G k And (k belongs to N) represents the price of the product after the value of the manufacturer node k is increased through processing, k-1 represents the last node of the manufacturer node k, Q represents the price of the product when the product is put into the hands of a consumer, and w represents the proportion of the processed product in the initial product. P 0 Representing consumer ratings, and M representing M rating delivery chains in the blockchain network. Wherein R is k The calculation formula is as follows:
Figure BDA0002366029100000131
in a single product circulation chain, the evaluation information received by the node is calculated as follows:
Figure BDA0002366029100000132
C ik (i, k belongs to N) represents the evaluation value of the kth manufacturer node in the ith product circulation chain, P 0 Indicates the consumer's rating, P j Indicates the product evaluation value of the jth node, R ik And (i, k belongs to N) represents that the value added to the product by the kth manufacturer node in the ith product circulation chain accounts for the total value added proportion.
In a real scene, the circulation of agricultural and animal products is a circulation of a plurality of circulation chains, so the transmission of the evaluation is also the common transmission of the plurality of chains, a schematic diagram of the transmission of the plurality of evaluations is shown in FIG. 5, circles in the diagram represent nodes of manufacturers of agricultural and animal products, N i The numbers of the manufacturer nodes are shown, arrows represent evaluation transmission paths, and it can be seen from the figure that the evaluation sources are not unique to the manufacturer nodes.
The evaluation information received by the manufacturer node in the plurality of evaluation transmissions is calculated as follows:
Figure BDA0002366029100000141
S m (m is equal to N) represents the sum of evaluation values of the node in m product circulation chains, C ik And (i, k belongs to N) represents the evaluation value of the kth node in the ith product circulation chain.
2) Vendor integrated service evaluation
The evaluation value of the manufacturer node is used as an index, and other evaluation indexes such as inventory, transaction amount, infrastructure and the like are selected from the information acquired by the intelligent contract.
Each index is normalized to form a normalized matrix, the matrix is subjected to normalization processing to form a normalized matrix X, the row of the matrix is determined by the number of manufacturer nodes participating in evaluation, and the column of the matrix is determined by the number of the evaluation indexes;
Figure BDA0002366029100000142
each column of the X matrix represents the normalized values of the same index of different manufacturer nodes, each row represents the normalized values of all the indexes of one manufacturer node, X nm (N, m ∈ N) represents the evaluation value of the mth index of the nth vendor node.
Taking the maximum value of each row to form a set M, taking the minimum value of each row to form a set M, wherein the maximum value set M is the manufacturer with the best indexes, and the minimum value M is the manufacturer with the worst indexes:
M=(M 1 ,M 2 …,M m )=(max{x 11 ,…,x n1 },max{x 12 ,…,x n2 },…,max{x 1m ,…,x nm })
m=(m 1 ,m 2 …,m m )=(min{x 11 ,…,x n1 },min{x 12 ,…,x n2 },…,min{x 1m ,…,x nm })
the index data is considered to be the best quality service vendor node for set M and the worst service vendor node for set M (these two vendors may not be present).
Calculating the difference between all the evaluation manufacturers and the nodes of the manufacturers with the best quality and the nodes of the manufacturers with the worst quality, and obtaining the comprehensive evaluation value of the nodes of the manufacturers according to the difference value, wherein the calculation formula is as follows:
Figure BDA0002366029100000151
m j (j ∈ N) represents the value with subscript j in set m, m is index number, x nm M index, v, representing the nth vendor node j (j. Epsilon. N) represents an index x nm The weight of the evaluation result. T is the evaluation value of the vendor node comprehensive service, a printable vendor service ranking webpage report is generated by utilizing T, and information on the webpage report is utilized to screen out and provide high-quality clothesThe manufacturer of the service.
Fourthly: and screening high-quality services.
And taking the comprehensive service evaluation value T of the manufacturer node as a basis for evaluating the service of the manufacturer node, generating a printable webpage report of the manufacturer service ranking by utilizing the T, and screening out manufacturers providing high-quality service by utilizing information on the webpage report, wherein the service provided is higher in quality when the numerical value is larger.
The invention is further described below in connection with simulations.
Simulation (Emulation)
The simulation data output by the system provided by the invention is shown in FIG. 6.
Tabular form of simulation data
Figure BDA0002366029100000152
Figure BDA0002366029100000161
The simulation report results output by the system provided by the invention are shown in fig. 7.
Simulation result tabular form: the scores, the transaction amount and the output value in the evaluation indexes respectively account for 33.3 percent of the evaluation result of the manufacturer.
Composite score Ranking
Slaughter house 1 1.0000 1
Slaughter house 2 0.4137 5
Slaughter house 3 0.1726 7
Slaughter house 4 0.7061 2
Slaughter house 5 0.6020 4
Slaughter house 6 0.6047 3
Slaughter house 7 0.3061 6
Slaughter house 8 0.0628 8
From the results, slaughterhouse 1 was the best quality, slaughterhouse 8 was the worst, and the calculated service rankings were also expected from the raw data.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.

Claims (7)

1. A service information processing method of a block chain-based agricultural and livestock product tracing system is characterized by specifically comprising the following steps of:
step one, building a block chain-based agricultural and livestock product tracing system by using an electronic tag, an RFID scanning terminal, computer hardware equipment and an Etherhouse software platform;
step two, uploading and tracing information by using an RFID terminal based on the built agricultural and livestock product tracing system, obtaining a product circulation chain through product tracing information, reading basic evaluation data and basic data of the product circulation chain through an intelligent contract, and performing accumulation processing on the product evaluation data of the same manufacturer;
thirdly, obtaining manufacturer evaluation on a product circulation chain through evaluation of the consumer, and further performing comprehensive evaluation on manufacturer service by using the evaluation of the consumer;
step four, taking the comprehensive service evaluation value of the manufacturer node as the basis of the service evaluation of the manufacturer node, generating a printable manufacturer service ranking webpage report, and screening high-quality service manufacturers according to the report;
in the third step, the evaluation transfer value calculation method specifically comprises the following steps:
an evaluation transport chain of length N, N, extracted from the network structure k Representing vendor nodes, k representing the number of nodes in the distribution chain, P k Represents the evaluation of the current manufacturer node to the upstream manufacturer node, R k Showing that the node accounts for the total value-added proportion of the product added value in the product circulation chain, G k The price of the product after the value is added in a manufacturer node k after processing is represented, k belongs to N, k-1 represents the last node of the manufacturer node k, Q represents the price of the product when the product reaches the hands of consumers, and w represents the proportion of the processed product in the initial product; p 0 The evaluation of the consumer is represented, and M represents that M evaluation transmission chains exist in the block chain network;
wherein R is k The calculation formula is as follows:
Figure FDA0004054949650000011
1) In a single product circulation chain, the evaluation information received by the node is calculated as follows:
Figure FDA0004054949650000021
C ik (i, k belongs to N) represents the evaluation value of the kth manufacturer node in the ith product circulation chain, P 0 Indicates the consumer's rating value, P j Indicates the product evaluation value of the jth node, R ik (i, k belongs to N) represents that the value added to the product by the kth manufacturer node in the ith product circulation chain accounts for the total value added proportion;
2) In a plurality of product circulation chains, the evaluation data of a manufacturer node is composed of the evaluation data transmitted by the plurality of product circulation chains, and the evaluation information received by the manufacturer node has the following calculation formula:
Figure FDA0004054949650000022
S m (m is equal to N) represents the sum of evaluation values of the node in m product circulation chains, C ik Representing the evaluation value of the kth node in the ith product circulation chain, wherein i, k belongs to N;
in step three, the comprehensive service evaluation method specifically includes:
firstly, taking a manufacturer node evaluation value as an index, and selecting other evaluation indexes from information acquired by an intelligent contract, wherein the evaluation indexes include but are not limited to inventory, transaction amount and infrastructure;
secondly, normalizing each index to form a normalized matrix, and performing normalization processing on the matrix to form a normalized matrix X, wherein the row of the matrix is determined by the number of manufacturer nodes participating in evaluation, and the column of the matrix is determined by the number of evaluation indexes;
Figure FDA0004054949650000023
each column of the X matrix represents the value of the same index of different manufacturer nodes after standardization, each row represents the value of all the indexes of one manufacturer node after standardization, and X nm (N, m ∈ N) represents an evaluation value of the mth index of the nth vendor node;
thirdly, taking the maximum value of each row to form a set M, taking the minimum value of each row to form a set M, wherein the maximum value set M is the best manufacturer of each index, and the minimum value M is the worst manufacturer of each index:
M=(M 1 ,M 2 …,M m )=(max{x 11 ,…,x n1 },max{x 12 ,…,x n2 },…,max{x 1m ,…,x nm });
m=(m 1 ,m 2 …,m m )=(min{x 11 ,…,x n1 },min{x 12 ,…,x n2 },…,min{x 1m ,…,x nm });
determining that the index data is set M to be the best quality service manufacturer node, and the index data is set M to be the worst service manufacturer node;
fourthly, calculating the difference between all the evaluation manufacturers and the nodes of the manufacturers with the best quality and the nodes of the manufacturers with the worst quality, and obtaining the comprehensive evaluation value of the nodes of the manufacturers according to the difference value, wherein the calculation formula is as follows:
Figure FDA0004054949650000031
m j (j ∈ N) represents the value with subscript j in set m, m is index number, x nm M index, v, representing the nth vendor node j (j. Epsilon. N) represents an index x nm The weight of the evaluation result; and T is the evaluation value of the comprehensive service of the manufacturer node, a printable webpage report of the manufacturer service ranking is generated by utilizing T, and manufacturers providing high-quality service are screened out by utilizing information on the webpage report.
2. The method for processing the service information of the farm and animal product traceability system based on the block chain as claimed in claim 1, wherein the step one of building the farm and animal product traceability system comprises a hardware building, specifically comprising:
(1) Establishing a primary electronic tag file for agricultural and livestock products by using an RFID tag in a farm, wherein basic information of a culture is stored in the RFID tag, and the basic information of the culture comprises but is not limited to a culture number and an anti-counterfeiting code;
(2) When agricultural and livestock products are segmented and processed, establishing a secondary electronic tag file through an RFID tag, wherein the RFID tag stores basic information of the products, and the basic information comprises but is not limited to product numbers and product anti-counterfeiting information;
(3) When agricultural and livestock products are circulated, the RFID scanning terminal is used for reading the RFID tag to obtain basic information of the products, and circulation information is uploaded to the block link points through the terminal.
3. The method for processing the service information of the farm and animal product traceability system based on the block chain as claimed in claim 1, wherein the step one of building the farm and animal product traceability system comprises software building, specifically:
1) Building a block chain network: adopting an Ether house platform block chain technology as a bottom layer technology, adding all manufacturers passing through the circulation process of agricultural and livestock products into a block chain network as a node, and synchronizing all data in the existing block chain system;
2) Writing an intelligent contract for storing data and reading data into a blockchain network;
3) And (3) building a data transmission service: the data transmission service is responsible for standardizing the uploaded data, calling corresponding contracts to upload the data and obtain the data; the service will continuously increase the value of the product according to the uploaded information such as the service cost, the outflow price and the like in the circulation of the commodity, so that the outflow price of the product is higher than the inflow price when the price of the product at a certain node is obtained, and the value-increased part is the service cost of the actual manufacturer.
4. The method for processing the service information of the agricultural and livestock product traceability system based on the block chain as claimed in claim 3, wherein in the step 2), the intelligent contract specifically comprises:
the intelligent contracts comprise an uploading information contract, a reading information contract and an evaluation contract;
the uploading information contract is used for uploading the basic information of the manufacturer node, the product circulation information, the recorded transaction information and the like;
the information-reading contract is used for reading product circulation information, manufacturer basic information, manufacturer evaluation and other related information;
the evaluation contract is used for storing evaluation data and transmitting the evaluation data after the consumer and the downstream node of product circulation evaluate the commodity.
5. The method for processing the service information of the agricultural and livestock product traceability system based on the block chain as claimed in claim 1, wherein in the second step, the information uploading and traceability specifically comprises:
a. uploading the basic information of the manufacturer node, submitting the basic information to a supervisor by the manufacturer, checking the information by the supervisor and submitting the information to a data transmission service, and uploading the information to a block chain by calling an upload information contract by the data transmission service;
b. product circulation information is uploaded, when a product flows in, a manufacturer node scans an RFID electronic tag through an RFID terminal to obtain the product circulation information, and the manufacturer node can send evaluation information to an evaluation contract through the RFID terminal; when the product flows out, the manufacturer node submits the product processing information to the data transmission service by using a computer;
c. tracing product circulation information: when a consumer or a manufacturer node scans an RFID electronic tag of a product through an RFID terminal to obtain related information of the product, the related information of the product is submitted to a data exchange service, the data exchange service calls an intelligent contract, and product circulation information and related information in a block chain are read through the intelligent contract.
6. An information data processing terminal for implementing the service information processing method of the block chain-based agricultural and animal product traceability system of any one of claims 1 to 5.
7. A computer-readable storage medium comprising instructions which, when run on a computer, cause the computer to perform the service information processing method of the block chain-based farm animal product traceability system of any one of claims 1-5.
CN202010036026.7A 2020-01-14 2020-01-14 Service information processing method of agricultural and livestock product tracing system based on block chain Active CN111291114B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010036026.7A CN111291114B (en) 2020-01-14 2020-01-14 Service information processing method of agricultural and livestock product tracing system based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010036026.7A CN111291114B (en) 2020-01-14 2020-01-14 Service information processing method of agricultural and livestock product tracing system based on block chain

Publications (2)

Publication Number Publication Date
CN111291114A CN111291114A (en) 2020-06-16
CN111291114B true CN111291114B (en) 2023-04-07

Family

ID=71029080

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010036026.7A Active CN111291114B (en) 2020-01-14 2020-01-14 Service information processing method of agricultural and livestock product tracing system based on block chain

Country Status (1)

Country Link
CN (1) CN111291114B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113762987A (en) * 2021-09-13 2021-12-07 内蒙古大学 Method and device for tracing agricultural and livestock products

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001095249A2 (en) * 2000-06-05 2001-12-13 Optaglio Limited Product verification and authentication system and method
CN109472625A (en) * 2018-11-19 2019-03-15 上海中信信息发展股份有限公司 Trace the evaluation method and system of participant contribution degree
CN110458466A (en) * 2019-08-16 2019-11-15 内蒙古大学 Based on data mining and the associated patent estimation method of Heterogeneous Knowledge, valuation system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001095249A2 (en) * 2000-06-05 2001-12-13 Optaglio Limited Product verification and authentication system and method
CN109472625A (en) * 2018-11-19 2019-03-15 上海中信信息发展股份有限公司 Trace the evaluation method and system of participant contribution degree
CN110458466A (en) * 2019-08-16 2019-11-15 内蒙古大学 Based on data mining and the associated patent estimation method of Heterogeneous Knowledge, valuation system

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
The design and implementation of catering safety tracing system based on block chain;Taizhi Lv等;《2019 2nd international conference on safty produce informatiization》;20191130;全文 *
可追溯系统的追溯粒度评价指标体系构建;钱建平等;《农业工程学报》;20140101(第01期);全文 *
基于区块链的制造服务可信交易方法;王强等;《计算机集成制造系统》;20191215(第12期);全文 *
基于区块链的小龙虾溯源技术体系的构建研究与应用;曹惠敏;《中国优秀硕士论文电子期刊网》;20190501;全文 *

Also Published As

Publication number Publication date
CN111291114A (en) 2020-06-16

Similar Documents

Publication Publication Date Title
Kim et al. Defining and measuring social customer-relationship management (CRM) capabilities
Dai et al. A design method for supply chain traceability systems with aligned interests
Cabral et al. A decision-making model for lean, agile, resilient and green supply chain management
Wu A systematic stochastic efficiency analysis model and application to international supplier performance evaluation
CN109767319A (en) The accrediting amount determines method, apparatus, computer equipment and storage medium
Olson et al. Economic efficiency in farm households: trends, explanatory factors, and estimation methods
Fu et al. Downstream firm’s investment with equity holding in decentralized assembly systems
Li et al. AI-driven customer relationship management for sustainable enterprise performance
CN111291114B (en) Service information processing method of agricultural and livestock product tracing system based on block chain
Alexandro et al. The influence of macroeconomic infrastructure on supply chain smoothness and national competitiveness and its implications on a country's economic growth: evidence from BRICS countries
Khan et al. Influence of government supports on small and medium enterprises development: Case study of Swat Valley
Febriani et al. Problems and requirement analysis as a first step to connect researchers and small and medium enterprises (SMEs)
Roberts et al. 11 Competition, regional integration and inclusive growth in Africa: A research agenda
CN114881365A (en) Supply chain management method and supply chain management system based on block chain
Mthimkhulu et al. Exploring the factors affecting the adoption of blockchain technology in the supply chain and logistic industry
CN110720099A (en) System and method for providing recommendation based on seed supervised learning
CN105184466A (en) Research and development management system of enterprise
Moss The record of weak US merger enforcement in big tech
Ogulin Supply chain alignment: a thematic bibliography
KR102538221B1 (en) System for providing custom management consulting service using non-fungible token
Liu et al. Direct supply base reduction in a decentralized assembly system with suppliers of varying market power
CN114285896B (en) Information pushing method, device, equipment, storage medium and program product
CN115293867A (en) Financial reimbursement user portrait optimization method, device, equipment and storage medium
KR102542035B1 (en) Patent-technology certification system and operation method of the system
Guggenberger et al. Design Principles for Quality Scoring—Coping with Information Asymmetry of Data Products

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant