Neural networks and animal behavior