Analyse negative self talk and try to focus on being objective. This will help you understand your behaviour and lead to better self esteem.
Challenging negative self-talk is a core technique in cognitive behavioral therapy (CBT), a type of therapy that has proven effective in helping a wide range of conditions, diagnoses, and problems. CBT helps clients discover some of their most deeply held, often unconscious, beliefs, allowing them to evaluate these beliefs and challenge those that are not useful.
How to do it
Consider an unwanted thought, identify the triggers and note the associated emotion(s), gather evidence that doesn't support the thought, come up with an alternative thought and list its associated emotions.