Meta-learning for few-shot on-chip sequence classification