Background: Surgical site infections (SSIs) have a major role in the evolution of medical care. Despite centuries of medical progress, the management of surgical infection remains a pressing concern. Nowadays, the SSIs continue to be an important factor able to increase the hospitalization duration, cost, and risk of death, in fact, the SSIs are a leading cause of morbidity and mortality in modern health care. Methods: A study based on statistical test and logistic regression for unveiling the association between SSIs and different risk factors was carried out. Successively, a predictive analysis of SSIs on the basis of risk factors was performed. Results: The obtained data demonstrated that the level of surgery contamination impacts significantly on the infection rate. In addition, data also reveals that the length of postoperative hospital stay increases the rate of surgical infections. Finally, the postoperative length of stay, surgery department and the antibiotic prophylaxis with 2 or more antibiotics are a significant predictor for the development of infection. Conclusions: The data report that the type of surgery department and antibiotic prophylaxis there are a statistically significant predictor of SSIs. Moreover, KNN model better handle the imbalanced dataset (48 infected and 3983 healthy), observing highest accuracy value.