HLA-G and diabetes mellitus: SHapley Additive exPlanations (SHAP) was employed to enhance model interpretability.<h4>Results</h4>Five variables were selected: β2-microglobulin, hemoglobin, diabetes mellitus, coronary heart disease, and alcohol consumption.