The present invention relates to an artificial joint (100) comprising a first joint portion (101), a second joint portion (105) and an intermediate portion (103). The first joint portion and the second joint portion each comprise an electrically conductive material and the intermediate portion comprises a nonconductive material and is arranged in between the first joint portion and the second joint portion such that the first joint portion is electrically isolated from the second joint portion. The artificial joint further comprises an internal electronic unit (110) provided inside of the isolating portion being connected to the first joint portion via at least one first electrode (111) and to the second joint portion via at least one second electrode (113). Thus, a first voltage can be applied to the first joint portion and a second electric voltage can be applied to the second joint portion, the voltages being with reference to a common reference potential.