Biological encoder