Open Access Article
Negin Bouzaria,
Micahel Alib,
Edward Hong
b,
Nrushanth Suthaharanb,
Melanie Bouzanneb,
Amirreza Aghakhanic and
Hamed Shahsavan
*a
aDepartment of Chemical Engineering, Waterloo Institute for Polymer Research, Waterloo Institute for Nanotechnology, Centre for Bioengineering and Biotechnology, University of Waterloo, Waterloo, ON N2L 3G1, Canada. E-mail: hshahsav@uwaterloo.ca
bDepartment of Chemical Engineering, University of Waterloo, Waterloo, ON N2L 3G1, Canada
cInstitute of Biomaterials and Biomolecular Systems (IBBS), University of Stuttgart, Pfaffenwaldring 57, Stuttgart 70569, Germany
First published on 12th January 2026
Introducing anisotropic swelling to stimuli-responsive hydrogels promises a host of opportunities for their shape-change programming and utility in soft robotic applications. Here, we report a straightforward yet robust method of creating differential swelling within pH-responsive self-healing hydrogels to program their shape-change and mode of deformation. Our strategy relies on a large disparity between the polarity of constituent zwitterionic and non-zwitterionic monomers, which facilitates their deterministic separation and migration toward confining surfaces of different surface energies. Using this method, we obtained hydrogels with a large gradient of chemical formulation across the thickness, capable of controlled and rapid bending upon exposure to a change in environmental pH. We localized such chemical gradients across the hydrogel thickness in-plane by patterning confining substrates with areas of high and low surface energy. Thanks to this strategy and the self-healing properties of our hydrogels, we achieved deformation of two-dimensional hydrogel films to complex three-dimensional structures. The proposed shape-change programming strategy offers a simple yet robust method to produce programmable actuators that are useful in soft aquatic robotic applications.
Shape-change programming of hydrogels is often rooted in their ability to undergo differential swelling, which can be achieved by imparting anisotropic properties into their micro- and macrostructure.23–27 When exposed to external stimulation, hydrogels under differential swelling experience a buildup of internal stress and elastic energy. To minimize this energy, they deform via either buckling or bending, or a combination of both mechanisms, leading to the transformation of a two-dimensional (2D) or three-dimensional (3D) geometry to another.28,29 The structural anisotropy leading to differential swelling of hydrogels can be achieved at both macro- and microscales.30
At the macroscale, structural anisotropy for shape-change programming can be achieved through the hybridization or tessellation of different hydrogels with each other. Hydrogels with different physicochemical properties are integrated into heterolithic structures, and their different swelling behaviour leads to a macroscale differential swelling of the whole construct.26 At the microscale, one can induce anisotropy by creating gradients in physicochemical properties and morphology of monolithic hydrogels either in-plane or across their thickness. Examples of such strategies include grayscale lithography,31,32 directional freezing,33 shear-induced alignment,34 and voxel-by-voxel programming using two-photon polymerization.35 Although these methods provide high spatial resolution for shape programming of hydrogels, they often rely on sophisticated equipment and are not readily achievable. Compared to creating microstructural anisotropy in monolithic structures, hybridization and tessellation are more accessible and can be achieved more readily via manual stitching, extrusion, and light-based 3D printing.36–38 However, constructs created through hybridization experience significant shear forces at the interfaces between dissimilar layers during deformation, adversely affecting their mechanical properties and durability.39–41 Achieving shape-change programming within monolithic hydrogels bypasses such drawbacks of hybridization and tessellation. However, it still poses many technical challenges, especially at larger scales and when more accessible and less expensive programming techniques are preferred.
In this work, we introduce a straightforward yet robust strategy for shape-change programming of monolithic hydrogels made of zwitterionic copolymers. This strategy is based on the large disparity between the polarity of zwitterionic and non-zwitterionic comonomers within a hydrogel precursor. Confining such precursors to substrates with significantly different surface energies before polymerization facilitates monomers' preferential migration. Polymerization of precursors after such migration leads to monolithic hydrogel structures with a gradient in physicochemical properties across the thickness.42–45 Using this method, and leveraging the self-healing properties of zwitterionic moieties, we demonstrate rapid shape changes with varying levels of complexity by tailoring the hydrogels' geometry. The proposed method presents a versatile strategy that can be applied to hydrogel or polymer blend systems containing molecules with different polarities, thereby expanding the portfolio of shape-change programming techniques pertinent to materials science and soft robotics.
To achieve the migration of DMAPS and MAA monomers to substrates with higher affinity toward them and create a gradient of composition across the hydrogel, we injected the precursor into capillary cells of known thickness made from hydrophilic and hydrophobic glass slides facing each other (see Fig. S2 in SI). For hydrophilic modification, clean glass slides were put into a UV-Ozone chamber and treated for 30 minutes at room temperature. Liquid phase silanization was used to make hydrophobic glass slides, where clean glass slides were submerged in a solution of Trichloro(1H,1H,2H,2H-perfluorooctyl)silane in toluene, and they remained in the solution for two hours inside a fume hood. The precursor was not disturbed for one hour, after which it underwent photopolymerization for another hour. Filled cells were flipped once halfway through the polymerization process. During this process, we expected that the resulting gradient of monomers across the thickness would be frozen-in within hydrogels where copolymer chains grow with different numbers of DMAPS (p) and MAA (q). Hereafter, we refer to such hydrogels as gradgels, where p > q on the side facing hydrophilic glass and vice versa (Fig. 1a–b).
Before polymerization begins, the system exhibits Fickian diffusion behavior, where DMAPS aggregates near the hydrophilic surface and MAA near the hydrophobic surface. This is driven by the “like-dissolves-like” principle, where monomers preferentially migrate to substrates with matching polarity and surface tension, forming enriched layers at each interface (referred to hereafter as Phil and Phob, respectively). The monomer flux minimizes the system's free energy by preferentially partitioning monomers adjacent to surfaces with which they exhibit higher compatibility. This aligns with wetting-induced phase separation in antisymmetrically confined binary mixtures, where short-range wall–monomer interactions dominate over bulk mixing entropy.50 In our system, no significant compositional gradient develops in the bulk cross-section because the solution rapidly transforms into a gel due to accelerated polymerization, which is facilitated by cooperative hydrogen bonding and electrostatic interactions.44 The fast gelation kinetically traps monomers in the bulk, preventing large-scale migration. Therefore, only monomers near the surfaces diffuse efficiently before gelation occurs. It should be noted that several factors may contribute to this issue in these systems, including the electrostatic and hydrogen bonding interactions among monomer segments and the presence of CNCs. The high surface area and abundance of functional groups (e.g., sulfate half esters and OH) on the CNCs can significantly impede efficient partitioning. Thus, exploring the potentially more efficient use of this shape-change programming technique on different material systems warrants further studies. The thermodynamic stability of the bulk solution in our system, far from the glass substrates that preferentially interact with DMAPS or MAA, is described by the classical Flory–Huggins miscibility framework. The bulk remains fully miscible, with χ values close to zero for all component interactions, as estimated from the Flory–Huggins relation
(Table S2 and S3). The solubility parameters were calculated from the group contribution method described elsewhere.51 We note, however, that the solubility parameters for DMAPS are approximate, since conventional group-contribution methods do not fully capture the strong coulombic interactions and solvent structuring associated with zwitterionic moieties. Thus, these values should be interpreted only as qualitative indicators of bulk miscibility rather than precise descriptors of interfacial behaviour. Despite this bulk miscibility, we hypothesize the presence of a wetting transition near the substrates, where short-ranged substrate–monomer interactions generate a localized composition gradient. In such interfacial regions, differences in interfacial tension and monomer–surface interaction energies govern the onset of stratification, consistent with theoretical treatments of self-stratifying systems.50,52 In our case, zwitterionic DMAPS tends to lower the interfacial tension with hydrophilic glass surfaces, while the less hydrophilic MAA interacts weakly, leading to preferential enrichment of one monomer over the other near the wall. This interfacial-driven segregation results in an effective χ parameter near the substrate that differs from the bulk, controlled by surface energies and substrate-mediated phase separation. In such a design, the variation of MAA content across the hydrogel thickness produces substantial differential swelling in gradgels, where the stiffer, MAA-rich side swells more under pH > pKa conditions compared to the softer DMAPS-rich side, leading to local bending deformations (Fig. 2d, e and 3b). Spatial control over the surface energy of the confining glass slides can be leveraged to program the shape-change of hydrogels to more intricate profiles (Fig. 1b). Then we can employ self-healing, via a cut-and-paste technique, to combine monolithic gradgels into a heterolithic structure with complex deformation (Fig. 1c).
:
27 in our formulation. The sulfur content near the hydrogel edges exposed to air and plastic spacers is lower than that in the central regions of the sample and shows only a marginal difference between the hydrophilic and hydrophobic sides in those areas (Fig. S5). To consistently eliminate the influence of hydrophobic spacers and trapped air on component phase separation, all samples used in this study were taken from the central region of the hydrogels. To further confirm the compositional gradient, we also conducted X-ray photoelectron spectroscopy (XPS) analysis on the gradgel and a non-gradient control sample. The results, which align with our EDX findings, are presented in Fig. S6 and S7 of the SI. While the difference in elemental weight percentages is lower than the EDX readings, this is expected as XPS measures only the top 10 nm of the sample's thickness, whereas EDX analyzes a depth of 1–2 µm. The difference in readings is due to the smaller sampling volume and the increased sensitivity of XPS to surface contamination.
The presence of a compositional gradient was also confirmed by SEM images, which revealed distinct structural differences across the gradgel's thickness. As previously discussed, the hydrogel remains miscible in the bulk, evidenced by the uniform structure in the middle section far from the surfaces (Fig. S8). The bulk region exhibits a uniform porous structure, contrasting with the less-porous, dense structure near the edges that were in contact with the preferentially attractive glass walls (Fig. 2c). These boundary layers, i.e., phil and phob layers, constitute small portions of the sample's thickness (∼35 µm for the phil layer and ∼20 µm for the phob layer). Additionally, the pore morphology in the bulk regions adjacent to the phil and phob layers differs in size. Larger pores appear near the phil layer, while smaller pores are found near the phob layer. This further confirms the preferential monomer segregation in our antisymmetric hydrogel film, since DMAPS tends to form softer gels with looser hydrogel networks, whereas MAA forms stiffer gels with denser networks, as observed in the SEM images.
As mentioned before, the anisotropic distribution of components across the gradgel's thickness induces out-of-plane deformations in the form of bending for a gradgel cantilever. The shape change in gradgels occurs very fast, thanks to their monolithic structure. However, this rapid deformation is followed by fast relaxation. The Phob side of the gradgel is initially stiffer and swells more than the Phil side, which is softer and less prone to swelling (Fig. 2d and e). This contrast induces a large and rapid bending deformation in the film over time; however, the Phob side gradually absorbs more water at high pH and softens, reducing its ability to maintain the bent structure. As a result, the film relaxes as the mechanical imbalance diminishes. To address this issue, we added cellulose nanocrystals (CNCs) to the hydrogel formulation as nanofillers. CNCs are one-dimensional nanoparticles with a large surface area. They possess an abundance of hydroxyl groups on their surface, forming hydrogen bonds with water molecules and neighboring CNCs.53 During shape-change, the CNC-based non-covalent interactions in the hydrogel network preserve local deformation, delaying relaxation by postponing the onset of the quasi-equilibrium state (Fig. 3b).
To achieve an optimized bending behavior at a high pH, we changed the composition of gradgel cantilevers with an aspect ratio of 1
:
10 (width-to-length) and tested two samples with DMAPS
:
MAA weight ratios of 1
:
2 and 3
:
1. The results are summarized in Table S1. Significant bending was observed for the 3
:
1 sample, while the 1
:
2 sample showed minimal bending (Video S1 and 2). In the 1
:
2 formulation, the gradient of MAA concentration across the thickness of the sample is likely less pronounced compared to the 3
:
1 formulation. This can be attributed to reduced competition among the MAA molecules to reach the hydrophobic side of the cell, as MAA is the dominant monomer in the precursor. In this case, upon exposure to a high pH, the sample swells almost isotropically across its thickness.
The effect of changing CNC concentration on bending was investigated by preparing gradgels containing 1, 2, and 3 wt% CNC in the aqueous phase of the precursor. The presence of CNCs within the hydrogel structure was confirmed through Fourier Transform Infrared (FTIR) spectroscopy (Fig. S9). We observed a non-monotonic relationship between CNC concentration and bending, with samples containing 1 and 3 wt% CNC showing minimal bending, while the sample with 2 wt% CNC showed significant bending (Video S1, S3 and S4). We attribute this behavior to the optimal balance between differential swelling and mechanical properties. While the compositional gradient across the hydrogel's thickness drives the differential swelling, the degree of bending is also dependent on the material's flexibility. The reason for this behavior is rooted in the microstructure of the CNC-hydrogel composite. At 1 wt% CNC, the low concentration and high dispersibility of the CNCs likely facilitate intermolecular interactions that stiffen the network.54 Similarly, at 3 wt% CNC, a percolation effect is observed, where the higher concentration of CNCs leads to the formation of a rigid, stiff network.55 In contrast, the sample with 2 wt% CNC is softer, offering less mechanical resistance to the swelling force and enabling a larger bending deformation. This indicates that at this concentration, the CNCs are optimally dispersed to provide flexibility without compromising structural integrity. The rheological properties of the individual layers confirm this explanation, showing that the 2 wt% CNC sample is softer than those containing 1 wt% and 3 wt% CNC (Fig. S10). Additionally, the differential pH-induced strain across the thickness of gradgels is maintained even after the inclusion of CNCs (Fig. 2e). Therefore, the sample with 2 wt% CNC is soft and yet imposes less pH-induced strain on gradgel, creating sufficient anisotropy for bending deformation and postponing the onset of the quasi-equilibrium state by preserving local deformation through intermolecular interactions, as discussed in the System Concept. SEM images from the samples with different CNC concentrations indicate that the samples containing 1 wt% and 3 wt% CNC, show more compact microstructures compared to the sample with 2 wt% CNC, which supports the systematic mechanical studies (Fig. S11).
The effect of sample thickness on bending was studied by preparing gradgels with thicknesses of 125, 250, 500, and 750 µm (Video S1, S5–7). For thinner samples (125 and 250 mm), relaxation occurred very fast, likely due to the thin phil side swelling quickly, accelerating the onset of quasi-equilibrium state and relaxation. As the sample thickness increases (500 and 750 mm), the DMAPS-rich side also becomes thicker, reducing its swelling rate, and delaying the onset of the quasi-equilibrium state and relaxation.
In addition to sample thickness, the area of the cell during the separation step of preparing the sample is an important parameter influencing bending behavior. As shown in Table S1, when polymerized in a smaller cell, the gradgel cantilever shows more significant bending. This is likely due to a more planar uniformity of component separation within smaller areas. As the cell size increases, the monomers may have a larger range of motion or diffusion, leading to less uniform component separation and reduced reproducibility of bending behavior. Silanization in both gas and liquid phases was tested to make glass slides hydrophobic (see materials and methods section). Liquid-phase silanization proved more effective in inducing bending behavior in gradgel cantilevers. This can be attributed to the effect of the liquid medium in creating a more uniform surface modification, which enhances the hydrophobic interactions with the hydrogel components. As a result of enhanced hydrophobic interactions, component separation improves, leading to more pronounced and reproducible bending behavior.
Cutting the gradgel cantilevers to different aspect ratios was utilized as a tool to program their shape-change behavior. In addition to the biased gradient of chemical composition across the thickness, the mass transport occurs gradually during swelling. That is, peripheral regions exposed to the buffer swell more rapidly than central regions, leading to anisotropic and transient modes of deformation such as twisting or buckling. This effect diminishes over time as water permeates the entire sample. Narrower samples, indeed, do not demonstrate buckling and twisting. As shown in Fig. 3a, there is a correlation between the aspect ratio of the gradgel cantilever and its deformation mode upon exposure to a high pH environment. Narrow samples with a higher length-to-width ratio show pure bending, while wider samples with a lower length-to-width ratio twist after exposure to a high pH environment (Video S8). To isolate the effect of the chemical gradient, we prepared control samples using the same formulation in between unmodified glass slides. These uniform hydrogels showed no deformation when exposed to high pH (Video S9), confirming the critical role of the compositional gradient in our shape-change method.
In principle, the deformation mechanics of our monolithic hydrogel cantilevers resemble those of bilayer structures, following Timoshenko's bimetallic theory.56 This theory correlates deformation to the geometric parameters and material properties of each layer, as well as the ratio between the bilayer's length and width. To describe the deformations of hydrogels at any point on their structure, the principal curvatures (k1 and k2) can be used to calculate the mean (
) and Gaussian (K = k1.k2) curvature. The principal curvatures depend on the extent of differential swelling of the hydrogel across the thickness and across the plane. Hydrogels with differential swelling across the thickness bend (H≠0 and K = 0), while hydrogels with bidirectional differential swelling (across the thickness and the plane) buckle (H≠0 and K≠0) to minimize their elastic free energy.26,27,57 In our geometry-dependent shape-change programming strategy, narrower samples exhibit a negligible gradient of chemical composition and water mass transport across the plane due to their small size, resulting in only bending toward the DMAPS-rich side of the sample. As the sample width increases, the gradient of chemical composition and water mass transport across the plane becomes more pronounced, leading to bending and twisting and the emergence of both mean and Gaussian curvatures. The observed deformation modes align with the simulation results presented in Fig. 3a. Using finite-element modeling, macroscopic continuum elastic behavior of bilayer beams is simulated, revealing the onset of bending and/or buckling. As indicated by the simulation results, decreasing the aspect ratio increases the internal von Mises stress, which makes the structure collapse or buckle, which manifests in experiments by twisting. Note that our finite element model can be strengthened by including the kinetics of swelling in-plane to capture the more pronounced transient nature of mass transport in wider samples. This is a subject of future study.
Additionally, the shape-change in our gradgel cantilevers occurs very fast, thanks to the monolithic structure of the samples. As shown in Fig. 3b, a gradgel cantilever with an aspect ratio of 1
:
10 for width to length bends around 300° in less than 30 seconds (Video S1). This rapid shape-change is repeatable for at least 15 cycles through alternating exposure to media with high and low pH values, respectively (Fig. 3c and Video S9). Fig. 3b indicates the role of CNC in preserving the deformation. As can be seen in the graph, the sample without CNC deforms faster (the slope of the graph is steeper) compared to the sample containing CNC. The sample without CNC also relaxes faster, and its final residual deformation is only about 100°, meaning it barely drifts. The sample containing CNC, although initially bends more slowly (less steep slope), holds the deformation longer, as indicated by the more significant drift (about 200°). We should note that the addition of CNC potentially interferes with monomer stratification, since CNC has a high surface area and abundance of functional groups. However, there is a trade-off here, and the major role of CNC is to preserve the deformation through its hydrogen bonding with water molecules, thereby preserving local deformation. Additionally, the maximum theoretical work density is about 3 kJ m−3, which is estimated from the difference between the area under the stress–strain plots for the gradgel swelled in water and high pH (Fig. S12).
Thanks to the self-healing properties of the hydrogel system, a cut-and-paste technique was used to make a heterolithic hydrogel construct resembling an octopus. Using the geometry-based shape-change programming technique, eight gradgel cantilevers with different shape-change profiles were created, like those reported in Fig. 3a. To assemble such an octopus-like structure, cantilevers were attached to a circular body made of the same hydrogel but with no gradient to prevent anisotropic swelling of the central body. The pieces of hydrogel were collaged together by placing the cantilevers in contact with the central body and applying mild pressure using a glass slide placed on top of the construct for 30 minutes. After this period, the construct was placed in a high pH environment to investigate its collective shape-change behavior. As shown in Fig. 4e, upon exposure to a high pH environment, the narrower legs bent while the wider legs twisted, causing the octopus hydrogel to move forward rapidly, considering the overall size of the construct (Video S14).
Changing the aspect ratio (length-to-width) of the samples was used as a tool to program the shape-change profile, where increasing the aspect ratio leads to bending deformation, while decreasing the aspect ratio leads to twisting deformation. This change in deformation profile is due to the change in component separation mode, from monodirectional (across the thickness) separation in narrower samples to bidirectional (across the thickness and the plane) separation in wider samples. Expanding on our shape-change programming technique, we used glass slide patterning to program local component separation in our hydrogel samples to create more complex deformations. Using this technique, we achieved more complex shape changes, such as S-shape, M-shape, and coil deformations, in our monolithic hydrogels. Additionally, the self-healing properties of the hydrogel system allow for a cut-and-paste technique to achieve a simple robotic function for an octopus hydrogel composed of eight rectangular legs with different aspect ratios and shape-change profiles attached to a circular hydrogel body. Upon exposure to a high pH environment, the simultaneous bending of narrower legs and twisting of wider legs results in the rapid forward movement of the octopus hydrogel.
Overall, our shape-change programming strategy is a simple yet versatile technique applicable not only to other hydrogel systems but also to any soft material system containing components with different polarities that could undergo a controlled change in physical state, such as from liquid to solid, during preparation. While this work serves as a foundational proof-of-concept, we believe it lays the groundwork for future research to validate its broad applicability. Future studies will focus on investigating the dependency on specific monomer pairs, exploring substrate modifications, and demonstrating more sophisticated and scalable deformations. Our introduced material system is particularly well-suited for small-scale medical robots, with potential application in environments with built-in pH variations, such as the gastrointestinal or reproductive tracts. In these scenarios, the material's inherent pH responsiveness eliminates the need for external acid or base dosing, enabling actuation without the need for external control. Beyond this specific material system, the core contribution of our work is the novel and simple fabrication method for shape-change programming. By relying on material gradients rather than complex structural anisotropy, this technique offers a versatile approach that can be applied to other stimuli-responsive material systems. We believe this concept provides a powerful new tool for designing soft robotic actuators and other smart devices for a wide range of real-world applications. Our presented method for shape-change programming of binary hydrogel systems is straightforward and results in rapid deformations. However, it crucially depends on the wetting behavior of the glass substrates after surface treatment, which may be subject to batch-to-batch variability. Utilization of advanced anti-stiction coating tools and techniques prevalent in microelectromechanical systems (MEMEs) in conjunction with lithography-based surface masking and patterning is a potential way to dramatically enhance the reproducibility and scalability of our strategy. Future work will also focus on realizing more sophisticated robotic functions, such as controlled capture, transport, and release of cargo, for hydrogel constructs using the presented shape-change programming technique. Achieving such robotic functions represents a step toward envisioning a future generation of biomedical, surgical, and therapeutic soft robots based on our hydrogel system.
:
BIS weight ratio 1000
:
6), and 30 mg 2-Hydroxy-2 methylpropiophenone (monomer
:
initiator weight ratio 1000
:
6) were added to the mixture, followed by vortex mixing and bath sonication. The mixture was purged with nitrogen for 10 minutes before storing in the fridge. For sample preparation, the hydrogel precursor was injected into a cell prepared by two glass slides separated by two strips of spacers with known thicknesses. Hydrophobic/hydrophilic modification was performed on the glass slides before injecting the precursor. The glass slides were arranged in a way that the hydrophobic part of one glass slide faced the hydrophilic part of the other glass slide. After the injection of the hydrogel precursor, the cell rested for an hour to allow the monomer separation imposed by different hydroaffinities of the monomers. The UV-polymerization was conducted in a container purged with nitrogen. Each side of the cell was exposed to the UV light of wavelength 365 nm for 30 min.| This journal is © The Royal Society of Chemistry 2026 |