Activity monitoring and automatic alarm generation in AAL-enabled homes