A system for treating cognitive dysfunction via brain entrainment in a subject in need thereof comprising: eyeglasses; a feedback sensor coupled to the eyeglasses and positioned to detect an ambient light level between the eyeglasses and a fovea of the subject; a plurality of light sources coupled to the eyeglasses and positioned to generate and direct light pulses having a frequency between 30 Hz and 70 Hz towards the fovea of the subject; an input device to receive an identifier of the subject; a profile manager executed by a neural stimulation system comprising a processor configured to retrieve, based on a lookup, a profile corresponding to the identifier of the subject; select, based on the profile, a light pattern having a fixed parameter and a variable parameter; and a light adjustment module executed by the neural stimulation system, configured to: set a value of the variable parameter of the light pattern based on a policy of the profile and the ambient light level, the value of the variable parameter used to construct an output signal provided to the plurality of light sources to generate light; and a light generation module configured to construct the output signal based on the light pattern, the fixed parameter and the variable parameter that is set responsive to the ambient light level; and provide the output signal to the plurality of light sources to cause the plurality of light sources to generate and direct light towards the fovea of the subject in accordance with the constructed output signal. eyeglasses; a feedback sensor coupled to the eyeglasses and positioned to detect an ambient light level between the eyeglasses and a fovea of the subject; a plurality of light sources coupled to the eyeglasses and positioned to generate and direct light pulses having a frequency between 30 Hz and 70 Hz towards the fovea of the subject; an input device to receive an identifier of the subject; a profile manager executed by a neural stimulation system comprising a processor configured to retrieve, based on a lookup, a profile corresponding to the identifier of the subject; select, based on the profile, a light pattern having a fixed parameter and a variable parameter; and a light adjustment module executed by the neural stimulation system, configured to: set a value of the variable parameter of the light pattern based on a policy of the profile and the ambient light level, the value of the variable parameter used to construct an output signal provided to the plurality of light sources to generate light; and a light generation module configured to construct the output signal based on the light pattern, the fixed parameter and the variable parameter that is set responsive to the ambient light level; and provide the output signal to the plurality of light sources to cause the plurality of light sources to generate and direct light towards the fovea of the subject in accordance with the constructed output signal. retrieve, based on a lookup, a profile corresponding to the identifier of the subject; select, based on the profile, a light pattern having a fixed parameter and a variable parameter; and a light adjustment module executed by the neural stimulation system, configured to: set a value of the variable parameter of the light pattern based on a policy of the profile and the ambient light level, the value of the variable parameter used to construct an output signal provided to the plurality of light sources to generate light; and a light generation module configured to construct the output signal based on the light pattern, the fixed parameter and the variable parameter that is set responsive to the ambient light level; and provide the output signal to the plurality of light sources to cause the plurality of light sources to generate and direct light towards the fovea of the subject in accordance with the constructed output signal. set a value of the variable parameter of the light pattern based on a policy of the profile and the ambient light level, the value of the variable parameter used to construct an output signal provided to the plurality of light sources to generate light; and a light generation module configured to construct the output signal based on the light pattern, the fixed parameter and the variable parameter that is set responsive to the ambient light level; and provide the output signal to the plurality of light sources to cause the plurality of light sources to generate and direct light towards the fovea of the subject in accordance with the constructed output signal. construct the output signal based on the light pattern, the fixed parameter and the variable parameter that is set responsive to the ambient light level; and provide the output signal to the plurality of light sources to cause the plurality of light sources to generate and direct light towards the fovea of the subject in accordance with the constructed output signal.