Structural action recognition in body sensor networks: distributed classification based on string matching