SHAP analysis showed that SOFA score had the greatest influence on cognitive impairment, followed by age, APACHE II score, IL-10, and years of education.<h4>Conclusion</h4>Using SHAP analysis, the RF model provided clear insights into the key factors contributing to the model's prediction of cognitive impairment after sepsis. Here, IL10 is linked to Sepsis.