The precise control for the equivalent circulating density (ECD) will lead to evade well control issues like loss of circulation, formation fracturing, underground blowout, and surface blowout. Predicting the ECD from the drilling parameters is a new horizon in drilling engineering practices and this is because of the drawbacks of the cost of downhole ECD tools and the low accuracy of the mathematical models. Machine learning methods can offer a superior prediction accuracy over the traditional and statistical models due to the advanced computing capacity. Hence, the objective of this paper is to use the artificial neural network (ANN) and adaptive neuro-fuzzy inference system (ANFIS) techniques to develop ECD prediction models. The novel contribution for this study is predicting the downhole ECD without any need for downhole measurements but only the available surface drilling parameters. The data in this study covered the drilling data for a horizontal section with 3,570 readings for each input after data preprocessing. The data covered the mud rate, rate of penetration, drill string speed, standpipe pressure, weight on bit, and the drilling torque. The data used to build the model with a 77:23 training to testing ratio. Another data set (1,150 data points) from the same field was used for models` validation. Many sensitivity analyses were done to optimize the ANN and ANFIS model parameters. The prediction of the developed machine learning models provided a high performance and accuracy level with a correlation coefficient (R) of 0.99 for the models' training and testing data sets, and an average absolute percentage error (AAPE) less than 0.24%. The validation results showed R of 0.98 and 0.96 and AAPE of 0.30% and 0.69% for ANN and ANFIS models respectively. Besides, a mathematical correlation was developed for estimating ECD based on the inputs as a white-box model.