A computer assisted method for treating pain in a subject comprising measuring activity of one or more internal voxels of a brain of said subject associated with pain communicating instructions to said subject which modulate activity of said voxel and training said subject to control said internal voxel.