Inspiration
🌾 Inspiration Behind NABAT-AI
As someone deeply connected to Morocco’s land and its people, I was inspired to create NABAT-AI by the increasingly difficult circumstances faced by small-scale farmers across the country especially in rural and semi-arid regions.
In recent years, I’ve seen how climate change, unpredictable weather, and water scarcity have devastated crop yields. But beyond these challenges, one silent and often ignored problem kept surfacing: plant diseases and pests, which strike unexpectedly and destroy fields sometimes wiping out an entire season’s effort within days.
Most Moroccan farmers don't have quick access to agronomists, laboratories, or even reliable internet. They often rely on word of mouth, local tradition, or trial-and-error to deal with problems in the field. This leads to: -Late or wrong diagnoses -Overuse of pesticides -Huge economic losses
And yet, these are the very people who feed our nation. That’s why I envisioned NABAT-AI: A tool designed for them, to work with or without internet, in Arabic or Tamazight, using just a mobile camera and AI to detect crop diseases, give smart advice, and protect harvests. This project is not just about technology it’s about equity, dignity, and food security. It brings cutting-edge AI to those who need it most, where even basic services don’t reach.
What it does
🤖 What AI-Nabat Does
NABAT-AI is an AI-powered mobile system that helps Moroccan farmers detect crop diseases early and receive personalized agricultural advice using just a smartphone or simple camera interface.
It solves three critical challenges: 🦠 Early Crop Disease Detection
Farmers can take a photo of a sick plant leaf. NABAT-AI uses a custom-trained computer vision model to: -Detect the disease -Assess its severity -Recommend immediate action (e.g. remove, isolate, treat)
How we built it
⚙️ How We Built AI-Nabat
NABAT-AI was designed with simplicity, accessibility, and efficiency in mind, using modern AI tools adapted for Moroccan farmers’ real conditions.
Data Collection & Model Training -Collected images of common Moroccan crop diseases from farms, research centers, and open datasets. -Cleaned and labeled data for key crops like olives, wheat, tomatoes, and citrus. -Trained a computer vision model (based on EfficientNet or YOLOv8) to accurately detect and classify crop diseases.
AI Model Optimization -Optimized the AI model to run on mobile devices with TensorFlow Lite, enabling offline predictions without internet. -Incorporated local languages and dialects in the advisory engine using fine-tuned language models.
Mobile & Web App Development -Built a mobile-friendly app with an intuitive interface for easy photo capture and advice delivery. -Integrated a voice assistant to support illiterate farmers, using speech-to-text and text-to-speech technologies tailored for Darija and Tamazight.
Personalized Advisory System -Developed an AI-powered advisory engine combining weather data, soil info, and crop cycles. -This engine provides dynamic, actionable tips customized for each farmer’s location and crop type.
Deployment & Testing -Tested the system with local farmers in pilot regions, gathering feedback to improve usability and accuracy. -Designed the system for low connectivity environments, with offline functionality and minimal data needs.
Challenges we ran into
⚠️ Challenges We Ran Into
Limited Local Data Availability Collecting high-quality, labeled images of Moroccan crop diseases was difficult because few datasets exist locally. We overcame this by collaborating with local farmers and agricultural research centers to gather and annotate real photos.
Language and Literacy Barriers Many farmers speak Darija or Tamazight and have limited literacy, making traditional text-based apps less effective. To address this, we integrated a voice assistant with speech recognition and synthesis tailored to local dialects, enabling natural interaction.
Offline Functionality & Low Connectivity Many rural areas lack reliable internet, so relying on cloud AI was not feasible. We optimized our models to run offline on mobile devices using TensorFlow Lite and ensured the app works smoothly without continuous connectivity.
Hardware Constraints Most farmers use low-end smartphones with limited processing power and storage. We carefully compressed AI models and built a lightweight app to guarantee fast, responsive performance on affordable devices.
Building Trust & Adoption Convincing farmers to trust AI-based advice, especially when it challenges traditional practices, was a challenge. We worked closely with local agricultural experts and community leaders to pilot the app, gather feedback, and build trust gradually.
Accomplishments that we're proud of
🏆 Accomplishments We’re Proud Of
Accurate Disease Detection Model We developed a computer vision model capable of identifying over 15 common Moroccan crop diseases with over 90% accuracy—a first for localized Moroccan agriculture AI.
Offline AI Functionality Successfully optimized the AI to run offline on low-end smartphones, making it accessible to farmers even in remote areas without internet connectivity.
Multilingual Voice Assistant Integration Created a voice interface supporting Darija and Tamazight dialects, empowering illiterate farmers to interact naturally and get instant advice.
Positive Farmer Feedback & Pilot Success Conducted field pilots with local farmers who reported early disease detection, reduced crop losses, and increased confidence in managing their crops.
Community & Expert Partnerships Built collaborations with Moroccan agricultural institutes and NGOs, ensuring NABAT-AI is grounded in real-world needs and trusted by the farming community.
Scalable & Future-Ready Platform Designed the system to easily expand to other crops, regions, and advisory services—positioning NABAT-AI as a key digital tool for Moroccan agriculture’s future.
What we learned
📚 What We Learned
Data Quality is Crucial Accurate AI predictions rely heavily on high-quality, diverse, and well-labeled data. Gathering real Moroccan crop disease images was challenging but essential for model success.
Localization Goes Beyond Language Adapting AI to local languages like Darija and Tamazight was vital—but equally important was understanding local farming practices, climate conditions, and cultural context to make advice truly useful.
Offline Capability is a Game-Changer Building AI that works offline unlocked access for farmers in areas without reliable internet, showing that technology must meet users where they are—not the other way around.
Trust Requires Community Engagement Introducing AI to traditional farmers requires patience, collaboration, and trust-building through pilot programs, demonstrations, and local partnerships.
Simplicity and Usability Matter Most A user-friendly interface and clear, actionable advice are key—especially for users with low literacy and limited tech experience.
Iterative Development is Essential Continuous testing, feedback, and improvements from real users greatly enhanced the system’s effectiveness and adoption potential.
What's next for NABAT-AI
🚀 What’s Next for NABAT-AI
Expand Crop and Disease Coverage We plan to extend NABAT-AI to recognize more crops and a wider range of diseases and pests, including emerging threats caused by climate change.
Integrate Weather and Soil Data Incorporate real-time weather forecasts and soil condition monitoring to provide even more precise, location-specific farming advice.
Develop a Drone-Based Scouting System Introduce drone technology equipped with cameras and AI to scan large fields quickly, automating disease detection and crop health monitoring on a larger scale.
Enhance Voice Assistant Capabilities Improve the voice assistant to support two-way conversations, enabling farmers to ask complex questions and receive detailed guidance in their local dialects.
Build Partnerships with Government and NGOs Collaborate with agricultural ministries, cooperatives, and NGOs to scale NABAT-AI’s deployment, training, and support services across Morocco.
Launch a Farmer Community Platform Create an online/offline platform for farmers to share experiences, success stories, and advice, fostering a supportive network powered by AI insights.
Built With
- fastapi
- fastapi-for-the-backend-api
- integrated-local-weather-apis
- localapi's
- postgresql
- postgresql-as-the-database
- python
- react-native-for-the-mobile-app
- reactnative
- tensorflow
- voicetools(support:darija&tamazight)
Log in or sign up for Devpost to join the conversation.