This behavior exhibits cognitive dissonance. Cognitive dissonance occurs when an individual experiences conflicting attitude and behaviors thus leading to an altercation or discomfort in his or her cognitive processes. In this example, the person kept on eating unhealthy food despite knowing the negative consequences.