A deep learning approach for indoor user localization in smart environments