Human: What are the best ways to treat an ear infection? Assistant: 
The best way to treat an ear infection is to take antibiotics prescribed by your doctor, follow any instructions on dosage and duration of treatment, and use pain medications as needed. Additionally, it can help to clean out the ears regularly with a saline solution, avoid loud noises and pressure changes in the ear, and keep the head elevated while sleeping.