원시데이터 수집 시스템
선정목록으로

Hybrid Chemical and Data-Driven Model for Stiff Chemical Kinetics Using a Physics-Informed Neural Network

관련 엔지니어링 플라스틱 · (23) 컴파운드

기본 정보

저자
  1. Matthew Frankel — Fariborz Maseeh Department of Civil Architectural and Environmental Engineering, The University of Texas at Austin, Austin, TX 78712, USA
  2. Mario De Florio — Division of Applied Mathematics, Brown University, Providence, RI 02906, USA
  3. Enrico Schiassi — Department of Industrial Engineering, University of Bologna, 40126 Bologna, Italy
  4. Lina Sela — Fariborz Maseeh Department of Civil Architectural and Environmental Engineering, The University of Texas at Austin, Austin, TX 78712, USA
DOI
10.3390/engproc2024069040
저널
–
발행년도
2024
발행기관
–
피인용수
1
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.3390/engproc2024069040
토픽
Fuel Cells and Related Materials
OpenAlex ID
W4402200628

평가 내용

관련도
관련
사업분야
엔지니어링 플라스틱 · (23) 컴파운드
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '엔지니어링 플라스틱 > 컴파운드' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

Models of chemical kinetic processes, comprising systems of stiff ordinary differential equations (ODEs), are essential for modeling important chemical reactions relevant to drinking water chemistry, such as disinfectant decay and disinfection byproduct formation. However, the accuracy of these models can be inhibited by (1) the challenge of fully describing the chemical reaction system, and (2) additional chemical reactions occurring in actual environmental settings that were not accounted for in the laboratory conditions used to develop and calibrate the models. This study proposes the use of a Physics-Informed Neural Network framework, utilizing the eXtreme Theory of Functional Connections (X-TFC) technique to create a hybrid chemical- and data-driven model that incorporates data and the underlying system of ODEs into the trained model in order to increase the accuracy of the predicted chemical concentrations.

본문 11,728자

