Indoor positioning system using walking pattern classification