My mind is act like monkey mind and feeding me crazy thoughts based on life situation. If life is good then thoughts are good which helps in positive feedback look. If there crisis or challenges then I do meditation regularly to be present and observe the negative thoughts and let it go.
It is similar to neural network where each neuron have weight associated with it. The idea is you try to not add weight to the negative thoughts by not strengthening it.