Preprocess activity data

matches ceibal-simple server.