The cause of overactive bladder is unknown. Risk factors include obesity, caffeine, and constipation. Poorly controlled diabetes, poor functional mobility, and chronic pelvic pain may worsen the symptoms. People often have the symptoms for a long time before seeking treatment and the condition is sometimes identified by caregivers. Diagnosis is based on a person's signs and symptoms and requires other problems such as urinary tract infections or neurological conditions to be excluded. The amount of urine passed during each urination is relatively small. Pain while urinating suggests that there is a problem other than overactive bladder.