Idiopathic chronic pain disorders constitude a large, clinically important health care problem that urgently needs deeper pathophysiological insight. The understanding which brain compartments are involved in such diseases, is therefore a very interesting research topic in neurological medicine. In this paper, we apply an efficient algorithm for motif discovery to time series data of somatoform patients and healthy controls. We find groups of brain compartments that occur frequently within the brain networks and are characteristic for patients with somatoform disorder.