We aim to generate an artificial neural network (ANN) model to predict early TNF inhibitor users in patients with ankylosing spondylitis. Here, TNF is linked to ankylosing spondylitis.