How Can You Detect Bot Traffic?

How do you detect a bot?

.