Subgroup analyses demonstrated generally consistent effect directions, but a significant interaction between IL-4 and diabetes status was observed.<h4>Conclusion</h4>This nomogram enables individualized risk assessment for spondylitis among patients with brucellosis and may serve as a practical tool for preliminary screening and MRI decision-making in clinical practice. This evidence concerns the gene IL4 and diabetes mellitus.