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.

Traditional weed control treats the whole field as if it were 100% weeds. It isn't.
Herbicide is applied uniformly across whole fields — even where there are no weeds.
Farmers spend heavily on inputs that are largely wasted on crop and soil areas.
Excess chemicals leach into soil and water, damaging ecosystems and crop health.
Without spatial intelligence, sprayers can't distinguish weeds from crops in real time.
Green-Scanner turns a single input image into a precision spraying decision in seconds.
HSV thresholding and morphological filtering isolate vegetation from soil.
Connected-component analysis separates crops from weeds and quantifies coverage.
Dose is scaled directly by weed density — only spray where it's needed.
An 8×8 ON/OFF actuator grid maps decisions back onto the field.
Identifies healthy crop regions from input field images for accurate field analysis.
Detects weed-infested areas that require targeted herbicide application.
Separates bare soil regions from vegetation for improved field assessment.
Calculates the percentage of weed coverage across the field using pixel analysis.
Generates optimized herbicide dosage based on measured weed density.
Estimates the reduction in chemical usage compared to traditional blanket spraying.
Creates an ON/OFF spray map for targeted weed treatment.
Displays all results in an easy-to-understand visual dashboard.
The same field — first as an input image, then as a pixel-perfect crop / weed / soil map.


Upload one field image and Green-Scanner returns these adaptive insights — no manual tuning required.
Percentage of healthy crop pixels detected across the field.
Share of weeds within total vegetation — the core spray driver.
Bare-soil zones flagged to skip — no herbicide needed.
Herbicide volume scaled to measured weed density per acre.
Litres avoided vs. a uniform blanket-spray baseline.
Each cell maps to a section of the field. Sprayers fire only on weed-positive zones.
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.
Core language powering the training pipeline, segmentation backend, and metrics engine.
Deep-learning framework used to train and run the U-Net crop/weed/soil segmentation model.
Semantic segmentation architecture trained to label every pixel as soil, crop, or weed.
Image augmentation pipeline (flips, rotations, color jitter) used during U-Net training.
Used for image I/O, resizing, mask post-processing, and overlay rendering.
Pixel-level math for class masks, coverage ratios, and spray-grid calculations.
Python dashboard for uploading input images and viewing segmentation results.
TypeScript frontend that renders the marketing site and the in-browser analyzer.
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.
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
Comparison of Green-Scanner performance under different weed conditions.
| Test Case | Original | Segmented | Crop Coverage | Weed Density | Soil Coverage | Herbicide Required | Chemical Saved |
|---|---|---|---|---|---|---|---|
No Weed | Input | Output | 55.37% | 0.19% | 46.43% | 0.02 L/ac | 9.98 L/ac |
Low Weed | Input | Output | 59.37% | 2.97% | 37.67% | 0.3 L/ac | 9.7 L/ac |
High Weed | Input | Output | 6.95% | 21.95% | 71.11% | 7.6 L/ac | 2.4 L/ac |
Input
Output
Input
Output
Input
OutputResults 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.
Dose scales with measured weed density.
Less chemical, less fuel, less labor.
Cell-level decisions, not field-level guesses.
Protects soil, water and pollinators.
Clear dashboards in plain language.
Planned improvements for the next generation of Green-Scanner.
Benchmark U-Net against DeepLabV3+ and SegFormer backbones for higher mIoU on dense weed patches.
Expand training beyond CoFly-WeedDB with multi-crop, multi-season UAV imagery to improve generalisation.
On-board inference on live UAV video feeds instead of post-flight image uploads.
Quantised U-Net running on Jetson / Coral devices mounted directly on the sprayer.
Android and iOS app for field scouting, capture, and spray-plan review.
Map each 8×8 spray cell to GPS coordinates to drive section-control sprayers automatically.
Launch the Green-Scanner dashboard and turn your next image into a precision spray plan.
Launch Green-Scanner Dashboard