{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,5,9]],"date-time":"2026-05-09T08:18:54Z","timestamp":1778314734229,"version":"3.51.4"},"reference-count":68,"publisher":"MDPI AG","issue":"5","license":[{"start":{"date-parts":[[2023,3,3]],"date-time":"2023-03-03T00:00:00Z","timestamp":1677801600000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Sensors"],"abstract":"<jats:p>Therapeutic ultrasound waves are the main instruments used in many noninvasive clinical procedures. They are continuously transforming medical treatments through mechanical and thermal effects. To allow for effective and safe delivery of ultrasound waves, numerical modeling methods such as the Finite Difference Method (FDM) and the Finite Element Method (FEM) are used. However, modeling the acoustic wave equation can result in several computational complications. In this work, we study the accuracy of using Physics-Informed Neural Networks (PINNs) to solve the wave equation when applying different combinations of initial and boundary conditions (ICs and BCs) constraints. By exploiting the mesh-free nature of PINNs and their prediction speed, we specifically model the wave equation with a continuous time-dependent point source function. Four main models are designed and studied to monitor the effects of soft or hard constraints on the prediction accuracy and performance. The predicted solutions in all the models were compared to an FDM solution for prediction error estimation. The trials of this work reveal that the wave equation modeled by a PINN with soft IC and BC (soft\u2013soft) constraints reflects the lowest prediction error among the four combinations of constraints.<\/jats:p>","DOI":"10.3390\/s23052792","type":"journal-article","created":{"date-parts":[[2023,3,6]],"date-time":"2023-03-06T02:28:34Z","timestamp":1678069714000},"page":"2792","update-policy":"https:\/\/doi.org\/10.3390\/mdpi_crossmark_policy","source":"Crossref","is-referenced-by-count":37,"title":["Wave Equation Modeling via Physics-Informed Neural Networks: Models of Soft and Hard Constraints for Initial and Boundary Conditions"],"prefix":"10.3390","volume":"23","author":[{"ORCID":"https:\/\/orcid.org\/0000-0001-5938-2953","authenticated-orcid":false,"given":"Shaikhah","family":"Alkhadhr","sequence":"first","affiliation":[{"name":"School of Electrical Engineering and Computer Science, Pennsylvania State University, University Park, PA 16802, USA"},{"name":"Information Science Department, Sabah AlSalem University City, Kuwait University, P.O. Box 25944, Safat 1320, Kuwait"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-9222-3003","authenticated-orcid":false,"given":"Mohamed","family":"Almekkawy","sequence":"additional","affiliation":[{"name":"School of Electrical Engineering and Computer Science, Pennsylvania State University, University Park, PA 16802, USA"}]}],"member":"1968","published-online":{"date-parts":[[2023,3,3]]},"reference":[{"key":"ref_1","doi-asserted-by":"crossref","unstructured":"Danaila, I., Joly, P., Kaber, S., and Postel, M. (2007). An Introduction to Scientific Computing: Twelve Computational Projects Solved with MATLAB, Springer.","DOI":"10.1007\/978-0-387-49159-2"},{"key":"ref_2","doi-asserted-by":"crossref","first-page":"082002","DOI":"10.1088\/1757-899X\/145\/8\/082002","article-title":"The use of numerical programs in research and academic institutions","volume":"145","author":"Scupi","year":"2016","journal-title":"IOP Conf. Ser. Mater. Sci. Eng."},{"key":"ref_3","doi-asserted-by":"crossref","first-page":"1","DOI":"10.1016\/j.jcp.2019.04.038","article-title":"Quantifying total uncertainty in physics-informed neural networks for solving forward and inverse stochastic problems","volume":"397","author":"Zhang","year":"2019","journal-title":"J. Comput. Phys."},{"key":"ref_4","doi-asserted-by":"crossref","first-page":"1979","DOI":"10.1109\/TUFFC.2015.007034","article-title":"Modeling of wave propagation for medical ultrasound: A review","volume":"62","author":"Gu","year":"2015","journal-title":"IEEE Trans. Ultrason. Ferroelectr. Freq. Control"},{"key":"ref_5","doi-asserted-by":"crossref","first-page":"334","DOI":"10.1134\/S1063771011030213","article-title":"Simulation of three-dimensional nonlinear fields of ultrasound therapeutic arrays","volume":"57","author":"Yuldashev","year":"2011","journal-title":"Acoust. Phys."},{"key":"ref_6","doi-asserted-by":"crossref","first-page":"2967","DOI":"10.1121\/1.3097499","article-title":"Optimal simulations of ultrasonic fields produced by large thermal therapy arrays using the angular spectrum approach","volume":"125","author":"Zeng","year":"2009","journal-title":"J. Acoust. Soc. Am."},{"key":"ref_7","doi-asserted-by":"crossref","first-page":"325","DOI":"10.1109\/RBME.2019.2908940","article-title":"Therapeutic Systems and Technologies: State-of-the-Art Applications, Opportunities, and Challenges","volume":"13","author":"Almekkawy","year":"2020","journal-title":"IEEE Rev. Biomed. Eng."},{"key":"ref_8","doi-asserted-by":"crossref","first-page":"318","DOI":"10.1109\/TUFFC.2019.2944434","article-title":"The Optimization of Transcostal Phased Array Refocusing Using the Semidefinite Relaxation Method","volume":"67","author":"Almekkawy","year":"2020","journal-title":"IEEE Trans. Ultrason. Ferroelectr. Freq. Control"},{"key":"ref_9","doi-asserted-by":"crossref","unstructured":"McMahon, D., and Almekkawy, M. (2017, January 2). Optimization of transcostal phased-array refocusing using iterative sparse semidefinite relaxation method. Proceedings of the 2017 IEEE Signal Processing in Medicine and Biology Symposium (SPMB), Philadelphia, PA, USA.","DOI":"10.1109\/SPMB.2017.8257038"},{"key":"ref_10","doi-asserted-by":"crossref","unstructured":"Gomez, A., Rus, G., and Saffari, N. (2021). Wave Propagation in a Fractional Viscoelastic Tissue Model: Application to Transluminal Procedures. Sensors, 21.","DOI":"10.3390\/s21082778"},{"key":"ref_11","unstructured":"Bathe, K.J. (2007). Wiley Encyclopedia of Computer Science and Engineering, Wiley."},{"key":"ref_12","doi-asserted-by":"crossref","unstructured":"Liu, Y., Liu, E., Chen, Y., Wang, X., Sun, C., and Tan, J. (2020). Study on Propagation Depth of Ultrasonic Longitudinal Critically Refracted (LCR) Wave. Sensors, 20.","DOI":"10.3390\/s20195724"},{"key":"ref_13","first-page":"209","article-title":"Spectral methods","volume":"5","author":"Bernardi","year":"1997","journal-title":"Handb. Numer. Anal."},{"key":"ref_14","doi-asserted-by":"crossref","first-page":"614","DOI":"10.1097\/ALN.0000000000002350","article-title":"The Curse of Dimensionality","volume":"129","author":"Patel","year":"2018","journal-title":"Anesthesiology"},{"key":"ref_15","doi-asserted-by":"crossref","first-page":"215","DOI":"10.1147\/rd.112.0215","article-title":"On the partial difference equations of mathematical physics","volume":"11","author":"Courant","year":"1967","journal-title":"IBM J. Res. Dev."},{"key":"ref_16","doi-asserted-by":"crossref","first-page":"7025","DOI":"10.1007\/s10958-006-0404-3","article-title":"Taylor series method for dynamical systems with control: Convergence and error estimates","volume":"139","author":"Babadzhanjanz","year":"2006","journal-title":"J. Math. Sci."},{"key":"ref_17","unstructured":"Goodfellow, I., Bengio, Y., and Courville, A. (2016). Deep Learning, MIT Press."},{"key":"ref_18","doi-asserted-by":"crossref","first-page":"436","DOI":"10.1038\/nature14539","article-title":"Deep learning","volume":"521","author":"LeCun","year":"2015","journal-title":"Nature"},{"key":"ref_19","doi-asserted-by":"crossref","first-page":"195","DOI":"10.1002\/cnm.1640100303","article-title":"Neural-network-based approximations for solving partial differential equations","volume":"10","author":"Dissanayake","year":"1994","journal-title":"Commun. Numer. Methods Eng."},{"key":"ref_20","doi-asserted-by":"crossref","first-page":"484","DOI":"10.1038\/nature16961","article-title":"Mastering the game of Go with deep neural networks and tree search","volume":"529","author":"Silver","year":"2016","journal-title":"Nature"},{"key":"ref_21","doi-asserted-by":"crossref","first-page":"GL093187","DOI":"10.1029\/2021GL093187","article-title":"Deep Learning can Predict Laboratory Quakes from Active Source Seismic Data","volume":"48","author":"Shokouhi","year":"2021","journal-title":"Geophys. Res. Lett."},{"key":"ref_22","doi-asserted-by":"crossref","first-page":"8505","DOI":"10.1073\/pnas.1718942115","article-title":"Solving high-dimensional partial differential equations using deep learning","volume":"115","author":"Han","year":"2018","journal-title":"Proc. Natl. Acad. Sci. USA"},{"key":"ref_23","doi-asserted-by":"crossref","first-page":"686","DOI":"10.1016\/j.jcp.2018.10.045","article-title":"Physics-informed neural networks: A deep learning framework for solving forward and inverse problems involving nonlinear partial differential equations","volume":"378","author":"Raissi","year":"2019","journal-title":"J. Comput. Phys."},{"key":"ref_24","doi-asserted-by":"crossref","unstructured":"Alkhadhr, S., Liu, X., and Almekkawy, M. (2021, January 11\u201316). Modeling of the Forward Wave Propagation Using Physics-Informed Neural Networks. Proceedings of the IEEE International Ultrasonics Symposium, IUS, Xi\u2019an, China.","DOI":"10.1109\/IUS52206.2021.9593574"},{"key":"ref_25","doi-asserted-by":"crossref","unstructured":"Alkhadhr, S., and Almekkawy, M. (2021, January 1\u20135). A Combination of Deep Neural Networks and Physics to Solve the Inverse Problem of Burger\u2019s Equation. Proceedings of the IEEE Engineering in Medicine & Biology Society (EMBC), Mexico City, Mexico.","DOI":"10.1109\/EMBC46164.2021.9630259"},{"key":"ref_26","doi-asserted-by":"crossref","unstructured":"Alkhadhr, S., and Almekkawy, M. (2021, January 11\u201316). Modeling of the Wave Propagation of a Multi-Element Ultrasound Transducer Using Neural Networks. Proceedings of the IEEE International Ultrasonics Symposium, IUS, Xi\u2019an, China.","DOI":"10.1109\/IUS52206.2021.9593324"},{"key":"ref_27","doi-asserted-by":"crossref","unstructured":"Wang, Y., Alkhadhr, S., and Almekkawy, M. (2021, January 11\u201316). PINN Simulation of the Temperature Rise Due to Ultrasound Wave Propagation. Proceedings of the IEEE International Ultrasonics Symposium, IUS, Xi\u2019an, China.","DOI":"10.1109\/IUS52206.2021.9593871"},{"key":"ref_28","doi-asserted-by":"crossref","first-page":"208","DOI":"10.1137\/19M1274067","article-title":"DeepXDE: A deep learning library for solving differential equations","volume":"63","author":"Lu","year":"2021","journal-title":"SIAM Rev."},{"key":"ref_29","unstructured":"Ruder, S. (2016). An overview of gradient descent optimization algorithms. arXiv."},{"key":"ref_30","unstructured":"Moseley, B., Markham, A., and Nissen-Meyer, T. (2020). Solving the wave equation with physics-informed deep learning. arXiv."},{"key":"ref_31","doi-asserted-by":"crossref","first-page":"e2021JB023120","DOI":"10.1029\/2021JB023120","article-title":"Physics-Informed Neural Networks (PINNs) for Wave Propagation and Full Waveform Inversions","volume":"127","author":"Huber","year":"2022","journal-title":"J. Geophys. Res. Solid Earth"},{"key":"ref_32","doi-asserted-by":"crossref","first-page":"1993","DOI":"10.1016\/j.gsf.2020.07.007","article-title":"Physics informed machine learning: Seismic wave equation","volume":"11","author":"Karimpouli","year":"2020","journal-title":"Geosci. Front."},{"key":"ref_33","doi-asserted-by":"crossref","first-page":"846","DOI":"10.1093\/gji\/ggab010","article-title":"Solving the frequency-domain acoustic VTI wave equation using physics-informed neural networks","volume":"225","author":"Song","year":"2021","journal-title":"Geophys. J. Int."},{"key":"ref_34","doi-asserted-by":"crossref","first-page":"1750","DOI":"10.1093\/gji\/ggab434","article-title":"A versatile framework to solve the Helmholtz equation using physics-informed neural networks","volume":"228","author":"Song","year":"2022","journal-title":"Geophys. J. Int."},{"key":"ref_35","doi-asserted-by":"crossref","first-page":"943","DOI":"10.1007\/s00330-012-2665-1","article-title":"Volumetric MR-guided high-intensity focused ultrasound ablation of uterine fibroids: Treatment speed and factors influencing speed","volume":"23","author":"Park","year":"2013","journal-title":"Eur. Radiol."},{"key":"ref_36","doi-asserted-by":"crossref","first-page":"425","DOI":"10.5194\/se-5-425-2014","article-title":"AxiSEM: Broadband 3-D seismic wavefields in axisymmetric media","volume":"5","author":"Hosseini","year":"2014","journal-title":"Solid Earth"},{"key":"ref_37","doi-asserted-by":"crossref","unstructured":"Aubry, J.F., Bates, O., Boehm, C., Pauly, K.B., Christensen, D., Cueto, C., Gelat, P., Guasch, L., Jaros, J., and Jing, Y. (2022). Benchmark problems for transcranial ultrasound simulation: Intercomparison of compressional wave models. arXiv.","DOI":"10.1121\/10.0013426"},{"key":"ref_38","unstructured":"Holm, S. (2022). Acoustic Wave Equations and Four Ways Media May Perturbe the Speed of Sound, University of Oslo."},{"key":"ref_39","doi-asserted-by":"crossref","unstructured":"Linge, S., and Langtangen, H.P. (2017). Finite Difference Computing with PDEs, Springer.","DOI":"10.1007\/978-3-319-55456-3"},{"key":"ref_40","doi-asserted-by":"crossref","first-page":"669097","DOI":"10.3389\/fdata.2021.669097","article-title":"The old and the new: Can physics-informed deep-learning replace traditional linear solvers?","volume":"4","author":"Markidis","year":"2021","journal-title":"Front. Big Data"},{"key":"ref_41","doi-asserted-by":"crossref","first-page":"5591","DOI":"10.1007\/s00521-020-05340-5","article-title":"The neural network collocation method for solving partial differential equations","volume":"33","author":"Brink","year":"2021","journal-title":"Neural Comput. Appl."},{"key":"ref_42","doi-asserted-by":"crossref","first-page":"812","DOI":"10.1137\/140974596","article-title":"Bayesian numerical homogenization","volume":"13","author":"Owhadi","year":"2015","journal-title":"Multiscale Model. Simul."},{"key":"ref_43","doi-asserted-by":"crossref","first-page":"125","DOI":"10.1016\/j.jcp.2017.11.039","article-title":"Hidden physics models: Machine learning of nonlinear partial differential equations","volume":"357","author":"Raissi","year":"2018","journal-title":"J. Comput. Phys."},{"key":"ref_44","doi-asserted-by":"crossref","first-page":"359","DOI":"10.1016\/0893-6080(89)90020-8","article-title":"Multilayer feedforward networks are universal approximators","volume":"2","author":"Hornik","year":"1989","journal-title":"Neural Netw."},{"key":"ref_45","doi-asserted-by":"crossref","first-page":"e1305","DOI":"10.1002\/widm.1305","article-title":"A review of automatic differentiation and its efficient implementation","volume":"9","author":"Margossian","year":"2019","journal-title":"Wiley Interdiscip. Rev. Data Min. Knowl. Discov."},{"key":"ref_46","unstructured":"Abadi, M., Barham, P., Chen, J., Chen, Z., Davis, A., Dean, J., Devin, M., Ghemawat, S., Irving, G., and Isard, M. (2016, January 2\u20134). {TensorFlow}: A System for {Large-Scale} Machine Learning. Proceedings of the 12th USENIX Symposium on Operating Systems Design and Implementation (OSDI 16), Savannah, GA, USA."},{"key":"ref_47","unstructured":"Paszke, A., Gross, S., Chintala, S., Chanan, G., Yang, E., DeVito, Z., Lin, Z., Desmaison, A., Antiga, L., and Lerer, A. (2017, January 4\u20139). Automatic differentiation in pytorch. Proceedings of the 31st Conference on Neural Information Processing Systems (NIPS 2017), Long Beach, CA, USA."},{"key":"ref_48","doi-asserted-by":"crossref","first-page":"109913","DOI":"10.1016\/j.jcp.2020.109913","article-title":"B-PINNs: Bayesian physics-informed neural networks for forward and inverse PDE problems with noisy data","volume":"425","author":"Yang","year":"2021","journal-title":"J. Comput. Phys."},{"key":"ref_49","unstructured":"Hu, Z., Jagtap, A.D., Karniadakis, G.E., and Kawaguchi, K. (2022). Augmented Physics-Informed Neural Networks (APINNs): A gating network-based soft domain decomposition methodology. arXiv."},{"key":"ref_50","unstructured":"Gladstone, R.J., Nabian, M.A., and Meidani, H. (2022). FO-PINNs: A First-Order formulation for Physics Informed Neural Networks. arXiv."},{"key":"ref_51","doi-asserted-by":"crossref","first-page":"113741","DOI":"10.1016\/j.cma.2021.113741","article-title":"A physics-informed deep learning framework for inversion and surrogate modeling in solid mechanics","volume":"379","author":"Haghighat","year":"2021","journal-title":"Comput. Methods Appl. Mech. Eng."},{"key":"ref_52","unstructured":"Moseley, B., Markham, A., and Nissen-Meyer, T. (2021). Finite Basis Physics-Informed Neural Networks (FBPINNs): A scalable domain decomposition approach for solving differential equations. arXiv."},{"key":"ref_53","unstructured":"McClenny, L., and Braga-Neto, U. (2020). Self-adaptive physics-informed neural networks using a soft attention mechanism. arXiv."},{"key":"ref_54","unstructured":"Fletcher, R. (2013). Practical Methods of Optimization, John Wiley & Sons."},{"key":"ref_55","doi-asserted-by":"crossref","first-page":"503","DOI":"10.1007\/BF01589116","article-title":"On the limited memory BFGS method for large scale optimization","volume":"45","author":"Liu","year":"1989","journal-title":"Math. Program."},{"key":"ref_56","doi-asserted-by":"crossref","first-page":"3","DOI":"10.1016\/j.neunet.2017.12.012","article-title":"Sigmoid-weighted linear units for neural network function approximation in reinforcement learning","volume":"107","author":"Elfwing","year":"2018","journal-title":"Neural Netw."},{"key":"ref_57","doi-asserted-by":"crossref","first-page":"20200334","DOI":"10.1098\/rspa.2020.0334","article-title":"Locally adaptive activation functions with slope recovery for deep and physics-informed neural networks","volume":"476","author":"Jagtap","year":"2020","journal-title":"Proc. R. Soc. A"},{"key":"ref_58","doi-asserted-by":"crossref","first-page":"1229845","DOI":"10.1137\/18M1229845","article-title":"fPINNs: Fractional Physics-Informed Neural Networks","volume":"41","author":"Pang","year":"2019","journal-title":"SIAM J. Sci. Comput."},{"key":"ref_59","unstructured":"Kingma, D.P., and Ba, J. (2014). Adam: A Method for Stochastic Optimization. arXiv."},{"key":"ref_60","first-page":"1190","article-title":"A Limited Memory Algorithm for Bound Constrained Optimization","volume":"16","author":"Byrd","year":"1995","journal-title":"J. Sci. Comput."},{"key":"ref_61","doi-asserted-by":"crossref","first-page":"112732","DOI":"10.1016\/j.cma.2019.112732","article-title":"Surrogate modeling for fluid flows based on physics-constrained deep learning without simulation data","volume":"361","author":"Sun","year":"2020","journal-title":"Comput. Methods Appl. Mech. Eng."},{"key":"ref_62","doi-asserted-by":"crossref","first-page":"619","DOI":"10.1007\/s00466-020-01952-9","article-title":"Machine learning for metal additive manufacturing: Predicting temperature and melt pool fluid dynamics using physics-informed neural networks","volume":"67","author":"Zhu","year":"2021","journal-title":"Comput. Mech."},{"key":"ref_63","doi-asserted-by":"crossref","unstructured":"Cuomo, S., Di Cola, V.S., Giampaolo, F., Rozza, G., Raissi, M., and Piccialli, F. (2022). Scientific Machine Learning through Physics-Informed Neural Networks: Where we are and What\u2019s next. arXiv.","DOI":"10.1007\/s10915-022-01939-z"},{"key":"ref_64","doi-asserted-by":"crossref","first-page":"113552","DOI":"10.1016\/j.cma.2020.113552","article-title":"SciANN: A Keras\/TensorFlow wrapper for scientific computations and physics-informed deep learning using artificial neural networks","volume":"373","author":"Haghighat","year":"2021","journal-title":"Comput. Methods Appl. Mech. Eng."},{"key":"ref_65","doi-asserted-by":"crossref","unstructured":"Paszynski, M., Kranzlm\u00fcller, D., Krzhizhanovskaya, V.V., Dongarra, J.J., and Sloot, P.M.A. (2021). Computational Science\u2014ICCS 2021, Proceedings of the International Conference on Computational Science, Krakow, Poland, 16\u201318 June 2021, Springer International Publishing.","DOI":"10.1007\/978-3-030-77964-1"},{"key":"ref_66","doi-asserted-by":"crossref","unstructured":"Koryagin, A., Khudorozkov, R., and Tsimfer, S. (2019). PyDEns: A python framework for solving differential equations with neural networks. arXiv.","DOI":"10.3997\/2214-4609.202012125"},{"key":"ref_67","doi-asserted-by":"crossref","first-page":"B1105","DOI":"10.1137\/21M1397908","article-title":"Physics-Informed Neural Networks with Hard Constraints for Inverse Design","volume":"43","author":"Lu","year":"2021","journal-title":"SIAM J. Sci. Comput."},{"key":"ref_68","unstructured":"Glorot, X., and Bengio, Y. (2010, January 13\u201315). Understanding the difficulty of training deep feedforward neural networks. Proceedings of the Thirteenth International Conference on Artificial Intelligence and Statistics, Sardinia, Italy."}],"container-title":["Sensors"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.mdpi.com\/1424-8220\/23\/5\/2792\/pdf","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,10,10]],"date-time":"2025-10-10T18:47:02Z","timestamp":1760122022000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.mdpi.com\/1424-8220\/23\/5\/2792"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2023,3,3]]},"references-count":68,"journal-issue":{"issue":"5","published-online":{"date-parts":[[2023,3]]}},"alternative-id":["s23052792"],"URL":"https:\/\/doi.org\/10.3390\/s23052792","relation":{},"ISSN":["1424-8220"],"issn-type":[{"value":"1424-8220","type":"electronic"}],"subject":[],"published":{"date-parts":[[2023,3,3]]}}}