AgriConnect
Innovating for Sustainable Farming
EN / සිං
Built for Sri Lanka's Rice Farmers

A Fairer Way to Reward Every Harvest.

AgriConnect connects farmers with agriculture officers through shared crop records, harvest-based points, and AI-assisted disease analysis. Farmers track their progress in English or Sinhala, while officers manage farms, harvests, inquiries, and reports.

24
Districts Covered
06
Rice Leaf Classes
02
Languages · EN / SI
Farmer Portal · Home Yala Season
0
Points This Season
105
Total Points
Ratnapura
District
See how points are calculated →
Illustrative farmer dashboard values
The Problem We're Solving

Farmers Grow the Rice.
Others Set the Price.

Four gaps this project was built to close — in plain words.

⛔
Big buyers control the priceA small number of large millers buy most of the rice. Farmers often have no better option than to accept whatever price they're offered.
⛔
No reward for growing moreRight now, nothing rewards a farmer for growing more rice than others nearby, even when they do everything right.
⛔
No shared recordsThere's no simple, shared record of how much rice each district actually grows — which makes it hard to plan fair support.
⛔
Disease spreads before anyone noticesPlant disease is usually spotted late, by eye, so it can spread to nearby farms before help arrives.
AgriConnect cover — innovating for sustainable farming
AgriConnect — Innovating for Sustainable Farming
What AgriConnect Does

One App for Farmers and Officers.

Everything a farmer and an agriculture officer need, in one simple place.

Farmer & Officer Portal

Officers register farmers, manage their farms, and record harvests. Farmers view their own crop records, points, alerts, and reports.

Points for Good Harvests

Earn a participation bonus, plus extra points for yield above the district benchmark. Missing benchmarks leave points pending until they can be calculated.

Disease Scanner

Select a registered farm, upload a rice-leaf photo, and add location details and notes. View the predicted condition, confidence, treatment, and prevention guidance.

Disease Map

Explore district-level reports by disease and time period, including custom dates. Hover or tap a district to inspect its report count and disease breakdown.

AgriBot Assistant

A chat helper on every page, answering questions in Sinhala or English — about the app, or about farming.

Message Your Officer

Send inquiries with supporting documents. Officers review attachments and update the status from Pending to Reviewed or Resolved.

Crop Records & CSV Export

Filter harvests by year, season, and crop; sort by date or yield; select records for CSV export; and refresh points from the Crop Data page.

Reports & Analytics

Farmers see harvest trends and crop distribution. Officers compare seasonal and district yields, farmer participation, and top performers, with PDF report downloads.

Searchable Harvest History

Officers search records by farmer, NIC, or plot, apply crop and season filters, and export harvest history as CSV, Excel, or PDF.

Farm & Farmer Management

Register farmers with mapped addresses, associate multiple plots with a farmer, and manage crop, acreage, district, and division details from All Farms.

Sinhala Farmer Portal

Switch the farmer dashboard, crop data, disease analysis, contact-admin, reports, and profile screens between English and Sinhala.

Account Recovery & Verification

A role-based sign-in screen includes password recovery through an emailed verification code. Profile settings support email verification and account updates.

Flood alerts within 10 km of a chosen tracking location Type an address, we'll find it Email notifications when points are awarded
Current Sinhala farmer disease-analysis screen with translated upload instructions
Sinhala Farmer Portal — the current disease upload screen, with translated navigation, instructions, and controls.
Current administrator reports with period filters, summary metrics, and PDF download
Officer Reports — year, season, and crop filters with summary metrics, refresh, and PDF download.
Current AgriConnect sign-in screen with role selection and Forgot Password
Updated Sign-In — farmer or officer access, with email-code password recovery.
Harvest history search, crop and season filters, export action, and summary metrics
Harvest History — searchable, filtered records with CSV, Excel, and PDF exports.
How You Earn Points

Every Harvest Counts. Higher Yields Earn More.

Harvest quantity is divided by farm acreage and compared with the district average for the same crop, season, and year. The highest district average supplies the comparison benchmark.

bonus = 200 × yield ÷ avg
extra = 1000 × √( (yield − avg) ÷ (highest − avg) )
points = round(bonus + extra)
Below the district average, a harvest earns the bonus only. Matching the average earns 200 points. The extra component applies only when yield meets the average and the highest district average is greater. There is no 1000-point cap; 1000 is the extra component's scale.

If the district benchmark is missing, the harvest is saved with points pending. A zero average earns zero points. The example uses sample benchmarks, not live records.

1850
District Avg
2700
Highest District Avg
1850
Your Yield
0
Points Earned
Spot Disease Early

Take a Photo. Know in Seconds.

The rice-leaf model has six classes: healthy leaves and five disease conditions. Explore example results below; actual analysis starts with a farm selection and photo upload in the live app.

Farm-linked report history Searchable location & map pin Optional symptom notes Confidence & class probabilities
No reportsReported disease activity →Critical

Farm-linked reports feed the district map. Filter by disease, the last 1, 3, or 6 months, or a custom date range; hover or tap a district to see counts and a breakdown. Colours represent report activity, not model confidence.

Current farmer disease heat map with district report activity and disease and time-range filters
Disease Heat Map — current district view with disease and time-range filters.
Under the Hood

How the Data Fits Together.

Five core collections connect people, plots, harvests, benchmarks, inquiries, and disease reports. Selected fields are shown below; tap a card for its relationships.

Always-On Help

Meet AgriBot.

AgriBot sits on every page of the app. It answers questions about AgriConnect itself, and general farming questions too — in Sinhala or English, so language is never a barrier.

🌐
Switches between Sinhala and English in one tap
💬
Answers "how do I..." questions about the app itself
🌾
Also fields general farming questions, not just app help
Try AgriBot Now
AgriBot chat assistant in the AgriConnect app
System Design

Four Layers, Field to Dashboard.

A straightforward setup, chosen so the disease-scanning model can be updated on its own, without touching the rest of the app.

04

The App You See

React + TypeScriptTailwind CSSi18next

Separate farmer and officer routes, Sinhala farmer screens, charts, CSV/PDF exports, and interactive maps.

03

The Rules Engine

Express.jsLogin & Security

Manages role-based access, farm and harvest records, benchmark-based points, inquiries, email verification and recovery, and flood checks.

02

The Records

MongoDB

Farmers, farms, harvests, district averages, and every disease report, all stored here.

01

The Disease Model

PythonRuns Separately

A standalone scanner the app calls over the internet each time a leaf photo is uploaded.

GitHub Actions runs frontend, backend, and browser tests before deployment to Vercel and Render. Docker Compose and Nginx also support a container-based setup.
GitHub ActionsVercelRenderDocker ComposeMongoDB Atlas
Team Mythix

Built By

SH
E/22/130
S. H. S. Hansara
Product Owner
TA
E/22/008
T. H. Abeywickrama
Team Leader
HG
E/22/126
H. P. J. Gunawardhana
Project Collaborator
HH
E/22/135
H. T. D. Hatharasinghe
Project Collaborator
AgriBot
Farming assistant
This is a preview — try the full AgriBot in the live app.