Green Dairy Compliance Innovation through TinyML, Federated Learning, and Smart Contract Governance
DOI:
https://doi.org/10.63646/VIZZ6580Keywords:
Tinyml; federated learning; blockchain; smart contracts; ZK-SNARKS; dairy compliance; green innovation; food safety; IOT; GAT clusteringAbstract
The global dairy industry confronts a persistent structural challenge in operationalising food safety and animal welfare compliance. Manual inspection regimes and intermittent audits are demonstrably inadequate for the heterogeneous, geographically dispersed landscape of small-scale farming, where data integrity, real-time monitoring capability, and regulatory transparency are simultaneously compromised. This article presents GreenDairyChain, an integrated compliance innovation framework that synthesises four enabling technologies: GreenEdgeML (a lightweight TinyML inference engine optimised for microcontroller-class devices), Privacy-Preserving Federated Learning (FL) with Graph Attention Network (GAT)-based dynamic clustering, Zero-Knowledge Succinct Non-Interactive Arguments of Knowledge (ZK-SNARKs) for cryptographic compliance verification, and a Layer-2 Polygon zkEVM Blockchain with domain-specific smart contracts governing farm identity, violation detection, audit triggers, and licence management. GreenEdgeML executes multimodal sensor fusion across four signal modalities (body temperature, accelerometer activity, ammonia concentration, and milk pH) entirely on-device using 8-bit integer quantisation, consuming 64.6 KB RAM and 82.7 mW per inference cycle on the ESP32 platform. The FL engine employs GAT-based farm clustering with DBSCAN outlier exclusion to address non-IID data heterogeneity while maintaining Byzantine fault resilience. Compliance inferences are encoded as R1CS arithmetic circuits (14,240 constraints) and verified on-chain at O(1) cost through ZK-SNARK proofs generated in 1.25 seconds. Evaluated on the Shahhet28121 benchmark dataset across 16 biomarkers, the full system achieves 96.94% global classification accuracy, a 97.7% reduction in per-round communication payload (4.25 KB), and maintains classification accuracy above 90% under 20% Gaussian sensor noise. Ablation experiments confirm that each architectural component contributes independently to system performance. The findings carry implications for green business innovation, sustainable agriculture governance, and the design of trustworthy AI ecosystems in resource-constrained rural contexts.
How to Cite
References
Al Asqah, M., & Moulahi, T. (2023). Federated learning and blockchain integration for privacy protection in the Internet of Things: Challenges and solutions. Future Internet, 15(6), 203. https://doi.org/10.3390/fi15060203
Almogadwy, B., & Alqarafi, A. (2025). Fused federated learning framework for secure and decentralized patient monitoring in healthcare 5.0 using IoMT. Scientific Reports, 15, 24263. https://doi.org/10.1038/s41598-025-04682-5
Androulaki, E., Barger, A., Bortnikov, V., Cachin, C., Christidis, K., De Caro, A., Enyeart, D., Ferris, C., Laventman, G., Manevich, Y., Muralidharan, S., Murthy, C., Nguyen, B., Sethi, M., Singh, G., Smith, K., Sorniotti, A., Stathakopoulou, C., Vukolić, M., … Yellick, J. (2018). Hyperledger fabric: a distributed operating system for permissioned blockchains. Proceedings of the Thirteenth EuroSys Conference, 1-15. DOI: 10.1145/3190508.3190538
Bhasker, B., Srinivasan, S., & Ramachandran, M. (2025). Blockchain framework with IoT device using federated learning for sustainable healthcare systems. Scientific Reports, 15, 26736. https://doi.org/10.1038/s41598-025-03948-2
Bhutta, M. N. M., Farooq, H., Ahmad, M., Khan, M. A., & Iqbal, J. (2026). A systematic review of secure federated learning based on blockchain and multi-party computation. Peer-to-Peer Networking and Applications, 19(1), 7–32. https://doi.org/10.1007/s12083-025-01943-8
Bonawitz, K., Ivanov, V., Kreuter, B., Marcedone, A., McMahan, H. B., Patel, S., Ramage, D., Segal, A., & Seth, K. (2017). Practical Secure Aggregation for Privacy-Preserving Machine Learning. Proceedings of the 2017 ACM SIGSAC Conference on Computer and Communications Security, 1175-1191. DOI: 10.1145/3133956.3133982
Cai, Z., Liu, Y., Chen, M., & Yu, F. R. (2025). Blockchain-empowered federated learning: Benefits, challenges, and solutions. IEEE Transactions on Big Data. https://doi.org/10.1109/TBDATA.2025.3527001
Chen, Y., Lu, Y., Bulysheva, L., & Kataev, M. Y. (2024). Applications of blockchain in Industry 4.0: A review. Information Systems Frontiers, 26(5), 1715–1729. https://doi.org/10.1007/s10796-022-10248-7
Devlin, J., Chang, M.-W., Lee, K., & Toutanova, K. (2019). BERT: Pre-training of deep bidirectional transformers for language understanding. Proceedings of NAACL-HLT 2019, 4171–4186. https://doi.org/10.18653/v1/N19-1423
FAO. (2023). World dairy market at a glance. Food and Agriculture Organization of the United Nations. https://www.fao.org/dairy-production-products/en/
Ganesan, L. P., Krishnan, S., & Batumalay, M. (2025). Blockchain empowered federated learning for intelligent analytics in cattle livestock farming. Frontiers in Blockchain. https://doi.org/10.3389/fbloc.2025.1815609
Ganesan, L. P., Krishnan, S., & Batumalay, M. (2026). Blockchain empowered federated learning for intelligent analytics in cattle livestock farming. Frontiers in Blockchain, 9, 1815609. https://doi.org/10.3389/fbloc.2026.1815609
Garro, R. J., Parra-Toro, L., & Delgado, F. (2025). A systematic literature review on the applications of federated learning and enabling technologies for livestock management. Computers and Electronics in Agriculture, 234, 110180. https://doi.org/10.1016/j.compag.2025.110180
Goodfellow, I., Bengio, Y., & Courville, A. (2016). Deep learning. MIT Press. https://doi.org/10.7551/mitpress/11283.001.0001
Gupta, M., & Tanwar, S. (2026). Policy-driven federated learning: A roadmap for decentralized data sovereignty in agriculture. Trends in Food Science & Technology, 158, 104210. https://doi.org/10.1016/j.tifs.2025.104210
Hassan, S. R., Ahmed, M. A., & Raza, S. (2025). A survey on intelligent secure and distributed frameworks for Healthcare 5.0. Discovery Artificial Intelligence, 5, 286. https://doi.org/10.1007/s44163-025-00481-3
Iqbal, J., Bamhdi, A., Pandow, B. A., & Masoodi, F. S. (Eds.). (2025). Applying blockchain technology: Concepts and trends. CRC Press. https://doi.org/10.1201/9781003403043
Issa, W., Moustafa, N., Turnbull, B., Sohrabi, N., & Tari, Z. (2023). Blockchain-based federated learning for securing Internet of Things: A comprehensive survey. ACM Computing Surveys, 55(9), 1–43. https://doi.org/10.1145/3560816
Jaberzadeh, A., Farida, N., Alrawais, A., & Chowdhury, M. (2023). Blockchain-based federated learning: Incentivizing data sharing and penalizing dishonest behavior. International Congress on Blockchain and Applications. Springer. https://doi.org/10.1007/978-3-031-45155-3_15
Kairouz, P., McMahan, H. B., Avent, B., Bellet, A., Bennis, M., Bhagoji, A. N., Bonawitz, K., Charles, Z., Cormode, G., Cummings, R., D’Oliveira, R. G. L., Eichner, H., El Rouayheb, S., Evans, D., Gardner, J., Garrett, Z., Gascón, A., Ghazi, B., Gibbons, P. B., … Zhao, S. (2021). Advances and Open Problems in Federated Learning. Foundations and Trends in Machine Learning, 14(1-2), 1-210. DOI: 10.1561/2200000083
Kang, J., Xiong, Z., Niyato, D., Ye, D., Kim, D. I., & Nguyen, J. (2022). Communication-efficient and cross-chain empowered federated learning for artificial intelligence of things. IEEE Transactions on Network Science and Engineering, 9(5), 2966–2977. https://doi.org/10.1109/TNSE.2022.3163853
Konečný, J., McMahan, H. B., Yu, F. X., Richtárik, P., Suresh, A. T., & Bacon, D. (2016). Federated learning: Strategies for improving communication efficiency. arXiv preprint. https://doi.org/10.48550/arXiv.1610.05492
Kou, G., & Lu, Y. (2025). FinTech: A literature review of emerging financial technologies and applications. Financial Innovation, 11(1), 1–34. https://doi.org/10.1186/s40854-024-00668-6
Lai, F., Zhu, X., Madhyastha, H. V., & Chowdhury, M. (2021). Oort: Efficient federated learning via guided participant selection. OSDI 2021, 19–35. https://doi.org/10.48550/arXiv.2010.06081
Lee, C. A., Wang, X., Park, J., & Kim, D. (2023). Decentralized governance and artificial intelligence policy with blockchain-based voting in federated learning. Frontiers in Research Metrics and Analytics, 8, 1035123. https://doi.org/10.3389/frma.2023.1035123
Li, M., Zhao, Y., Chen, C., & Gao, W. (2021). Privacy-preserving federated learning framework based on chained secure multi-party computing. IEEE Internet of Things Journal, 8(8), 6178–6186. https://doi.org/10.1109/JIOT.2020.3019863
Li, Z., Cui, Z., Xu, S., Ma, J., & Yu, P. S. (2022). Federated learning-based cross-enterprise recommendation with graph neural networks. IEEE Transactions on Industrial Informatics, 19(1), 673–682. https://doi.org/10.1109/TII.2022.3146835
Li, Z., Cui, Z., Xu, S., Ma, J., & Yu, P. S. (2023). Federated learning-based cross-enterprise recommendation with graph neural networks. IEEE Transactions on Industrial Informatics, 19(1), 673–682. https://doi.org/10.1109/TII.2022.3203395
Liu, Z., Wu, J., Dang, X., & Gao, C. (2023). A novel blockchain-assisted aggregation scheme for federated learning in IoT networks. IEEE Internet of Things Journal, 10(19), 17544–17556. https://doi.org/10.1109/JIOT.2023.3275462
Lu, Y. (2017). Industry 4.0: A survey on technologies, applications and open research issues. Journal of Industrial Information Integration, 6, 1–10. https://doi.org/10.1016/j.jii.2017.04.005
Lu, Y. (2018). Blockchain and the related issues: A review of current research topics. Journal of Management Analytics, 5(4), 231–255. https://doi.org/10.1080/23270012.2018.1516523
Lu, Y. (2019). Artificial intelligence: A survey on evolution, models, applications and future trends. Journal of Management Analytics, 6(1), 1–29. https://doi.org/10.1080/23270012.2019.1570365
Lu, Y. (2019). The blockchain: State-of-the-art and research challenges. Journal of Industrial Information Integration, 15, 80–90. https://doi.org/10.1016/j.jii.2019.04.002
Lu, Y. (2022). Implementing blockchain in information systems: A review. Enterprise Information Systems, 16(12), 1876–1907. https://doi.org/10.1080/17517575.2021.2008513
Lu, Y. (2023). Blockchain technology: Recent research and future trend. Enterprise Information Systems, 16(12), 1939895. https://doi.org/10.1080/17517575.2021.1939895
Lu, Y. (2025). The current status and developing trends of Industry 4.0: A review. Information Systems Frontiers, 27(1), 215–234. https://doi.org/10.1007/s10796-021-10221-w
Lu, Y., & Ning, X. (2020). A vision of 6G–5G’s successor. Journal of Management Analytics, 7(3), 301–320. https://doi.org/10.1080/23270012.2020.1802622
Lu, Y., & Xu, L. D. (2019). Internet of Things (IoT) cybersecurity research: A review of current research topics. IEEE Internet of Things Journal, 6(2), 2103–2115. https://doi.org/10.1109/JIOT.2018.2869847
Mageswari, R. U., Pradeep, K., & Saravanan, S. (2025). A paradigm shift: Blockchain-driven federated learning. In Beyond Blockchain (Part 2). Bentham Science. https://doi.org/10.2174/9789815369182125020003
McMahan, H. B., Moore, E., Ramage, D., Hampson, S., & Agüera y Arcas, B. (2017). Communication-efficient learning of deep networks from decentralized data. AISTATS 2017. https://doi.org/10.48550/arXiv.1602.05629
Mothukuri, V., Parizi, R. M., Pouriyeh, S., Huang, Y., Dehghantanha, A., & Srivastava, G. (2021). A survey on security and privacy of federated learning. Future Generation Computer Systems, 115, 619–640. https://doi.org/10.1016/j.future.2020.10.007
Myrzashova, R., Alsamhi, S. H., Shvetsov, A. V., Hawbani, A., & Wei, X. (2023). Blockchain meets federated learning in healthcare: A systematic review with challenges and opportunities. IEEE Internet of Things Journal, 10(16), 14418–14437. https://doi.org/10.1109/JIOT.2023.3272868
Nakamoto, S. (2008). Bitcoin: A peer-to-peer electronic cash system. Bitcoin.org. https://doi.org/10.2139/ssrn.3440802
Nehal, M., & Chinababu, M. (2025). Secure federated learning in healthcare using blockchain and SMPC. Metallurgical and Materials Engineering, 1694–1701. https://doi.org/10.52783/mme.v31i2.3412
Qammar, A., Karim, A., Ning, H., & Ding, J. (2023). Securing federated learning with blockchain: A systematic literature review. Artificial Intelligence Review, 56, 3951–3985. https://doi.org/10.1007/s10462-022-10271-9
Qu, Y., Pokhrel, S. R., Garg, S., Gao, L., & Xiang, Y. (2022). Blockchain-enabled federated learning: A survey. ACM Computing Surveys, 55(4), 1–35. https://doi.org/10.1145/3524104
Swathi, K., Lavanya, C., Sathiya, V., & Kumar, P. N. (2025). Secure blockchain integrated deep learning framework for federated risk-adaptive and privacy-preserving IoT edge intelligence. Scientific Reports, 15, 41133. https://doi.org/10.1038/s41598-025-02619-8
Sze, V., Chen, Y.-H., Yang, T.-J., & Emer, J. S. (2017). Efficient Processing of Deep Neural Networks: A Tutorial and Survey. Proceedings of the IEEE, 105(12), 2295-2329. DOI: 10.1109/jproc.2017.2761740
Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A. N., Kaiser, L., & Polosukhin, I. (2017). Attention is all you need. Advances in Neural Information Processing Systems, 30. https://doi.org/10.48550/arXiv.1706.03762
Verma, P. K., & Sharma, R. (2024). Edge-to-chain: Regulatory compliance protocols for autonomous livestock monitoring systems. IEEE Internet of Things Magazine, 7(2), 88–94. https://doi.org/10.1109/IOTM.001.2300219
Wankhede, S. B., & Patel, D. (2025). Federated learning and blockchain approach for securing IoT data. Discovery Internet of Things, 5, 116. https://doi.org/10.1007/s43926-025-00116-6
Warden, P., & Situnayake, D. (2019). TinyML: Machine learning with TensorFlow Lite on Arduino and ultra-low-power microcontrollers. O'Reilly Media.
Weng, J., Weng, J., Zhang, J., Li, M., Zhang, Y., & Luo, W. (2021). DeepChain: Auditable and privacy-preserving deep learning with blockchain-based incentive. IEEE Transactions on Dependable and Secure Computing, 18(5), 2438–2455. https://doi.org/10.1109/TDSC.2019.2952332
Wu, H. P., Liu, Z., Dong, H. Y., Lu, Y., & Xu, L. D. (2025). Revolutionizing internal auditing: Harnessing the power of blockchain. Enterprise Information Systems, 19(1–2). https://doi.org/10.1080/17517575.2024.2448003
Xu, L. D., Lu, Y., & Li, L. (2021). Embedding blockchain technology into IoT for security: A survey. IEEE Internet of Things Journal, 8(13), 10452–10473. https://doi.org/10.1109/JIOT.2021.3060508
Xu, R., & Chen, Y. (2022). μDFL: A secure microchained decentralized federated learning fabric atop IoT networks. IEEE Transactions on Network and Service Management, 19(3), 2677–2688. https://doi.org/10.1109/TNSM.2022.3162908
Yang, L., Hou, Q., Zhu, X., Lu, Y., & Xu, L. D. (2025). Potential of large language models in blockchain-based supply chain finance. Enterprise Information Systems, 19(11), 2541199. https://doi.org/10.1080/17517575.2024.2541199
Yin, X., Wu, X., & Zhang, X. (2025). A trusted federated learning method based on consortium blockchain. Information, 16(1), 14. https://doi.org/10.3390/info16010014
Zhang, C., & Lu, Y. (2021). Study on artificial intelligence: The state of the art and future prospects. Journal of Industrial Information Integration, 23, 100224. https://doi.org/10.1016/j.jii.2021.100224
Zhang, H., Jiang, S., & Xuan, S. (2024). Decentralized federated learning based on blockchain: Concepts, framework, and challenges. Computer Communications, 216, 140–150. https://doi.org/10.1016/j.comcom.2023.12.006
Zheng, X. R., & Lu, Y. (2022). Blockchain technology: Recent research and future trend. Enterprise Information Systems, 16(12), 1939895. https://doi.org/10.1080/17517575.2021.1939895
Zhu, H., Xu, J., Liu, S., & Jin, Y. (2021). Federated learning on non-IID data: A survey. Neurocomputing, 465, 371–390. https://doi.org/10.1016/j.neucom.2021.07.098
Zuo, X., Li, T., Hu, J., & Wang, H. (2025). Federated learning with blockchain-enhanced machine unlearning: A trustworthy approach. IEEE Transactions on Services Computing. https://doi.org/10.1109/TSC.2025.3457842