In considering the natural behaviours of specific breeds of dogs, it is possible to train them to perform specialised, highly useful, tasks. For example, Labrador retrievers are the favoured breed for the detection of explosives. This is because of a combination of factors including their food drive which enables them to keep focused on a task despite noise and other distractions. Most working breeds of dogs are able to be trained to find people with their sense of smell (as opposed to their sense of sight). Cocker Spaniels are able to be trained as part of a termite detection team. Their relatively small size enables them to fit into small spaces, and their light weight allows them to walk on areas of ceiling which would be dangerous to anything heavier. In fact, although unusual, termite detection dogs are much more reliable at detecting termites than humans who rely on a basic system of tapping and listening. Because of their ability to learn signals by sight and for their energetic and athletic natures, German Shepherds are able to be trained for work alongside search and rescue teams and human apprehension teams.
A dog learns from interactions it has with its environment. This can be through classical conditioning, where it forms an association between two stimuli; non-associative learning, where its behavior is modified through habituation or sensitisation; and operant conditioning, where it forms an association between an antecedent and its consequence.