How can Google tell how relevant an inbound link really is? I really don’t think they do this manually…
Forget about how they determine relevance and worry more about getting targeted traffic to your site.
Google checks whether the backlinking page uses some words from the targeted keyphrase of a landing page and also it should be very similar in theme to the landing page.