updated behavior segmentation scripts to handle multiple sampling rates