Improving a wireless localization system via machine learning techniques and security protocols