Sometimes I notice women holding prolonged eye contact with me or smiling at me where I wonder if they're just being nice or they have interest in me.

Is there some logic or pattern behind it or do I just have to guess?