Mining periodicity and object relationship in spatial and temporal data