This document presents a model for predicting patient treatment times in overcrowded hospitals using the Patient Treatment Time Prediction (PTTP) algorithm and a Hospital Queuing Recommendation (HQR) system powered by big data and random forest techniques. It outlines the issues of patient queue management and the importance of timely treatment, providing real-time updates through a mobile application. Extensive experimental results demonstrate the model's effectiveness in minimizing wait times and delivering efficient treatment plans for patients.