Emerging IoT Scenarios Enhanced by Machine Learning in 6G