AI for Precision Agriculture

Green-Scanner

AI-Based Weed Density Estimation & Precision Spraying Decision System

An intelligent precision agriculture system that transforms input field images into crop, weed and soil insights — with optimized herbicide recommendations and spray-grid planning.

−63%
Chemical use
8×8
Spray grid
Eco-Friendly Farming
Protects Environment
3-Class Segmentation
Crop • Weed • Soil Classification
Input crop field image showing crop, weed, and soil regions
Crop
Healthy Plants
Weed
Unwanted Plants
Soil
Bare Ground
The problem

Spraying every inch wastes money and harms the planet

Traditional weed control treats the whole field as if it were 100% weeds. It isn't.

Blanket spraying

Herbicide is applied uniformly across whole fields — even where there are no weeds.

High chemical cost

Farmers spend heavily on inputs that are largely wasted on crop and soil areas.

Environmental harm

Excess chemicals leach into soil and water, damaging ecosystems and crop health.

No targeting

Without spatial intelligence, sprayers can't distinguish weeds from crops in real time.

Our solution

See weeds. Spray smart. Save chemicals.

Green-Scanner turns a single input image into a precision spraying decision in seconds.

Image segmentation

HSV thresholding and morphological filtering isolate vegetation from soil.

Weed density

Connected-component analysis separates crops from weeds and quantifies coverage.

Chemical optimization

Dose is scaled directly by weed density — only spray where it's needed.

Spray grid simulation

An 8×8 ON/OFF actuator grid maps decisions back onto the field.

How it works

From input image to spray decision

Step 1
Upload image
Upload a field image
Step 2
Segmentation
Crop · Weed · Soil masks
Step 3
Weed density
Pixel-based weed analysis
Step 4
Herbicide cost calculator
Calculate dose, cost, and savings
Step 5
Spray grid
ON / OFF cell plan
Step 6
PDF report
Download the complete analysis report
Key features

A complete precision-spraying stack

Crop Region Detection

Identifies healthy crop regions from input field images for accurate field analysis.

Weed Region Detection

Detects weed-infested areas that require targeted herbicide application.

Soil Segmentation

Separates bare soil regions from vegetation for improved field assessment.

Weed Density Percentage

Calculates the percentage of weed coverage across the field using pixel analysis.

Herbicide Recommendation

Generates optimized herbicide dosage based on measured weed density.

Chemical Savings Calculation

Estimates the reduction in chemical usage compared to traditional blanket spraying.

Precision Spray Grid Simulation

Creates an ON/OFF spray map for targeted weed treatment.

Farmer-Friendly Dashboard

Displays all results in an easy-to-understand visual dashboard.

Segmentation

From raw field to clear decisions

The same field — first as an input image, then as a pixel-perfect crop / weed / soil map.

Input image
Original input field image
Original input image
Raw drone capture — weeds blend into the crop rows.
Output · AI segmentation
AI segmented output
6 weed zones detected
Segmented output
AI mask — every pixel classified as crop, weed or soil.
Crop
Weed
Soil
Insights

What every scan reveals

Upload one field image and Green-Scanner returns these adaptive insights — no manual tuning required.

Adaptive
Crop Coverage

Percentage of healthy crop pixels detected across the field.

Adaptive
Weed Density

Share of weeds within total vegetation — the core spray driver.

Adaptive
Soil Coverage

Bare-soil zones flagged to skip — no herbicide needed.

Adaptive
Recommended Dose

Herbicide volume scaled to measured weed density per acre.

Adaptive
Chemical Saved

Litres avoided vs. a uniform blanket-spray baseline.

Spray planning

Precision spray ON/OFF grid

Each cell maps to a section of the field. Sprayers fire only on weed-positive zones.

ON
ON
ON
ON
OFF
ON
OFF
OFF
ON
OFF
OFF
OFF
ON
OFF
OFF
OFF
ON
ON
OFF
ON
OFF
OFF
OFF
ON
OFF
ON
OFF
OFF
OFF
OFF
ON
OFF
OFF
ON
OFF
OFF
OFF
OFF
ON
OFF
OFF
OFF
ON
ON
ON
OFF
OFF
OFF
OFF
OFF
ON
ON
OFF
OFF
OFF
ON
OFF
OFF
ON
ON
OFF
OFF
OFF
OFF

Spray only where it counts

Green-Scanner translates the segmentation mask into a discrete actuator grid that mirrors typical boom-sprayer hardware. Sections without weeds stay OFF — saving chemicals, fuel and time.

