The brain, source of negativity while the heart is the source of positive emotions. Optimism is the fruit of the heart.
Therefore pray daily and confess the Word of God so that you can fight the negativity of the brain with the positivity of the heart.