Diagnosis typically involves a detailed medical history and a thorough physical and neurological examination. In some cases, imaging studies like MRI or CT scans may be performed to rule out other causes of similar symptoms. Keeping a headache diary can also help in identifying patterns and triggers.