An implantable bioartificial perfusion system for regulating insulin secretion necessary for carbohydrate metabolism within a living-being host, the system comprising: a) a housing having an inlet with an external opening thereto and an outlet with an external opening therefrom, the housing implantable at least partially within the host such that the inlet and outlet openings are positionable in fluidic communication with peritoneal fluid inside a peritoneal cavity of the host for receiving into and dispensing from the housing the peritoneal fluid; b) a chamber disposed within the housing between the inlet and outlet and in communication therewith, the chamber having stack of several scaffold, double layer porous mesh matrices, therein a plurality of physiologically active, autonomously and in concert functioning, live secretory cells for producing insulin, wherein the matrices are coated with autologous or allogeneic extracellular matrix molecules and seeded with a plurality of ECM cells comprising fibroblasts and macrophages, and wherein two layers of each double matrix are kept at a certain distance from each other by spacers comprising polymer microspheres coated with ECM molecules; characterized by c) a constantly operating two pump apparatus for drawing initial peritoneal fluid through the inlet from the peritoneal cavity for contact with the physiologically active cells within the chamber for pick up of regulating insulin, and for dispensing resulting peritoneal fluid bearing the insulin through the outlet and into the peritoneal cavity; d) an inlet filter in operational communication with the external opening of the inlet and disposed upstream of the chamber, the inlet filter comprising a tissue fluid sucking filter comprising a plurality of mesh woven polymer yarn and a size-exclusion membrane filter separated from each other by a capillary gap for peritoneal or other tissue fluid collection, filtration and prohibiting passage into the chamber of immune system agents and immune system cells of the host, immunoglobulins, and complement system components of the host and e) a miniature membrane pH sensor used to detect mass death of the islet of Langerhans cells. a) a housing having an inlet with an external opening thereto and an outlet with an external opening therefrom, the housing implantable at least partially within the host such that the inlet and outlet openings are positionable in fluidic communication with peritoneal fluid inside a peritoneal cavity of the host for receiving into and dispensing from the housing the peritoneal fluid; b) a chamber disposed within the housing between the inlet and outlet and in communication therewith, the chamber having stack of several scaffold, double layer porous mesh matrices, therein a plurality of physiologically active, autonomously and in concert functioning, live secretory cells for producing insulin, wherein the matrices are coated with autologous or allogeneic extracellular matrix molecules and seeded with a plurality of ECM cells comprising fibroblasts and macrophages, and wherein two layers of each double matrix are kept at a certain distance from each other by spacers comprising polymer microspheres coated with ECM molecules; characterized by c) a constantly operating two pump apparatus for drawing initial peritoneal fluid through the inlet from the peritoneal cavity for contact with the physiologically active cells within the chamber for pick up of regulating insulin, and for dispensing resulting peritoneal fluid bearing the insulin through the outlet and into the peritoneal cavity; d) an inlet filter in operational communication with the external opening of the inlet and disposed upstream of the chamber, the inlet filter comprising a tissue fluid sucking filter comprising a plurality of mesh woven polymer yarn and a size-exclusion membrane filter separated from each other by a capillary gap for peritoneal or other tissue fluid collection, filtration and prohibiting passage into the chamber of immune system agents and immune system cells of the host, immunoglobulins, and complement system components of the host and e) a miniature membrane pH sensor used to detect mass death of the islet of Langerhans cells.