본문 펼치기
Models of chemical kinetic processes, comprising systems of stiff ordinary differential equations (ODEs), are essential for modeling important chemical reactions relevant to drinking water chemistry, such as disinfectant decay and disinfection byproduct formation.However, the accuracy of these models can be inhibited by (1) the challenge of fully describing the chemical reaction system, and (2) additional chemical reactions occurring in actual environmental settings that were not accounted for in the laboratory conditions used to develop and calibrate the models.This study proposes the use of a Physics-Informed Neural Network framework, utilizing the eXtreme Theory of Functional Connections (X-TFC) technique to create a hybrid chemical-and data-driven model that incorporates data and the underlying system of ODEs into the trained model in order to increase the accuracy of the predicted chemical concentrations. Introduction Key characteristics of water quality paramount for the protection of public health, such as decay of free chlorine, monochloramine, and formation of disinfection byproducts, can be modeled using a system of stiff ordinary differential equations (ODEs).Despite the widespread adoption of stiff chemical models, these may yield inaccurate results for two key reasons.First, some of the underlying chemical mechanisms occurring in the actual reaction scheme may not be discovered or fully described in the description of the chemical model [1].Second, additional reactions that occur in actual environmental systems may not have been accounted for in the laboratory conditions in which the model was developed [2]. Introduction Therefore, we propose a Physics-Informed Neural Network (PINN) framework based on the eXtreme Theory of Functional Connections (X-TFC), which has been demonstrated to effectively model stiff systems of chemical equations [3,4].Previous implementations for solving stiff ODEs use X-TFC as an equation-solving method rather than a predictive modeling tool [4].Therefore, the purpose of this work is to (1) expand the capabilities of the X-TFC framework by including pH, a key parameter that affects the rate of many aquatic chemical reactions, as a second input variable in order to predict chemical concentrations over a range of water quality conditions; and (2) incorporate data into the model training process.The outcome is a model that relies on the underlying system of chemical equations and data in order to increase prediction accuracy.We demonstrate the proposed method using a subset of the chemical model used to simulate the decay of monochloramine, a disinfectant used by approximately 25% of water utilities in the United States [5]. X-TFC Overview PINNs have been shown to have difficulty solving stiff systems of chemical equations with initial conditions due to competition between loss functions representing the initial conditions and gradient loss components [4].Therefore, we employ the X-TFC framework, which has been shown to effectively solve stiff systems of chemical equations with high accuracy and speed.The key feature of the X-TFC framework is the use of a constrained expression to analytically satisfy the initial conditions, thus eliminating the competition between different components in the loss function. X-TFC Overview Consider a system of constrained ODEs for different species and pH values with initial conditions: X-TFC Overview where i = 1, . . ., m is the species, y i (t) is the concentration of a chemical species i at time t, t 0 is the initial time, t f is the final time, and y i,0 and f i (t, y i , . . . ,y m ; ph) are the initial condition and rate expression of a chemical species i, respectively.In the X-TFC framework, the concentration of a species y i is with a constrained expression where y i ∼ = y ce = g(t; ph) + y(t 0 ; ph) − g(t 0 ; ph).Hence, when t = t 0 , the constrained expression is guaranteed to satisfy the initial conditions.The constrained expression is substituted back into the ODEs, resulting in a simplified unconstrained system of ODEs.The function g(t; ph) is defined as the free function, which in the X-TFC framework is approximated using a single-layer neural network (NN). Neural Network Architecture The single-layer NN, g(t; ph), has two inputs: time and pH.The number of outputs is equal to the number of chemical species included in the chemical system.The number of nodes in the hidden layer is a tunable hyperparameter.The tanh activation function, which was shown to be effective, is used [4].The values of t and ph are scaled to a domain of [0, 1] or [−1, 1] to coincide with the domain of the tanh activation function. Neural Network Loss Functions The loss function used to train the NN includes the gradient loss and, if partial data are available, the data loss components.The gradient loss incorporates information about the chemical kinetics by minimizing the mismatch between the time derivates, dy i (t;ph) dt , and rate of change, f i (t, y ce,i , . . . ,y ce,m ; ph).An additional data loss component is added for each species that has data available that minimizes the difference between the data, ∼ y i (t; ph), and NN prediction, y ce,i (t; ph). Neural Network Optimization The NN is trained via the extreme learning machine technique, in which the values of input weights and biases at each hidden node are randomly sampled from a uniform distribution between [−1,1] and held constant [6].The values of the output weights are tuned during model training.The NN is linear with respect to the output weights, enabling the use of iterative least squares regression to optimize the NN output weights extremely quickly. Results We demonstrate our proposed methodology using the first three reactions of the unified model of monochloramine decay [7].The reaction scheme contains four chemical species, monochloramine (NH 2 Cl), dichloramine, (NHCl 2 ), hypochlorous acid (HOCl), and ammonia (NH 3 ) [7].We train the proposed X-TFC model using the chemical equations for in-sample pH values and training data for a subset of species.Then, we evaluate the Eng.Proc.2024, 69, 40 3 of 4 performance of the trained model using out-of-sample pH values not used in training and compare the performance to hold-out species for which data were not included in the model training.In the X-TFC model, and in the figures below, the concentrations of the acid and base species (HOCl and NH 3 ) are represented by the total amount of conjugate acid and base for each species.The initial concentration of monochloramine was set as 4.22•10 −5 mol/L, corresponding to 3.0 mg/L as Cl 2 , which is a typical monochloramine concentration for treatment plant effluent entering a water distribution system [8].To generate data, we solved the system of equations with increased rate constants, which we consider to be the ground truth in this scenario.If implemented on a system with measured data, the measured data would be used instead. Results Figure 1 shows the results of the trained model, using data for TOTNH and TOTCl.In this figure, chemical model refers to the result of the chemical model with the original rate constants solved using ode15s, training data refers to data that were used to train the model for in-sample pH values, hold-out data refers to data for out-of-sample pH values, and hold-out species refers to species for which data were not included during training.Thus, the X-TFC model relies on the chemical model and data for a subset of chemical species to predict concentrations of species for which no data were incorporated into the training of the X-TFC model.The key finding is that the X-TFC model is able to accurately predict the concentrations of hold-out species NH 2 Cl for in-sample and out-of-sample pH values (solid lines align closely with dotted lines), even though no data were supplied for this species was included during model training. Results We demonstrate our proposed methodology using the first three reactions of the unified model of monochloramine decay [7].The reaction scheme contains four chemical species, monochloramine (NH2Cl), dichloramine, (NHCl2), hypochlorous acid (HOCl), and ammonia (NH3) [7].We train the proposed X-TFC model using the chemical equations for in-sample pH values and training data for a subset of species.Then, we evaluate the performance of the trained model using out-of-sample pH values not used in training and compare the performance to hold-out species for which data were not included in the model training.In the X-TFC model, and in the figures below, the concentrations of the acid and base species (HOCl and NH3) are represented by the total amount of conjugate acid and base for each species.The initial concentration of monochloramine was set as 4.22 • 10 mol/l, corresponding to 3.0 mg/L as Cl2, which is a typical monochloramine concentration for treatment plant effluent entering a water distribution system [8].To generate data, we solved the system of equations with increased rate constants, which we consider to be the ground truth in this scenario.If implemented on a system with measured data, the measured data would be used instead. Results Figure 1 shows the results of the trained X-TFC model, using data for TOTNH and TOTCl.In this figure, chemical model refers to the result of the chemical model with the original rate constants solved using ode15s, training data refers to data that were used to train the model for in-sample pH values, hold-out data refers to data for out-of-sample pH values, and hold-out species refers to species for which data were not included during training.Thus, the X-TFC model relies on the chemical model and data for a subset of chemical species to predict concentrations of species for which no data were incorporated into the training of the X-TFC model.The key finding is that the X-TFC model is able to accurately predict the concentrations of hold-out species NH2Cl for in-sample and out-of-sample pH values (solid lines align closely with dotted lines), even though no data were supplied for this species was included during model training. Discussion and Conclusions This work proposes a PINN-based modeling framework that improves the accuracy of chemical predictions for chemical systems, with multiple implications and opportunities for future work.We observed that the modeling framework is able to accurately predict the concentrations of hold-out species, as shown in Figure 1.However, the ability to Discussion and Conclusions This work proposes a PINN-based modeling framework that improves the accuracy of chemical predictions for chemical systems, with multiple implications and opportunities for future work.We observed that the modeling framework is able to accurately predict the concentrations of hold-out species, as shown in Figure 1.However, the ability to predict hold-out species is dependent on the dynamics of the chemical system and which species are used for training data.The proposed modeling framework could be expanded in many different directions, for example, coupling X-TFC with hydraulic models of a water distribution system to approximate chemical concentrations at a particular location within the system.In addition, because the X-TFC model trains extremely quickly (the training time for the X-TFC model shown in Figure 1 was under 5 s), there is potential to use the X-TFC model as a data assimilation technique for real-time predictions of water quality at unmeasured locations within a water distribution system.Opportunities for future Figure 1 . Figure 1.X-TFC model results using training data for TOTNH and TOTCl. Figure 1 . Figure 1.X-TFC model results using training data for TOTNH and TOTCl.

