Time series pattern recognition using chaotic analysis