Skip to content
FarmCulture

FarmCulture

Reimagining agriculture through AI

Created on 2nd November 2025

•

FarmCulture

FarmCulture

Reimagining agriculture through AI

The problem FarmCulture solves

Problem FarmCulture Solves

  1. Lack of Data-Driven Decision Making in Farming

Most farmers still rely on traditional experience or guesswork to decide which crop to grow each season.
They often don’t have access to scientific insights on:

Soil nutrient balance (Nitrogen, Phosphorus, Potassium)

pH levels

Rainfall, humidity, and temperature trends

This leads to wrong crop choices, low yield, and soil degradation over time.

  1. Fragmented & Hard-to-Understand Information

While many data sources exist (weather apps, soil reports, government portals), farmers lack:

A centralized platform to bring all data together

A simple interface that explains the data in plain, actionable language

Personalized insights tailored to their region and land

Result: farmers struggle to make sense of digital data and miss key opportunities for better yield and sustainability.

  1. Unsustainable Agricultural Practices

Due to overuse of fertilizers and water, soil health and crop diversity are declining.
Farmers lack awareness of eco-friendly crop rotation, organic methods, and efficient irrigation cycles — resulting in long-term soil damage.

  1. Information Gap Between Technology and Farmers

Even when AI or ML solutions exist, they are often designed for researchers, not farmers.
Farmers need:

Simple recommendations (not just raw numbers)

Step-by-step guidance that fits their language and local farming patterns

In Summary

FarmCulture bridges the gap between data science and the farmer’s field.
It solves the problem of uninformed crop selection and complex agricultural data by combining:

Machine Learning (ML) to predict the most suitable crop based on soil & weather, and

Generative AI (Gemini) to generate a simple, actionable farming plan in natural language.

Challenges we ran into

Model & Dependency Compatibility Issues
While integrating the crop prediction model, we faced version conflicts between the model's original environment and the backend environment. Scikit-learn raised InconsistentVersionWarning errors when loading the .pkl model. This required us to either retrain the model under compatible versions or adjust our backend libraries accordingly.

Firebase Permissions & Firestore Rules
Initially, data wasn’t saving to Firestore due to default read/write restrictions. We debugged permissions, revisited Firestore rules, and ensured authentication worked before allowing data writes from the UI.

CORS Issues Between Frontend & Backend
Since the frontend ran on Vite’s dev server (localhost:5173) and backend on Uvicorn (localhost:8000), CORS blocked API calls. We had to explicitly configure allowed origins using environment variables and middleware in FastAPI.

Gemini API Integration & Quota Limitations
The Gemini layer threw errors like 404 Model Not Found or 429 Quota Exceeded. We learned that certain models weren’t compatible with our API version, and later hit free-tier rate limits. We optimized requests and prepared fallback summaries when the API wasn’t reachable.

Environment Variable & Pydantic v2 Changes
We ran into unexpected crashes when using BaseSettings because Pydantic v2 had breaking changes. Fixing this required migrating to pydantic-settings and updating the config structure to match new formatting and type expectations.

Slow or Stuck AI Response in UI
In some instances, the UI kept “loading” because the backend didn’t return a response while the AI was processing or being rate-limited. We resolved this by adding a response timeout and showing graceful error feedback to the user.

Discussion

Builders also viewed

See more projects on Devfolio