A stable tensorial approach for inversion of adsorption potential energy from isotherm data Márcio Oliveira Alves, Felipe Silva Carvalho, João Pedro Braga Abstract AbstractContextUnderlying the adsorption mechanism is not a simple task due to the complexity of the process. In this context, statistical mechanics provides a versatile approach with relatively low computational cost for describing adsorption phenomena. An alternative strategy consists of obtaining the adsorption potential energy from experimental data through the solution of an inverse problem. In this work, the adsorption potential energy was determined directly from adsorption isotherms using experimental datasets for both aqueous- and gas-phase adsorption systems. The proposed methodology was compared with the traditional two-step procedure, in which the second adsorption virial coefficient is first determined and subsequently used for inversion of the potential energy. Due to the ill-posed nature of the problem, the conventional approach exhibits significant instability and error propagation. In contrast, the direct inversion method provides excellent results, achieving values of R2∼0.99.MethodsA methodology grounded in statistical physics was developed to obtain the adsorption potential energy directly from isotherm data. The proposed approach formulates the problem as a tensor contraction, eliminating the need for the traditional two-step procedure involving the intermediate determination of the second adsorption virial coefficient.Keywords: Adsorption, Potential energy, Tensorial contraction, Inverse problem Introduction Adsorption is an efficient, versatile, and cost-effective method for removing contaminants from water and wastewater. Therefore, developing high-performance adsorbent materials is essential to improve removal efficiency. These materials have increased adsorption capacity, enabling faster and more effective treatment. In addition, advances in adsorbent design contribute to more sustainable and economical solutions, benefiting both the environment and water resource management [–]. Despite the widespread use of adsorption, achieving a comprehensive understanding of its mechanisms remains a challenge due to the complexity of the process. This complexity arises from the numerous sub-processes and intricate interactions between the adsorbent, adsorbate, and solvent []. Adsorption studies are typically conducted experimentally to evaluate equilibrium isotherms and process kinetics. These experiments provide valuable data for understanding how variables such as temperature, concentration, and time affect adsorption behavior [, ]. In a theoretical approach, advanced techniques such as electronic structure calculations [], molecular dynamics simulations [], and transport property studies [] can be employed. In particular, electronic structure calculations, often based on methods such as density functional theory (DFT), allow the precise determination of energy levels and interactions within the adsorbate-adsorbent, providing valuable information on adsorption energies and geometric configurations. While experimental isotherms are often analyzed using empirical models such as Langmuir and Freundlich, these do not provide the detailed physical insight required to fully understand the adsorption process []. On the other hand, quantum chemical methods and molecular dynamics simulations are computationally demanding and may not provide an accurate description of adsorption on heterogeneous and porous surfaces []. An alternative approach consists in employing models based on statistical mechanics, which provide valuable insights into the adsorption process while maintaining a low computational cost. Ben Lamine et al. proposed a more realistic framework for studying adsorption phenomena based on Hill’s adsorption model [, ]. This method allows the application of a series of models to fit experimental adsorption isotherms and extract microscopic information, such as the number of layers, orientation anchorage, and number of adsorption sites. This approach has been demonstrated to be both powerful and versatile in describing adsorption processes across various adsorbates and adsorbents [–]. Another methodology grounded in statistical mechanics was introduced by Radke and Prausnitz []. Based on the theory of dilute solutions proposed by McMillan and Mayer [], the adsorbent surface is treated as an external field influencing the solution. In this framework, the amount of material adsorbed on the surface is described by a virial expansion, in which each virial coefficient depends on the interaction potential between the adsorbed molecules and the surface. This formulation is consistent with Henry’s law, since the second virial coefficient (SVC) can be obtained from the slope of the isotherm at low concentrations. Consequently, if the adsorption potential energy (APE) is known, the SVC can be determined, allowing direct calculation of the adsorption isotherm. Conversely, determining the APE from experimental SVC data constitutes an inverse problem []. Experimental data inherently contain noise due to measurement errors. As a result, the inverse problem is ill-posed, meaning that the solution may be non-unique, unstable with respect to the data, or may not exist []. To address such issues, methods such as singular value decomposition [], Tikhonov regularization [], and Hopfield neural networks [] are commonly employed. In a recent study, we applied Hopfield neural network to derive the APE from SVC data []. Since experimental adsorption isotherms are widely used in adsorption studies, an important approach is to determine the APE directly from these data. In this work, a generalized methodology is introduced to obtain the APE directly from adsorption isotherms, eliminating the need to first determine the SVC. To this end, a novel framework is proposed in which the inverse problem is formulated as a tensor contraction in a multiway setting, enabling direct estimation of the APE from isotherm data. The methodology is validated using different experimental datasets for both liquid- and gas-phase adsorption. By improving the generality and robustness of APE determination, this approach provides a powerful tool for predicting adsorption energies from experimental data. Methodology Thermodynamic background The isotherm data for a very dilute solution near a solid surface can be represented as a virial series expansion [] It is assumed that Qa represents the amount adsorbed on the surface and c is the concentration of the solution. The coefficients B1, C2, and C3 are the virial coefficients, which are functions of the temperature T and the chemical potential μ. The coefficient B1, corresponding to the second virial coefficient (SVC), is related to the interaction potential energy between a single adsorbed particle and the solid surface. The higher-order terms account for interactions involving two or more particles with the surface. The B1 term is also associated with Henry’s constant of adsorption, since the isotherm becomes linear at low concentrations, where the higher-order terms in c vanish. The coefficient B1 and the potential energy function are related by the following integral where kB is the Boltzmann constant and Ep(z) is the adsorption potential energy (APE) as a function of the perpendicular distance, z, between the particle and the surface. Alternatively, can be rewritten by integrating over the x and y coordinates []: with the effective area of adsorption of a single particle in a very dilute solution denoted by A. The potential energy Ep(z) can assume several functional forms, with the most commonly employed being the so called Lennard–Jones 10-4 potential. being e0 the potential well depth and d0 the distance for which the potential is zero. Equation results from integrating the 12–6 potential between a particle and a planar surface. Direct and inverse problem formulation The direct problem is easily solved as follows: 1) knowing the APE (Ep(z)) and an estimate for A, the SVC (B1) is calculated by solving the integral in Eq. . Thus, the isotherm data can be determined using Eq. . On the other hand, solving the inverse problem is a challenging task due to the ill-posed nature in the inversion of the potential energy in Eq. . Moreover, calculating B1 from experimental isotherm data may lead to inaccurate determinations of the thermodynamic property. As indicated in Eq. , the value of B1 can be derived from isotherms that exhibit linear behavior at low concentrations. However, extrapolating the derivative as c→0 often yields erroneous values due to inherent inaccuracies in the experimental data. In Radke’s work, the virial coefficient was determined through an empirical equation []. with a=B1, b and β being empirical parameters obtained by a fitting procedure. Nevertheless, it is more appropriate to employ the method outlined in Eq. to ascertain the second virial coefficient, since this method determines the coefficient through the fitting of a polynomial equation instead of a non-linear equation. Furthermore, Eq. is based on the fundamental principles of thermodynamics, whereas Eq. is an empirical equation. Once the correct value of B1 has been determined, the potential energy Ep(z) can be obtained through an inverse procedure that solves the nonlinear integral equation presented in Eq. . In other words, the inverse problem can be solved in two-step procedure. To validate the robustness of this inversion methodology, we employ a self-consistency check: the obtained APE values are used to recalculate B1, which is then applied along with the remaining model parameters to reconstruct the original isotherm. In this work, two distinct two-step procedures are employed to determine the APE from isotherm data. In Model 1, Eq. is used, while Model 2 is based on Eq. to determine B1. The APE is then obtained in a subsequent step by inverting the SVC. Inversion procedure via tensorial representation It is important to note that the process on Model 1 and Model 2 is susceptible to significant errors if the inversion in any of the aforementioned steps is not performed accurately. To address this issue, the inversion procedure can be modified to yield the APE directly from the experimental isotherm. Considering that the isotherm of Eq. for a single temperature is given by a matrix representation where m represents the number of experimental data points for the adsorbed quantity related to the solution concentration, while n denotes the order of the virial expansion. The Cm×n matrix of concentrations is given by the matrix of virial coeficients Vn×1 is represented by and the vector of adsorbed quantity is given by Qm×1. In other words, Eq. can be represented as a tensor operation of order two, where the two variables, c and q, are correlated in the model given by Eq. . Most optimization problems in adsorption can be represented using this scheme, as the fitting procedure is performed separately for each temperature. A third variable can be included in Eq. , allowing the problem to be represented as a tensor contraction of order three. Consequently, this approach can be generalized to multiple temperatures. This enables the inversion to be performed using adsorption data across different temperatures simultaneously, where the APE can be retrieved directly from the adsorption quantity without requiring separate determination of the SVC for each temperature. Therefore, the problem can be represented as a tensor contraction along the dimension of the polynomial order n This representation can be considered a multilinear system and can alternatively be written as an Einstein product [, ]. As an example, the tensor Vn×1×p for a third-order polynomial expansion is It is important to emphasize that the B(Tn,Ep) terms are not independently fitted, but are instead indirectly determined via inversion of the potential parameters. Since the parameters A and d0 cannot be determined separately, they are calculated as a combined quantity Ad0. []. Therefore, the calculation is performed knowing the parameters of the APE for a single particle with the surface and the higher-order coefficients C2(T), D3(T), and so on. Lastly, the inverse problem is solved using the Moore–Penrose pseudoinverse to obtain Vn×1×p, The equation above is coupled with the Levenberg–Marquardt algorithm to determine the nonlinear parameters of the APE. This multilinear approach for solving the inverse problem is referred to as Model 3. Results and discussion Adsorption datasets and inversion strategy Since the second virial coefficient corresponds to the linear intercept, the isotherm data must exhibit near-linear behavior at low concentrations. Therefore, the experimental dataset should include a sufficient number of points in this concentration range at different temperatures. To validate the methodology, experimental datasets exhibiting these characteristics were selected for adsorption systems in both aqueous and gas phases. For adsorption in aqueous solution, two datasets were selected for validation of the proposed methodology. The first dataset was obtained from the work of Oueslati et al., in which the adsorption of Reactive Red 120 dye (RR 120) on activated carbon (AC) was investigated []. The second dataset is avaliable on Calvete et al. works and refers to the adsorpiton of Procion Red MX 3Bdye (PR-3B) on AC. These datasets provide extensive coverage of low-concentration measurements exhibiting near-linear behavior. Additionally, the study reports adsorption isotherms measured at six different temperatures, making this dataset particularly suitable for evaluating the efficiency of the model. For the selection of gas-phase adsorption data, the same criteria were applied, and the dataset reported by Sghaier et al. on CO2 adsorption over AC was selected. []. In both cases, the experimental data available in graphical form were extracted using WebPlotDigitizer software []. The Lennard–Jones 10-4 potential, given by Eq. , was selected for the inversion procedure because it is widely employed to describe adsorbate–surface interactions and requires only a small number of adjustable parameters. However, the inversion strategy proposed in this work is not restricted to a specific potential model. Other adsorption potentials, such as the Steele potential [], can also be incorporated into the same framework without modification of the underlying methodology. Inversion of the APE for RR120 adsorption on AC The data extracted from Oueslati et al. are presented in Fig. a and can be characterized as an ideal dilute solution behavior, as evidenced by the linear relationship between logarithmic concentration and adsorption quantity, Fig. b. This linear regime, maintained up to logC≈1.2, provides an optimal range for model validation, while data beyond this threshold were excluded due to deviations from ideality that could compromise the inversion procedure. As can be seen in Fig. a, the adsorbed quantity is not zero when the concentration is zero. This deviation is particularly noticeable at higher isotherm temperatures, particularly at 323 K. Consequently, the estimation of B1 may be inaccurate, since the limit defined in Eq. does not yield the correct value of the thermodynamic property. This issue can be addressed by adding a coefficient indendent of c to Eq. , following a procedure similar to baseline correction [] or an isotherm model proposed by Gupta and Gosal []. Accordingly, the isotherm can be expressed by adding the A0 coefficient as: For a fair comparison among the different models employed in this work, Eq. used in Model 1 was modified by including an independent term A0. It is important to emphasize that this parameter does not have a direct physical meaning. Instead, it serves as a correction term to account for deviations in the experimental data as c approaches zero. To evaluate the quality of both the isotherm fitting and the inversion procedure, the adjusted coefficient of determination R2 and the adjusted root mean square deviation (RMSD) were used as performance metrics [] Being Qi,exp and Qi,model the experimental adsorbed quantity and the value calculated by the model, respectively. These metrics offer an advantage over traditional measures because they penalize models with a larger number of parameters p. To invert the potential energy using Model 1, the second adsorption virial coefficient was first obtained by fitting Eq. . In the absence of the A0 correction, the model isotherm did not adequately reproduce the experimental data, as evidenced by the global R2 and RMSD values across all temperatures. Despite the poor isotherm fit, the inversion yielded potential parameters successfully. Since the inversion procedure was performed in two steps, an additional test was conducted to evaluate the reliability of the approach. Using the inverted parameters, B(T) was recalculated, and the isotherms were subsequently recalculated using the remaining parameters adjusted in Eq. . Analysis of the individual R2 and RMSD values at each temperature shows that the properties obtained from the inversion procedure do not adequately reproduce the experimental data, as shown in Tables and . With the inclusion of the independent term A0 in Model 1, the inversion procedure improves considerably, as the isotherm fitting is significantly enhanced, as evidenced by the improved R2 and RMSD values. In this case, inversion of the potential through B(T) yields excellent results. However, when the isotherms are recalculated using the inverted potential, the agreement is not fully satisfactory, with R2=0.954. By comparison, isotherm fitting using models based on a statistical mechanics approach provides significantly better agreement, with R2>0.98 [–]. Using Model 2 with Eqs. and , the virial coefficients were obtained considering both second- and third-order expansions. Both models reproduce the experimental data within the linearity limit. Moreover, the potential parameters derived from the adjusted virial coefficient B1 show good agreement with the virial data. To evaluate the quality of the procedure, the second virial coefficient must be calculated from the potential energy, and the adsorbed quantity subsequently estimated using the higher-order virial coefficients obtained by fitting Eqs. and . Despite the high R2 values obtained during the fitting steps, the inverted potential does not accurately reproduce the experimental data, as indicated by the statistic metrics of the inverted potential. Additionally, the inclusion of the A0 term does not improve the fitting performance, nor does the inclusion of higher-order terms in the virial expansion. Although higher-order expansions are expected to yield better results in the inversion process, this approach does not provide satisfactory outcomes. As can be seen, independent determination of B(T) followed by potential inversion does not yield parameters capable of adequately describing the experimental data, due to the ill-posed nature of the problem. This arises from error propagation when the inversion is performed in separate steps, introducing significant instability into the procedure. This issue is overcome by directly inverting the APE from adsorption data, as proposed here through Model 3. The enhanced stability of Model 3 can be attributed to the coupled treatment of the virial coefficients and APE parameters. By determining both quantities simultaneously, the inversion avoids the accumulation of errors associated with intermediate calculations. This characteristic reduces the sensitivity of the solution to uncertainties in the experimental data and improves the robustness of the inversion procedure. As shown in Table , this approach provides excellent results and stabilizes the solution of the ill-posed problem, particularly when the A0 correction is included, yielding highly accurate descriptions of the experimental isotherms. For Model 3, the columns corresponding separately to isotherm fitting and potential inversion are not reported, since the inversion is performed in a single step. The metrics reported for the recalculated isotherms correspond to the values obtained after inversion APE parameters together with the remaining model parameters. The R2 values for the second- and third-order polynomial expansions are 0.996 and 0.998, respectively, comparable to those of the best isotherm models. Despite the increased number of parameters introduced by the higher polynomial order and the A0 term, which penalizes the statistical metrics, R2 increases and RMSD decreases. These results indicate that Model 3 with the A0 correction provides the most effective inversion procedure. Moreover, a clearer trend is observed when Model 3 is employed, with the fitting error decreasing due first to the A0 correction and subsequently to the increase in polynomial order, as expected from dilute solution theory. This trend is not observed for Models 1 and 2, providing further evidence that these models do not recover the potential energy reliably from experimental isotherm data. Considering that the best inversion results were obtained with Model 3 including the A0 correction, and that the R2 and RMSD values for the second- and third-order expansions are relatively similar, a deeper analysis was carried out. Residual analysis for both expansions was performed, as shown in Fig. . The residual analysis confirms that the third-order expansion provides a better inversion result, as it exhibits smaller residual amplitudes than the second-order expansion, particularly in the intermediate concentration range. These results indicate that the APE for the adsorption of RR120 dye on AC is best described using Model 3 with the A0 correction and a third-order expansion. The parameters obtained from the inversion are presented in Table . inversion of the APE for CO2 adsorption on AC To evaluate the performance of the different models in the inversion of the APE for CO2 adsorption on AC, the same analysis employed for RR120 adsorption was applied. The experimental data and the logarithmic transformation are shown in Fig. . For this dataset, the behavior is close to linear over the entire concentration range; therefore, all data points were used in the inversion procedure. The results obtained with the different models are presented in Table . Similar to the inversion results for the APE of RR120 adsorption on AC, Models 1 and 2 do not exhibit a consistent trend in the statistical metrics due to the instability arising from the ill-posed nature of the problem. In Model 1, inclusion of the term A0 deteriorates the inversion results, whereas in Model 2 it significantly improves inversion performance. However, increasing the polynomial order in Model 2 hinders the inversion results. For example, in Model 2 without A0 correction, instability becomes evident during the inversion procedure, leading to substantial degradation of the statistical metrics. In particular, the R2 value decreases from approximately 0.9 to below 0.7 in the recalculated isotherm. These results provide clear evidence of the ill-posed nature of the problem and the impact of error propagation in the inversion process. This instability is mitigated when APE is inverted using Model 3. The importance of the A0 correction is again evident. Although this dataset does not visually exhibit a clear issue in the p→0 limit, satisfying the correct Henry’s law behavior in this region remains essential, highlighting the role of the A0 parameter. For CO2 adsorption on AC, Model 3 clearly overcomes the ill-posed nature of the problem and follows the consistent trends expected from statistical mechanics theory. The second- and third-order expansions provide the most satisfactory results. To further assess inversion quality, a residual analysis was performed, and the results are shown in Fig. . The third-order expansion shows smaller residual amplitudes, particularly in the low-pressure region, which is the most critical range for correctly describing Henry’s law behavior. The parameters obtained with Model 3, including the A0 correction and third-order expansion, are presented in Table . Inversion of the APE for PR-3B adsorption on AC Similar to the other datasets, the same inversion procedure was applied to the adsorption data of PR-3B onto AC. As shown in the isotherms presented in Fig. , this system exhibits a more complex temperature dependence than the previously analyzed datasets. For the latter, the isotherm slopes and adsorption capacities display a clear and consistent dependence on temperature, with the adsorption capacity decreasing as the temperature increases. In contrast, the PR-3B isotherms do not exhibit a clear monotonic trend in either slope or adsorption capacity across the investigated temperatures. Although this behavior makes the system more difficult to interpret, it also provides a more stringent test of the proposed methodology, since the inversion procedure must account for experimental data exhibiting a less regular temperature dependence. The results obtained from the inversion using Models 1, 2, and 3 are presented in Table . The irregular temperature dependence observed in this dataset significantly affects the performance of Models 1 and 2. In all tested configurations, these models yield R2<0.9, and under some conditions, negative R2 values are obtained. A negative R2 indicates that the isotherms recalculated from the inverted adsorption potential energy (APE) parameters provide a poorer description of the experimental data than a model based simply on the mean value of the observations. Furthermore, no clear improvement in the inversion results is observed with increasing polynomial order or with the inclusion of the A0 correction term. In contrast, Model 3 provides substantially better results, despite the increased complexity and irregular temperature dependence of this dataset. Although its performance is somewhat inferior to that obtained for the previously analyzed datasets, the inversion remains highly satisfactory. In particular, the third-order expansion with the A0 correction yields an R2 value of approximately 0.99, indicating an excellent agreement between the experimentally measured and recalculated isotherms. This result is particularly relevant because it demonstrates that Model 3 is capable of providing a reliable inversion even for a dataset exhibiting a less regular temperature dependence, thereby providing additional evidence of the robustness and general applicability of the proposed methodology. The residual analysis comparing the performance of Model 3 with A0 correction at the 2nd- and 3rd-order expansions is presented in Fig. . As can be seen, the 2nd-order inversion exhibits larger deviations at low concentrations, with the residuals being predominantly negative and not evenly distributed around zero. This behavior is improved in the 3rd-order inversion, for which the residuals are smaller at low concentrations and more evenly distributed around zero. These results indicate that the 3rd-order expansion provides an improved description of the experimental data, particularly in the low-concentration regime. The APE inversion parameters and the fitted virial coefficients obtained under the best inversion conditions for this dataset, using Model 3 with the A0 correction and a third-order expansion, are presented in Table . General trends of the virial coefficients Regarding the virial coefficients obtained for both systems (RR120 and CO2 adsorption), the observed temperature dependence reflects the balance between intermolecular interactions and thermal effects. A decrease in the value of B1 (SVC) with increasing temperature is observed, which occurs due to the reduction in the adsorption energy. In particular, for the adsorption of RR120, which occurs in solution, the interactions between the adsorbate and the surface are more favorable than those between the dye molecules and the solvent. The negative values of C2 indicate that adsorption is dominated by repulsive interactions or competition for adsorption sites. This effect is more pronounced at lower temperatures, where reduced thermal motion enhances the influence of intermolecular interactions. As the temperature increases, thermal agitation weakens these interactions, leading to less negative values and indicating a shift toward entropy-dominated behavior. The stronger negativity observed in the aqueous phase suggests that additional factors such as solvation and steric constraints further enhance competitive effects compared to the gas phase. In contrast, the slightly positive values for D3 indicate that many-body correlations contribute cooperatively to adsorption. These correlations are more significant at lower temperatures, where structured arrangements of adsorbed molecules are more stable. As temperature increases, thermal motion disrupts these arrangements, reducing the magnitude of the third virial coefficient and indicating a diminished role of higher-order interactions. Sensitivity and robustness of model 3 To evaluate the sensitivity and robustness of Model 3, a series of analyses was performed. The adsorption dataset of Reactive Red 120 (RR120) on activated carbon (AC) was selected for this analysis because it contains the largest number of experimental data points among the datasets considered, providing a more rigorous test of the method. Furthermore, all calculations were carried out using the third-order expansion with the (A0) correction, as this configuration yielded the most accurate results in the previous analyses. The first assessment examined the dependence of the inversion procedure on the initial estimates of the nonlinear parameters, (ε) and (Ad). Since the remaining parameters enter the model linearly, they were determined directly using the Moore–Penrose pseudoinverse. A set of randomly generated initial guesses for (ε), ranging from 0.1 to 10 (kT), and (Ad), ranging from 0.01 to 1 (g-1 L), was employed, and the inversion procedure was repeated for each condition. The sensitivity analysis showed that the inversion results were remarkably insensitive to the initial estimates, since the standard deviation of ε/kT and Ad was only 9.93×10-8 and 1.31×10-6, respectively. These extremely small deviations demonstrate that the inversion converges to essentially the same solution over a broad range of initial estimates, indicating a very low sensitivity of the obtained APE parameters to the initial guesses. The robustness of Model 3 was further assessed by introducing controlled artificial noise into the experimental isotherm data for the adsorption of R120 onto AC. Normally distributed random errors corresponding to 1, 5, and 10 % of the experimental values were independently added to the original dataset. For each noise level, 100 perturbed isotherms were generated using randomly sampled errors, and the inversion procedure was subsequently performed for each realization. The mean values of the estimated parameters ε and Ad, together with their corresponding standard deviations, are presented in Table . As can be seen, the parameter ε, which represents the depth of the adsorption potential well, exhibits a high degree of stability with respect to the introduction of artificial noise. Its mean values remain close to the value obtained from the original experimental dataset, while the corresponding standard deviations remain relatively small even at the highest noise level considered. This behavior indicates that the estimation of the potential well depth is not significantly affected by moderate perturbations of the experimental data. In contrast, the parameter Ad exhibits a substantially larger dispersion as the noise level increases. This behavior is expected because Ad is defined as the product of two quantities, namely the surface area A and the minimum potential coordinate d. Consequently, variations in the experimental data can be propagated through this product, resulting in greater variability in the estimated value of Ad. This behavior is also consistent with the inherent characteristics of ill-posed inverse problems, for which different combinations of model parameters may provide similarly satisfactory descriptions of the available data. Therefore, the relatively large standard deviations observed for Ad should not necessarily be interpreted as a failure of the inversion procedure, but rather as an indication of the greater sensitivity of this composite parameter to perturbations in the input data. Despite this sensitivity, the overall quality of the inversions remains high, as indicated by the R2 and RMSD values obtained for the perturbed datasets. Even when artificial errors of up to 10 % were introduced, the inversion procedure continued to provide satisfactory fits to the resulting isotherms. This result demonstrates that Model 3 maintains its predictive capability under controlled perturbations of the experimental data. It is worth noting that the original experimental measurements already contain an intrinsic level of experimental uncertainty; therefore, the successful recovery of the adsorption parameters after the deliberate introduction of additional random errors provides further evidence of the numerical robustness of the proposed inversion procedure. If the model were highly unstable with respect to perturbations in the input data or strongly dependent on the particular realization of the experimental errors, substantial deterioration of the R2 and RMSD values would be expected as the noise level increased. The absence of such a pronounced deterioration supports the robustness of Model 3 against experimental data perturbations. To further assess the numerical stability of the inversion procedure, the condition number of the concentration matrix involved in the Moore-Penrose pseudoinverse was evaluated for each temperature. The condition number was calculated as κ(C(k))=σmax/σmin, where σmax and σmin are the largest and smallest singular values of C(k), respectively []. For the RR120/AC dataset with model 3, the condition numbers ranged from 6.79×103 to 3.33×104 across the investigated temperatures. These values indicate a moderately conditioned inversion problem, with the matrices remaining sufficiently far from numerical singularity. Therefore, although the polynomial structure of the concentration matrix introduces a certain degree of conditioning, the Moore–Penrose pseudoinverse does not lead to severe numerical instability for the dataset investigated. This result is consistent with the sensitivity and noise analyses presented above, which showed that the recovered parameters remain stable under changes in the initial estimates and perturbations of the experimental data. Conclusion In this work, a new methodology is proposed to determine the APE directly from adsorption isotherm data, based on Henry’s law adsorption. The traditional approach involves a two-step procedure, in which the SVC is first obtained from the isotherm data and subsequently used for inversion of the APE. However, due to the ill-posed nature of the problem, this approach introduces significant instability and error propagation during the inversion process. The proposed approach, referred as Model 3, formulates the problem as a tensorial contraction and was evaluated using three experimental datasets: adsorption of RR120 and PR-3B dyes on AC in aqueous solution and CO2 adsorption on AC in the gas phase. In all cases, increasing the polynomial order and including the baseline term A0 improved the inversion results. Although these modifications increase the number of model parameters, the use of adjusted R2 and RMSD, which penalize model complexity, confirms the improvement. Under these conditions, the method achieves R2∼0.99, consistent with the best-performing adsorption models. In contrast, Models 1 and 2, which rely on a two-step procedure, do not exhibit a consistent trend and, in some cases, yield inversion results with R2<0.7, highlighting the inherent instability of the approach.Additionally, Model 3 demonstrated robust performance in the presence of artificially introduced experimental errors and remarkable stability with respect to different initial estimates of the nonlinear parameters, supporting the reliability of the proposed inversion procedure. Overall, the results suggest that direct inversion of the APE within the isotherm fitting framework provides a more stable strategy for treating the inverse problem under the conditions investigated. By avoiding intermediate steps and reducing error propagation, the proposed methodology allows a consistent description of adsorption behavior for the studied systems. Nevertheless, the applicability of the approach depends on the availability of experimental adsorption isotherms that obey Henry’s law and contain a sufficient number of experimental points in the linear low-concentration region at different temperatures. Under these conditions, the methodology represents a promising framework for the determination of adsorption potential energies directly from experimental isotherm data. Footnotes