In this study, we employed bioinformatics techniques and machine learning algorithms to identify ST8SIA4 as a shared diagnostic gene for AS and ankylosing spondylitis. The gene discussed is ST8SIA4; the disease is ankylosing spondylitis.