Diagnosis of a breast infection begins with a medical history and physical exam. A culture may be done of the breast milk or the skin surface to check for bacteria. The healthcare provider may order a mammogram or breast biopsy if the cause is not evident.