Tracking Plants - Basic Infrastructure

Please find my basic training infrastructure that allows us to track the motion of plants via machine learning algorithms.

Hosted on Google Colab

As of today, the basic infrastructure is live and is framed so that it runs remotely on a high-end computer via Google Colaboratory. This is particularly helpful as my mini Macbook Air does not have sufficient computing power to process large datasets in HQ.

To try it yourself, please use the following link: Tracking Plants Colab. You simply have to upload any video. The steps for that are quite simple.

Overview on the Notebook’s Structure

In general, the notebook works asks you to connect to a computing engine via Google Colab (this is free), and then:

  1. Run code formattings and the leaf class
  2. Choose/tune your parameters.
  3. Create a Video by the Kalman filter and the Meanshift algorithm.
  4. Convert the resulting MPEG file and watch your result directly in Google Colab.

Notebook

Initial Test Runs

With the following parameters: MASK_THRESH = 40 & CONTOUR_AREA = 200 the following four moving leaves were identified in a 20 second test sample: Identified Leafs

Tuning Hyperparameters

The Jupyter notebook is designed so that relevant hyperparameters are cumulated and can be trained to fine-tune for the peculiarities of leaf tracking for carnivore plants. Hyperparameters

Next Steps

From Test Files to Comprehensive Dataset

Use the new videos recently created by Prof. Gloor, and benefit from the computing power of your Google Colaboratory Jupyter notebook.

Get X, Y-Values for further Plant Analysis

Take the values of each individual moving leaf and plot on a graph with x-Axis as deviations in height, and y-Axis as a temporal (based on frames) identifier.

Hyper-Parameter Cross-Tests

Correlate with Underlying Audio Files to Identify Leaf Reactions