Herbal medicine and pattern id