Genesis GV80 SUV Quickly Has Validated Brand’s Luxury Chops
Jun 22, 2023The principles Protective Multiple Earthing (PME)
Aug 17, 2023S&C Launches Vista® Underground Distribution Switchgear Load
Jun 25, 2023Tax breaks to help you make your home more energy
Jun 26, 2023Electrical conduction and noise spectroscopy of sodium
Aug 01, 2023FDM data driven U
Scientific Reports volume 13, Article number: 9116 (2023) Cite this article
Metrics details
Efficient solution of partial differential equations (PDEs) of physical laws is of interest for manifold applications in computer science and image analysis. However, conventional domain discretization techniques for numerical solving PDEs such as Finite Difference (FDM), Finite Element (FEM) methods are unsuitable for real-time applications and are also quite laborious in adaptation to new applications, especially for non-experts in numerical mathematics and computational modeling. More recently, alternative approaches to solving PDEs using the so-called Physically Informed Neural Networks (PINNs) received increasing attention because of their straightforward application to new data and potentially more efficient performance. In this work, we present a novel data-driven approach to solve 2D Laplace PDE with arbitrary boundary conditions using deep learning models trained on a large set of reference FDM solutions. Our experimental results show that both forward and inverse 2D Laplace problems can efficiently be solved using the proposed PINN approach with nearly real-time performance and average accuracy of 94% for different types of boundary value problems compared to FDM. In summary, our deep learning based PINN PDE solver provides an efficient tool with various applications in image analysis and computational simulation of image-based physical boundary value problems.
Rapid advances in biomedical imaging lead to the generation of ever-expanding amounts of image data. In many applications, image analysis is mainly restricted to the derivation of relatively simple quantitative descriptors of targeted structures such as color, volume, area, and shape. However, image series can also provide deeper insights into underlying physical properties and behavior that stand behind dynamic changes of optically monitored biological structures1,2,3.
In general, consistent physics-based modeling requires a numerical solution of a boundary value problem (BVP) which is given by the governing partial differential equation (PDE) or constitutive law (e.g., equations of continuum mechanics, fluid dynamics, diffusion) and prescribed boundary conditions. For this task, conventional domain discretization techniques such as Finite Difference (FDM)4, Finite Element (FEM)5, Boundary Element (BEM)6, and mesh-free methods7 were frequently used in the context of biomedical applications8,9. Conventional numerical techniques are, however, not suitable for real-time applications and also require advanced skills for adaptation to new data and research goals. To reduce the computational demand on conventional numerical solvers, several approaches have been studied including surrogate10,11, model order reduction12,13,14,15,16,17, or multigrid techniques18,19,20. Although these advanced methods are capable of reducing computational costs, they do not capture the entire spectrum of computational tasks including real-time, inverse, and/or non-linear problems that are not yet satisfactorily addressed in many interdisciplinary and, in particular, biomedical applications. In recent years, alternative approaches to solving physics and image-based BVPs using data-driven neural network models enjoyed increasing popularity. The so-called Physically Informed Neural Networks (PINNs)21 trained on a large amount of representative data learn to infer complex physical relationships directly from data. With a sufficient amount of available data, PINNs can establish a mapping between the input and the output data (e.g., source and target images) without embedding the physical laws directly into neural networks. Being capable of overcoming one of the major technical burdens of numerical modeling, a laborious and error-prone discretization of complex spatial-temporal domains, PINNs hold a promise to bridge a gap between large data and sophisticated mechanism-based modeling with nearly real-time performance. Moreover, the spectrum of applicability of PINNs covers not only forward but also even more computationally challenging inverse problems21,22,23,24,25,26. In recent years, many approaches to the data-driven approximation of physical mechanisms using deep neural networks were reported18,19,27,28,29,30, and works19,30 investigate the problem using CNNs. Convolutional Neural Networks (CNNs)31 are known to show superior performance compared to conventional methods and sparse neural network techniques, especially by application to computer vision problems that require higher-order cognitive abilities. The Deep Learning coding platforms like Tensorflow, PyTorch, and Keras are meanwhile widely used among the AI community.
However, most known PINN frameworks are mostly available with special software platforms DeepXDE32, Nvidia SimNet33, NeuroDiffEq34, which lacks flexible definition and solution of physical BVPs on arbitrary image domains. The GPU-based numerical simulation platforms based on conventional approaches like NiftySim35, and SoFa36 are applications specific that requires different implementations for different problems.
In this work, we aim to investigate the capability of deep learning methods to effectively solve an image and physics-based BVP with arbitrary boundary conditions. In particular, here we rely on the basic network architecture of U-Net, which was originally developed for a broad range of image segmentation problems37. In contrast to image segmentation problems, solving physical BVPs implies multi-class or, more general, optimization problems. Consequently, two modifications of the U-Net with multi-class and custom loss functions were introduced and trained on a large set of reference FDM solutions of the 2D Laplace PDE.
Our manuscript presents a theoretical and experimental framework of this is structured as follows. First, we describe the numerical FDM scheme which was used for solving 2D Laplace problems and generation of a large set of reference images for subsequent training of deep learning models. Then, the results of the PINN model performance by application to forward and inverse 2D Laplace problems are presented and compared with the reference FDM solutions. Our experimental results show that our PINN models are capable of resembling conventional numerical solutions for new unseen data with remarkable accuracy. Finally, present limitations and further improvements of our PINN approaches are discussed.
In this work, we focus on the solution of the 2D Laplace partial differential equation (PDE), which arises in mathematical physics through the description of problems of heat propagation and diffusion. The 2D Laplace PDE belongs to the category of elliptic PDEs of the second order:
where \(u=u(x,y)\) is a scalar variable defined on a 2D spatial domain, and, thus, in general, a function of coordinate. Non-trivial solutions of Eq. (1) with the zero right-hand sides exist only if non-zero values of \(u = u_{D} \ne 0\) are defined on some parts of the spatial domain \(\Omega _D \in \Omega\). Often, the prescribed values of u are defined on some external or internal boundaries \(\Gamma \subset \Omega\). Such boundary conditions are known as Dirichlet boundary conditions. The problem of finding a solution to the PDE for the given boundary conditions is termed the Boundary Value Problem (BVP).
Analytical solutions of Eq. (1) are known only for some spatial cases of particularly simple (symmetric) boundary conditions. One such special case is a solution of the inhomogeneous Laplace PDE with the right-hand side in form of the Dirac point function:
where \(r(x,y)-r'(x',y')\) is a vector pointing from the coordinate \((x',y')\), where the Dirac impulse was applied, to some other coordinate (x, y) of the infinite 2D domain \(\Omega\). The solution of Eq. (2) also known as the fundamental solution of 2D Laplace PDE is given by38
The BVP defined by Eq. (1) with arbitrary boundary conditions can, in general, be solved only numerically.
In this work, the Finite Different Method on the regular 2D image grid is applied for this purpose. In particular, FDM approximates the derivatives by differences between the variable values between neighbor grid nodes, i.e.
Accordingly, the FDM equation of the second-order 2D Laplace PDE on the regular grid of image nodes (i.e. pixels) takes the form:
where (i, j) are indices of image pixels in the Euclidean system coordinate (XY). Consideration of Eq. (5) for all image pixels leads to a linear system of equations for unknown nodal values \(u_{ij}\), which after implementation of known nodal values (i.e. prescribed Dirichlet boundary conditions) can be compactly written in a matrix form as follows:
where A is a symmetric and positive definite matrix and b is the right-hand side vector resulting from the implementation of known values of u.
In this work, the FDM discretization of Eq. (5), its assembly into Eq. (6) followed by a subsequent numerical solution using the Preconditioned Conjugate Gradient (PCG) method was implemented under MATLAB 2021a. The FDM solver implemented as described above was firstly evaluated by a direct comparison vs. the exact analytic solution of the 2D Laplace PDE [i.e. the fundamental solution in Eq. (3)] and then applied for solving of BVPs arbitrary boundary conditions.
To appropriately train the PINN model to accurately emulate solutions of the 2D Laplace PDE for arbitrary boundary conditions, a large set of pairwise reference BVP images and their FDM solutions has to be generated. For this purpose, a set of BVP images with different geometrical patterns of Dirichlet domains and distributions of prescribed values on these subdomains was generated. For the definition of different geometrical patterns different shape primitives such as blobs, points, lines, triangles, rectangles, circles, etc., and their random variations and perturbations of scale and location were used. In the next step, prescribed values of \(u\in [25,255]\) were assigned to pixels of each geometrical pattern. By constructing the distribution of prescribed values several perturbation strategies were used. First, strategy is based on the generation of constant, gradient, or random values. The next factor influencing the distribution was the randomization of the parameters of these distributions. For example, in the case of gradient patterns, the direction and the magnitude of the gradient were randomized within a range of some admissible bounds.
Our approach to emulation of 2D Laplace PDE using a PINN model is based on the adaptation of the U-Net image segmentation framework. However, in contrast to typical image segmentation tasks solving continuous physical BVPs requires the introduction of suitable loss functions. Here, we use and investigate the performance of U-Net with two alternative loss functions including (i) multi-class Sparse Categorical Entropy (SCE) (Eq. 7) and (ii) the Mean Squared Error (MSE) (Eq. 8):
where \(z_{i,j}\) indicates whether the i-th pixel is classified correctly for the given class label j, \(p_{i,j}\) is the confidence score of the classification, N is the number of pixels and M is the number of classes, and
where \(q_i^*\) is the ground truth value on the i-th image pixel , \(q_i\) is the predicted value for the given network parameter \(\theta\) and N is the number of image pixels. Accordingly, these two U-Net modifications are further termed MC U-Net and MSE U-Net.
In addition, the entire U-Net architecture has to be modified to achieve good performance by solving physical BVPs. The modifications of the original U-Net are as follows. The dropout layers have been replaced with batch normalization layers in our study. Batch normalization standardizes the input for every mini-batch which increases the stability and the speed of the training of models. Without batch normalization, When there is a change in the input distribution to the model, the hidden layers try to adapt to the new distribution thus causing an internal covariate shift39. The modifications of the U-Net architecture introduced in this work are summarized in Table 1.
Forward models are trained to predict the FDM solutions of BVPs given by the 2D Laplace PDE with prescribed boundary conditions. For training forward models, input data were defined by synthetic BVP images generated as described above, while output data is given by FDM solution of BVP images. Consequently, the forward models were trained to correctly assign the intensity values of image pixels to one of a total of 256 possible classes (i.e. intensity values) of 8-bit images. Such a model is purely data-driven and does not explicitly include physical equations as a part of cost functions.
Inverse models are trained by reversing input and output datasets that were used for forward model training. Consequently, the inverse models aimed to learn how to reconstruct the original BVP image from its (FDM) solution.
Both forward and inverse PINN models were developed under Python 3.8 using TensorFlow40 with Keras API. Furthermore, some image processing operations such as reading and training data preparation were done using PIL, NumPy41, and Scikit-image42. Followed by, PINN models were trained on a GPU machine with a Linux operating system (Intel(R) Core (TM) i7-10700K CPU @3.80 GHZ) and NVIDIA RTX 3090-24GB graphic card. Regarding model training configuration, prepared datasets were partitioned into training and validation in the ratio of 85:15 respectively based on our experiences and previous studies43,44. The initial weights of the PINN model were defined randomly with zero mean and standard deviation of 0.05, as proposed by45. Here, Adam optimizer46 is used to optimize the model and to improve the performance on training datasets. Then MC U-Net models were trained for 500 epochs with 24 convolutional channel features with a learning rate of 0.0001 and a batch size of 256 and the MSE U-Net models were trained for 2000 epochs with 24 convolutional channel features with a learning rate of 0.0001 and a batch size of 128.
The predictions of forward and inverse PINN models (\(I_{\text {PINN}}\)) are validated by direct comparison with reference FDM solutions (\(I_{\text {FDM}}\)). To account for admissible differences due to rounding of floating point values to integer-valued image intensities, differences of up to one intensity value (i.e. deviations of plus-minus one segmentation class) were tolerated, i.e.
The performance of PINN models vs. FDM solutions was evaluated using conventional derivatives of the multi-class confusion matrix, which in our case counts 256 classes (i.e. intensity values of an 8-bit image). The same metrics have been used to evaluate the MSE U-Net models as the results are 8-bit images and the pixel values rounded to the nearest integer value. In particular, accuracy and F1 score were assessed for every test image:
where Precision and Sensitivity are
In addition, the Mean Absolute Error (MAE) and Mean Squared Error (MSE) of all image pixels were computed:
where \(p_i^*\) is the ground truth value on i-th image pixel and \(p_i\) is the prediction value. Particularly large outliers of the PINN predictions were localized by thresholding the difference between the FDM and PINN solutions:
The reference set of numerical solutions of the 2D Laplace PDE was generated using the Finite Difference Method as described in the Methods section. To validate the accuracy of the FDM solver, numerical solutions were compared vs. the fundamental solution of the 2D Laplace PDE, see Eq. (3). For this purpose, analytical and numerical solutions were computed for a quadratic subdomain \(\Omega\) of the infinite medium \(\Omega _{\text {inf}}\) which does not include the source point (\(|r-r'|>0\,,\forall r(x,y) \in \Omega\)), where the fundamental solution exhibits a singular behavior (\(u(r=r') \rightarrow \infty\)), see Fig. 1. The validation of the FDM solution vs. the fundamental solution of the 2D Laplace PDE was performed for the inner points of the subdomain \(r(x,y)\in \Omega \backslash \Gamma\) only. The boundary values of the fundamental solution \(u(r(x,y)),\,r(x,y)\in \Gamma\) we used as prescribed boundary conditions for subsequent computation of the FDM solution inside \(r(x,y)\in \Omega \backslash \Gamma\). The theoretical basis for this approach is given by the Gaussian integral theorem, which states that the solution inside of a closed spatial domain is uniquely defined by its boundary values.
Validation of FDM solution vs. analytical (fundamental) solution of the 2D Laplace PDE u(r(x, y)) is performed for the quadratic subdomain \(r(x,y)\in \Omega\) of the infinite medium \(\Omega _{\text {inf}}\). For validation, only inner points (i.e. inner image pixels) \(r(x,y)\in \Omega \backslash \Gamma\) were considered, while the boundary values were set equal to the fundamental solution \(u(r(x,y))=u_{\text {fs}},~r(x,y)\in \Gamma\) and used as boundary conditions for computing the FDM solution on inner domain nodes.
Figure 2 shows a comparison of the analytical solution vs. FDM calculated on the 128 \(\times\) 128 image grid of the subdomain \(\Omega\). As one can see, the absolute difference between the fundamental and FDM solutions amounts up to \(1\text {e-}5\) reaching the maximum in the vicinity of the singular source point.
Comparison of the fundamental solution of the 2D Laplace PDE vs. a numerical solution computed using the FDM for a 128 \(\times\) 128 image subdomain. From left to right: plot of the fundamental solution (FS) for a 128 \(\times\) 128 sampled subdomain of the infinite medium, plot of the FDM solution computed from the FS values defined on the boundary of the 128 \(\times\) 128 image, the difference between the fundamental and FDM solutions.
To investigate the effects of image domain discretization and the amount of training data on the results of PINN model performance, nine sets of reference BVP images and corresponding FDM solutions were generated. These nine datasets are composed of 10, 40, and 70 thousand BVP images (further termed as 10k, 40k, and 70k datasets) including three different spatial resolutions (64 \(\times\) 64, 128 \(\times\) 128, 256 \(\times\) 256), see Table 2. To enable the accurate performance of PINN models on arbitrary BVPs, a large variability in geometrical patterns and boundary conditions was considered by the generation of the reference set of BVP images. Accordingly, each set of images was generated by combining several strategies for the definition of the geometrical patterns (e.g., points, lines, contours, and solid shapes) and the spatial distribution of prescribed values (i.e. boundary conditions) including constant, gradient, and random distributions. In gradient distribution, the values for the pixels are assigned incrementally from 25 to 255 along different directions. Examples of BVP images for three different types of boundary conditions (including constant, gradient, and random distributions) are shown in Fig. 3. Furthermore, different directions and magnitudes of gradients were implemented to avoid potential biases in training data.
Example of BVP image generation. From left to right: binary image (i.e. geometrical pattern) for the definition of prescribed (Dirichlet), constant, gradient, and random value distributions defined on the same geometrical pattern.
The forward PINN models were trained to emulate FDM solutions of 2D Laplace PDE using nine datasets from Table 2 as described in the "Methods" section. Examples of PINN model predictions based on the training dataset 4 from Table 2 including three different types of BVPs are shown in Fig. 4. Overall, PINN model predictions exhibit a high similarity with FDM solutions crossover all types of BVP images. However, a detailed analysis shows significant differences in PINN performance measures among different types of BVPs. One can see, for example, that the model performance is significantly more accurate when applied to BVP images with constant and gradient boundary conditions compared to randomly distributed boundary values in both methods, see Supplementary Fig. S1. In the case of the MC U-Net model, distinctive effects of spatial image resolutions on model training were observed. In particular, the MC U-Net model exhibited early overfitting within the first 50 epochs only when it was trained on 256 \(\times\) 256 but not 64 \(\times\) 64 and 128 \(\times\) 128 BVP images. This can be traced back to the fact that the sample intervals in 256 \(\times\) 256 FDM solutions are significantly smaller compared to 128 \(\times\) 128 and 64 \(\times\) 64 FDM solutions, which leads this model to capture more features in addition to the salient features. To address this issue, the maxpooling was increased from 2 to 4 instead which helped in mitigating the issue, see Supplementary Fig. S3. Thereby, the MSE U-Net based models trained with 10k datasets outperform the MC U-Net model trained with 70k datasets which is the best performing MC U-Net model see Supplementary Fig. S1. Additional performance measures for MC U-Net models can be found in Supplementary Materials Fig. S4–S6. The performance metrics of the forward models are presented in Table 3.
Exemplary comparison of FDM solutions vs. forward MSE U-Net model predictions trained on 10k 128 \(\times\) 128 ground truth images. From left to right: (first column) original BVP images, (second column) FDM solutions of the 2D Laplace PDE calculated from BVP images, (third column) results of forward PINN model predictions computed from BVP images (first column), (fourth column) the absolute difference between FDM (second column) and forward PINN-predicted (third column) BVP images. From top to bottom: examples of gradient containing (top), constant (middle), and randomly distributed (bottom) boundary conditions. The color gradient indicates the intensity values and their difference ranging between [0, 255].
The inverse models are aimed to reconstruct the initial BVP (i.e. sparse image) from the solution of 2D Laplace PDE (i.e. smoothed images). Numerical solution of inverse problems using conventional methods is often a non-trivial task. Within the scope of PINN-based PDE solving, this task is trivially addressed by reversing the direction of the model training from target to source image sets, i.e. swapping input and output data used for training of forward models. Examples of the 128 \(\times\) 128 inverse model performance for different types of BVP problems are shown in Fig. 5.
Exemplary comparison of original BVP images vs. inverse MSE U-Net model predictions trained on 10k 128 \(\times\) 128 ground truth images. From left to right: (first column) original BVP images, (second column) FDM solutions of the 2D Laplace PDE calculated from BVP images, (third column) results of inverse PINN model predictions calculated from FDM solutions (second column), (fours column) the absolute difference between original (first column) and inversely PINN-predicted (third column) BVP images. From top to bottom: examples of gradient containing (top), constant (middle), and randomly distributed (bottom) boundary conditions. The color gradient indicates the intensity values and their difference ranging between [0, 255].
Validation of inverse PINN predictions vs. FDM. From left to right: (first column) original BVP image, (second column) FDM solution of 2D Laplace PDE for the boundary condition given by the original BVP image, (third column) reconstruction of the original BVP image from the FDM solution using the inverse PINN model, (fours column) FDM solution of the 2D Laplace PDE for the boundary conditions given by the inversely predicted BVP image, (fifth column) difference between FDM solutions (second and fours columns) computed from the original and inversely predicted BVP images (first and third columns). From top to bottom row: random BVP (top), solid (middle) vs. empty circle BVP (bottom) with the same boundary values. Despite differences between original and inversely reconstructed BVP images, their FDM solutions do not exhibit that large difference. In turn, the inverse PINN model fails to recover correct values inside the empty circle because of the principle ambiguity of inverse solutions of otherwise equal FDM images. The color map indicates intensity values and their differences in the range [0, 255]. The F1 scores between the FDM solutions of original BVP (second column) and the FDM solutions of inverse prediction (fourth column) are 99% (top row), 100% (middle row) and 100% (bottom row), respectively.
An exact recovery of original boundary conditions is, however, known to be associated with principle incompleteness, since different boundary conditions may sometimes lead to quite similar solutions. With both approaches, the predicted inverse boundary conditions are sparse compared to the original boundary conditions and the FDM computation for the sparsely predicted boundary conditions shows that the FDM solutions of inversely predicted boundary conditions show high similarity with the ground truth FDM solutions which proves the statement, see. Fig. 6. As one can see from the summary of the performance metrics for inverse U-Net models in Table 4, they exhibit a substantially larger MSE error than forward models cf. Table 3. It has been observed that the predicted boundary conditions are more sparse in the MSE U-Net models than in the MC U-Net models. Hence, MSE U-Net models exhibit lower F1 scores compared to MC U-Net models. Since the MSE U-Net models generate sparse inverse predictions, further analyses were done with the MC U-Net models see S2. Additional performance measures for MC U-Net models can be found in Supplementary Fig. S7–S9 and Supplementary Table S1.
From the view of image processing, the inverse 2D Laplace model effectively performs a kind of deblurring of smoothed images. Figure 7 shows an example of inverse reconstruction of the original image from its Gaussian smoothed version with \(\sigma =8\) and a total of 12 iterations using the inverse 128 \(\times\) 128 70k PINN model. Marginal differences between the original and inversely reconstructed images are due to differences between inverse PINN reconstruction (2D Laplacian) and image smoothing (2D Gaussian) algorithms. Another cause of the discrepancy of the inverse prediction from the original BVP image is due to principle ambiguity of inverse solutions, cf. Fig. 6.
Example of application of the inverse 128 \(\times\) 128 70k MC U-Net model for deblurring of a Gaussian smoothed image (\(\sigma =8\), 12 iterations). From left to right: original image, Gaussian smoothed image, the result of deblurring of the Gaussian smoothed image using inverse PINN model. The color map indicates differences between the original and inversely reconstructed images in the range between [0, 255]. The F1 score between the original image and the reconstructed image is 67%.
Analysis of the computational performance of PINN models vs. FDM with 500 randomly selected BVP images among the 128 \(\times\) 128 validation dataset which contains examples of all possible BVPs. The average time taken by the PINN solver is compared against the FDM solution in dependency on image resolution as well as the number of nodes with prescribed boundary condition (i.e. Dirichlet pixels) as it determines sparseness of the stiffness matrix and its numerical solution using PCG. A summary of the computational performance of pre-trained PINN models vs. FDM is shown in Table 5 and Fig. 8. As one can see computation of solutions of 2D Laplace PDE using PINN models is much more efficient in comparison to the iterative solutions using FDM. Even if one considers the computational time of FDM varies on the number of Dirichlet pixels for the same image size, it does not have a large effect. With increasing image resolution computation performance of FDM grows significantly faster compared to PINN models that perform the computation of images up to 256 \(\times\) 256 size in less than 1 s.
Comparison of computational PINN performance vs. FDM for 256 \(\times\) 256 images. Left: lapsed time of PINN predictions (red) vs FDM solutions (blue) in seconds for 500 test BVP images. Right: lapsed time of PINN vs. FDM solutions depending on the number of pixels with prescribed values (Dirichlet pixels). The dependency of computational time on the number of Dirichlet pixels has to do with additional efforts for the implementation of prescribed boundary values.
Our 2D Laplace PINN solver was implemented as an executable demo tool that can be run on Windows and Linux OS using a simple command line call: model.exe <input.png> <output.png> <model.h5>. It can be downloaded along with example images from https://ag-ba.ipk-gatersleben.de/Lap2Dpinn.html.
In this study, we developed and investigated two PINN models for solving arbitrary 2D Laplace boundary value problems defined on 8-bit images. Our experimental results showed that PINN models trained on a large set of reference FDM solutions are capable of realistically predicting solutions of new, previously unseen forward as well as inverse 2D Laplace BVPs with remarkably high accuracy but in a much shorter computational time compared to FDM.
To cover a large range of boundary value problems, PINN models were trained on different types of boundary value problems. While all these types of BVPs are mathematically admissible, some of them appear to be more physically meaningful (constant or gradient boundary conditions) than others (randomly distributed boundary values). From this viewpoint, it is not surprising that the accuracy in the prediction of physically more meaningful BVPs is higher than in the case of random boundary conditions. In general, the choice of suitable types of BVPs depends on the concrete physical problem, but in the case of 2D Laplace PDE, random boundary conditions appear to be not physically relevant.
Both forward and inverse 2D Laplace BVPs turn out to be solvable using PINN models in a non-iterative manner with remarkable accuracy. However, comparing the performance of forward vs. inverse PINN models shows that forward models make more accurate predictions than inverse models. This is, however, not surprising as different boundary conditions can produce similar solutions. Two alternative loss functions were used for PINN model training. In the case of forward PINN models, the U-Net models trained with the MSE loss function show slightly better performance compared to the multiclass U-Net models that were trained with the SCE loss functions. This was, however, not observed for inverse predictions, which can be attributed to principle ambiguity in the inverse solutions and larger errors compared to forward solutions47. However, due to the restriction of the SCE measure to integer-valued classes, the MSE loss function has a more general spectrum of applications. Evaluation of PINN model predictions was done using several different metrics. However, as already known from previous works, quantification of accuracy using the F1 score measure is more advantageous, especially in the case of uneven distributions such as, in particular, the case of inverse problems with sparse boundary conditions. The PINN models developed in this work take raw input images and do not require any further efforts for domain discretization, assembly of the linear system of equations, and its iterative solution. These features make them an efficient and easy-to-use tool for straightforward application, especially, for cross-disciplinary problems. However, there is still certain technical (i.e. GPU) limitations concerning the size of image domains for which PINN models can be trained. Even if these technical burdens can be overcome in the future, further investigation of PINN solving techniques relying on unstructured point clouds48 appears to be of general interest.
The current work represents a feasibility study with application to the 2D Laplace problem defined on the integer-valued image domain. Extensions of the PINN approach to a more general class of floating point valued and/or multidimensional BVPs using a more general MSE loss function are straightforward. Further investigations are required to dissect the principle capabilities and accuracy bounds of the suggested PINN approaches by application to other image and physics-based boundary value problems.
Supplementary Information with example images accompanies this manuscript. Further datasets used and analyzed during the current study are available from the corresponding author upon reasonable request.
Gladilin, E. et al. Finite element analysis of uniaxial cell stretching: From image to insight. J. Microsc. 4, 104–113 (2007).
CAS Google Scholar
Gonzalez, P., Reichenzeller, M., Eils, R. & Gladilin, E. Probing compressibility of the nuclear interior in wild-type and lamin deficient cells using microscopic imaging and computational modeling. J. Biomech. 44, 2642–2648 (2011).
Article Google Scholar
Gladilin, E., Eils, R. & Peshkin, L. On the embryonic cell division beyond the contractile ring mechanism: Experimental and computational investigation of effects of vitelline-confinement, temperature and egg size. PeerJ. 3 (2015).
Trew, M. L., Smaill, B. H., Bullivant, D. P., Hunter, P. J. & Pullan, A. J. A generalized finite difference method for modeling cardiac electrical activation on arbitrary, irregular computational meshes. Math. Biosci. 198, 169–189 (2005).
Article MathSciNet PubMed MATH Google Scholar
Maas, S. A., Ateshian, G. A. & Weiss, J. A. Febio: History and advances. Annu. Rev. Biomed. Eng. 19, 279–299 (2017).
Article CAS PubMed PubMed Central Google Scholar
Mackerle, J. Finite and boundary element methods in biomechanics: A bibliography (1976–1991). Eng. Comput. 9, 403–435 (1992).
Article MathSciNet Google Scholar
Zhang, L., Ademiloye, A. & Liew, K. Meshfree and particle methods in biomechanics: Prospects and challenges. Arch. Comput. Methods Eng. 26 (2018).
Mang, A., Bakas, S., Subramanian, S., Davatzikos, C. & Biros, G. Integrated biophysical modeling and image analysis: Application to neuro-oncology. Annu. Rev. Biomed. Eng. 22, 309–341 (2020).
Article CAS PubMed PubMed Central Google Scholar
Chengyue, W. et al. Integrating mechanism-based modeling with biomedical imaging to build practical digital twins for clinical oncology. Biophys. Rev. 3, 021304 (2022).
Article Google Scholar
Eskinazi, I. & Fregly, B. J. An open-source toolbox for surrogate modeling of joint contact mechanics. IEEE Trans. Biomed. Eng. 63, 269–277 (2015).
Article PubMed PubMed Central Google Scholar
Halloran, J. P., Erdemir, A. & Van Den Bogert, A. J. Adaptive surrogate modeling for efficient coupling of musculoskeletal control and tissue deformation models. J. Biomech. Eng. 131, 011014 (2009).
Article PubMed Google Scholar
Niroomandi, S., Alfaro, I., Cueto, E. & Chinesta, F. Model order reduction for hyperelastic materials. Int. J. Numer. Method Eng. 81, 1180–1206 (2010).
Article MathSciNet MATH Google Scholar
Barbič, J. & James, D. L. Real-time subspace integration for St. Venant-Kirchhoff deformable models. ACM Trans. Graph. TOG. 24, 982–990 (2005).
Article Google Scholar
An, S. S., Kim, T. & James, D. L. Optimizing cubature for efficient integration of subspace deformations. ACM Trans. Graph. TOG 27, 1–10 (2008).
Article Google Scholar
Goury, O. & Duriez, C. Fast, generic, and reliable control and simulation of soft robots using model order reduction. IEEE Trans. Rob. 34, 1565–1576 (2018).
Article Google Scholar
Chaturantabut, S. & Sorensen, D. C. Discrete empirical interpolation for nonlinear model reduction. In Proceedings of the 48h IEEE Conference on Decision and Control (CDC) held jointly with 2009 28th Chinese Control Conference, 4316–4321 (IEEE, 2009).
Bui-Thanh, T., Willcox, K. & Ghattas, O. Model reduction for large-scale systems with high-dimensional parametric input space. SIAM J. Sci. Comput. 30, 3270–3288 (2008).
Article MathSciNet MATH Google Scholar
Meister, F. et al. Towards fast biomechanical modeling of soft tissue using neural networks. https://doi.org/10.48550/ARXIV.1812.06186 (2018).
Mendizabal, A., Márquez-Neila, P. & Cotin, S. Simulation of hyperelastic materials in real-time using deep learning. Med. Image Anal. 59, 101569 (2020).
Article PubMed Google Scholar
Margenberg, N., Hartmann, D., Lessig, C. & Richter, T. A neural network multigrid solver for the Navier–Stokes equations. J. Comput. Phys. 460, 110983 (2022).
Article MathSciNet MATH Google Scholar
Raissi, M., Perdikaris, P. & Karniadakis, G. E. Physics informed deep learning (part I): Data-driven solutions of nonlinear partial differential equations. CoRR. abs/1711.10561 (2017). 1711.10561.
Fetene, B. N., Shufen, R. & Dixit, U. S. Fem-based neural network modeling of laser-assisted bending. Neural Comput. Appl. 29, 69–82 (2018).
Article Google Scholar
Reichstein, M. et al. Deep learning and process understanding for data-driven earth system science. Nature 566, 195–204 (2019).
Article ADS CAS PubMed Google Scholar
Alber, M. et al. Integrating machine learning and multiscale modeling-perspectives, challenges, and opportunities in the biological, biomedical, and behavioral sciences. NPJ Digit. Med. 2, 1–11 (2019).
Article Google Scholar
Iten, R., Metger, T., Wilming, H., Del Rio, L. & Renner, R. Discovering physical concepts with neural networks. Phys. Rev. Lett. 124, 010508 (2020).
Article ADS CAS PubMed Google Scholar
Karniadakis, G. E. et al. Physics-informed machine learning. Nat. Rev. Phys. 3, 422–440 (2021).
Article Google Scholar
Roewer-Despres, F., Khan, N. & Stavness, I. Towards finite element simulation using deep learning. In 15th International Symposium on Computer Methods in Biomechanics and Biomedical Engineering (2018).
Luo, R. et al. NNWarp: Neural network-based nonlinear deformation. IEEE Trans. Vis. Comput. Graph.https://doi.org/10.1109/tvcg.2018.2881451 (2018).
Article PubMed Google Scholar
Odot, A., Haferssas, R. & Cotin, S. Deepphysics: A physics aware deep learning framework for real-time simulation. Int. J. Numer. Method Eng. 123, 2381–2398 (2022).
Article MathSciNet Google Scholar
Cai, S., Liang, J., Gao, Q., Xu, C. & Wei, R. Particle image velocimetry based on a deep learning motion estimator. IEEE Trans. Instrum. Meas. 69, 3538–3554 (2019).
Article ADS Google Scholar
O’Shea, K. & Nash, R. An Introduction to Convolutional Neural Networks. arXiv e-printsarXiv:1511.08458 (2015).
Lu, L., Meng, X., Mao, Z. & Karniadakis, G. E. Deepxde: A deep learning library for solving differential equations. SIAM Rev. 63, 208–228 (2021).
Article MathSciNet MATH Google Scholar
Hennigh, O. et al. Nvidia simnet\(^TM\): An ai-accelerated multi-physics simulation framework. In International Conference on Computational Science, 447–461 (Springer, 2021).
Chen, F. et al. Neurodiffeq: A python package for solving differential equations with neural networks. J. Open Source Softw. 5, 1931 (2020).
Article ADS Google Scholar
Johnsen, S. F. et al. Niftysim: A gpu-based nonlinear finite element package for simulation of soft tissue biomechanics. Int. J. Comput. Assist. Radiol. Surg. 10, 1077–1095 (2015).
Article PubMed Google Scholar
Comas, O. et al. Efficient nonlinear fem for soft tissue modelling and its gpu implementation within the open source framework sofa. In International Symposium on Biomedical Simulation, 28–39 (Springer, 2008).
Ronneberger, O., Fischer, P. & Brox, T. U-net: Convolutional networks for biomedical image segmentation. In Medical Image Computing and Computer-Assisted Intervention (MICCAI), vol. 9351 of LNCS, 234–241 (Springer, 2015).
Young, D., Tsai, C.-C., Chen, C. & Fan, C.-M. The method of fundamental solutions and condition number analysis for inverse problems of laplace equation. Comput. Math. Appl. 55, 1189–1200 (2008).
Article MathSciNet MATH Google Scholar
Ioffe, S. & Szegedy, C. Batch normalization: Accelerating deep network training by reducing internal covariate shift. In International Conference on Machine Learning, 448–456 (PMLR, 2015).
Abadi, M. et al. TensorFlow: Large-scale machine learning on heterogeneous distributed systems. arXiv e-printsarXiv:1603.04467 (2016).
Walt, S. V. D., Colbert, S. C. & Varoquaux, G. The numpy array: A structure for efficient numerical computation. Comput. Sci. Eng. 13, 22–30 (2011).
Article Google Scholar
Van der Walt, S. et al. scikit-image: Image processing in python. PeerJ 2, e453 (2014).
Article PubMed PubMed Central Google Scholar
Crimi, A., Bakas, S., Kuijf, H., Menze, B. & Reyes, M. Brainlesion: Glioma, Multiple Sclerosis, Stroke and Traumatic Brain Injuries: Third International Workshop, BrainLes 2017, Held in Conjunction with MICCAI 2017, Quebec City, QC, Canada, September 14, 2017, Revised Selected Papers, vol. 10670 (Springer, 2018).
Joseph, V. R. Optimal ratio for data splitting. Stat. Anal. Data Min. ASA Data Sci. J. 15, 531–538 (2022).
Article MathSciNet Google Scholar
Krizhevsky, A., Sutskever, I. & Hinton, G. E. Imagenet classification with deep convolutional neural networks. In Advances in Neural Information Processing Systems, 1097–1105 (2012).
Kingma, D. P. & Ba, J. Adam: A method for stochastic optimization. CoRRabs/1412.6980 (2015).
Aster, R. C., Borchers, B. & Thurber, C. H. Parameter Estimation and Inverse Problems (Elsevier, 2018).
Li, Z. et al. Fourier neural operator for parametric partial differential equations. arXiv preprint arXiv:2010.08895 (2020).
Download references
This work was supported by the German Federal Ministry of Education and Research (BMBF) within the scope of the AVATARS project (FKZ 031B0770A).
Open Access funding enabled and organized by Projekt DEAL.
Leibniz Institute of Plant Genetics and Crop Plant Research, OT Gatersleben, Corrensstr. 3, 06466, Seeland, Germany
Anto Nivin Maria Antony, Narendra Narisetti & Evgeny Gladilin
You can also search for this author in PubMed Google Scholar
You can also search for this author in PubMed Google Scholar
You can also search for this author in PubMed Google Scholar
A.N.M.A. and N.N. performed the computational experiments, analyzed the data, wrote the manuscript, prepared figures, and tables, and reviewed drafts of the paper. E.G. conceived and supervised investigations, perform computational analysis, prepared figures, and wrote and reviewed the manuscript. All authors agreed on the manuscript in its present form.
Correspondence to Anto Nivin Maria Antony or Evgeny Gladilin.
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.
Reprints and Permissions
Maria Antony, A.N., Narisetti, N. & Gladilin, E. FDM data driven U-Net as a 2D Laplace PINN solver. Sci Rep 13, 9116 (2023). https://doi.org/10.1038/s41598-023-35531-8
Download citation
Received: 18 August 2022
Accepted: 19 May 2023
Published: 05 June 2023
DOI: https://doi.org/10.1038/s41598-023-35531-8
Anyone you share the following link with will be able to read this content:
Sorry, a shareable link is not currently available for this article.
Provided by the Springer Nature SharedIt content-sharing initiative
By submitting a comment you agree to abide by our Terms and Community Guidelines. If you find something abusive or that does not comply with our terms or guidelines please flag it as inappropriate.