Pattern-based recognition in supramolecular sensing ensemble