Mining sophisticated patterns for classification and correlation analysis