Provided are systems, methods, and devices for intracranial measurement, stimulation, and generation of brain state models. Systems include a plurality of intracranial electrodes configured to be coupled to a brain of a user. Systems further include an interface configured to obtain measurements from the plurality of intracranial electrodes. Systems include a first processing device including one or more processors configured to generate a plurality of brain state parameters characterizing one or more features of at least one brain state of the user, and a second processing device including one or more processors configured to generate at least one model of the brain of the user based, at least in part, on the plurality of brain state parameters and the measurements. Systems include a controller including one or more processors configured to generate a control signal based on the plurality of brain state parameters and the at least one model.