Modeling: A Predictive Tool for Dye Dosage in Textile Coloring
Moving beyond qualitative characterization, we developed a quantitative predictive model based on the Langmuir adsorption isotherm to enhance the practical applicability of our bio-adsorbent system. In this project, we aimed to remove synthetic dyes from wastewater using engineered bacteria. The Langmuir model was employed to quantitatively analyze the adsorption behavior of dyes onto the fabric surface, providing a theoretical framework for describing monolayer adsorption on homogeneous interfaces. This approach allows precise calculation of the dye quantity required to achieve a specific color depth on a given mass of fabric, thereby transforming our biological system into a predictable and scalable tool suitable for industrial applications.
Model Overview: From Adsorption to Prediction
We determined that the adsorption of our bio-derived dye onto target fabric follows the Langmuir adsorption model, which indicates monolayer coverage on a homogeneous surface.
The core Langmuir equation is:
- qe is the adsorption capacity at equilibrium (mg dye / g fabric).
- qmax is the maximum adsorption capacity (mg/g).
- KL is the Langmuir constant (L/mg), representing adsorption affinity.
- Ce is the equilibrium dye concentration in solution (mg/L).
Parameterization: Fitting the Model to Our Data
We first conducted dyeing experiments using solutions of different initial concentrations (C0). We measured the absorbance at various time points and found that the absorbance reached equilibrium after 3 hours, as shown in Figure 1. Raw data are shown in Table 1.
| C0 (mg/L) | A475 | ||||||
|---|---|---|---|---|---|---|---|
| Time | 0(min) | 10(min) | 20(min) | 30(min) | 60(min) | 120(min) | 240(min) | 
| 200 | 3.65 | 3.07 | 2.72 | 2.48 | 2.20 | 2.07 | 2.05 | 
| 180 | 3.29 | 2.73 | 2.39 | 2.16 | 1.86 | 1.74 | 1.72 | 
| 160 | 2.92 | 2.41 | 2.10 | 1.89 | 1.59 | 1.46 | 1.37 | 
| 150 | 2.74 | 2.26 | 1.96 | 1.76 | 1.48 | 1.35 | 1.17 | 
| 140 | 2.56 | 2.11 | 1.84 | 1.65 | 1.38 | 1.25 | 1.08 | 
| 100 | 1.82 | 1.48 | 1.26 | 1.11 | 0.90 | 0.80 | 0.67 | 
| 70 | 1.28 | 0.98 | 0.79 | 0.67 | 0.50 | 0.43 | 0.37 | 
 
            We performed batch adsorption experiments with varying initial dye concentrations C0 and measured the equilibrium concentration Ce via absorbance, as shown on the left of Figure 2. The adsorption capacity qe was calculated using:
where V is the volume of the solution and m is the mass of the fabric (Table 2). The results are shown on the right of Figure 2.
| m (g) | C0 (mg/L) | Ce (mg/L) | C0-Ce | qe (mg/g) | 
|---|---|---|---|---|
| 0.0612 | 200 | 112.398 | 87.602 | 14.31 | 
| 0.0603 | 180 | 94.294 | 85.706 | 14.21 | 
| 0.0624 | 160 | 75.237 | 84.763 | 13.58 | 
| 0.0635 | 150 | 64.207 | 85.793 | 13.51 | 
| 0.0594 | 140 | 59.298 | 80.702 | 13.58 | 
| 0.0521 | 100 | 36.497 | 63.503 | 12.18 | 
| 0.0545 | 70 | 20.345 | 49.655 | 9.11 | 
 
            Linearization for Parameter Fitting
To obtain the parameters qmax and KL, we linearized the Langmuir equation:
By plotting 1/qe against 1/Ce from our experimental data (as shown in Figure 3), we performed a linear regression analysis.
 
            Langmuir Parameters
The plot shows a strong linear relationship with a high coefficient of determination (R2 = 0.9727), confirming the applicability of the Langmuir model to our system. The slope and intercept of the trendline Y = 0.9889X + 0.05901 were used to calculate the adsorption parameters.
Calculation of Parameters:
- From the linear equation y = 0.9889x + 0.05901:
- qmax = 16.95 mg/g
- KL = 0.0597 L/mg
These parameters are the foundational constants for our predictive tool.
The Predictive Tool: From Design to Recipe
The ultimate goal of our model is to answer the practical question: "How do I configure the dye bath to get the color I want?"
We derived a practical formula to calculate the initial dye concentration C0 needed:
Since qe is itself a function of Ce (from the Langmuir model), we can combine the equations. For a desired Ce (which determines color depth), and knowing the mass of fabric m and the volume of the dye bath V, the required initial dye amount is calculated by:
 
            How to use this tool
- Define Desired Outcome: Choose the target equilibrium adsorption capacity qe. A higher qe means more dye is adsorbed onto the fabric, resulting in a deeper color.
- Define Process Parameters: Set the mass of fabric (m) and the volume of the dye bath (V).
- Calculate: Plug the values into the equation above along with our predetermined constants qmax and KL. The result is the initial dye concentration (C0) you need to prepare.
- Prepare Dye Bath: Dissolve the corresponding mass of dye (C0×V) in the volume V of solvent.
Conclusion
We have successfully developed a quantitative and predictive mathematical model based on the Langmuir isotherm. The high R2 value from our linear fit confirms the model's validity for our dye-fabric system. This model transcends theoretical description and serves as a practical engineering tool. It allows users to precisamente predict the initial dye dosage required to achieve a specific color outcome, minimizing waste and ensuring reproducibility. This represents a significant step towards the rational and sustainable application of synthetic biology in the textile industry.