SMS dit: Fundamentals of pattern recognition