Artificial intelligence and scientific method