A shunt system used to treat excess cerebrospinal fluid (CSF) accumulation is described. In some embodiments, the system utilizes various mechanical, electrical, or electromechanical concepts designed to either clean a portion of the shunt system, or customize CSF drainage.