Inspiration

Agriculture is the backbone of Pakistan’s economy, yet most farmers still rely on guesswork when applying fertilizers. Seeing how poor fertilizer choices lead to soil damage and lower yields inspired us to create Fertiliz, a smart solution that empowers farmers through data-driven insights and sustainable practices.

What it does

Fertiliz is a machine learning–based system that recommends the best fertilizer for specific soil and crop conditions. By analyzing soil nutrients (Nitrogen, Phosphorus, Potassium) and environmental parameters, it provides instant, accurate fertilizer suggestions through an easy-to-use web interface — helping farmers improve productivity while protecting soil health.

How we built it

We started by collecting and cleaning a dataset containing soil nutrient values, environmental data, and crop information. Using Python and Scikit-learn, we trained a machine learning model to predict the ideal fertilizer type. The backend was developed with FastAPI, while the frontend was built using HTML, CSS, and JavaScript for simplicity and accessibility. Finally, we integrated everything into a smooth, farmer-friendly web application.

Challenges we ran into

One of our main challenges was finding reliable, region-specific soil data for Pakistan. We also had to balance technical accuracy with user simplicity, creating a system powerful enough to analyze complex soil parameters but easy enough for farmers with limited tech experience to use confidently.

Accomplishments that we're proud of

We’re proud to have built a complete, working prototype that connects modern technology with real-world farming needs. Our model delivers accurate fertilizer recommendations tailored for local conditions, and our interface makes scientific insights accessible to everyone — even in rural areas with minimal resources.

What we learned

We learned how machine learning can create real social impact when applied thoughtfully. From understanding soil science to building end-to-end systems, we discovered the power of combining technology, sustainability, and human-centered design to solve real agricultural challenges.

What's next for Fertiliz

We plan to expand Fertiliz by integrating live weather data and GPS-based soil mapping for even more precise recommendations. Our long-term goal is to partner with agricultural departments and NGOs to make Fertiliz accessible to farmers nationwide, helping Pakistan move toward smarter, sustainable, and data-driven farming.

Built With

Share this project:

Updates