Adaptive trend change detection and pattern recognition in physiological monitoring