General Pattern Recognition