Optimizing classification efficiency with machine learning techniques for pattern matching | Synapse