Posture recognition based fall detection system for monitoring an elderly person in a smart home environment