A Blockchain and IoT-Enabled Framework for Ethical and Secure Coffee Supply Chains

John Byrd, Kritagya Upadhyay, Samir Poudel, Himanshu Sharma, Yi GuFuture Internet 2025

TL;DR

This paper introduces a novel framework that combines blockchain and IoT technologies to create a transparent, secure, and ethical coffee supply chain. By simulating real-world sensor data and leveraging smart contracts, the system addresses critical issues like lack of traceability, data tampering, and limited consumer trust, paving the way for a more accountable and trustworthy coffee industry.

What Problem Does This Paper Address?

The global coffee supply chain is notoriously complex, involving numerous stakeholders from farm to cup. This complexity often leads to fragmented records, making it difficult to verify claims about ethical sourcing, product quality, and origin. Consumers, in particular, struggle to confirm the authenticity of premium coffee claims, leading to a lack of trust. Existing systems are often paper-based or rely on centralized databases, making them vulnerable to errors, manipulation, and a lack of real-time visibility. This opacity creates risks for all parties, from farmers not receiving fair compensation to consumers being misled about the products they purchase.

Methods

The core of this research is a proposed framework that integrates Internet of Things (IoT) devices with blockchain technology. The system uses simulated IoT sensor data, including RFID tags, GPS logs, weight measurements, and environmental readings, to mimic real-world data collection. This data is then fed into Ethereum smart contracts, written in Solidity, which automate various supply chain logic. These smart contracts handle user registration, coffee batch registration, and ownership transfers. The system was deployed and tested on the Sepolia Ethereum testnet. A key aspect is the simulation of IoT data through structured datasets, allowing for comprehensive testing of the blockchain integration and smart contract functionality without requiring physical hardware. The architecture is designed to be modular and scalable, with a focus on enabling end-to-end traceability and automated enforcement of rules.

Datasets

The paper does not use pre-existing datasets for training. Instead, it simulates IoT sensor data through the creation of structured datasets. These synthetic datasets are designed to emulate realistic sensor outputs for RFID tagging, GPS tracking, weight measurements, environmental monitoring, and mobile-based validations. This approach allows for the testing of the blockchain system under realistic operational scenarios without the need for physical IoT device deployment.

Key Insights and Ideas

  • Synergy is Key: The paper strongly advocates for the combined power of blockchain and IoT, highlighting how they address each other's limitations to create a robust supply chain solution.
  • Smart Contracts as Enforcers: The use of smart contracts to automate rule enforcement (e.g., preventing transfers if temperature thresholds are breached) is a critical enabler of trust and efficiency.
  • Simulation as a Viable Testing Ground: The successful simulation of IoT data and its integration with blockchain demonstrates a practical and cost-effective way to prototype and test such complex systems before physical deployment.
  • Low Transaction Costs for Routine Operations: The research shows that while initial contract deployment can be costly, routine supply chain transactions (like ownership transfers) are remarkably inexpensive on the Ethereum testnet.
  • Consumer Trust is a Tangible Outcome: By providing verifiable provenance data, the system directly addresses the growing consumer demand for transparency and ethical sourcing.

Key Results

The performance evaluation of 1000 simulated transactions on the Sepolia testnet yielded promising results:

  • Cost Efficiency: Over 95% of transactions incurred gas fees below ETH 0.001, with the majority costing significantly less. This indicates a cost-effective solution for frequent supply chain logging.
  • Transaction Time: While transaction completion times showed variability (ranging from 12 to 108 seconds), the majority fell within acceptable bounds for many supply chain scenarios. The peak was observed between 90-100 seconds.
  • Administrative Overhead: Even administrative functions like transferOwnership() had low gas consumption, demonstrating efficient contract governance.
  • Traceability and Auditability: The system successfully demonstrated end-to-end traceability and immutable record-keeping, fulfilling its core objective.

Limitations and Future Work

The authors acknowledge several limitations and outline future directions:

  • Simulated vs. Physical IoT Data: The current work relies on simulated IoT data. Future work will involve integrating actual IoT hardware (e.g., Raspberry Pi, Node-RED) for live data collection and validation. This will provide more hardware-specific insights and improve reproducibility.
  • Testnet Variability: Transaction time variability was influenced by external testnet factors. Future work will involve deploying on more stable or performance-optimized blockchain environments (e.g., private Ethereum networks) to achieve more consistent responsiveness.
  • Scalability and Concurrency: The current testing involved a limited number of users and transaction flows. Future plans include scaling up to support multiple concurrent product batches and larger stakeholder networks to evaluate performance under higher loads.
  • Environmental Data Integration: While the framework is designed to accommodate environmental data, it was not fully integrated into the smart contract for this study. Future work will incorporate this for more comprehensive quality assurance.
  • Formal Modeling: The paper calls for formal modeling of system parameters like latency, reliability, and throughput, especially after real-world IoT data is integrated.
  • Interoperability: Future work will explore interoperability with existing supply chain certification platforms (e.g., Rainforest Alliance, Fairtrade) and standardized data formats (e.g., GS1 EPCIS 2.0).
  • Decentralized Storage and Oracles: The research suggests exploring decentralized storage solutions like IPFS for off-chain metadata and using blockchain oracles to securely bridge off-chain and on-chain data.

Summary updated

BibTeX
@article{byrd2025blockchain,
  author = {John Byrd and Kritagya Upadhyay and Samir Poudel and Himanshu Sharma and Yi Gu},
  title = {{A Blockchain and IoT-Enabled Framework for Ethical and Secure Coffee Supply Chains}},
  journal = {Future Internet},
  year = {2025},
  doi = {10.3390/fi17080334},
}
Figure