A Verifiable Dairy IoT Compliance Database for Privacy-Preserving Livestock Analytics and Federated Model Governance

DOI:

https://doi.org/10.63646/UCEW6570

Keywords:

verifiable database, dairy IoT, federated learning governance, zero-knowledge proofs, blockchain anchoring, livestock compliance, database schema, audit trail

Abstract

Dairy compliance oversight is increasingly carried out through a combination of on-farm Internet of Things sensors, federated machine learning, and blockchain anchoring, yet the records produced by these stacks are typically scattered across ledger artifacts, model checkpoints, and ad-hoc audit spreadsheets that no single party can query end-to-end. This article reframes the problem as a database design question and presents DairyChainDB, a verifiable compliance database that treats the schema, field dictionary, indexes, quality-control pipeline, and reusable interfaces as the principal contribution. Six core entities (FARM, ANIMAL, COMPLIANCE_PROOF, MODEL_VERSION, FL_ROUND, AUDIT_EVENT) are organized so that every regulatory decision traces back to a verifiable evidence chain that links the underlying federated model version, the cryptographic compliance proof, the audit event, and the responsible farm identifier. The database is organized as a polyglot store comprising a Parquet-plus-Delta lakehouse for raw measurement streams, a PostgreSQL relational core for transactional records, a Neo4j property graph for animal-to-cooperative relationships, a pgvector index for embedding-based similarity search over compliance fingerprints, and an anchored Layer-2 zero-knowledge rollup that records succinct proofs of regulatory rule satisfaction. We benchmark the database on a working subset of 412 simulated dairy farms and 18,640 animals over a six-month observation window, and we report a runnable experiment that raises proof-ingest throughput from 5,860 to 9,820 proofs per second on a 16-node cluster, sustains audit query latency below 463 milliseconds at the 95th percentile, reduces audit case-review time from 62.4 to 8.6 minutes, and holds on-chain verification cost constant at 0.42 US dollars per aggregated proof regardless of farm count. The schema, dictionaries, smart-contract interfaces, and reproduction notebooks are released under an open licence.

How to Cite

Ye, S., & Zhang, L. (2026). A Verifiable Dairy IoT Compliance Database for Privacy-Preserving Livestock Analytics and Federated Model Governance. DATAMIND, 4(1), 65-77. https://doi.org/10.63646/UCEW6570

References

Aceto, G., Persico, V., & Pescapé, A. (2020). Industry 4.0 and Health: Internet of Things, Big Data, and Cloud Computing for Healthcare 4.0. Journal of Industrial Information Integration, 18, 100129. https://doi.org/10.1016/j.jii.2020.100129

Astill, J., Dara, R. A., Fraser, E. D. G., Roberts, B., & Sharif, S. (2020). Smart poultry management: Smart sensors, big data, and the internet of things. Computers and Electronics in Agriculture, 170, 105291. https://doi.org/10.1016/j.compag.2020.105291

Babenko, A., & Lempitsky, V. (2015). The Inverted Multi-Index. IEEE Transactions on Pattern Analysis and Machine Intelligence, 37(6), 1247–1260. https://doi.org/10.1109/tpami.2014.2361319

Banerjee, M., Lee, J., & Choo, K.-K. R. (2018). A blockchain future for internet of things security: A position paper. Digital Communications and Networks, 4(3), 149–160. https://doi.org/10.1016/j.dcan.2017.10.006

