In one aspect, an ingestible, electrical device, comprises one or more electrodes comprising a biocompatible conducting material and a biocompatible insulating material; a generator connected to the one or more electrodes; and an outer casing enclosing the one or more electrodes and the generator, the outer casing configured to dissolve in an aqueous environment of the organism; wherein the one or more electrodes have a first form factor when enclosed in the outer casing and a second form factor following a dissolution of the outer casing, the first form factor is a form factor that is collapsed an increased amount relative to an amount that the second form factor is collapsed, and the second form factor is a form factor that is collapsed a decreased amount relative to an amount that the first form factor is collapsed.