Sensor and analytics tech to detect deterioration in patients