Bhutta, M. N. M., Khwaja, A. A., Nadeem, A., Ahmad, H. F., Khan, M. K., Hanif, M. A., Song, H., Alshamari, M., & Cao, Y. (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-01970-5

Bonneau, J., Miller, A., Clark, J., Narayanan, A., Kroll, J. A., & Felten, E. W. (2015). SoK: Research perspectives and challenges for Bitcoin and cryptocurrencies. Proceedings of the IEEE Symposium on Security and Privacy, 104–121. https://doi.org/10.1109/SP.2015.14

Caja, G., Castro-Costa, A., & Knight, C. H. (2016). Engineering to support wellbeing of dairy animals. Journal of Dairy Research, 83(2), 136–147. https://doi.org/10.1017/S0022029916000261

Casino, F., Dasaklis, T. K., & Patsakis, C. (2019). A systematic literature review of blockchain-based applications: Current status, classification and open issues. Telematics and Informatics, 36, 55–81. https://doi.org/10.1016/j.tele.2018.11.006

Cheng, R., Zhang, F., Kos, J., He, W., Hynes, N., Johnson, N., Juels, A., Miller, A., & Song, D. (2019). Ekiden: A platform for confidentiality-preserving, trustworthy, and performant smart contracts. Proceedings of the IEEE European Symposium on Security and Privacy, 185–200. https://doi.org/10.1109/EuroSP.2019.00023

Dai, J., & Vasarhelyi, M. A. (2017). Toward Blockchain-Based Accounting and Assurance. Journal of Information Systems, 31(3), 5–21. https://doi.org/10.2308/isys-51804

Galvez, J. F., Mejuto, J. C., & Simal-Gandara, J. (2018). Future challenges on the use of blockchain for food traceability analysis. TrAC Trends in Analytical Chemistry, 107, 222–232. https://doi.org/10.1016/j.trac.2018.08.011

Gebru, T., Morgenstern, J., Vecchione, B., Vaughan, J. W., Wallach, H., III, H. D., & Crawford, K. (2021). Datasheets for datasets. Communications of the ACM, 64(12), 86–92. https://doi.org/10.1145/3458723

Halevy, A., Korn, F., Noy, N. F., Olston, C., Polyzotis, N., Roy, S., & Whang, S. E. (2016). Goods: Organizing Google's datasets. Proceedings of the ACM SIGMOD International Conference on Management of Data, 795– 806. https://doi.org/10.1145/2882903.2903730

Helo, P., & Hao, Y. (2019). Blockchains in operations and supply chains: A model and reference implementation. Computers & Industrial Engineering, 136, 242–251. https://doi.org/10.1016/j.cie.2019.07.023

Janiesch, C., Dinter, B., Mikalef, P., & Tona, O. (2022). Business analytics and big data research in information systems. Journal of Business Analytics, 5(1), 1–7. https://doi.org/10.1080/2573234x.2022.2069426

Jordan, M. I., & Mitchell, T. M. (2015). Machine learning: Trends, perspectives, and prospects. Science, 349(6245), 255–260. https://doi.org/10.1126/science.aaa8415

Kairouz, P., & McMahan, H. B. (2021). Advances and Open Problems in Federated Learning. Foundations and Trends® in Machine Learning, 14(1-2), 1–210. https://doi.org/10.1561/2200000083

Kshetri, N. (2018). Blockchain’s roles in meeting key supply chain management objectives. International Journal of Information Management, 39, 80–89. https://doi.org/10.1016/j.ijinfomgt.2017.12.005

Lasi, H., Fettke, P., Kemper, H.-G., Feld, T., & Hoffmann, M. (2014). Industry 4.0. Business & Information Systems Engineering, 6(4), 239–242. https://doi.org/10.1007/s12599-014-0334-4

Lin, J., Shen, Z., Zhang, A., & Chai, Y. (2018). Blockchain and IoT based food traceability for smart agriculture. Proceedings of the 3rd International Conference on Crowd Science and Engineering, 1–6. https://doi.org/10.1145/3265689.3265692

Liu, Y., Yu, J. J. Q., Kang, J., Niyato, D., & Zhang, S. (2020). Privacy-preserving traffic flow prediction: A federated learning approach. IEEE Internet of Things Journal, 7(8), 7751–7763. https://doi.org/10.1109/JIOT.2020.2991401

McMahan, B., Moore, E., Ramage, D., Hampson, S., & y Arcas, B. A. (2017). Communication-efficient learning of deep networks from decentralized data. Proceedings of the 20th International Conference on Artificial Intelligence and Statistics, 54, 1273–1282. https://doi.org/10.48550/arXiv.1602.05629

Moreau, L., Clifford, B., Freire, J., Futrelle, J., Gil, Y., Groth, P., Kwasnikowska, N., Miles, S., Missier, P., Myers, J., Plale, B., Simmhan, Y., Stephan, E., & den Bussche, J. V. (2011). The Open Provenance Model core specification (v1.1). Future Generation Computer Systems, 27(6), 743–756. https://doi.org/10.1016/j.future.2010.07.005

Neethirajan, S. (2020). The role of sensors, big data and machine learning in modern animal farming. Sensing and Bio-Sensing Research, 29, 100367. https://doi.org/10.1016/j.sbsr.2020.100367

Ray, P. P. (2023). Web3: A comprehensive review on background, technologies, applications, zero-trust architectures, challenges and future directions. Internet of Things and Cyber-Physical Systems, 3, 213–248. https://doi.org/10.1016/j.iotcps.2023.05.003

Reyna, A., Martín, C., Chen, J., Soler, E., & Díaz, M. (2018). On blockchain and its integration with IoT. Challenges and opportunities. Future Generation Computer Systems, 88, 173–190. https://doi.org/10.1016/j.future.2018.05.046

Saberi, S., Kouhizadeh, M., Sarkis, J., & Shen, L. (2019). Blockchain technology and its relationships to sustainable supply chain management. International Journal of Production Research, 57(7), 2117–2135. https://doi.org/10.1080/00207543.2018.1533261

Sicari, S., Rizzardi, A., Grieco, L. A., & Coen-Porisini, A. (2015). Security, privacy and trust in Internet of Things: The road ahead. Computer Networks, 76, 146–164. https://doi.org/10.1016/j.comnet.2014.11.008

Stranieri, S., Riccardi, F., Meuwissen, M. P. M., & Soregaroli, C. (2021). Exploring the impact of blockchain on the performance of agri-food supply chains. Food Control, 119, 107495. https://doi.org/10.1016/j.foodcont.2020.107495

Xu, X., Weber, I., Staples, M., Zhu, L., Bosch, J., Bass, L., Pautasso, C., & Rimba, P. (2017). A Taxonomy of Blockchain-Based Systems for Architecture Design. 2017 IEEE International Conference on Software Architecture (ICSA), 243–252. https://doi.org/10.1109/icsa.2017.33

Yli-Huumo, J., Ko, D., Choi, S., Park, S., & Smolander, K. (2016). Where Is Current Research on Blockchain Technology?—A Systematic Review. PLOS ONE, 11(10), e0163477. https://doi.org/10.1371/journal.pone.0163477

Zheng, Z., Xie, S., Dai, H. N., Chen, X., & Wang, H. (2018). Blockchain challenges and opportunities: a survey. International Journal of Web and Grid Services, 14(4), 352–375. https://doi.org/10.1504/ijwgs.2018.095647