Abstract
Introduction
As defined by Buenger et al. (2012) and Liu et al. (2020), a sensor is a device or a machine that detects and responds to stimuli in the environment. In view of the structure with hydrophilic polymer networks, stimuli-responsive hydrogels can adsorb and release solvent under physical and chemical stimuli. Owing to the ability of active deformation and the fast response to environmental change, stimuli-responsive hydrogels have attracted particular attention in the developing field due to their novel sensor-actuator functions (Buenger et al., 2012; Chen et al., 2025; Guenther et al., 2009; Liu et al., 2022).
The capacity of stimuli-responsive hydrogels to convert chemical energy into mechanical energy significantly impacts the advancement of chemical sensors (Gerlach et al., 2004, 2021; Guenther et al., 2009). The further investigated hydrogel-based sensors can respond not only to pH (Lee and Braun, 2003; Richter et al., 2008) and to ions (Dave et al., 2010; Holtz and Asher, 1997) but also to certain inorganic and organic species, that is, ammonia (Erfkamp et al., 2019), glucose (Zhai et al., 2013) and proteins (Cai et al., 2017). Furthermore, due to the high sensitivity to pH, temperature and moisture, hydrogel-based biosensors exhibit enhanced capabilities for managing wound healing processes, enabling the early identification of wound infection (Jankowska et al., 2017; Meier et al., 2011; Rahimi et al., 2016).
As responsive hydrogels respond to biochemical molecules, this advantage inspires the development of novel biosensing approaches (Tavakoli and Tang, 2017). The technology for detecting cellular metabolites is applied to monitor changes occurring at the cell site (Li et al., 2015; Wightman, 2006). In the early detection of cancer and chronic diseases, the monitoring of small molecules, e.g. the inflammatory factor such as cytokines (Ngoepe et al., 2013), the superoxide anions released by cancer cells (Crulhas et al., 2017) offers important opportunities for both diagnosis and treatment (Tavakoli and Tang, 2017).
In the field of engineering, the research focuses on the swelling behavior of responsive hydrogels induced by the coupled physical effects (stimuli). Over the past few decades, the approach to model hydrogel swelling has evolved from the classical polymer-solution theory (Flory and Rehner, 1943; Huggins, 1941), through the theory of mixture (Bowen, 1980), to the modern poromechanical framework (Gebhart and Wallmersperger, 2019; Hong et al., 2008). Coupled-field models are applied within the framework to depict the behavior of hydrogels with various stimuli (Keller et al., 2011). The free energy density functions describe the individual contributions of physical fields within the system, and these fields are coupled through particular field variables (e.g. deformation, electrochemical potential, temperature). This framework establishes a link between the continuum mechanics and the field theory.
Principally, the compensation method in the sensor technology aims to counterbalance the output signal generated by the input (i.e. measurement). Through the determination of the compensation input, an overall increase in measurement precision is achieved (Dyer, 2004; Schulz et al., 2012). The appropriate compensation method can reduce the sensor response time. For example, the temperature is used to compensate for the chemical concentration in a chemical hydrogel sensor (Schreiber et al., 2023). The response time of the sensor is determined by the response behavior of the hydrogel. The introduced force compensation method generates an external counterforce that counteracts the hydrogel’s deflection. It virtually eliminates swelling and significantly improves the dynamic response. By maintaining the hydrogel’s volume constant, the overall response time of the sensor can be significantly reduced (Binder and Gerlach, 2019; Han et al., 2002; Schulz et al., 2012).
Combining two different stimuli-responsive hydrogels forms a bisensitive copolymer. The two different stimuli acting on both hydrogels can be utilized in the bisensitive copolymer. For example, when one part of the hydrogel swells in response to the analyte, the other part of the hydrogel can counteract the swelling and keep the volume constant, see Figure 1.

Schematic figure of hydrogel swelling. The hydrogel is initially chemically stimulated. Without compensation (- - -), the hydrogel swells; while the swelling can be counteracted by the applied force compensation (—). Symbol
In our case, the temperature change, which is also the new measurement signal, can compensate for the chemically induced swelling. In this way, the sensing time, that is the response time to equilibrium, can be drastically reduced.
In the present paper, we utilize a thermo-chemo-poromechanical framework to compute the temporal behavior of a hydrogel-based chemical sensor with force compensation. The pertinent issues and configurations of the hydrogel sensor are introduced in Section:
Problem statement
The cross-section of the chemical hydrogel sensor is presented in Figure 2. In the sensor configuration, a thin cylindrical hydrogel is attached to a square silicon wafer, which functions as a bending plate. The hydrogel is synthesized from the monomers 2-acrylamido-2-methylpropane sulfonic acid (AMPS) and N-isopropylacrylamide (NIPAAm), crosslinked with N,N’-methylenebisacrylamide (BIS). According to the work of Schreiber et al. (2023), the hydrogel has a thickness of 20

