Mikko Kotila

Topics: Research and development

Research and development

Farmism

Farmism logo

Farmism is community-led open software platform to run agricultural investment simulations for small and micro size farmers in India.

WHAT IS FARMISM

Farmism is a decentralized platform that runs any number of simulations using any number of input variables to analyze agriculture outcomes for small and micro size farmers, either over a single crop-cycle or over a period of time.

Farmism is the way agricultural planning will be done in the age of abundant data access and automated decision making. It is a community-led initiative to promote open data, software and knowledge for agricultural problem-solvers.

WHAT IS SIMULATOR

Both simulator versions currently “run on” over 60 key input values (crop yields, credit interest rates, etc) and are based on deep understanding of the on-the-ground cultural, operational and economic factors. You can find code for both single scenario and multi-scenario versions here:

https://github.com/Farmism

Here is a short demo of an early version of the multi version. For the purpose of the video it’s set to 10 simulations per second:

Early Farmism multi-scenario simulation demoWatch on YouTube ↗

WHY FARMISM

The idea behind Farmism is to reduce geography and information asymmetry for problem solvers, researchers and pursuers of social good. Following experiments will be incubated in the lab.

  • Data capture techniques of publicly available and verified data
  • Open source codes for problem solving
  • Collaborative hackathons for social good
  • Development of embedded systems for rural

OPEN CHALLENGE

A farm extension supervisor needs a system to capture farmer inputs (land holding size, crops grown, etc.) and assess credit options available in the market. The stretch in the challenge will be to plug in a hardware device that can capture some of the farm input data without a survey and/or connect to the banking system to process an application for loan based on input data.

OPEN INVITATION

This is an invitation to expert practitioners, coders, data scientists, hackers, industry professionals, bankers, students and the larger research community to solve mega-challenges with systems thinking in a free, transparent and collaborative manner.

Simulator Features

SIMULATOR FEATURES

The features are all connected to the input values, ranging from straw market rate and seeder asset value to pseudo-ramdonmess that is applied to labour and yield factor. They can be broken down to:

  • input costs
  • credit cost
  • market rates
  • asset values
  • infrastructure cost
  • seed, feed and fertilizer requirements
  • labour requirements
  • yield factors

In addition to over 60 input values within the above mentioned groups, there are multiple custom capabilities to improve model accuracy:

  • Synergy reduction where each new acre of crop lead to cumulative reduction in cost
  • Credit availability adjustment based on held assets
  • Varying interest rates depending on the lender type
  • Pseudo-randomness applied to yield and labour factors
  • Family labour output consideration in to total labour demand

If you want to understand all the features of the current version, you can do so by studying the readme and codes in:

https://github.com/Farmism/Simulator

CREATE YOUR OWN FEATURES

It is very easy to add virtually any new feature based on the current input variables or new ones. The Python codebase is left intentionally verbose for even novice programmers to start using it, developing it and hopefully contributing to it.

Getting Started

WHAT CAN I DO WITH FARMISM SIM

The most obvious use case is to run the simulator code on your computer and run actual simulations with it. Below we have an example screen where the program code is on the left, and the running simulator is on the right. Changing any of the +60 inputs is as easy as making the change in the text editor, and running your simulation again. The performance is somewhere between 100 and 1,000 simulations per second in the current Python code which is intentionally left as verbose as possible.

Get the right version for your use from here: Simulator Versions

Farmism simulation running beside its Python source code

Simulator Versions

SINGLE VERSION

In the single version it is possible to create one scenario and get the result for it. User can choose a set of input criteria for each simulation.

MULTI VERSION

In the multi version it is possible to run through a set of scenarios. User can choose a short, long or create a ranged custom set easily.

Both versions produce the same standard output.

Example of a Farmism simulation output

OUTPUT

Simulator produces a simplified performance statement for the round and the given scenario. Each of the over 60 inputs currently in use have the potential to effect the outcome of the scenario in every round. More sophisticated than any small and micro size farmer planning tool, but fun like playing a computer game.

For programmers it’s easy to get the simulation results out in any imaginable format for running advanced analysis with additional codes / programs. Even the smallest contributions to the Farmism codebase will be greatly appreciated by countless farmers in India, and everyone that eats the food they produce.

Access the codes here: https://github.com/Farmism/Simulator

Please consider becoming a contributor.

Articles