Unsupervised learning in body-area networks