Embodiments relate to an implantable device for detecting leakage of matter from a mammalian lumen, the device comprising a mesh structure that is attachable to a lumen of a mammalian. The mesh structure comprises a material or a material composition that is electrically conductive and which is measurably responsive in terms of its electrical conductivity when being subjected to leakage of matter from the lumen.