I don't think in the case of last.fm it's a machine at all, it's likely the process of some zany mathematical process where it compares who listens to what, and how high on the charts they are, and how similar your charts are to every other chart, and thus forming an opinion on which band is highest that you haven't already listened to.
...or...something like that.
__________________
|