섹션 본문 17문단 · 11,446자

(제목 없음)

1Models of chemical kinetic processes, comprising systems of stiff ordinary differential equations (ODEs), are essential for modeling important chemical reactions relevant to drinking water chemistry, such as disinfectant decay and disinfection byproduct formation.However, the accuracy of these models can be inhibited by (1) the challenge of fully describing the chemical reaction system, and (2) additional chemical reactions occurring in actual environmental settings that were not accounted for in the laboratory conditions used to develop and calibrate the models.This study proposes the use of a Physics-Informed Neural Network framework, utilizing the eXtreme Theory of Functional Connections (X-TFC) technique to create a hybrid chemical-and data-driven model that incorporates data and the underlying system of ODEs into the trained model in order to increase the accuracy of the predicted chemical concentrations.

Introduction

2Key characteristics of water quality paramount for the protection of public health, such as decay of free chlorine, monochloramine, and formation of disinfection byproducts, can be modeled using a system of stiff ordinary differential equations (ODEs).Despite the widespread adoption of stiff chemical models, these may yield inaccurate results for two key reasons.First, some of the underlying chemical mechanisms occurring in the actual reaction scheme may not be discovered or fully described in the description of the chemical model [1].Second, additional reactions that occur in actual environmental systems may not have been accounted for in the laboratory conditions in which the model was developed [2].

