Food Safety Distribution Systems Using Private Blockchain: Ensuring Traceability and Data Integrity Verification
Abstract
:1. Introduction
2. Materials and Methods
2.1. System Architecture and Design
2.1.1. IoT-Enabled Data Acquisition Layer
- Sensor tags transmitted temperature and humidity data to the CU via RFID (424 MHz) every 5 min.
- The CU transmitted both sensor data and GPS location data to the food safety distribution legacy system via LTE every 10 min.
- GPS location data were recorded every 3 min and stored temporarily before being transmitted along with the environmental data.
- The collected data could be accessed in real time via the web-based monitoring platform, requiring administrator login credentials.
- In the event of a temporary communication failure or transport accident, the Communication Unit is designed to retain sensor data in its local memory and resume transmission once connectivity is restored. This fault-tolerant buffering mechanism ensures that no data are lost, even in emergency or unexpected conditions, thereby preserving complete traceability records.
2.1.2. Private Blockchain Network
- Node 1: food processors;
- Node 2: distributors;
- Node 3: vendors;
- Node 4: system operator (blockchain administrator).
- IoT-Enabled Data Acquisition:Temperature and humidity sensor tags (ST.2018.lte.a02; ASN Inc., Republic of Korea) continuously collect environmental data from food containers. These sensor tags transmit data to a Communication Unit (CU.2018.lte.a02; ASN Inc., Republic of Korea) via RFID (424 MHz). The CU consolidates sensor readings and forwards the collected information—along with GPS location data—to the Smart Food System via LTE communication.
- Blockchain Data Storage:The Smart Food System processes the received data, converts them into JSON format, and then securely transmits them to the blockchain network via an API. This ensures that food distribution records remain immutable and verifiable throughout the supply chain.
- Data Integrity Validation:To prevent unauthorized modifications, the blockchain periodically cross-verifies stored transactions against data maintained in the Smart Food System database. A checksum-based validation mechanism is applied to detect discrepancies while minimizing computational overhead.
- Tamper Detection via Mobile Interface:Consumers and supply chain managers can verify product authenticity by scanning QR codes or barcodes using a mobile application. The blockchain retrieves the corresponding transaction history and displays real-time food traceability data.
- Forgery Detection Module:The system checks for data manipulation attempts by retrieving the transaction hash from the blockchain and comparing it against records stored in the Smart Food System. Any discrepancies indicate potential tampering.
- Tamper Verification Response:If data integrity violations are detected, the Smart Food System generates an alert and notifies the requesting device with the verification results.
- CPU: Intel® Core i5-8400 @ 2.80 GHz (Intel Corporation, Santa Clara, CA, USA; standard desktop-class processor);
- RAM: 8 GB (DDR3 PC3-12800, Samsung Electronics Co., Ltd., Suwon, Republic of Korea; adequate for handling blockchain operations in a permissioned network);
- Storage: 465 GB HDD (Seagate BarraCuda ST3500413AS, Seagate Technology LLC, Fremont CA USA; sufficient for storing transaction logs and smart contract execution data);
- Operating system: Ubuntu 20.04 LTS (Canonical Ltd., London, UK; widely used, stable, and lightweight for blockchain environments).
- 6060/TCP: memory profiling for blockchain nodes;
- 8080/TCP: API-based transaction handling;
- 7845/TCP: gRPC remote procedure calls for node coordination;
- 7846/TCP: peer-to-peer (P2P) block synchronization.
2.1.3. Smart Contract-Based Processing Module
- Transaction Proposal Submission:A client retrieves relevant food safety data from the legacy system and submits a transaction proposal via the API gateway to the designated endorsement peer. The transaction is proposed to a predefined blockchain channel, “kfrichannel”, ensuring that only authorized network participants can process transactions.
- Smart Contract Execution and Endorsement:Upon receiving the transaction proposal, each network peer verifies the client’s identity and authorization. If the provided credentials are valid, the assigned smart contract (Chaincode) is executed. Based on the execution results and the predefined endorsement policy, each peer signs a response indicating YES (approved) or NO (denied) and sends it back to the client.
- Transaction Ordering and Submission:The client collects endorsement responses, assembles a transaction including read/write sets and endorsement metadata, and submits it to Node 4, which serves as the ordering service in the blockchain network.
- Block Finalization and Ledger Update:The ordering service aggregates transactions, orders them into blocks, and distributes them to all network peers. If a transaction meets the defined validation criteria, the blockchain updates the state database and commits the transaction to the ledger.
3. Results
3.1. System Performance Evaluation
- Configuration file preparation: benchmark parameters, such as transaction volume, network size, and transaction rate, were specified and provided to the Benchmark Engine.
- Client Application generation: the Benchmark Engine interpreted the configuration parameters and created multiple Client Applications, each responsible for submitting transactions to the blockchain network.
- Transaction execution: Client Applications generated transactions and submitted them concurrently to the peer nodes in the network.
- Performance data collection: each Client Application recorded transaction latency (read/write performance) and sent the results back to the Benchmark Engine.
- Test report generation: the Benchmark Engine analyzed the collected data and produced a performance evaluation report, including average TPS, maximum TPS, and read/write transaction rates.
- Average TPS (mean ± standard deviation): 207.4 ± 10.2;
- Maximum TPS: 230.2.
- Condition 1: 1000 vs. 5000 transactions: p = 0.0090 (p < 0.01, denoted as **);
- Condition 2: 5000 vs. 10,000 transactions: p = 0.0227 (p < 0.05, denoted as *);
- Condition 3: 1000 vs. 10,000 transactions: p = 0.0000 (p < 0.001, denoted as ***).
3.2. Data Integrity Validation
- Gradual Decline in Transaction Volume Over Time: The experiment involved food samples that were gradually removed over time, reducing the number of active sensors. Consequently, transaction counts declined over successive test intervals. In the Day 1–5 interval, transactions logged per hour ranged from 95 to 119, with a higher concentration of red hues. By the Day 45–50 interval, transaction counts had decreased to a range of 74 to 96, with more blue hues appearing.
- Fluctuations in Transaction Logging: Although an overall decreasing trend was expected due to sample removal, intermittent fluctuations in transaction logging were observed. These fluctuations were particularly prominent in the early stages of the experiment, as indicated by patches of sudden color shifts in the first 15 days.
- Impact of IoT Network Conditions on Data Transmission: The data transmission mechanism relied on IoT sensor tags communicating with Communication Units (CUs) over 4G LTE. When network conditions degraded (e.g., due to interference or weak signals), sensor data were temporarily buffered within the CU and transmitted later when the connection improved. This behavior explains the observed spikes and delays in transaction logging, particularly in the initial phases where data transmission was most intensive.
- Stable and Consistent Data Integrity: Over the course of 50 days, a total of 114,925 transactions were logged on the blockchain. No discrepancies were detected in any of the ten validation tests, confirming the blockchain’s ability to preserve data accuracy.
- Gradual Decrease in Transactions Logged Over Time: The number of transactions recorded per interval decreased progressively from 12,875 (Day 1–5) to 10,345 (Day 46–50). This decline corresponds to the reduction in active food samples and sensor tags, as food items were gradually removed for testing and evaluation.
- Consistency in Blockchain Record-Keeping: Despite the decrease in transaction volume, the blockchain system successfully recorded and verified all transactions, demonstrating its robustness in maintaining traceability and tamper-proof storage. The periodic validation process confirmed that the blockchain ledger remained fully synchronized across all participating nodes.
- No discrepancies were detected, meaning that all transactions were successfully validated without tampering.
- The blockchain network maintained data consistency across all peer nodes, ensuring synchronized records in the distributed ledger.
- The checksum-based verification method effectively detected any anomalies, providing a robust approach to securing food distribution records against unauthorized modifications.
3.3. Blockchain Scalability and Latency Analysis
- Consensus Constraints:The Raft consensus mechanism requires a majority (N/2 + 1) to reach consensus. In a two-node network, both nodes must remain operational at all times. If one node fails, the blockchain ceases to function due to an inability to finalize transactions.
- Lack of Redundancy and Security Risks:In a two-node setup, the failure of a single node leads to a complete network failure. Moreover, with only one validator, the system is more vulnerable to a single point of failure or potential malicious activity, which may compromise data integrity.
- Use Case Limitations:While two-node blockchains are unsuitable for full-scale production environments, they can be useful for controlled experimental conditions, isolated data exchange, and redundancy evaluation.
- The average transaction latency increased from 259.3 ± 9.5 ms (two nodes) to 278.7 ± 9.1 ms (four nodes), indicating increased processing overhead in larger networks.
- The maximum latency ranged from 328.7 ± 10.2 ms to 350.8 ± 11.0 ms, reflecting the additional consensus processing time.
- The block finalization time exhibited a moderate increase from 2.983 ± 0.099 s to 3.184 ± 0.113 s, reflecting the additional consensus verification steps required for larger networks.
4. Discussion
5. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Acknowledgments
Conflicts of Interest
References
- Othman, A.; Anuar, K.; Norazmir, N. A Systematic Review of Food Hygiene Control in Food Service Providers: Review from 2000–2022. Pak. J. Med. Health Sci. 2022, 16, 10–14. [Google Scholar] [CrossRef]
- DeBeer, J.; Blickem, E.R.; Rana, Y.S.; Baumgartel, D.M.; Bell, J.W. An Analysis of Food Recalls in the United States, 2002–2023. J. Food Prot. 2024, 100, 100378. [Google Scholar] [CrossRef] [PubMed]
- Elegbeleye, J.A.; Oyeneye, K.O.; Akinboboye, O.A.; Abere, E.G. The Economic Cost of Food Recall. In Food Safety and Economic Implications; De Gruyter: Berlin, Germany, 2023; pp. 223–242. [Google Scholar] [CrossRef]
- Mazhaeva, T.V.; Kozubskaya, V.I.; Sinitsyna, S.V.; Sheluntsova, N.G.; Gurvich, V.B. Analysis of Potential Economic Damage to Consumers and Business Entities Posed by Circulation of Non-Conforming Food Products and Ways to Reduce It. Public Health Life Environ. 2024, 32, 37–44. [Google Scholar] [CrossRef]
- Radhika, K.; Mohammed, S.; Tadepalli, S.K.; Puvvula, K. Food Supply Chain Management by Leveraging AI, IoT, and Blockchain Technologies. Adv. Comput. Technol. 2024, 119, 119–141. [Google Scholar] [CrossRef]
- Wu, Y.; Zou, F. Food Processing Ecological Chain Traceability Management System with Decision Support. Proc. ACM 2023, 466, 466–472. [Google Scholar] [CrossRef]
- Waghmare, S.; Kale, M.S.; Bangare, P.S.; Wankhade, P.; Ghadge, S.; Nagargoje, T. Organic Food Traceability System Using Blockchain Technology. Int. J. Adv. Res. Sci. Commun. Technol. 2024, 4, 306–315. [Google Scholar] [CrossRef]
- Quintero, V.; Chevel, C.; Sanmartin-Mendoza, P. Analysis on the Interoperability of Health Information Systems. In Proceedings of the 2024 IEEE Technology and Engineering Management Society (TEMSCON LATAM), Panama, Panama, 18–19 July 2024; pp. 1–6. [Google Scholar] [CrossRef]
- O’Sullivan, K.; McLaughlin, J.; O’Meara, C.; McDonnell, K.; Kehoe, C. Open-Source Tools and Supports to Advance Data Interoperability in the Agriculture Domain. In Proceedings of the 2024 IEEE International Conference on Omni-Layer Intelligent Systems (COINS), Barcelona, Spain, 29–31 July 2024; pp. 1–6. [Google Scholar] [CrossRef]
- Gadge, S.S.; Narayan, K.M.V.; Lahu, P.R.; Uttam, S.V. A Review on Traceability System for Fruit and Vegetables Agricultural Products Using Blockchain. Int. J. Adv. Res. Sci. Commun. Technol. 2024, 4, 15–20. [Google Scholar] [CrossRef]
- Sarkar, A.; Dev, M. Food Fraud Prevention: Authentication and Traceability. Int. J. Adv. Acad. Stud. 2025, 7, 21–24. [Google Scholar] [CrossRef]
- Nero, A.; Sarin, G. A Study on Analysing the Role of Blockchain in Supply Chain Data Security and Developing a Conceptual Diagram. J. Manag. Res. Anal. 2025, 11, 202–208. [Google Scholar] [CrossRef]
- Bakare, F.A.; Omojola, J.T.; Iwuh, A.C. Blockchain and Decentralized Finance (DeFi): Disrupting Traditional Banking and Financial Systems. World J. Adv. Res. Rev. 2024, 23, 3075–3089. [Google Scholar] [CrossRef]
- Xu, Y.; He, P.; Sheng, P.; Li, N. Design and Implementation of a Blockchain-Based Food Traceability System. In Proceedings of the 2024 4th International Symposium on Computer Technology and Information Science (ISCTIS), Xi’an, China, 12–14 July 2024; pp. 347–350. [Google Scholar] [CrossRef]
- Hema, V.S.V.; Manickavasagan, A. Blockchain Implementation for Food Safety in Supply Chain: A Review. Compr. Rev. Food Sci. Food Saf. 2024, 23, e70002. [Google Scholar] [CrossRef] [PubMed]
- Dufie, A. Examining How Blockchain Implementation Affects Supply Chain Visibility in Ghana. Int. J. Supply Chain Logist. 2024, 8, 41–52. [Google Scholar] [CrossRef]
- Sobowale, A.; Okon, R.; Nzeako, G.; Zouo, S.J.C.; Olamijuwon, J.; Omowole, B.M.; Olufemi-Phillips, A.Q. Ensuring Product Authenticity and Traceability with Blockchain in Supply Chains. World J. Adv. Res. Rev. 2024, 24, 1017–1038. [Google Scholar] [CrossRef]
- Jang, H.; Lee, D.; Yoon, B. Development of a Blockchain-Based Food Safety System for Shared Kitchens. Systems 2024, 12, 509. [Google Scholar] [CrossRef]
- Duan, K.; Onyeaka, H.; Gu, P.; Meng, Z. Pioneering Food Safety: Blockchain’s Integration in Supply Chain Surveillance. J. Agric. Food Res. 2024, 18, 101281. [Google Scholar] [CrossRef]
- Bulzan, A.; Botez, R.; Dobrotă, V. Permissioned Blockchain-as-a-Service: Architecting Secure and Efficient Private Blockchain Networks. In Proceedings of the 2024 International Symposium on Electronics and Telecommunications (ISETC), Timisoara, Romania, 7–8 November 2024; pp. 1–4. [Google Scholar] [CrossRef]
- Vanin, F.N.S.; Tolcha, Y.K.; Righi, R.R.; Costa, C.A.; Kim, D. Decentralized Ledger Technology for EPCIS 2.0: Utilizing NFTs for Enhanced Product Traceability. In Proceedings of the 2024 IEEE International Conference on Blockchain, Copenhagen, Denmark, 19–22 August 2024; pp. 64–71. [Google Scholar] [CrossRef]
- Ongaro, D.; Ousterhout, J. In Search of an Understandable Consensus Algorithm. In Proceedings of the 2014 USENIX Annual Technical Conference (USENIX ATC 14), Philadelphia, PA, USA, 19–20 June 2014; pp. 305–319. [Google Scholar]
- Chen, Y.; Gu, R.; Huang, D.; Ding, Y. Raft-S: A Sharding Consensus Algorithm Based on Queue Theory and the Raft. In Advances in Computer Science and Engineering; Springer: Cham, Switzerland, 2024; pp. 357–373. [Google Scholar] [CrossRef]
- Yu, Z.; Deng, X.; Xiong, W.; Li, W. CB-Raft: A Byzantine Fault-Tolerant Raft Consensus Mechanism Based on Comprehensive Evaluation Partitioning. In Proceedings of the 2024 International Conference on Machine Learning and Computational Intelligence Systems (MICCIS), Shanghai, China, 19–21 April 2024; pp. 34–38. [Google Scholar] [CrossRef]
- Ni, L.; Ye, Q.; Yang, J.; Zhang, S.; Xian, M. Research of Raft Algorithm Improvement in Blockchain. In Proceedings of the 2024 International Conference on Artificial Intelligence and Technology (ICAIT), Wuhan, China, 16–19 August 2024; pp. 290–294. [Google Scholar] [CrossRef]
- Vignesh, B.; Chandrakumar, M.; Divya, K.; Prahadeeswaran, M.; Vanitha, G. Blockchain Technology in Agriculture: Ensuring Transparency and Traceability in the Food Supply Chain. Plant Sci. Today 2025, 12, 5970. [Google Scholar] [CrossRef]
- Kaushal, R.K.; Kumar, N. Exploring Hyperledger Caliper Benchmarking Tool to Measure the Performance of Blockchain-Based Solutions. In Proceedings of the 2024 International Conference on Recent Trends in Information Technology (ICRITO), Noida, India, 14–15 March 2024; pp. 1–6. [Google Scholar] [CrossRef]
- Leahey, E. Alphas and Asterisks: The Development of Statistical Significance Testing Standards in Sociology. Soc. Forces 2005, 84, 1–24. [Google Scholar] [CrossRef]
- Balaji, C.; KR, S.; Raj, V.P.; Kumar, N.; Kumaran, K. High-Performance Computing for Efficient Transaction Processing: A Comparative Study of Parallel and Sequential Execution Using SQLite. In Proceedings of the 2024 International Conference on Intelligent Computing and Networking Information Systems (ICICNIS), Bangalore, India, 17–18 December 2024; pp. 918–924. [Google Scholar] [CrossRef]
- Cherubini, M.; Meylan, A.; Chapuis, B.; Humbert, M.; Bilogrevic, I.; Huguenin, K. Towards Usable Checksums: Automating the Integrity Verification of Web Downloads for the Masses. Proc. ACM Comput. Commun. Secur. 2018, 1256, 1256–1271. [Google Scholar] [CrossRef]
- Paris, J.-F.; Long, D.D.E. Reducing the Energy Footprint of a Distributed Consensus Algorithm. In Proceedings of the European Dependable Computing Conference (EDCC), Paris, France, 7–11 September 2015; pp. 198–204. [Google Scholar] [CrossRef]
Field Name | Variable | Data Type | Example Value | Description |
---|---|---|---|---|
Tag Sequence Number | TAG_SEQ | VARCHAR (20) | “200225011988” | Unique sensor tag identifier preventing reuse conflicts. |
Trace Date | TRACE_DATE | TIMESTAMP (6) | 20240210153045 | Timestamp when the event was recorded (YYYYMMDDHHMMSS). |
Event Code | EVENT_CODE | VARCHAR (10) | “05” | Code indicating the event type (e.g., shipment, anomaly detection). |
Communication Unit ID | CU_ID | VARCHAR (20) | “41505052” | Unique ID of the Communication Unit transmitting the data. |
Tag Humidity | TAG_HM | NUMBER (6,3) | 22.300 | Humidity recorded by the sensor (percentage). |
Tag Temperature | TAG_TP | NUMBER (6,3) | 21.840 | Temperature measured by the sensor (°C). |
Quality Value | QL_VAL | NUMBER | 59.422916 | Computed real-time food quality score. |
Longitude | COORD_X | NUMBER | 127.103256 | GPS longitude coordinate of the recorded data. |
Latitude | COORD_Y | NUMBER | 37.546474 | GPS latitude coordinate of the recorded data. |
Quality Score | QL_Q | NUMBER | 59.422916 | Additional quality assessment metric. |
Registration Date | REG_DATE | TIMESTAMP (6) | 20240210153210 | Timestamp of when data were registered in the system (YYYYMMDDHHMMSS). |
Number of Transactions | Average TPS (Mean ± Std Dev) | Maximum TPS |
---|---|---|
1000 | 214.2 ± 9.8 | 235.1 |
5000 | 210.6 ± 9.5 | 232.4 |
10,000 | 207.4 ± 10.2 | 230.2 |
Test Interval | Transactions Logged | Discrepancies Detected | Integrity Status |
---|---|---|---|
Day 1–5 | 12,875 | 0 | Verified |
Day 6–10 | 12,489 | 0 | Verified |
Day 11–15 | 12,145 | 0 | Verified |
Day 16–20 | 11,802 | 0 | Verified |
Day 21–25 | 11,567 | 0 | Verified |
Day 26–30 | 11,289 | 0 | Verified |
Day 31–35 | 11,034 | 0 | Verified |
Day 36–40 | 10,812 | 0 | Verified |
Day 41–45 | 10,567 | 0 | Verified |
Day 46–50 | 10,345 | 0 | Verified |
Total | 114,925 | 0 | Verified |
Number of Nodes | Average Latency (ms) | Maximum Latency (ms) | Block Finalization Time (s) |
---|---|---|---|
2 | 259.3 ± 9.5 | 328.7 ± 10.2 | 2.983 ± 0.099 |
3 | 271.9 ± 8.8 | 339.6 ± 11.4 | 3.102 ± 0.106 |
4 | 278.7 ± 9.1 | 350.8 ± 11.0 | 3.184 ± 0.113 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Oh, S.E.; Kim, J.-H.; Kim, J.-Y.; Ahn, J.-H. Food Safety Distribution Systems Using Private Blockchain: Ensuring Traceability and Data Integrity Verification. Foods 2025, 14, 1405. https://doi.org/10.3390/foods14081405
Oh SE, Kim J-H, Kim J-Y, Ahn J-H. Food Safety Distribution Systems Using Private Blockchain: Ensuring Traceability and Data Integrity Verification. Foods. 2025; 14(8):1405. https://doi.org/10.3390/foods14081405
Chicago/Turabian StyleOh, Seung Eel, Jong-Hoon Kim, Ji-Young Kim, and Jae-Hwan Ahn. 2025. "Food Safety Distribution Systems Using Private Blockchain: Ensuring Traceability and Data Integrity Verification" Foods 14, no. 8: 1405. https://doi.org/10.3390/foods14081405
APA StyleOh, S. E., Kim, J.-H., Kim, J.-Y., & Ahn, J.-H. (2025). Food Safety Distribution Systems Using Private Blockchain: Ensuring Traceability and Data Integrity Verification. Foods, 14(8), 1405. https://doi.org/10.3390/foods14081405