Version

Owner / Editor

Last Modified date

1

Divya Chayanam

 22 Oct 2024

 

 

 

 

 

 

 

 

 

Introduction

Smart Irrigation v2 is a continuation of the smart irrigation v1 project that was done as a proof of concept for automated irrigation through the use of sensors and pivots. Documents from smart irrigation v1 have been linked throughout this document. Although this solution is intended for use by Alberta farmers as part of the project with Farming Smarter and RDAR, this could be easily replicable for a different geography as well.

Problem Statement / Opportunity

By enabling hands-free irrigation, this project is an opportunity to add efficiency and intelligence to a key aspect in Alberta agriculture.

Solution

Hands-free irrigation is made possible by automatically detecting when watering is needed and remotely turning on the irrigation system, without requiring any manual input. This is achieved through a combination of sensors and a pivot-based irrigation system that can be controlled through Litefarm, a web application.

Screenshot 2024-10-16 at 11.41.51 AM-20241016-184156.png

Ideal customer group

 

Implementation

MVP-1_Irrigation-20241015-212404.png

The MVP1 does not include Crop ET curves, elevation data and the calculation of the water deficit model.

The solution will be implemented in the following components and sub-components. The division and sub-division is done from a user perspective:

Module -1 Sensors

As a farmer and Litefarm user, I want to be able to add, view and manage sensors in my farm on the app. For this MVP, we will be supporting only sensors by the manufacturer Ensemble Scientific.

1. Study & Refactor existing sensor architecture

Research must be done on previous implementation for relevance and soundness of code. Adding notes from previous document:

2. Add / Create sensors on map view

3. View, edit & delete sensors

4. Capture sensor readings

Capture sensor readings in database via webhook. Archive / delete readings older than 6 months.

S.No

Sub-component / Feature

UI details

Backend requirements

Jira issue link

a

Sensor refactoring

b

Create multiple sensors from UI

Map view > add sensor > choose location > add details

 See sensor attributes in the list above

c

Upload sensor CSV data from app

 Map view > add sensor > upload via CSV

CSV template to upload to be available for download and re-upload

d

 Sensor details quick view

 Map view > click on sensor > see details (name, active/inactive, depth last soil moisture reading, soil temperature reading) & Edit & delete actions

 sensor attributes, API to fetch sensor details, opportunity to cache?

e

 View and edit sensor details

 Map view > click on sensor > Edit flow > confirm?

 

f

 Delete sensors

  Map view > click on sensor > delete flow > confirm?

 

g

Capture & show sensor readings

Flow TBD - after deciding if it’s necessary to display readings

Capture sensor readings via ES webhook.

h

Error handling

Unable to fetch data: default error screen or snackbar and message

Unable to perform requested action: error screen and message

TBD

i

Efficiency

Limit sensor readings on app to a week to begin with

Based on volume and frequency on data, plan to move historic data out of DB

 

 Module -2 Center Pivots

A pivot is an farm machinery or equipment used for irrigation in large scale farms. As a farm manager/technician and Litefarm user, I want to be able to add, view and manage pivots in my farm on the app. Some field notes on pivots from previous implementation.

Assumptions:

1. Add / Create pivots on map

2. View, edit & retire pivots

3. Initiation / Generate Irrigation prescriptions

Generate prescription to have an additional visibility in the app, apart from the pivot on the map.

4. Irrigation prescriptions - Push & History

h) A newly generated irrigation prescription could show up in the notifications with CTA to confirm or ignore. Push prescription to pivot on confirmation. Delete prescriptions older than 24hours, notifications can remain without CTA

i) Store irrigation prescription files in the app, possibly in a tab in the documents section.

j) View an irrigation plan with zones - An irrigation plan shows the irrigated zones of the field for a single pivot. More detail in the next module.

S.No

Sub-component / Feature

UI Details

Backend Requirements

Jira link

1

Create pivots / Add pivot to farm map

Map view > Add pivot

Cannot add more than one pivot to a field

Create pivot attributes

API to fetch pivot attributes

2

View pivot

Map view > Click on pivot > basic pivot details (name, farm name, irrigated area, active/inactive) including CTA to generate irrigation prescription

same as above, opportunity to cache?

3

