If you have had more than a few electroshock sessions you perhaps have noticed how uncomfortable it is when you allow yourself to become hungry (this might also be true if you only had 1 session). Hunger can be an imprint of electroshock.
The shocks are usually administered after a meal has been missed so they often happened when you were hungry. If you have this imprint, that is why you may not often allow yourself to become hungry … your body noticed that torture followed hunger. That is also why you began to have a weight problem long after your shock sessions were over.