Atypia is typically detected through a biopsy, where a sample of tissue is examined under a microscope by a pathologist. Diagnostic tests such as a Pap smear for cervical cells or a mammogram followed by a biopsy for breast tissue can reveal atypical cells.