Urine infections are one of the most prevalent concerns for the healthcare industry that may impair the functioning of the kidney and other renal organs. As a result, early diagnosis and treatment of such infections are essential to avert any future complications. Conspicuously, in the current work, an intelligent system for the early prediction of urine infections has been presented. The proposed framework uses IoTbased sensors for data collection, followed by data encoding and Infectious Risk Factor computation using the XGBoost algorithm over the fog computing platform. Finally, the analysis results along with the healthrelated information of users are stored in the cloud repository for future analysis. For performance validation, extensive experiments have been carried out and results are calculated based on real-time patients’ data. The statistical results of accuracy(91.45%), specificity(95.96%), sensitivity(84.79%), precision(95.49%), and f-score(90.12%) reveal the significantly improved performance of the proposed strategy over other baseline techniques.