Pigs are very intelligent.
http://modernfarmer.com/2014/03/pigheaded-smart-swine/
Well that gives them a leg up on most of us... Figures.