Drug susceptibility analysis revealed high resistance rates of CRKP to most antibiotics, with partial sensitivity only to amikacin, chloramphenicol, and cotrimoxazole.<h4>Conclusion</h4>The XGBoost machine learning-based prediction model effectively identifies the risk of CRKP infection and poor prognosis using five key variables (age, albumin, D-dimer, creatinine, and uric acid) for infection risk, demonstrating high clinical utility and providing data support for early intervention and individualized treatment. Here, ALB is linked to infection.