Physical + lab tests. The history and physcial is the most importing starting point. Where in the spine are the symptoms? Do you wake up in early morning because of back? Does the pain improve with a activity? Lab tests are helpful as a guide for the diagnosis like the genetic marker hla b-27. Although imaging changes may take a while for x-ray changes; MRI can find inflammation faster. Also family history is a clue.