New software to diagnose ear infection