Legal Considerations and Ethical Challenges of Artificial Intelligence on Internet of Things and Smart Cities · Study