Optimizing data aggregation and clustering in Internet of things networks using principal component analysis and Q-learning | Synapse