The primary issues in treating type 1 diabetes mellitus (T1DM) through the transplantation of healthy islets or islet β-cells are graft rejection and a lack of available donors. Currently, the majority of approaches use cell encapsulation technology and transplant replacement cells that can release insulin to address transplant rejection and donor shortages. However, existing encapsulation materials merely serve as carriers for islet cell growth. A new treatment approach for T1DM could be developed by creating a smart responsive material that encourages the formation of islet cell spheroids to replicate their 3D connections in vivo and controls the release of insulin aggregates. In this study, we used microfluidics to create thermally sensitive porous scaffolds made of poly(N-isopropyl acrylamide)/graphene oxide (PNIPAM/GO). The material was carefully shrunk under near-infrared light, enriched with mouse insulinoma pancreatic β cells (β-TC-6 cells), encapsulated, and cultivated to form 3D cell spheroids. The controlled contraction of the thermally responsive porous scaffold regulated insulin release from the spheroids, demonstrated using the glucose-stimulated insulin release assay (GSIS), enzyme-linked immunosorbent assay (ELISA), and immunofluorescence assay. Eventually, implantation of the spheroids into C57BL/6 N diabetic mice enhanced the therapeutic effect, potentially offering a novel approach to the management of T1DM.Graphical