Setup of a chemical sensor with the stimuli-responsive hydrogel. The area encircled by the dashed border is to be modeled. Symbols
The AMPS-co-NIPAAm hydrogel combines the characteristics of its constituents, where this copolymer is both salt-responsive and thermo-responsive. The swelling volume of the hydrogel decreases with increasing salt concentration, while the temperature-dependent swelling kinetics is governed by the applied thermal field. According to the temperature range applied in the sensor, the co-hydrogel swells with increasing temperature.
In order to obtain a reliable sensor behavior, the simulation of the hydrogel swelling should consider the realistic material and model parameters. Regarding the constituents of AMPS-co-NIPAAm hydrogel (90.9 mol% NIPAAm + 5.4 mol% AMPS +3.7 mol% BIS) applied in the sensor, the material properties of the hydrogel can be predicted based on the previous investigations (Fei et al., 2013; Saikia et al., 2013a; Shi and Wallmersperger, 2022). The study of Fei et al. (2013) 1 measured the mechanical properties of AMPS-co-NIPAAm hydrogels with different NIPAAm-AMPS ratios, where one of the measured hydrogels corresponds pretty well to the composition in our case.
Based on the setup of the developed chemical sensor (see Figure 2), the swelling and deswelling behavior of the integrated chemo-thermo-responsive hydrogel is to be modeled. The poromechanical framework must provide quantitative predictions of the hydrogel’s mechanical response under the combined influence of chemical and thermal stimuli. The numerical simulation is expected to reproduce the experimentally determined behavior in dependence of salt concentration and temperature. The force compensation, driven by coupled chemo-thermal stimulation, aims to maintain a constant hydrogel volume during operation.
Poromechanical modeling
As a macroscopic approach, the poromechanical modeling builds upon the principles of continuum mechanics and provides a theoretical framework for describing the behavior of porous media. Within this framework, the governing equations are formulated for both the solid and fluid phases, while the constitutive theory can be formulated separately according to the respective constituents and their associated physical fields. This modeling approach is particularly appropriate for coupling multi-field problems with large deformation in polymer gels (Chester and Anand, 2010, 2011; Hong et al., 2008). The chemo-thermal responses to be captured within the sensor application fall precisely within the scope of this theory.
On the basis of the poromechanical theory, the entire gel body consists of a polymeric matrix structure and a pore-filling solution. Owing to the microscopic polymer chains, ions exist as fixed ion groups within the matrix skeleton. In the solution, dissolved ions are mobile in the carrier fluid. According to this fundamental consideration, the poromechanical modeling as well as the numerical implementation concerning the chemo-thermal stimulation are further introduced.
In this section, we review the fundamental equations for the modeling. In addition, the equations are formulated in the Lagrange geometry setting with respect to the solid skeleton. Consider a closed thermodynamic system for the mixture (skeleton and solution), the solution phase
In equation (1),
As an essential part in the thermo-chemo-mechanical coupling, the heat equation is derived from the energy balance (Chester and Anand, 2011; Shi and Wallmersperger, 2022). According to the thermodynamic definitions of the specific heat
Herein,
The functions of mass flux outline the way of particle transport between the hydrogel and the solution:
The mobility of the corresponding constituent
results from the expression of Fick’s first law in dependence of the chemical potential, where
As the main mode of the heat transfer in our case, heat conduction is modeled by the Fourier ansatz that the heat flux is given by:
where
Following, the constitutive equation establishes a relationship between two conjugate field variables. In this context, the free energy function, which includes the field variables, serves as the basis for the constitutive formulation. Through the additive decomposition, the total Helmholtz energy of the coupled fields is formed into separate contributions. Hence, as per the Coleman-Noll procedure (Coleman and Noll, 1974) in deriving the stress, the total stress tensor
Herein,
Numerical simulation
By applying the presented thermo-chemo-poromechanical framework, we numerically determine the swelling behavior of an AMPS-co-NIPAAm hydrogel. The numerical investigation is performed by using the Finite Element Method (FEM). The key of the numerical simulation lies in the weak formulation of physical balance equations. The balance equations in the weak form are subsequently implemented into the commercial software, COMSOL Multiphysics®. Taking into account the constituents of the currently used hydrogel, we modify the experimentally determined material parameters obtained by Ehrke et al. (2022), Shi and Wallmersperger (2022).
According to further considerations in the aspects of the application, it is assumed that there is no external applied electric field. Since the accumulation of ion species is weak with neither an external electric field nor electrochemical reactions, the effect of the electric double layer will not be taken into account. For the bending plate, the infinitesimal strain is assumed to compute the deflection.
In the context of modeling the swelling behavior of PNIPAAm hydrogels, the Flory-Huggins interaction parameter
It is worth mentioning that the preswollen state of the hydrogel is treated as the initial state in our poromechanical modeling. The deformation gradient at the preswollen state
where
The swelling degree
As the test case, we consider the swelling-deswelling of the hydrogel with its supporting plate, where the bimorph effect is taken into account. In the sensor structure, the bending motion of the active layer (stimuli-responsive hydrogel) causes the deformation of the conductive passive layer (silicon plate). 2
Boundary conditions
A quarter model of the complete hydrogel-wafer structure will be utilized in the FEM analysis to reduce the computing efforts (see Figure 3). The associated symmetric surfaces are supported in their normal directions (

Top: Hydrogel-wafer model with its dimensions. The colored section is chosen as quarter model. Bottom: Quarter model of the sample with symmetric surfaces used for the calculation. Indicators denote the positions of boundary conditions. 1 - front surface (hydrogel and plate); 2 - right surface (hydrogel and plate); 3 - top surface (hydrogel);4 - bottom surface (hydrogel); 5 - lateral surface (hydrogel);6 - bottom edge (hydrogel).
The boundary conditions of the chemical field are derived with respect to the chemically induced hydrogel bending (Shi and Wallmersperger, 2024). The ambient temperature within the sensor is regulated by an integrated Peltier element, resulting in an assumed homogeneous boundary condition for the thermal field. Table 1 presents the boundary conditions for coupled fields on each related boundary.
Parameters
The swelling behavior of a stimuli-responsive hydrogel incorporates finite deformation, mass transport, and heat transfer. The related model parameters are necessary for implementing the field variables and the governing equations.
According to the studies of constituents in AMPS-co-NIPAAm hydrogels (Fei et al., 2013; Saikia et al., 2013a), the shear modulus
As one of the most important characteristics of PNIPAAm hydrogels, the effect of the temperature-dependent volume phase transition (VPT) should be considered as the thermal field is applied. The temperature, at which the VPT occurs, is called volume phase transition temperature (VPTT). VPTT shifts to a higher value with increasing AMPS proportion owing to the shift of hydrophilic/hydrophobic balance toward a more hydrophilic nature (Saikia et al., 2013b; Turan et al., 2008).
Volume phase transition is mathematically related to the temperature-dependent interaction parameter
The determination of
Herein, the symbols
In Table 2, we list the material parameters used for the numerical simulation. In addition, no external heat supply
Parameters used for the numerical simulation of the swelling behavior.
Electrochemical parameters are referred to Shi and Wallmersperger (2022, 2024). Parameters related to the heat transfer are referred to Chester and Anand (2011).
Results
The chemical sensor based on chemo-thermally responsive hydrogels takes advantage of its short response time, because in this application, the compensation method controls temperature to counteract the deflection induced by chemical stimulation. The boundary condition of temperature

(a) Stimuli-responsive hydrogel is heated from 20°C (293.15 K) to 30°C (303.15 K). (b) Comparison between the numerically simulated hydrogel swelling and the experiment results by Schreiber et al. (2023).
By calibrating the sensor signals from the experiments (Schreiber et al., 2023), we compare the numerical results of the thermally stimulated hydrogel swelling with the experiment, see Figure 4(b). The hydrogel swells with increasing temperature since the volume phase transition does not occur. This comparison benefits the modification of the model parameters in Table 2.
Within the fluid chamber of the sensor, the flow rates of both the NaCl solution and the pure water are regulated in order to achieve the required chemical stimulation. In our simulation, the external solution concentration is specified via a ramp edge function, where the ramp time depends on the flow rate in the chamber.
Figure 5 interprets the simulation of the hydrogel swelling-deswelling induced by the chemical stimulation and the thermal stimulation in sequence. For the chemical simulation, the concentration of NaCl is regulated from

(a) Chemical stimulation and (b) compensation by thermal stimulation. The ramp time for both stimulations is 30 s.(c) The hydrogel swells due to the concentration decrease and shrinks due to the temperature decrease.
The sensor developed by Schreiber et al. (2023) is operated in the temperature range between 5°C and 40°C to perform the compensation mode. According to Figure 6, the heating from 20°C to 42°C still causes an observable hydrogel swelling. However, the heat-induced phase transition occurs implicitly: the equilibrium swelling degree at 42°C has a lower value than at 30°C, which is indicated by equation (13) and the chosen parameters in Table 2. When the temperature approaches or exceeds VPTT (43°C), the hydrogel initially undergoes swelling and subsequently shrinks due to the volume phase transition. This effect results from the coupling of the temperature and the temperature-dependent parameter

Influence of thermal stimulus on hydrogel response with different range of heating. Ramp time is 1 s.
The compensation method (Schreiber et al., 2023) aims at maintaining a certain hydrogel swelling by setting a target voltage. Hence, the temperature course interprets the compensation of the hydrogel swelling by this mode. In the aspect of the numerical simulation, chemical stimulation and thermal stimulation occur simultaneously to keep the swelling degree constant. Additionally, chemical conditions are unchanged based on the test case interpreted by Figure 5(a). In this case, we discuss the influence of temperature course on the compensation mode. The temperature ramp is modified so that it best compensates for the chemically stimulated swelling as shown in Figure 5(c). The highlight is that the compensation mode reduces the measuring time. In comparison to the test case presented by Figure 5, the sensing duration is reduced from 45 to 30 s, which corresponds to the ramp time. As shown in Figure 7, in comparison to the quasi-linear temperature course, the modified temperature input presents a better result as expected. The quasi-linear temperature ramp can be regarded as a delay of the force compensation, resulting in an extended measurement time. The volume change of hydrogel requires additional time to be balanced and the thermal sensor also needs more time to capture the final signal. In Figure 5(c), the force compensation occurs after the swelling and requires 35 s, exceeding 30 s for an immediate compensation. These results collectively demonstrate that the immediate force compensation significantly enhances the sensing performance of the hydrogel-based sensor.

(a) Temperature inputs applied to compensate for the chemically induced swelling. Temperature is reduced from 40°C (313.15 K) to 5°C (278.15 K). (b) Hydrogel responses in compensation mode with temperature inputs from (a).
Conclusions
In this work, we have modeled the swelling behavior of an AMPS-co-NIPAAm hydrogel within a chemical sensor by using a poromechanical framework, where a coupled chemo-thermal stimulation was considered. Using weak-form formulations, we implemented this framework in COMSOL Multiphysics® to simulate the hydrogel responses to each form of stimulation. Then, we compared the numerical results with experimental data.
To ensure the quick response of the sensor, the temperature is controlled by the integrated Peltier element to compensate for the chemically induced hydrogel response. In the application, the hydrogel volume positively correlates to the temperature since the arranged temperature does not provoke the phase transition of the used co-hydrogel, which leads to the opposite phenomenon. However, we also discussed the influence of phase transition by simulations as a numerical test case.
The poromechanical framework serves a dual purpose in this study, presenting both the modeling of responsive hydrogels and the exploration of related material parameters. Specific physical parameters, such as the Flory-Huggins parameter and the diffusion coefficient, can be estimated through numerical methods instead of complex laboratory measurements. This is made possible by applying the swelling degree as a reference for parameter modification. Importantly, this approximation remains physically reliable, given that the poromechanical approach integrates continuum mechanics with constitutive laws. Since no optimization procedure was considered at this stage, further improvement can be expected by advancing sensor setup and control regime.
Footnotes
Acknowledgements
We want to thank Philipp Gebhart for the meaningful comments and discussions.
Funding
The authors disclosed receipt of the following financial support for the research, authorship, and/or publication of this article: This research has been financially supported by the Deutsche Forschungsgemeinschaft (DFG) in the framework of the research training group ”Hydrogel-based Microsystems” (DFG-GRK 1865, project number 21194 4370).
Declaration of conflicting interests
The authors declared no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.
Data availability statement
Data sharing not applicable to this article as no datasets were generated or analyzed during the current study.

