The importance of soil temperature (ST) quantification can contribute to diverse ecological modelling processes as well as for agricultural activities. Over the literature, it was evident that soil supports more than 95% of living habitats and food production on earth, and this demand will increase to 500 years’ times in expected consumption in 2060. This paper aims to analyses the contrastive approach to predict the ST of a certain region with the help of different machine learning models, including Random Forest (RF), Support Vector, Neural Network (NN), Linear Regression (LR) and Long Short-Term Memory Network (LSTM). The study was utilized the hourly humidity, dew point, rainfall, solar radiation, and barometer readings for the formulation of the models. Various performance criteria were employed to evaluate the prediction skills of the models and the results depicted that the promising ability belong to LSTM despite the acceptable prediction accuracy achieved by other models. The modelling outcomes revealed that LSTM model attained the lowest root mean square error (RMSE = 3.3255) decreased the average prediction error by 6% with regards to NN (RMSE = 3.4796), SVM (RMSE = 3.5766), and RF (RMSE = 3.8128), and improved the prediction accuracy of LR by 15%. The model is in compliance with the latest machine learning industry standards and allows low-cost experimental performances on low powered edge computing devices.