Protecting the environment by predicting it