Mining subgroups from temporal data : from the parts to the whole