I have this problem too
I have this problem and it used to be very debilitating. I remember embarrassing moments back in kindergarten. Coming into present day (I'm 30 now), these flashes of memory became more violent and it started to develop into what appeared to be tourettes syndrome. I would have ticks, say things under breath, smack my head or other things to stomp or short circuit the memory.
Walking towards a solution
After a while, I got tired of this and discovered something rather interesting. For people who have limited memory, like progressive amnesia, they cannot remember the past and as a consequence, their future is limited as well. They cannot plan or think into the future. They are constantly fixed in the present.
I found 2 quotes that comfort me.
Quote:
The past is history, the future is a mystery and today is a gift. That is why it's called the present - Kung Fu Panda
and
Quote:
We all have our time machines. Some take us back, they're called memories. Some take us forward, they're called dreams - HG Wells, Time Machine
At the height of the problem, I found these quoted comforting. Whenever I had one of these episodes, I recited these either aloud or in my head. The outbreaks were less and it seemed to work. I don't know what type of therapy this is called, but I got the idea from reading about REBT and CBT.
Neurological reasons
Reading about, I discovered that our emotions are extremely important. Most of the parts that control emotions are deep in the brain. Hippocampus and amygdala and others. What's interesting is that these emotions are what helps us filter our minds.
We are not conscious of all the information our senses take in. To do so would be maddening. Instead, the filtering takes place via our emotions. Anything that we have an emotional response to, we tend to remember. If we aren't emotionally aware of it, we don't care about it. Advanced artificial intelligence is becoming aware of this process in our brains.
Also, neurons that fire together, wire together. This means that different people will see the same situation differently, depending on how their emotions are acting upon it. This is why positive people tend to be more attrative because it engages our dopamine circuitry, it feels good. But when we remember these embarrassing pasts, we reinforce the wiring to bad emotions. Then the circuitry is reinforced with other neurons and, as in my case, develop into bad physical responses.
This is also now long term memory works. We remember those things that we are emotional to. Objectively, you can check your pupil dialation when seeing things as well as galvanic skin responses for when we think of things.
When I started to recite the positive quotes when these embarrassing pasts shoot into the present, I was really weakening the brain circuitry that would remember and evoke the bad emotions. By replacing it with positive stimuli, I was really changing my mind about the past. I later found out about neuroplasticity and neurogenesis. And it makes sense with how the positive thinking works, the luck factor and with meditation.
Bringing it together
Now that I know these things, I can begin to rewire my own brain without the use of brain implants (and they do exist today) and without drugs (except multivitamins). It's a long process but it's well worth it. Of course, when I started out, being positive is actually a chore. It's uncomfortable and unnatural for me. After many repetitions (habituation), it started to become a habit and then second nature. I do falter from time to time, but for the most part it works. Having a good diet, water, exercise, and variety of experiences all helps this process along.
I asked myself, "What would it take to be happy". What I explained here is part of that answer.