Similarity-based clustering for user profiling