Smart Farm Animal Intrusion Detection Using Multi-Modal IoT, Edge AI and Kafka Streaming
Keywords:
IoT, Kafka, Edge AI, Few-Shot Learning, Smart Agriculture, Wildlife Detection, TinyMLAbstract
Wild animals such as deer or rabbits cause significant crop losses worldwide and create major problems for farmers. Traditional methods, such as fences, are often too expensive, difficult to maintain and not consistently effective. This paper provides details about an animal intrusion avoiding system that uses a combination of sensors, including thermal cameras, microphones, and motion detectors. The sensors work in conjunction with artificial intelligence running on edge devices, sending alerts through a Kafka streaming system. Unlike existing systems that rely on only one type of sensor or fixed models, our method combines several signals and can also learn to recognize new animals with only a few examples. In simulation tests, the system achieved about ninety-four percent accuracy, reduced false alarms by more than a third, and responded in less than two hundred milliseconds. When compared with systems that used only motion sensors or only cameras, our approach proved to be more reliable. The work is still limited because it is based on simulations rather than real-world farm testing, but plans include real-world trials, adding long-range communication such as LoRaWAN, and utilizing advanced techniques like federated learning to make the system even stronger.
References
[1] Edge AI for Agriculture:
https://www.mdpi.com/2077-0472/12/6/892
[2] YOLOv8-lite on Jetson Nano:
https://github.com/ultralytics/ultralytics
[3] Kafka Event Streaming:
https://kafka.apache.org/documentation/
[4] Few-Shot Learning in Vision:
https://arxiv.org/abs/1904.04232
[5] MQTT vs Kafka:
https://www.hivemq.com/blog/mqtt-vs-kafka-real-time-bidirectional-data-processing/
[6] Secure OTA Updates for IoT:
https://source.android.com/docs/core/ota
[7] TinyML for Smart Farms:
https://www.sciencedirect.com/science/article/pii/S2772375524000959
[8] Raspberry Pi & Jetson Benchmarks:
https://developer.nvidia.com/embedded/jetson-nano-developer-kit
[9] Prototypical Networks (Few-Shot Learning)
https://arxiv.org/abs/1703.05175
[10] Lightweight Edge AI with YOLOv4-Tiny
https://arxiv.org/abs/2004.10934
[11]Kakfa
https://docs.confluent.io/kafka/introduction.html
[12] TinyML for Environmental Sensing
https://github.com/tinyMLx/courseware
[13] Animal Detection in Agriculture
https://ijarcce.com/wp-content/uploads/2022/05/IJARCCE.2022.114159.pdf
[14] Google cloud
https://cloud.google.com/architecture/iot-core-reference-architecture
Downloads
Published
Issue
Section
License
Copyright (c) 2025 American Scientific Research Journal for Engineering, Technology, and Sciences

This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
Authors who submit papers with this journal agree to the following terms.