Bacterial pattern identification in near-ibfrared spectrum