Acute middle ear infection, also called acute otitis media, is a sudden onset bacterial or viral infection of the space behind the eardrum that causes pain, fluid buildup, and sometimes hearing problems. It commonly occurs in children and is often treated with antibiotics and pain management.