Protecting the environment with intelligence