Schematic illustration of pattern recognition of bacteria based on UCNPs@COPs materials fluorescence sensor array. a Principle of fluorescence emission intensity enhancement of UCNPs materials. b The designed functional UCNPs@COPs made cross reaction with bacteria to construct the sensors array, and the obtained fluorescent response patterns was utilized to identify and classify bacteria through linear discriminant analysis (LDA)