Edit pivot

To be decided if needed

4

Delete pivot

To be decided if needed

5

Generate IP - user initiated

User-generated:

Map > Pivot details > generate

Show notification > approval

TBD: Associate with irrigation task?

6

Generate IP - automatic / trigger-based

Monitor sensor readings based on defined rules > generate IP > show notification > approval

7

User defined settings / rules

Min & max values of soil water deficit (depends on crop, we will suggest to start with)

Monitor time (hrs, 0 - 12, steps of 0.5 ) - Generate IP only if the soil water continues to stay below the threshold

Checkbox - Do not create prescription at night

Checkbox - do not create another prescription if there was a previously approved prescription within 24 hours

Approval permissions - what roles can approve prescriptions

One or two parameters must be monitored in combination with the defined rules.

8

Push prescription

Error snackbar if applicable

The .vri or equivalent file to be sent to pivot. Exactly what kind of integration this would be is to be figured out.

Fall back in case of failure: Check for bluetooth / USB options?

9

View last prescription

Give user the option to view IP on map.

To include color grading and irrigation values per zone (in mm)

Creating the map zones using the algorithm

10

IP history

Given that we are generating IP and the map beforehand, it might not be too difficult to maintain and show a history as well. Could limit the history to a month for starters and then have more options based on popularity of feature.

Module - 3 Layers & Integrations

Layers are visual representations of data on the same map, usually simultaneously. An example would be satellite view / default / terrain view in Google maps.

In addition to showing farms and structures on the map, we will be showing soil types and irrigated zones in the fields in two-dimensional map (not supporting elevations and depths), one at a time.

Currently we show farm location, boundaries and structures in the map. This can be expanded to the following:

View soil layers on map

The map would give the user an idea of the type of soil that is present in their farm(s). A user can look at the map of the farm and see a visual representation of zones / areas categorized by type of soil.

SoilGrids API gives the data on type of soil and other soil data when a lat long is passed. To begin with, this will be system generated and we won’t accept user uploaded maps or zones.

View irrigation zones on map

The irrigation prescription typically is not readable by common apps and is not easily consummable. So the last executed irrigation prescription is made available on the map as irrigated zones so it gives users a user-friendly way of understanding how their area was irrigated.

This will be system generated and not user generated. Please refer to this document on how these zones can be generated. An example of how that would look like:

image-20241015-185918.png

S.No

Sub-component / Feature

UI Details

Backend requirements

Jira link

1

Layers architecture - general

Group or categorize layers for visibility, toggle for a group.

Turned off by default

Grouping & visibility keys, API modification

2

Soil layers - Soilgrids API integration & UI

Static soil layers map + legend

Static zones, can be constructed for active farms as a completely asynchronous job, cache once done?

Frequency of update can be periodical or when a delete / create farm action happens

Constructing zones - TBD

3

Irrigation zones - map UI

Static for one irrigation prescription

Near real-time for the latest irrigation prescription.

How to create these zones - read doc

related to Jira story in module 2, point 9

4

Zones algorithm - Theissen polygons

Algorithm to generate the polygons - static, will change only if number of sensors and their locations in a farm are changed

5

Weather API integration

Weather predicted today to next 7 days. Show where?

No requirement to store past weather data

https://lite-farm.atlassian.net/browse/LF-4512

Open Questions

  1. Can/should users be able to edit an irrigation prescription?

  2. How much of an area is represented by a sensor? - answered in irrigation zones in module-3 layers

  3. How do a sensor and a pivot understand a field mapping? Is it configured at the beginning? - also answered in irrigation zones in module-3 layers

  4. How exactly do we integrate with a pivot?

  5. Possible error scenarios to be thought through in this entire journey.

  6. How to show soil types for multiple depths in layers? How much of this information is relevant to the user?

  7. We could recommend min and max values for the 10 crops and give a guidance around that for a user to choose? Or this common knowledge. Check 6,7 with Michelle

  8. Are the user settings / rules we defined fine enough to prevent over and under watering? Double check!

  9. What if we don’t store the sensor readings at all ? What if we get the sensor data on demand? Things to consider: Is data required for research? How far back does a user want to go?

  10. The database structuring depends on whether other sensors are push or pull based?