Abstract Artificial neural networks, machine learning, and data preparation are normally implemented in a wide range of real-world problems, especially in geotechnical applications with optimistic prospects of accurate procedure outcomes. This technique has been utilized to precisely predict the top settlement of piles with various piles and soil parameters. Generally, the pile settlement is an essential requirement to produce a secure structure and has high-performance services. The current article presents the fitting of the artificial neural network (ANN) outcomes by calculating the coefficient of correlation R 2 between the predicted and the measured or calculated value of pile settlement. The ANN algorithm is developed using Python 3.9 IDLE and open-source libraries such as Keras, sklearn, Numpy, matplotlib, pandas, and Tensorflow. Because of random training and test performance, the model has been run at least ten times. The ANN model score and R 2 are compared for all runs in the testing phase. The higher score and R 2 values are chosen. Moreover, the Multivariate Linear Regression with the sklearn library is also offered in this article and utilized to produce a pile settlement formula by applying the same dataset used in ANN. The score and R 2 for choosing the first run of the ANN are 99.95% and 0.9631, respectively, while the correlation coefficient for the Multivariate Linear Regression in the training and testing phases is 0.972 and 0.919, respectively. Both techniques illustrate considerable results.