add id3 algorithm to activity recognition