In situations when the precise position of a machine is unknown, localization becomes crucial. It is crucial to identify and ascertain the machine's position. This research focuses on improving the position prediction accuracy over long-range networks using a unique machine learning-based technique. In order to increase the prediction accuracy of the reference point position on the data collected using the fingerprinting approach using LoRa technology, this study suggested an ML-based algorithm.