Activity Learning and Recognition Using Margin Setting Algorithm in Smart Homes | IEEE Conference Publication | IEEE Xplore