3Therefore, we propose a Physics-Informed Neural Network (PINN) framework based on the eXtreme Theory of Functional Connections (X-TFC), which has been demonstrated to effectively model stiff systems of chemical equations [3,4].Previous implementations for solving stiff ODEs use X-TFC as an equation-solving method rather than a predictive modeling tool [4].Therefore, the purpose of this work is to (1) expand the capabilities of the X-TFC framework by including pH, a key parameter that affects the rate of many aquatic chemical reactions, as a second input variable in order to predict chemical concentrations over a range of water quality conditions; and (2) incorporate data into the model training process.The outcome is a model that relies on the underlying system of chemical equations and data in order to increase prediction accuracy.We demonstrate the proposed method using a subset of the chemical model used to simulate the decay of monochloramine, a disinfectant used by approximately 25% of water utilities in the United States [5].

X-TFC Overview

4PINNs have been shown to have difficulty solving stiff systems of chemical equations with initial conditions due to competition between loss functions representing the initial conditions and gradient loss components [4].Therefore, we employ the X-TFC framework, which has been shown to effectively solve stiff systems of chemical equations with high accuracy and speed.The key feature of the X-TFC framework is the use of a constrained expression to analytically satisfy the initial conditions, thus eliminating the competition between different components in the loss function.

5Consider a system of constrained ODEs for different species and pH values with initial conditions:

6where i = 1, . . ., m is the species, y i (t) is the concentration of a chemical species i at time t, t 0 is the initial time, t f is the final time, and y i,0 and f i (t, y i , . . . ,y m ; ph) are the initial condition and rate expression of a chemical species i, respectively.In the X-TFC framework, the concentration of a species y i is with a constrained expression where y i ∼ = y ce = g(t; ph) + y(t 0 ; ph) − g(t 0 ; ph).Hence, when t = t 0 , the constrained expression is guaranteed to satisfy the initial conditions.The constrained expression is substituted back into the ODEs, resulting in a simplified unconstrained system of ODEs.The function g(t; ph) is defined as the free function, which in the X-TFC framework is approximated using a single-layer neural network (NN).

Neural Network Architecture

7The single-layer NN, g(t; ph), has two inputs: time and pH.The number of outputs is equal to the number of chemical species included in the chemical system.The number of nodes in the hidden layer is a tunable hyperparameter.The tanh activation function, which was shown to be effective, is used [4].The values of t and ph are scaled to a domain of [0, 1] or [−1, 1] to coincide with the domain of the tanh activation function.

Neural Network Loss Functions

8The loss function used to train the NN includes the gradient loss and, if partial data are available, the data loss components.The gradient loss incorporates information about the chemical kinetics by minimizing the mismatch between the time derivates, dy i (t;ph) dt , and rate of change, f i (t, y ce,i , . . . ,y ce,m ; ph).An additional data loss component is added for each species that has data available that minimizes the difference between the data, ∼ y i (t; ph), and NN prediction, y ce,i (t; ph).

Neural Network Optimization

9The NN is trained via the extreme learning machine technique, in which the values of input weights and biases at each hidden node are randomly sampled from a uniform distribution between [−1,1] and held constant [6].The values of the output weights are tuned during model training.The NN is linear with respect to the output weights, enabling the use of iterative least squares regression to optimize the NN output weights extremely quickly.

Results

10We demonstrate our proposed methodology using the first three reactions of the unified model of monochloramine decay [7].The reaction scheme contains four chemical species, monochloramine (NH 2 Cl), dichloramine, (NHCl 2 ), hypochlorous acid (HOCl), and ammonia (NH 3 ) [7].We train the proposed X-TFC model using the chemical equations for in-sample pH values and training data for a subset of species.Then, we evaluate the Eng.Proc.2024, 69, 40 3 of 4 performance of the trained model using out-of-sample pH values not used in training and compare the performance to hold-out species for which data were not included in the model training.In the X-TFC model, and in the figures below, the concentrations of the acid and base species (HOCl and NH 3 ) are represented by the total amount of conjugate acid and base for each species.The initial concentration of monochloramine was set as 4.22•10 −5 mol/L, corresponding to 3.0 mg/L as Cl 2 , which is a typical monochloramine concentration for treatment plant effluent entering a water distribution system [8].To generate data, we solved the system of equations with increased rate constants, which we consider to be the ground truth in this scenario.If implemented on a system with measured data, the measured data would be used instead.

11Figure 1 shows the results of the trained model, using data for TOTNH and TOTCl.In this figure, chemical model refers to the result of the chemical model with the original rate constants solved using ode15s, training data refers to data that were used to train the model for in-sample pH values, hold-out data refers to data for out-of-sample pH values, and hold-out species refers to species for which data were not included during training.Thus, the X-TFC model relies on the chemical model and data for a subset of chemical species to predict concentrations of species for which no data were incorporated into the training of the X-TFC model.The key finding is that the X-TFC model is able to accurately predict the concentrations of hold-out species NH 2 Cl for in-sample and out-of-sample pH values (solid lines align closely with dotted lines), even though no data were supplied for this species was included during model training.

