A compensation method to improve the performance of IPI-based entity recognition system in body sensor networks