A circuit (51) for applying heat and electrical stimulation comprises a substrate (500). The substrate (500) comprises an electrode (514) for applying electrical stimulation and a heating element (502). At least one of the electrode (514) and the heating element (502) comprises an electrically conducting region patterned on a surface of the substrate (500). The substrate (500) can be flexible.