An HMM-based change detection method for intelligent embedded sensors