compute metrics for segmented body and save the data in a json file or pandas data fram for later use