Pressure injury (PI), or local damage to soft tissues and skin caused by prolonged pressure, remains controversial in the medical world. Patients in intensive care units (ICUs) were frequently reported to suffer PIs, with a heavy burden on their life and expenditures. Machine learning (ML) is a Section of artificial intelligence (AI) that has emerged in nursing practice and is increasingly used for diagnosis, complications, prognosis, and recurrence prediction. This study aims to investigate hospital‐acquired PI (HAPI) risk predictions in ICU based on a ML algorithm by R programming language analysis. The former evidence was gathered through PRISMA guidelines. The logical analysis was applied via an R programming language. ML algorithms based on usage rate included logistic regression (LR), Random Forest (RF), Distributed tree (DT), Artificial neural networks (ANN), SVM (Support Vector Machine), Batch normalisation (BN), GB (Gradient Boosting), expectation–maximisation (EM), Adaptive Boosting (AdaBoost), and Extreme Gradient Boosting (XGBoost). Six cases were related to risk predictions of HAPI in the ICU based on an ML algorithm from seven obtained studies, and one study was associated with the Detection of PI risk. Also, the most estimated risksSerum Albumin, Lack of Activity, mechanical ventilation (MV), partial pressure of oxygen (PaO2), Surgery, Cardiovascular adequacy, ICU stay, Vasopressor, Consciousness, Skin integrity, Recovery Unit, insulin and oral antidiabetic (INS&OAD), Complete blood count (CBC), acute physiology and chronic health evaluation (APACHE) II score, Spontaneous bacterial peritonitis (SBP), Steroid, Demineralized Bone Matrix (DBM), Braden score, Faecal incontinence, Serum Creatinine (SCr) and age. In sum, HAPI prediction and PI risk detection are two significant areas for using ML in PI analysis. Also, the current data showed that the ML algorithm, including LR and RF, could be regarded as the practical platform for developing AI tools for diagnosing, prognosis, and treating PI in hospital units, especially ICU.