12We demonstrate our proposed methodology using the first three reactions of the unified model of monochloramine decay [7].The reaction scheme contains four chemical species, monochloramine (NH2Cl), dichloramine, (NHCl2), hypochlorous acid (HOCl), and ammonia (NH3) [7].We train the proposed X-TFC model using the chemical equations for in-sample pH values and training data for a subset of species.Then, we evaluate the performance of the trained model using out-of-sample pH values not used in training and compare the performance to hold-out species for which data were not included in the model training.In the X-TFC model, and in the figures below, the concentrations of the acid and base species (HOCl and NH3) are represented by the total amount of conjugate acid and base for each species.The initial concentration of monochloramine was set as 4.22 • 10 mol/l, corresponding to 3.0 mg/L as Cl2, which is a typical monochloramine concentration for treatment plant effluent entering a water distribution system [8].To generate data, we solved the system of equations with increased rate constants, which we consider to be the ground truth in this scenario.If implemented on a system with measured data, the measured data would be used instead.

13Figure 1 shows the results of the trained X-TFC model, using data for TOTNH and TOTCl.In this figure, chemical model refers to the result of the chemical model with the original rate constants solved using ode15s, training data refers to data that were used to train the model for in-sample pH values, hold-out data refers to data for out-of-sample pH values, and hold-out species refers to species for which data were not included during training.Thus, the X-TFC model relies on the chemical model and data for a subset of chemical species to predict concentrations of species for which no data were incorporated into the training of the X-TFC model.The key finding is that the X-TFC model is able to accurately predict the concentrations of hold-out species NH2Cl for in-sample and out-of-sample pH values (solid lines align closely with dotted lines), even though no data were supplied for this species was included during model training.

Discussion and Conclusions

14This work proposes a PINN-based modeling framework that improves the accuracy of chemical predictions for chemical systems, with multiple implications and opportunities for future work.We observed that the modeling framework is able to accurately predict the concentrations of hold-out species, as shown in Figure 1.However, the ability to

15This work proposes a PINN-based modeling framework that improves the accuracy of chemical predictions for chemical systems, with multiple implications and opportunities for future work.We observed that the modeling framework is able to accurately predict the concentrations of hold-out species, as shown in Figure 1.However, the ability to predict hold-out species is dependent on the dynamics of the chemical system and which species are used for training data.The proposed modeling framework could be expanded in many different directions, for example, coupling X-TFC with hydraulic models of a water distribution system to approximate chemical concentrations at a particular location within the system.In addition, because the X-TFC model trains extremely quickly (the training time for the X-TFC model shown in Figure 1 was under 5 s), there is potential to use the X-TFC model as a data assimilation technique for real-time predictions of water quality at unmeasured locations within a water distribution system.Opportunities for future

Figure 1 .

16Figure 1.X-TFC model results using training data for TOTNH and TOTCl.

17Figure 1.X-TFC model results using training data for TOTNH and TOTCl.

참고문헌 6건

  1. Reaction scheme for the chlorination of ammoniacal water Environmental Science & Technology · American Chemical Society · 1992 10.1021/es00027a022
  2. Trends in extreme learning machines: A review Neural Networks · Elsevier BV · 2014 10.1016/j.neunet.2014.10.001
  3. Updated Reaction Pathway for Dichloramine Decomposition: Formation of Reactive Nitrogen Species and <i>N</i>-Nitrosodimethylamine Environmental Science & Technology · American Chemical Society · 2021 10.1021/acs.est.0c06456
  4. Physics-informed machine learning Nature Reviews Physics · Nature Portfolio · 2021 10.1038/s42254-021-00314-5
  5. Forecasting point-of-consumption chlorine residual in refugee settlements using ensembles of artificial neural networks npj Clean Water · Nature Portfolio · 2021 10.1038/s41545-021-00125-2
  6. Physics-informed neural networks and functional interpolation for stiff chemical kinetics Chaos An Interdisciplinary Journal of Nonlinear Science · American Institute of Physics · 2022 10.1063/5.0086649