Unless branded by religion we define ourselves by what happens in our lives. This means that our perception of reality influences who we define our self to be. If I am a child and I see something then I define myself and my experiences based upon how my perception defines my experience. My perception is totally prejudiced by my collective belief system acquired from previous experience. So if I see something that looks like a dog I may say that what I see looks like a dog. In this example my perception reveals the logic used by my mind.