AgriMedChain-AI: an intelligent blockchain-based agricultural medicine supply chain framework for traceability, counterfeit detection, and sustainable farming
Keywords:
Artificial intelligence, Blockchain, Internet of Things, Counterfeit detection, Agricultural traceabilityAbstract
The proliferation of agricultural medicines has supported crop productivity, but counterfeit pesticides, herbicides, fertilizers, and bio-based products, fragmented supply-chain management, and limited transparency remain major concerns. This study proposes AgriMedChain-AI, a framework integrating artificial intelligence (AI), blockchain, and the Internet of Things (IoT) to improve security and transparency in agricultural-medicine supply chains. The architecture uses QR codes for authentication, IoT sensors for real-time logistics data, Hyperledger Fabric and smart contracts for transaction security, and Random Forest and XGBoost models for counterfeit detection, anomaly detection, and risk prediction. A synthetic dataset of 50,000 supply-chain records, including 3,000 counterfeit and 47,000 genuine records, was evaluated. XGBoost achieved 99.48% accuracy, 93.63% precision, 98.00% recall, and a 95.77% F1-score for the counterfeit class. The framework achieved 97.1% traceability integrity and a 95.8% anomaly-detection rate. Transparency increased from 68.5% for the traditional system to 98.3%, while the proposed Hyperledger Fabric implementation achieved 420 transactions per second with an average latency of 0.82 s, a 71.2% reduction relative to the 2.85 s traditional-database baseline. Under the evaluated simulation conditions, the framework improved traceability, authentication, and supply-chain monitoring while supporting an integrated operational performance assessment.
References
[1] W.-M. Cheng, Y.-J. Chen, T.-C. Chen, X.-Y. Zhuang, C.-W. Chang, W.-C. Chien, Y.-H. Wu & R. Chen, ``Implementation of mini-greenhouse based on precision agriculture'', 2024 International Symposium on Intelligent Signal Processing and Communication Systems (ISPACS), Kaohsiung, Taiwan, 2024, pp. 1--3. https://doi.org/10.1109/ISPACS62486.2024.10868011.
[2] E. A. Aldhahri, A. A. Almazroi, M. H. Alkinani, N. Ayub, E. A. Alghamdi & N. F. Janbi, ``Smart farming: Enhancing urban agriculture through predictive analytics and resource optimization'', IEEE Access 13 (2025) 72375. https://doi.org/10.1109/ACCESS.2025.3530006.
[3] M. Dutta, D. Gupta, S. Tharewal, D. Goyal, J. K. Sandhu, M. Kaur, A. A. Alzubi & J. M. Alanazi, ``Internet of Things-based smart precision farming in soilless agriculture: Opportunities and challenges for global food security'', IEEE Access 13 (2025) 34238. https://doi.org/10.1109/ACCESS.2025.3540317.
[4] H. S. Kassem, M. A. Hussein & H. Ismail, ``Toward fraudulent pesticides in rural areas: Do farmers' recognition and purchasing behaviors matter?'', Agronomy 11 (2021) 1882. https://doi.org/10.3390/agronomy11091882.
[5] X. Li, J. Du, W. Li & F. Shahzad, ``Green ambitions: A comprehensive model for enhanced traceability in agricultural product supply chain to ensure quality and safety'', Journal of Cleaner Production 420 (2023) 138397. https://doi.org/10.1016/j.jclepro.2023.138397.
[6] Z. Wang & P. Liu, ``Application of blockchain technology in agricultural product traceability system'', in Artificial Intelligence and Security, X. Sun, Z. Pan & E. Bertino (Eds.), Springer, Cham, Switzerland, 2019, pp. 81--90. https://doi.org/10.1007/978-3-030-24271-8_8.
[7] P. Saranya & R. Maheswari, ``Proof of transaction (PoTx) based traceability system for an agriculture supply chain'', IEEE Access 11 (2023) 10623. https://doi.org/10.1109/ACCESS.2023.3240772.
[8] K. Salah, N. Nizamuddin, R. Jayaraman & M. Omar, ``Blockchain-based soybean traceability in agricultural supply chain'', IEEE Access 7 (2019) 73295. https://doi.org/10.1109/ACCESS.2019.2918000.
[9] Y. Saidu, S. M. Shuhidan, D. A. Aliyu, I. A. Aziz & S. Adamu, ``Convergence of blockchain, IoT, and AI for enhanced traceability systems: A comprehensive review'', IEEE Access 13 (2025) 16838. https://doi.org/10.1109/ACCESS.2025.3528035.
[10] M. U. Tariq, S. M. Saqib, T. Mazhar, M. A. Khan, T. Shahzad & H. Hamam, ``Edge-enabled smart agriculture framework: Integrating IoT, lightweight deep learning, and agentic AI for context-aware farming'', Results in Engineering 28 (2025) 107342. https://doi.org/10.1016/j.rineng.2025.107342.
[11] H. Shahab, M. Naeem, M. Iqbal, M. Aqeel & S. S. Ullah, ``IoT-driven smart agricultural technology for real-time soil and crop optimization'', Smart Agricultural Technology 10 (2025) 100847. https://doi.org/10.1016/j.atech.2025.100847.
[12] T. Adamo, D. Caivano, L. Colizzi, G. Dimauro & E. Guerriero, ``Optimization of irrigation and fertigation in smart agriculture: An IoT-based micro-services framework'', Smart Agricultural Technology 11 (2025) 100885. https://doi.org/10.1016/j.atech.2025.100885.
[13] A. Dahane, R. Benameur & B. Kechar, ``An IoT low-cost smart farming for enhancing irrigation efficiency of smallholders farmers'', Wireless Personal Communications 127 (2022) 3173. https://doi.org/10.1007/s11277-022-09915-4.
[14] R. Jing & P. Li, ``Knowledge graph for integration and quality traceability of agricultural product information'', Frontiers in Sustainable Food Systems 8 (2024) 1389945. https://doi.org/10.3389/fsufs.2024.1389945.
[15] L. Li, P. Tian, J. Dai & F. Miao, ``Design of agricultural product traceability system based on blockchain and RFID'', Scientific Reports 14 (2024) 23599. https://doi.org/10.1038/s41598-024-73711-2.
[16] S. M. Rajagopal, M. Supriya & R. Buyya, ``Leveraging blockchain and federated learning in edge-fog-cloud computing environments for intelligent decision making with ECG data in IoT'', Journal of Network and Computer Applications 233 (2025) 104037. https://doi.org/10.1016/j.jnca.2024.104037.
[17] V. S. Rao, R. Balakrishna, Y. A. B. El-Ebiary, P. Thapar, K. A. Saravanan & S. R. Godla, ``AI driven anomaly detection in network traffic using hybrid CNN-GAN'', Journal of Advances in Information Technology 15 (2024) 886. https://doi.org/10.12720/jait.15.7.886-895.
[18] M. Shabaz & K. N. Raju, ``AI-driven traffic flow prediction and anomaly detection in smart cities: A multi-agent approach'', Transactions on Emerging Telecommunications Technologies 36 (2025) e70279. https://doi.org/10.1002/ett.70279.
[19] N. Shahin & L. Ismail, ``Towards trustworthy sign language translation system: A privacy-preserving edge--cloud--blockchain approach'', Mathematics 13 (2025) 3759. https://doi.org/10.3390/math13233759.
[20] K. Liu & B. Cai, ``Edge-cloud-blockchain integrated framework for agricultural product traceability: AI-driven anomaly detection and smart contract optimization'', Frontiers in Sustainable Food Systems 10 (2026) 1784223. https://doi.org/10.3389/fsufs.2026.1784223.
[21] J. Grecuccio, E. Giusto, F. Fiori & M. Rebaudengo, ``Combining blockchain and IoT: Food-chain traceability and beyond'', Energies 13 (2020) 3820. https://doi.org/10.3390/en13153820.
[22] V. S. Rai, S. N. Ingale & S. Kullur, ``Agroblock-blockchain based solution for agriculture'', International Journal of Engineering Research & Technology 10 (2021) IJERTV10IS050411. https://doi.org/10.5281/zenodo.18617830.
[23] S. S. Gomasta, A. Dhali, T. Tahlil, M. M. Anwar & A. B. M. S. Ali, ``PharmaChain: Blockchain-based drug supply chain provenance verification system'', Heliyon 9 (2023) e17957. https://doi.org/10.1016/j.heliyon.2023.e17957.
[24] H. R. Hasan, A. Musamih, K. Salah, R. Jayaraman, M. Omar, J. Arshad & D. Boscovic, ``Smart agriculture assurance: IoT and blockchain for trusted sustainable produce'', Computers and Electronics in Agriculture 224 (2024) 109184. https://doi.org/10.1016/j.compag.2024.109184.
Published
How to Cite
Issue
Section
Copyright (c) 2027 A. Vijay Kumar, Amjan Shaik (Author)

This work is licensed under a Creative Commons Attribution 4.0 International License.

