A design of low power wearable system for pre-fall detection