Inspiration

Agriculture is the world’s largest occupation, employing billions globally, especially across Africa, parts of the Far East, and Latin America. Yet, rural communities often face severe challenges: bloody herder-farmer clashes, lack of financial access, and limited educational resources. These clashes don’t just cause loss of lives and livelihoods — they also threaten food security.

AgroRithm was inspired by the urgent need to prevent conflict, empower communities, and democratize access to finance and education. By combining IoT, geofencing, AI, and blockchain, we aim to transform agriculture into a safer, more transparent, and sustainable system.

Agricultural finance is broken. Alot of farmers and herders especially in Africa can't access investment capital or even animal or crop insurance. Traditional systems are opaque, expensive, and exclude smallholder farmers. Meanwhile, agriculture contributes 24% of global greenhouse gas emissions, but farmers aren't rewarded for sustainable practices. We asked: What if anyone could invest directly in a specific cow, farm plot, or sustainability action? What if we could make agricultural economics as transparent as checking your bank account?

What it does

AgroRithm is an AI + Geofencing + IoT/GSM/GPS tracker-powered platform that helps farmers and herders manage livestock and prevent conflicts, deaths and loss of livestock and crops. It tracks cattle movements in real time using IoT sensors, GPS, and offline-first mobile and web(PWA) apps, while sending early warnings and alerts when animals approach farms or restricted zones. An AI powered camera can prevent cow intrusion in nongrazing areas. The system uses AI models and maps to give actionable insights. It also integrates blockchain (Hedera) for transparent logging of events, token-based rewards for sustainability actions, and proof of animal wellbeing.

How we built it

We started by identifying key challenges faced by farmers and herders in Africa, especially livestock loss, conflict, and grazing management. Using this as a base, we developed AgroRithm as a modular platform:

IoT Layer/GPS/GPRS → GPS trackers for livestock movement data, designed to work even in low-connectivity rural areas. Granular Asset Tracking Farmers log real assets - specific cows, land areas, sustainability actions - directly to the Hedera blockchain. Every asset becomes a trackable, investable opportunity.

Mobile & Web Apps (PWA + Telegram bot) → Offline-first apps for farmers, herders, and admins to receive alerts, manage data, and interact with AI.

AI Models (TinyLLaMA ) → Educate farmers and herders via offline chatbot.

Blockchain (Hedera) → Immutable Logs of livestock events, movements, herders and landed agro properties(Grazing and nongrazing) for trust and dispute resolutions ie location, movement, rewards sustainability actions with tokens, and ensures transparent reporting. Investment in livestock can be easily done via the PEACE TOKEN on Hedera chain that can be redeemed for cash. They can get investments in their cow, lands from anywhere in the world and convert the Tokens for services or cash or the community of farmers and herders can VOTE on how to utilize the Tokens/crypto cash for social good or their wellbeing. Tokenized Agricultural Investment Our PEACE token enables micro-investments starting at $1. Invest in: Individual livestock tracking and health monitoring Specific land areas for grazing or crop production Sustainability actions like tree planting and composting

Firebase backend → For real-time data sync, storage of livestock events, herders, farmers, farmlands(grazing and non-grazing lands) and automated trigger via clouds for Hedera blockchain loggings for immutability. Getting the best of both WEB2.0 and WEB3.0.

We combined open-source tools (YOLOv5, Ollama, ) with custom-built features to deliver a system that works both online and offline, making it scalable and practical in rural settings.

Telegram bot We built a Telegram bot that has llama powered AI called AgroAI or RaAI that farmers and herders can speak to anytime for info. They can also log sustainability actions by snapping their lands or farm products like planted trees that logs to blockchain which can be invested in and they get cash. The picture metadata are also stored in ipfs and are immutable.

Places API On our mobile App we have the Places API were herders can easily access nearest vets also on the map they can get business from farmers or other app users who see their location and chat them for meat and milk which they can pay within cash or PEACE Tokens thereby creating a local and democratized economy.

Challenges we ran into

Building AgroRithm came with several challenges:

Connectivity issues → Designing a system that works offline-first in rural areas without stable internet required creative use of PWA technology, SMS/USSD fallback, firebase persistence and storage of geolocation by IoT neo6m on the esp32 if no netowork and sends when there is network. GSM/GPS trackers are used for more stable networks.

Data accuracy → GPS tracking on low-cost devices was sometimes unreliable, so we had to combine cell tower fallback to make livestock movement data more usable.

Blockchain integration → Making Hedera logging lightweight, cost-effective, and automated data trigger from firebase.

AI -> Running Tinyllama on a laptop with not too high RAM and then been able to access it on phone via LAN offline

Challenges in the design of the android app as a result of dependency issues.

Hardware limitations → Testing IoT trackers at times it wont connect due to building interferences or trees, has to have direct line of sight with space satellite, and also running AI locally on modest laptops meant optimizing models for low-power devices.

Accomplishments that we're proud of

Being able to create a solution that solves a critical issue that has led to loss of animals, cattle and human lives as well as destruction of crops and arable farmlands in Africa and beyond.

Successfully built an offline-first IoT + AI livestock tracking system that works even in rural areas with limited internet.

Deployed Hedera blockchain logging for immutable livestock events and token-based incentives, making sustainability, trust, safety and transparency a core feature.

What we learned

The importance of combining multiple technologies (AI, IoT, blockchain, geospatial data) to solve complex, real-world problems.

How cross-domain knowledge (agriculture, economics, finance, conservation, data science, community engagement) enriches tech solutions for animals and humans

What's next for AgroRithm: Smart Animal & Earth Sustainability Guardian

Partnerships with NGOs, Insurance companies, BigTech and more carbon credit exchanges to provide more financing for our underserved communities consisting of mostly farmers and herders and rural workers.

Built With

Share this project:

Updates