ON cells
23 / 64
Coverage saved
64%
Technology

Built on a proven open-source stack

Python

Core language powering the training pipeline, segmentation backend, and metrics engine.

PyTorch

Deep-learning framework used to train and run the U-Net crop/weed/soil segmentation model.

U-Net (3-class)

Semantic segmentation architecture trained to label every pixel as soil, crop, or weed.

Albumentations

Image augmentation pipeline (flips, rotations, color jitter) used during U-Net training.

OpenCV

Used for image I/O, resizing, mask post-processing, and overlay rendering.

NumPy

Pixel-level math for class masks, coverage ratios, and spray-grid calculations.

Streamlit

Python dashboard for uploading input images and viewing segmentation results.

TanStack Start + React

TypeScript frontend that renders the marketing site and the in-browser analyzer.

Research novelty

Built on state-of-the-art UAV weed-detection research

Green-Scanner is informed by Shahi et al. (2023), "Deep Learning-Based Weed Detection Using UAV Images: A Comparative Study" (Drones, MDPI). The study benchmarks SegNet, UNet and DeepLabV3+ against five backbone CNNs (VGG16, ResNet50, DenseNet121, EfficientNetB0, MobileNetV2) on the CoFly-WeedDB UAV dataset and identifies UNet + EfficientNetB0 as the top semantic-segmentation model for aerial weed detection.

Where the paper stops at detection accuracy, Green-Scanner pushes the pipeline further — turning segmentation masks into weed-density metrics, optimized herbicide doses and an actuator-level spray grid. That is the novelty: not just where the weeds are, but how much chemical to apply and which sprayer cells to fire.

88.24%
F1-score (UNet + EfficientNetB0)
88.20%
Precision on CoFly-WeedDB
56.21%
Mean IoU — best of 5 backbones
Detection
Density
Optimization
Spray Grid
Dashboard

Reference: Shahi, T.B.; Dahal, S.; Sitaula, C.; Neupane, A.; Guo, W. Deep Learning-Based Weed Detection Using UAV Images: A Comparative Study. Drones 2023, 7(10), 624. https://doi.org/10.3390/drones7100624

Results

Results

Comparison of Green-Scanner performance under different weed conditions.

No Weed
No Weed inputInput
No Weed segmentedOutput
Crop Coverage
55.37%
Weed Density
0.19%
Soil Coverage
46.43%
Herbicide Required
0.02 L/ac
Chemical Saved
9.98 L/ac
Low Weed
Low Weed inputInput
Low Weed segmentedOutput
Crop Coverage
59.37%
Weed Density
2.97%
Soil Coverage
37.67%
Herbicide Required
0.3 L/ac
Chemical Saved
9.7 L/ac
High Weed
High Weed inputInput
High Weed segmentedOutput
Crop Coverage
6.95%
Weed Density
21.95%
Soil Coverage
71.11%
Herbicide Required
7.6 L/ac
Chemical Saved
2.4 L/ac

Results Summary

Results demonstrate that Green-Scanner dynamically adjusts herbicide recommendations based on weed density. As weed infestation increases, the required herbicide increases while potential chemical savings decrease, validating the effectiveness of precision agriculture-based decision making.

Benefits

Better for the farm. Better for the planet.

Reduces herbicide usage

Dose scales with measured weed density.

Lowers farming cost

Less chemical, less fuel, less labor.

Supports precision agriculture

Cell-level decisions, not field-level guesses.

Reduces chemical pollution

Protects soil, water and pollinators.

Helps farmers decide

Clear dashboards in plain language.

Roadmap

Future Enhancements

Planned improvements for the next generation of Green-Scanner.

DeepLabV3+ & Transformer Models

Benchmark U-Net against DeepLabV3+ and SegFormer backbones for higher mIoU on dense weed patches.

Larger Field Dataset

Expand training beyond CoFly-WeedDB with multi-crop, multi-season UAV imagery to improve generalisation.

Real-Time Drone Streaming

On-board inference on live UAV video feeds instead of post-flight image uploads.

Edge Deployment

Quantised U-Net running on Jetson / Coral devices mounted directly on the sprayer.

Mobile Companion App

Android and iOS app for field scouting, capture, and spray-plan review.

GPS-Linked Variable-Rate Spraying

Map each 8×8 spray cell to GPS coordinates to drive section-control sprayers automatically.

Smarter Farming with AI

Launch the Green-Scanner dashboard and turn your next image into a precision spray plan.

Launch Green-Scanner Dashboard