The invention of device and mobile based system in order to screening and diagnosing the level of hearing of the infants and children based on analyzing the signals received from brain on the functional near-infrared spectroscopy (fNIRS) for diagnosing the possible infection of the middle ear includes at least one horseshoe headset and at least one lithium battery that the headset is connected to and at least four curves with a polymer structure and at least one movable upper attachment and at least one holding attachment and at least one or more palpuses and at least one light source to produce infrared light and at least one set of receivers and transmitters and at least one source of sending sound waves and at least one electric board and at least one amplifier circuit and at least one Bluetooth protocol and at least one smartphone application and at least one artificial intelligence server.