Optimizing the LoRa network performance for industrial scenario using a machine learning approach