Extracting accurate long-term behavior changes from a large pig dataset