Role of Artificial Intelligence in Agriculture: A Comparative Study