The risk factors for urinary tract infection include shorter urethra in females, sexual activity, use of diaphragms for birth control, menopause, abnormalities in the urinary tract, blockages in the urinary tract, suppressed immune system, use of a urinary catheter, examination of urinary tract area, and surgery of urinary tract.