Patent information
IP India · live recordAbstract
Disclosed are techniques to improve an accuracy of an output (fsim ) of a simulation tool (2). Said simulation tool (2) is adapted to take a first set of input parameters and generate the output from partially known physics model ( 3). The processor (1) is configured to obtain a first output (f) from a first neural network (4) based on the first set of input parameters. The processor obtains a second output (fcorrected ) from a second neural network (5) based on a second set of input-parameters, and improves the accuracy of the output of the simulation tool (2) by optimizing a cost function, said cost function obtained from the first output (f), the second output (fcorrected ) and the output of the simulation tool (2) (fsim ).
Applicants
2Inventors
2Claims
10Specification
Show full textCollapse
Description:Complete Specification: The following specification describes and ascertains the nature of this invention and the manner in which it is to be performed Field of the invention The present disclosure relates to a processor to improve an accuracy of an output of a simulation tool
Background of the invention In most of the scenarios the simulation tools such as ANSYS, COMSOL, Simulink, GTE Suite simulates a system for a predefined purpose with an accepted level of accuracy. At times however, this accuracy falls short. This mostly happens in situations where the considered physical models in the tool don’t account for the complete dynamics of the actual system it aims to model. For example, if a Simulation tool is based on a model that only considers a linear behavior of a system or a physical process, the tool will be able to model accurately the linear behavior of the system/process but will fall short in accuracy for modelling the nonlinear dynamics of the system/process. In the prior art, hidden physics models (HPM) address issues where models fall short of capturing the complete dynamics of the underlying system. Hidden Physics Models are data-efficient learning machines capable of leveraging the underlying laws of physics, expressed by time dependent and nonlinear partial differential equations, to extract patterns from high-dimensional data generated from experiments. The proposed methodology may be applied to the problem of learning, system identification, or data-driven discovery of partial differential equations. These hidden physics models only require partial knowledge of the physical system. Further these models are not trained for all possible inputs, parameters and domain configurations. The proposed disclosure the model which is motivated by architecture of HPM which can be used to improve the simulation results coming from a simulation toolbox. In the simulation toolbox, some underlying physical equations get solved. But the underlying equations may not be available or visible to the user of the toolbox. Hence if the accuracy of the simulated output falls short of expectations there’s no possibility to analyze the reason behind it, as the physical equations which were used for the simulation is not made available to the user. So the problem is from two fronts, firstly, neither does the user know the exact equations which were getting solved in the simulation toolbox, second the equations which were being considered in the toolbox are deficient in describing the system, hence the lack of accuracy in the simulation results. The proposal discloses a way to solve this critical issue by a pair of neural networks, where one network is used to represent the unknown state/system and another neural network represents the error or the required correction of the simulation output from the simulation tool (assuming that simulation was performed using deficient equations, hence requiring corrections) .
Brief description of the accompanying drawings An embodiment of the invention is described with reference to the following accompanying drawings: Figure 1 depicts a processor to improve an accuracy of an output of a simulation tool Figure 2 depicts a flowchart for a method to improve an accuracy of an output of a simulation tool
Detailed description of the drawings The present disclosure discloses techniques to improve an accuracy of a simulation tool. Assuming K(f,?^l f,x_1,x_2…x_n,?,s)=0 represents the model which is used within the simulation tool wherein, for any variable x_1,x_2,…,x_n, parameters ?, source term s, system equation K, gives the simulation result ??.It might be the case that the simulation result may not match the reality therefore, it is referred to as a partially known physics model. It should be noted here that the exact mathematical form of this equation is assumed to be unavailable to a user. It is assumed that there is an underlying physical equation (however deficient) which gets solved by the simulation toolbox. The equation considered in the simulation tool K(f,?^l f,x_1,x_2…x_n,?,s)=0 , doesn’t fully account for the system dynamics. The actual governing equation may be K(f,?^l f,x_1,x_2…x_n,?,s)+N(f,?^l f,x_1,x_2…x_n )=0, where N(f,?^l f,x_1,x_2…x_n ) represents the hidden part of the equation that was nottaken into account by the simulation tool, leading to the deficiency in expected accuracy of the prediction. The actual solution (??) therefore should be ?? = fsim + fcorrected , wherein, fsim is the output from the simulation tool and fcorrected is the correction part of the solution.
In the present disclosure, two trained neural networks are used, a first neural network approximates actual solution (??) of an equation for a physical process and a second neural network approximates a correction part (fcorrected) of the simulation output. If the approximated output from the first neural network is f and the second Neural network is fcorrected, then the residual R becomes R = f - (fcorrected + fsim ). In an ideal situation the residual R ? 0. The output (f ) from the first neural network should be equal to the sum of the corrected output from the second neural network and output of the simulation tool (fsim ) , i.e. f = fsim + fcorrected . Therefore, in order to improve the accuracy of the simulation tool, the outputs from the two neural networks (as explained above) will be used along with the output from the simulation tool. A cost function will be obtained based on the outputs f, fcorrected and fsim which will be minimized by tuning the parameters (weights and biases) of the neural networks. In neural networks, a cost function (also known as the loss function) measures how well the model's predictions match the actual target values. It quantifies the error between the predicted outputs and the true labels, guiding the optimization process to improve the model's performance during training. The said cost function will be given by : Cost function = ?_(i=1)^N¦[f(x_i )-f^* (x_i )]^2 + ?_(j=1)^M¦[f(x_j )-(f_sim (x_j )+f_corrected (x_j ))]^2 wherein, f^* (x) is a ground truth or a known output from the measurement. Here it should be noted that the first part of the cost function embodies the information from the measurement data f^* (x). The second part of the cost function embodies the information from the simulation tool f_sim (x_j ) as well. Hence the final solution utilizes information from both the measurement data as well as information from simulated outputs. The present invention will now be described by way of example, with reference to accompanying drawings. Throughout all the figures, same or corresponding elements may generally be indicated by same reference numerals. These depicted embodiments are to be understood as illustrative of the invention and not as limiting in any way. It should also be understood that the figures are not necessarily to scale and that the embodiments are sometimes illustrated by graphic symbols, phantom lines, diagrammatic representations, and fragmentary views. In predetermined instances, details which are not necessary for an understanding of the present invention, or which render other details difficult to perceive may have been omitted. Further, the principles and techniques widely known in the art to implement the present disclosure are not described in detail. Referring to Figure 1, the same depicts a processor (1) to improve an accuracy of an output (??sim), of a simulation tool (2) said simulation tool (2) adapted to take a first set of input parameters and generate the output ??sim by means of partially known physics model (3).
According to the present invention, the processor (1) contains several components that work together to execute instructions and to train and store neural networks. These components ensure that software runs efficiently, handles data processing tasks, and interacts with other hardware. According to an example, the processor (1) contains an Arithmetic Logic Unit (ALU) to arithmetic (addition, subtraction, multiplication, division) and logical (AND, OR, NOT, XOR) operations, a control Unit (CU) to direct the operation of the processor (1) by fetching instructions from memory, decoding them, and executing them, Registers including General-purpose registers and special-purpose registers. It further comprises memory (volatile or non-volatile), a Bus Interface Unit to manage data transfer between the CPU and other components, such as memory and I/O devices. The processor (1) may include processors with multiple cores, each capable of executing instructions independently. According to an example, said processor (1) maybe a virtual processor (1) (vCPUs) that can be stored and utilized in the cloud as part of cloud computing services provided by various cloud providers. The processor (1) is adapted to store and run simulation tools such as ANSYS, COMSOL, Simulink, GTE Suite, as known in the art. According to the present invention, said processor (1) is configured to obtain a first output (f) from a first neural network (4) based on the first set of input-parameters. Said first set of input parameters comprise at least one value for at least one variable (x1, x2, …, xn) of a function f (x1, x2, …, xn). Said Partially known physics model (3) comprises a system equation K(f,?^l f,x_1,x_2…x_n,?,s). Here K is another function with N variables, namely ( x1, x2, …, xn).
According to an example, a physical model in a simulation tool (2) gives an output fsim when ‘n’ values for variables (x_1,x_2,…,x_n) are given. The same can be represented by the equation : K(f_sim,?^l f_sim,x_1,x_2…x_n,?,s)=0 where K is the another function.
The first neural network (4) predicts an output f based on ‘n’ values given for variable (x_1,x_2,…,x_n).
The processor (1) is configured to obtain a second output fcorrected from a second neural network (5) based on a second set of input-parameters. Said second set of input parameters comprises the first set of input-parameters (x_1,x_2,…,x_n), the first output f from first neural network and a derived set of parameters derived from the first output f and the derivatives of function f (x1, x2, …, xn).
While the first neural network (4) is used to represent solution of state/system , the second neural network (5) predict the correction for the simulation tool (2) .
Therefore, the second neural network (5) takes the first output (f ) from the first neural network (4) along with the input variables (x_1,x_2,…,x_n) as second input parameters. Additionally, the second input parameters may also include the derivatives of the f. According to an example, these derivatives are derivatives upto kth order (dkf/dxk1 , dkf/dxk2, …, dkf/xkn ) of the function f . The derivatives of can be obtained by utilizing the automatic differentiation technique inbuilt in neural networks, also known as ‘autograd’. According to the present disclosure, the processor (1) is configured to improve the accuracy of the output of the simulation tool (2) by optimizing a cost function, said cost function obtained from the first network (4) output (f ), the output (fcorrected) and the output of the simulation tool (2) (fsim). According to the present invention, the cost function is obtained based on a difference between the first output (f ) and a corrected output (fcorrected) added with simulation tool output (fsim ).
The cost function can be represented as follows : Cost function = ?_(i=1)^N¦[f(x_i )-f^* (x_i )]^2 + ?_(j=1)^M¦[f(x_j )-(f_sim (x_j )+f_corrected (x_j ))]^2 wherein, f* is a known output or ground truth given to train the neural networks. A person skilled in the art will appreciate that the former part of the Cost function {?_(i=1)^N¦[f(x_i )-f^* (x_i )]^2 } embeds information from the measurements f^* (x_i ), and the later part of the Cost function {?_(j=1)^M¦[f(x_j )-(f_sim (x_j )+f_corrected (x_j ))]^2 } embeds the information from the simulation tool (f_sim (x_j ). The parameters of both the neural networks can be learned simultaneously by minimizing Cost function. According to the present invention, the first neural network (4) is trained by a known-set of input-parameters and a known-output (f*). The second neural network (5) is trained by the known set of input-parameters, the known output, and a known set of derived parameters derived from the known output, also may include derivatives of the function f. A known data (known input parameters and known-output from the known-input parameters) may be experimentally/empirically or mathematically obtained based upon the underlying process/system that the simulation tool (2) simulates (actual known data is not from simulation rather coming from experiment/mathematically).
Referring to Figure 2, the same depicts a flowchart for a method (100) to improve an accuracy of an output fsim of a simulation tool (2) . Said simulation tool (2) is adapted to take a first set of input parameters and generate the output by means of a partially known physics model It is to be understood that the method (100) may be implemented by the processor (1) as described in Figure 1. The method comprises several step. The first step (101) is obtaining a first output (f) from a first neural network (4) based on the first set of input-parameters. Said first set of input parameters comprises at least one value for at least one variable (x1, x2, …, xn) of a function (f(x1, x2, …, xn). Said partially known physics model (3) comprises the said function (f(x1, x2, …, xn)). According to the invention, the second step (102) is obtaining a second output fcorrected from a second neural network (5) based on a second set of input-parameters. Said second set of input-parameters comprises the first set of input-parameters (x1, x2, …, xn), the first output (f ), and a derived set of parameters derived from the first output (f) and the derivatives of the function (f(x1, x2, …, xn). The third step (103) is improving the accuracy of the output of the simulation tool (2) by optimizing a cost function, said cost function obtained by means of the first output (f ), the second output (fcorrected) and the output of the simulation tool (2) (fsim). According to the present invention, the first neural network (4) and the second neural network (5) is trained simultaneously by minimizing Cost function. The first network learned by a known-set of input-parameters and a known-output (f^*). The second neural network (5) is learned by the known set of input-parameters, the known output, and a known set of derived parameters derived from the known output and the derivatives of the function. A known data (known input parameters and known output from the known input parameters) may be experimentally/empirically or mathematically obtained based upon the underlying process/system that the simulation tool (2) simulates (actual known data is not from simulation rather coming from experiment/mathematically). , Claims:1. A processor (1) to improve an accuracy of an output (fsim ) of a simulation tool (2) , said simulation tool (2) adapted to take a first set of input parameters and generate the output by means of a partially known physics model (3 ), the processor (1) configured to: -obtain a first output (f) from a first neural network (4) based on the first set of input-parameters, characterized in that, -obtain a second output (fcorrection) from a second neural network (5) based on a second set of input-parameters, and -improve the accuracy of the output of the simulation tool (2) by optimizing a cost function, said cost function obtained from the first output (f), the second output (fcorrected ) and the output (fsim ) of the simulation tool (2) .
2. The processor (1) as claimed in Claim 1, wherein, said first set of input parameters comprise at least one value for at least one variable (x1, x2, …, xn) of a function (f(x1, x2, …, xn)), said partially known physics model (3) comprising said function (f(x1, x2, …, xn)).
3. The processor (1) as claimed in claim 2, wherein, said second set of input parameters comprises:
-the first set of input-parameters (x1, x2, …, xn), -the first output (f), and - a derived set of parameters derived from the first output (f) and the derivatives of the function(f(x1, x2, …, xn)).
4. The processor (1) as claimed in Claim 2, wherein, the first neural network (4) is trained by a known-set of input-parameters and a known-output.
5. The processor (1) as claimed in Claim 2, wherein, the second neural network (5) is trained by : -the known set of input-parameters, -the known output, and -a known set of derived parameters derived from the known output and the derivatives of the function (f (x1, x2, …, xn)).
6. The processor (1) as claimed in Claim 1, wherein, the cost function is obtained based on a difference between the first output and a corrected output.
7. The processor (1) as claimed in Claim 6, wherein, said corrected output obtained from a sum of the second output and the output from the simulation tool (2) .
8. A method to improve an accuracy of an output of a simulation tool (2) , said simulation tool (2) adapted to take a first set of input parameters and generate the output by means of a hidden physics model, the method comprising the steps of:
-obtaining a first output from a first neural network (4) based on the first set of input-parameters, said first set of input parameters comprising at least one value for at least one variable (x1, x2, …, xn) of a function (f(x1, x2, …, xn)), said partially known physics model (3) comprising said function (f(x1, x2, …, xn)). characterized in that,
-obtaining a second output from a second neural network (5) based on a second set of input-parameters, said second set of input-parameters comprising : - -the first set of input-parameters (x1, x2, …, xn), -the first output (f), and - a derived set of parameters derived from the first output (f) and the derivatives of the function (f(x1, x2, …, xn)). -improving the accuracy of the output of the simulation tool (2) by optimizing a cost function, said cost function obtained by means of the first output, the second output and the output of the simulation tool (2) .
9. The method as claimed in Claim 7, wherein, training the first neural network (4) by a known set of input-parameters and a known output.
10. The method as claimed in Claim 1, wherein, training the second neural network (5) by : -the known set of input-parameters, -the known output, and -a known set of derived parameters derived from the known output and the derivatives of the function (f(x1, x2, …, xn)).