| Literature DB >> 35111911 |
Bello Musa Yakubu1, Rabia Latif2, Aisha Yakubu3, Majid Iqbal Khan4, Auwal Ibrahim Magashi5.
Abstract
The increasing number of rice product safety issues and the potential for contamination have established an enormous need for an effective strategy for the traceability of the rice supply chain. Tracing the origins of a rice product from raw materials to end customers is very complex and costly. Existing food supply chain methods (for example, rice) do not provide a scalable and cost-effective means of agricultural food supply. Besides, consumers lack the capability and resources required to check or report on the quality of agricultural goods in terms of defects or contamination. Consequently, customers are forced to decide whether to utilize or discard the goods. However, blockchain is an innovative framework capable of offering a transformative solution for the traceability of agricultural products and food supply chains. The aim of this paper is to propose a framework capable of tracking and monitoring all interactions and transactions between all stakeholders in the rice chain ecosystem through smart contracts. The model incorporates a system for customer satisfaction feedback, which enables all stakeholders to get up-to-date information on product quality, enabling them to make more informed supply chain decisions. Each transaction is documented and stored in the public ledger of the blockchain. The proposed framework provides a safe, efficient, reliable, and effective way to monitor and track rice products safety and quality especially during product purchasing. The security and performance analysis results shows that the proposed framework outperform the benchmark techniques in terms of cost-effectiveness, security and scalability with low computational overhead.Entities:
Keywords: Agricultural supply chain; Ethereum blockchain; Food security and traceability; Rice production; Smart contract
Year: 2022 PMID: 35111911 PMCID: PMC8771771 DOI: 10.7717/peerj-cs.801
Source DB: PubMed Journal: PeerJ Comput Sci ISSN: 2376-5992
Figure 1Rice grain supply chain.
This diagram shows the present commodity flows in the rice supply chain, identifying stakeholders and their respective supply chain positions.
Summary of the related works.
| Reference | Objectives | Technique used | Limitation |
|---|---|---|---|
| [4] | To provide traceability and transparency | Double-chain blockchain | Cost-effective, inefficient, double spending |
| [5] | To provide traceability and transparency | Blockchain | Cost-effective and inefficient |
| [6] | To achieve traceability and reliable information | Radio-Frequency Identification and blockchain | Susceptible to system fragmentation and central administration |
| [2], [7] | To analyze farmers' decision-making in supply chain | ICT gadget | Central point of failure, involvement of central controller, cost-effective and scalability issues |
| [8] | To provide traceability and transparency | ICT gadget | Central point of failure, involvement of central controller, and cost-effective |
| [23] | To provide traceability and transparency | Blockchain | Cost-effective and inefficient |
Figure 2Consumer satisfaction feedback.
Buying seeds from SSC.
| Input: | ||
| 1 ContractState | ||
| 2 Farmer’s Status: | ||
| 3 SSC Status: | ||
| 4 Consider only | ||
| 5 If | ||
| 6 | Contract status | |
| 7 | Farmer status | |
| 8 | SSC status | |
| 9 | Broadcast a notification message for the seeds sales | |
| 10 End | ||
| 11 Else | ||
| 12 | Return to initial contract state and show an error | |
| 13 end | ||
Figure 3Sequence diagram of supply chain traceability process (SSC to RGR).
Buying grain from RGP.
| Input: | ||
| 1 ContractState: | ||
| 2 RGP Status: | ||
| 3 RGE Status: | ||
| 4 Consider only | ||
| 5 If | ||
| 6 | Contract status | |
| 7 | RGP status | |
| 8 | RGE status | |
| 9 | Broadcast a notification message for the rice grain sales | |
| 10 End | ||
| 11 Else | ||
| 12 | Contract status | |
| 13 | RGP status | |
| 14 | RGE status | |
| 15 | Broadcast a notification message for the rice grain sales failure | |
| 16 end | ||
| 17 else | ||
| 18 | Return to initial contract state and show an error | |
| 19 end | ||
Selling rice product to RGR.
| Input: | ||
| 1 ContractState: | ||
| 2 RGD Status: | ||
| 3 RGR Status: | ||
| 4 Consider only | ||
| 5 If | ||
| 6 | Contract status | |
| 7 | RGD status | |
| 8 | RGR status | |
| 9 | Broadcast a notification message for the rice product sales | |
| 10 End | ||
| 11 Else | ||
| 12 | Contract status | |
| 13 | RGD status | |
| 14 | RGR status | |
| 15 | Broadcast a notification message for the rice product sales failure | |
| 16 end | ||
| 17 else | ||
| 18 | Return to initial contract state and show an error | |
| 19 end | ||
Selling rice products to consumers.
| Input: | ||
| 1 ContractState: | ||
| 2 RGR Status: | ||
| 3 Consumer Status: | ||
| 4 Consider only | ||
| 5 If | ||
| 6 | Contract status | |
| 7 | RGR status | |
| 8 | Consumer status | |
| 9 | Broadcast a notification message for the rice product sales | |
| 10 end | ||
| 11 else | ||
| 12 | Contract status | |
| 13 | RGR status | |
| 14 | Consumer status | |
| 15 | Broadcast a notification message for the rice product sales failure | |
| 16 end | ||
| 17 else | ||
| 18 | Return to initial contract state and show an error | |
| 19 end | ||
Figure 4Sequence diagram of supply chain traceability process (RGR to consumer, and feedback vise-vasa).
Experience assessment scales.
| Values | Experience level |
|---|---|
| 0 | Entirely disparage |
| 0.1 | Absolute disparage |
| 0.2 | Severe disparage |
| 0.3 | High disparages |
| 0.4 | Relatively high disparage |
| 0.5 | Relatively low disparage |
| 0.6 | Relatively low appreciation |
| 0.7 | Relatively high appreciation |
| 0.8 | High appreciation |
| 0.9 | Strong appreciation |
| 1 | Absolute appreciation |
Gas cost of Ethereum functions in USD.
Displays the transaction and execution costs in Gwei The SaleRiceToConsumer function had the largest transaction and execution costs, which resulted in the highest cost of $1.32619954 in average. Even though it is the largest of the function in our solution, the cost is regarded as minimal.
| Function name | Transaction gas | Execution gas | Cost in USD |
|---|---|---|---|
|
| 13,593 | 8,776 | 1.159898295 |
|
| 15,688 | 8,761 | 1.267772175 |
|
| 8,282 | 3,465 | 0.609121347 |
|
| 13,593 | 8,776 | 1.159898295 |
|
| 16,026 | 8,741 | 1.28423015 |
|
| 8,278 | 3,460 | 0.608665046 |
|
| 7,733 | 3,197 | 0.566747508 |
|
| 13,589 | 8,771 | 1.159441993 |
|
| 16,040 | 8,864 | 1.291333938 |
|
| 8,274 | 3,456 | 0.608208744 |
|
| 7,729 | 3,193 | 0.566291206 |
|
| 16,423 | 9,153 | 1.32619954 |
|
| 7,845 | 3,028 | 0.563802288 |
|
| 8,245 | 3,709 | 0.619802956 |
Vulnerability analysis report.
The analysis showed that there was no flaw in the framework that could result in timestamp dependency, transaction dependency and parity multisig bug.
| PARAMETERS | RESULTS |
|---|---|
| EVM Code Coverage | 62% |
| Integer Underflow | False |
| Integer Overflow | False |
| Parity Multisig Bug 2 | False |
| Call stack Depth Attack Vulnerability | False |
| Transaction Ordering Dependence | False |
| Time Stamp Dependency | False |
| Reentrancy Vulnerability | False |
A comparison of the proposed framework with existing works.
Our proposed solution is not only providing effective, secure, and traceable food grain (rice product) supply chain, but it was also developed and tested utilizing Remix IDE, as well as the necessary analyses such as cost, security analysis and vulnerability analysis was carried out to demonstrate the viability of the approach.
| Features |
|
| RiceChain |
|---|---|---|---|
| Satisfaction feedback | No | No | Yes |
| Cost Analysis | No | No | Yes |
| Implementation and Testing | No | Yes | Yes |
| Security analysis | No | No | Yes |
| Vulnerability analysis | No | No | Yes |
| Low computational cost | No | No | Yes |
| Proof of Concept | Yes | No | Yes |
Figure 5Performance analysis based on the latency of process executions.