You can acquire some measure of knowledge from various research techniques, but nothing beats living, breathing, and feeling the same things your prospect (customers) do.
The Referral Engine: Teaching Your Business to Market Itself (ed. Penguin, 2010) - ISBN: 9781101429518