Joshua's training is called training in the detection of thoughts. This type of training is cognitive behavioral therapy, it implies that the patient is aware of the irrational thoughts, or the rumination of thought that he is doing, and that he understands that maintaining this type of thinking does not help him. By detecting these thoughts the patient learns to stop them and eliminate them. It is common training in this therapeutic technique in patients with depressive disorder or anxiety disorder.