johanneshirn / multiVAE-multiGAN

Training multiple GANs and VAEs to reproduce patterns of plants and soil coexistence

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

multiVAE-multiGAN

A Deep Generative Artificial Intelligence system to decipher species coexistence patterns

This repository contains software (jupyter notebooks) to perform studies on species coexistence using Deep Generative Artificial Intelligence. An example of how to apply it is given. Two generative methods are documented: Generative Adversarial Networks (GAN) and Variational Auto-Encoders (VAE).

Additionally, data and simulations employed in the elaboration of the study "A Deep Generative Artificial Intelligence system to decipher species coexistence patterns" and analysis code are also made available as an example of the application of these techniques. In order to reproduce paper results or apply them to a different dataset the following steps need to be done:

  • Pre-processing Open In Colab: reads the input DB (excel file in this case) and outputs a dataframe file. The implementation of this part highly dependent in the format of the input database. It is important that the output of this notebook follows exact format as shown in the example to be able to use Generative Notebooks.
  • GAN Open In Colab: using the input from Pre-processing it trains a Generative Adversarial Network which is then used to simulate new elements (patches composed by several species). The simulated patches can be used to analyze coexistence behavior between them.
  • VAE Open In Colab: this notebook has a similar purpose as GANs and it also needs the Pre-processing output as starting point, but uses Variational Auto-Encoders as generative tool.
  • Analyze Open In Colab: with the simulated and real patches it is possible to study interactions between species. This code offers a way to check results and interpret them for relations between two, three or four species. It will use simulated data from this repository (generative_results.zip) and reproduce the images in the paper. Both html files contain dynamic plots that can be used for further study of the results.

The code has been optimized and tested on Google Colab to make it easy to use and export. For a real analysis, when a larger number of simulations need to be done, standard Google Colab account may not be the best option due to time constrains.

About

Training multiple GANs and VAEs to reproduce patterns of plants and soil coexistence


Languages

Language:Jupyter Notebook 97.1%Language:HTML 2.9%