Created on 23rd February 2025
•
Farmers often struggle with financial instability due to unpredictable yields and lack of credit access. Many do not have a CIBIL score, making it difficult to secure loans. To solve this, we introduce a climate score, calculated using geospatial data, soil health, past yields, and weather resilience, which serves as an alternative financial identity.
Our AI-powered yield forecasting analyzes satellite data, weather patterns, and soil reports to predict productivity, helping farmers make informed decisions. Based on their climate score, we provide microloans, enabling them to invest in seeds, fertilizers, irrigation, and modern equipment, reducing dependency on exploitative lenders.
Additionally, our platform offers real-time insights on climate trends, risk assessment, and crop optimization, ensuring smarter farming strategies. Financial institutions can use climate scores to assess risk, making lending more inclusive. This integration of AI, finance, and agriculture ensures financial stability, improved productivity, and sustainable farming.
While building our AI-powered yield forecasting and climate-based credit scoring system, we faced multiple challenges, including CORS errors, JWT authentication failures, auth token issues, cookie handling errors, and model inconsistencies.
CORS Error
Since our frontend and backend were on different domains, API requests were blocked. We resolved this by configuring Flask-CORS with supports_credentials=True and setting proper headers.
JWT Authentication & Token Issues
Our tokens were expiring too quickly or being rejected. We fixed this by adjusting expiration times, implementing refresh tokens, and ensuring tokens were properly signed and verified.
Cookie Handling Errors
Cookies weren’t being stored due to SameSite restrictions. We resolved this by setting secure=True, httponly=True, and SameSite=None for proper authentication.
Model Challenges
Our yield prediction model initially struggled with inconsistent geospatial data, leading to inaccurate forecasts. To address this, we tried ensemble learning models like XGBoost and Random Forest, but they lacked the ability to capture seasonal trends effectively.
At last, we switched to Prophet by Meta, which is designed for time-series forecasting and handles seasonality, holidays, and trends efficiently. This improved accuracy and reliability, making our predictions more useful for farmers and lenders.
Tracks Applied (3)
Major League Hacking
Major League Hacking
Technologies used