This study aims to combine machine learning and Statistical Process Control (SPC) methods to help healthcare organizations optimize patient waiting times. The performance of the Random Forest model has been evaluated in detail using different metrics. MSE (Mean Squared Error), RMSE (Root Mean Squared Error), MAE (Mean Absolute Error), MAPE (Mean Absolute Percentage Error), and R 2 values were calculated as 0.550, 0.741, 0.312, 0.021, and 0.890, respectively. These metrics show that the model successfully predicts wait times and produces results close to real data. The study also includes SPC methods where Random Forest predictions are compared to actual waiting times. Results obtained using X-bar and R-control charts reveal that the forecasts successfully predict the mean value and process variability. In conclusion, this study offers an effective approach to predicting and managing patients' waiting times by combining the Random Forest algorithm and SPC methods. In addition to improving the quality of healthcare, this approach will contribute to the more efficient use of resources and increase patient satisfaction.