Automatic Signal Segmentation using the Fractal Dimension and Weighted Moving Average Filter