Skip to content
Agri sphere

Agri sphere

Connecting Farmers, Buyers & AI –All in One Sphere

Created on 6th September 2025

•

Agri sphere

Agri sphere

Connecting Farmers, Buyers & AI –All in One Sphere

The problem Agri sphere solves

🌾 What Our Platform Can Be Used For

This project addresses key problems in the agricultural sector by providing farmers with the tools to improve productivity, profitability, and knowledge.


🍃 Early Plant Disease Detection

  • Farmers can use the AI tool to scan a plant's leaves and instantly identify diseases.
  • This makes it easier and faster to find a solution, preventing crop loss and ensuring a healthier harvest.

🤖 Getting Instant Answers

  • The agriculture chatbot makes it easier for farmers to get help.
  • They can ask questions about crops, pests, and farming techniques and receive immediate, accurate responses anytime — without needing to find a human expert.

💰 Increasing Profitability

  • The marketplace removes the problem of middlemen by allowing farmers to sell their produce directly to consumers.
  • This ensures better pricing for their goods and helps them keep a larger share of the profits.

📚 Improving Agricultural Knowledge

  • The education hub makes learning accessible to farmers.
  • It provides information on government schemes, new growing techniques, and best practices through articles and videos.
  • This helps farmers make smarter, well-informed decisions for their business.

Challenges we ran into

🛠️ Challenges I Ran Into

My hackathon objective was not just about building a functional AI model—it was a journey filled with challenges, problem-solving, and growth. From technical roadblocks to collaboration hurdles, every step taught us something valuable.


🤖 AI Model & Training Challenges

  1. Lack of GPU Resources

    • Training the AI model on Google Colab was difficult due to limited free GPU resources and frequent session timeouts.
    • Solution: We adapted by selecting the EfficientNetV2 model, which was lightweight, resource-efficient, and compatible with Colab.
  2. Dataset Preparation

    • Managing over 38 directories of images was time-consuming and required constant troubleshooting.
    • Solution: Spent long hours cleaning, structuring, and coding around the dataset while juggling between multiple Colab accounts to continue uninterrupted training.
  3. Hosting Issues

    • Our first deployment on Hugging Face caused redirection issues that disrupted the user experience.
    • Solution: Shifted to using Hugging Face’s API, ensuring smoother and more reliable integration with our platform.
  4. Learning Gradio

    • Building the Gradio-based interface was a steep learning curve since we were new to it.
    • Challenge: Debugging sessions sometimes lasted over 7 hours due to unfamiliarity.
    • Solution: Through persistence and research, we eventually got the app running as intended.

🎨 Frontend (React + Tailwind CSS + JavaScript)

  1. Overlapping Components

    • Some components and <div> elements overlapped or overlaid each other.
    • Solution: Fixed using Tailwind’s flex/grid utilities and proper positioning techniques.
  2. Heavy Use of JavaScript

    • Complex logic and multiple interactions became confusing at times.
    • Solution: Broke logic into smaller reusable components and functions for better readability.
  3. File Structuring

    • Organizing files and folders systematically was challenging as the project grew.
    • Solution: Adopted a clean modular folder structure (components/, pages/, hooks/, etc.) to keep things clear.
  4. Arranging Divs & Contents

    • Designing responsive layouts and systematically arranging content was tricky.
    • Solution: Leveraged Tailwind’s responsive classes (sm:, md:, lg:) for consistent layouts across devices.

🔧 Backend (Firebase)

  1. Firestore Data Structuring

    • Struggled with designing collections and sub-collections for products, orders, and users.
    • Solution: Re-designed schema for normalization and efficient queries.
  2. Real-Time Updates

    • Order status updates were sometimes delayed or not reflected immediately.
    • Solution: Used Firestore’s real-time listeners (onSnapshot) to keep frontend in sync.
  3. Deployment & CORS Issues

    • Faced problems with CORS policies and Firebase security rules during deployment.
    • Solution: Correctly configured Firebase rules and added proper CORS headers.

✅ Outcome

  • Improved our problem-solving skills and ability to adapt to technical limitations.
  • Learned how to structure scalable frontend systems with Tailwind & React.
  • Gained deeper knowledge of AI model optimization under limited resources.
  • Enhanced our expertise in Firebase real-time capabilities and backend scaling.
  • Built a stronger foundation in collaboration, debugging, and persistence throughout the hackathon journey.

Discussion

Builders also viewed

See more projects on Devfolio