Use of artificial intelligence in agriculture