Applied Physics-Informed Neural Networks for Spacecraft Magnetic Testing
Abstract
1. Introduction
Magnetic Testing
2. Materials and Methods
2.1. Physical and Simulated Test Method
2.2. Magnetic Dipole Moment Machine Learning Model
2.3. Magnetic Multipole Moment Machine Learning Model
| Algorithm 1: Multipole Moment Determination |
| MAX_MOMENTS = estimated moments MOMENTS = 0 MODEL [] for i = 1 to MAX_MOMENTS, do create MODEL (moments = i, optimizer = ADAGRAD, loss = MAE) [i] train MODEL[i] if derivative (MODEL[i] loss) < derivative (MODEL[i − 1] loss) MOMENTS = i end end create FINAL_MODEL (moments = MOMENTS, optimizer = RMSPROP, loss = Huber) train FINAL_MODEL |
2.4. Optimal Hyper-Parameter Determination
2.4.1. Loss Functions
2.4.2. Optimizers
- SGD has already been presented previously in this manuscript. It can be seen in Equation (3).
- ADAM has also already been presented previously and can be seen in Equations (5)–(10).
- Nesterov-accelerated Adaptive Momentum Estimation (NADAM) [23] combines Nesterov momentum with ADAM which can often be superior to standard momentum-based gradient descent. The update function is modified from the ADAM (Equations (5)–(10)) can be seen in Equation (13).
- Adaptive sub gradients (ADAGRAD) [24] were also explored. This method applies an adaptively scaled learning rate for each dimension of the tensor supplied and works well with sparse input data. The update function can be seen in Equation (14) where represents the sum for the squared gradient of the loss over the entire set of training.
- RMSPROP [25] is an update to ADAGRAD and maintains a running average of the sum of the squared gradient loss as shown in Equation (14). The update function for ADADELTA can be seen in Equation (15) where is the running average.
- Adaptive learning rate method. ADADELTA [26] is an update to RMSPROP and ADAGRAD by incorporating the running average of the sum of the squared gradients and correcting the unit of parameter updates with Hessian approximations where is a decay factor. It is analogous to β from the previous momentum-based equations. is the running average of the parameter updates. The final update method can be seen in Equation (17).
2.5. Data
2.5.1. Simple Dipole Moment Simulated Test Data
2.5.2. Dipole Moment Layers Simulated Test Data
2.5.3. Multipole Moment Layers Simulated Test Data
3. Results
3.1. Simple Dipole Moment
3.2. Dipole Moment Layers
3.3. Multipole Moment Layers
4. Conclusions
Future Work
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
Abbreviations
| PINN | Physics-Informed Neural Network |
| AI | Artificial Intelligence |
| ML | Machine Learning |
| ANN | Artificial Neural Network |
| PDE | Partial Differential Equation |
| FEM | Finite Element Methods |
| FDM | Finite Difference Methods |
| MSE | Mean Squared Error |
| RNN | Recurrent Neural Network |
| EMI | Electromagnetic Interference |
| EMC | Electromagnetic Compatibility |
| LEO | Low Earth Orbit |
| LSTM | Long-Term Short-Term |
| SERF | Spin Exchange Relaxation Free |
| SGD | Stochastic Gradient Descent |
| MAE | Mean Absolute Error |
References
- Rackauckas, C.; Ma, Y.; Martensen, J.; Warner, C.; Zubov, K.V.; Supekar, R.B.; Skinner, D.J.; Ramadhan, A. Universal Differential Equations for Scientific Machine Learning. arXiv 2020, arXiv:2001.04385. Available online: https://api.semanticscholar.org/CorpusID:210164697 (accessed on 25 January 2026).
- Peng, W.; Zhang, J.; Zhou, W.; Zhao, X.; Yao, W.; Chen, X. IDRLnet: A Physics-Informed Neural Network Library. arXiv 2021, arXiv:2107.04320. Available online: https://api.semanticscholar.org/CorpusID:235790732 (accessed on 25 January 2026). [CrossRef]
- Lu, L.; Meng, X.; Mao, Z.; Karniadakis, G.E. DeepXDE: A Deep Learning Library for Solving Differential Equations. SIAM Rev. 2021, 63, 208–228. [Google Scholar] [CrossRef]
- Koryagin, A.; Khudorozhkov, R.; Tsimfer, S. PyDEns: A Python Framework for Solving Differential Equations with Neural Networks. arXiv 2019, arXiv:1909.11544. Available online: https://api.semanticscholar.org/CorpusID:202749843 (accessed on 25 January 2026). [CrossRef]
- Chen, F.; Sondak, D.; Protopapas, P.; Mattheakis, M.; Shuheng, L.; Agarwal, D.; Di Giovanni, M. NeuroDiffEq: A Python package for solving differential equations with neural networks. J. Open. Source Softw. 2020, 5, 3. [Google Scholar] [CrossRef]
- Zubov, K.; McCarthy, Z.; Ma, Y.; Calisto, F.; Pagliarino, V.; Azeglio, S.; Bottero, L.; Luj’an, E.; Sulzer, V.; Bharambe, A.; et al. NeuralPDE: Automating Physics-Informed Neural Networks (PINNs) with Error Approximations. arXiv 2021, arXiv:2107.09443. Available online: https://api.semanticscholar.org/CorpusID:236134289 (accessed on 25 January 2026).
- Haghighat, E.; Juanes, R. SciANN: A Keras/TensorFlow wrapper for scientific computations and physics-informed deep learning using artificial neural networks. Comput. Methods Appl. Mech. Eng. 2021, 373, 113552. [Google Scholar] [CrossRef]
- Xu, K.; Darve, E. ADCME: Learning Spatially-varying Physical Fields using Deep Neural Networks 2021. arXiv 2021, arXiv:2011.11955. [Google Scholar] [CrossRef]
- Gardner, J.R.; Pleiss, G.; Bindel, D.; Weinberger, K.Q.; Wilson, A.G. GPyTorch: Blackbox matrix-matrix Gaussian process inference with GPU acceleration. In Proceedings of the 32nd International Conference on Neural Information Processing Systems, Montreal, QC, Canada, 3–8 December 2018; Curran Associates Inc.: Red Hook, NY, USA, 2018; pp. 7587–7597. Available online: https://dl.acm.org/doi/10.5555/3327757.3327857 (accessed on 25 January 2026).
- Varey, J.; Ruprecht, J.D.; Tierney, M.; Sullenberger, R. Physics-Informed Neural Networks for Satellite State Estimation. In Proceedings of the 2024 IEEE Aerospace Conference, Big Sky, MT, USA, 2–9 March 2024; IEEE: New York, NY, USA, 2024; pp. 1–8. [Google Scholar] [CrossRef]
- de Curtò, J.; de Zarz, I. Physics-Informed Neural Networks for Enhanced Thermal Regulation in a Spacecraft. Procedia Comput. Sci. 2024, 246, 1659–1669. [Google Scholar] [CrossRef]
- Fu, H.; Liu, Z.; Cui, K.; Du, Q.; Wang, J.; Shi, D. Physics-Informed Neural Network for Spacecraft Lithium-Ion Battery Modeling and Health Diagnosis. IEEE/ASME Trans. Mechatron. 2024, 29, 3546–3555. [Google Scholar] [CrossRef]
- Schiassi, E.; D’Ambrosio, A.; Drozd, K.; Curti, F.; Furfaro, R. Physics-Informed Neural Networks for Optimal Planar Orbit Transfers. J. Spacecr. Rocket. 2022, 59, 834–849. [Google Scholar] [CrossRef]
- Mentges, A.; Rawal, B.S. Magnetic Dipole Moment Estimation from Nearfield Measurements Using Stochastic Gradient Descent AI Model. In Proceedings of the 2022 International Conference on Machine Learning, Big Data, Cloud and Parallel Computing (COM-IT-CON), Faridabad, India, 26–27 May 2022; Curran Associates, Inc.: Red Hook, NY, USA, 2022; Volume 1, pp. 327–332. [Google Scholar]
- Styp-Rekowski, K.; Michaelis, I.; Korte, M.; Stolle, C. Physics-informed neural networks for the improvement of platform magnetometer measurements. Phys. Earth Planet. Inter. 2025, 358, 107283. [Google Scholar] [CrossRef]
- Wang, Z.; Lu, J.; Liu, Z.; Li, X.; Sheng, J.; Li, J. Neural Network-Assisted Magnetic Moment Measurement Using an Atomic Magnetometer. IEEE Trans. Instrum. Meas. 2025, 74, 2509010. [Google Scholar] [CrossRef]
- Boyle, J.C. Lunar Roving Vehicle Magnetic Tests. NASA GSFC. 1 October 1971. Available online: https://ntrs.nasa.gov/citations/19720019624 (accessed on 25 January 2026).
- Eichhorn, W.L. Magnetic Dipole Moment Determination by Near-Field Analysis. NASA GSFC. 1 July 1972. Available online: https://ntrs.nasa.gov/citations/19720020082 (accessed on 25 January 2026).
- Liu, K.; Sui, Y.; Cheng, H.; Wang, Z.; Clark, D.A. Magnetic Dipole Moment Determination Using Near-Field Magnetic Gradient Tensor Data. IEEE Geosci. Remote Sens. Lett. 2021, 18, 1169–1173. [Google Scholar] [CrossRef]
- Bottou, L. Stochastic Gradient Descent Tricks. In Neural Networks: Tricks of the Trade: Second Edition; Montavon, G., Orr, G.B., Müller, K.-R., Eds.; Springer: Berlin/Heidelberg, Germany, 2012; pp. 421–436. ISBN 978-3-642-35289-8. [Google Scholar] [CrossRef]
- Kingma, D.P.; Ba, J. Adam: A Method for Stochastic Optimization. CoRR 2014, arXiv:1412.6980. Available online: https://api.semanticscholar.org/CorpusID:6628106 (accessed on 25 January 2026).
- Huber, P. Robust Estimation of a Location Parameter. Ann. Math. Stat. 1964, 35, 73–101. [Google Scholar] [CrossRef]
- Dozat, T. Incorporating Nesterov Momentum into ADAM. 2015. Available online: https://api.semanticscholar.org/CorpusID:620137 (accessed on 25 January 2026).
- Duchi, J.; Hazan, E.; Singer, Y. Adaptive Subgradient Methods for Online Learning and Stochastic Optimization. J. Mach. Learn Res. 2011, 12, 2121–2159. Available online: https://dl.acm.org/doi/10.5555/1953048.2021068 (accessed on 25 January 2026).
- Tielman, T.; Hinton, G. Lecture 6.5-rmsprop: Divide the Gradient by a Running Average of Its Recent Magni-Tude. Presented at the Neural Networks for Machine Learning, 2012. Available online: https://www.cs.toronto.edu/~tijmen/csc321/slides/lecture_slides_lec6.pdf (accessed on 25 January 2026).
- Zeiler, M.D. ADADELTA: An Adaptive Learning Rate Method. arXiv 2012, arXiv:1212.5701. Available online: https://api.semanticscholar.org/CorpusID:7365802 (accessed on 25 January 2026). [CrossRef]





| Simulated Moment (Am2) | Accuracy Prior | MSE Prior | Accuracy New | MSE New | ||
|---|---|---|---|---|---|---|
| MX | MY | MZ | ||||
| 100 | 200 | −600 | 99.99754% | 4.55 × 10−11 | 99.99997% | 1.99 × 10−4 |
| 10 | 20 | −60 | 99.98638% | 4.53 × 10−13 | 99.99996% | 1.20 × 10−5 |
| 1 | 2 | −6 | 99.79722% | 4.6 × 10−15 | 99.99992% | 1.97 × 10−7 |
| 0.1 | 0.02 | −0.06 | 99.99832% | 9.94 × 10−19 | 99.99992% | 1.05 × 10−10 |
| 0.01 | 0.002 | −0.006 | 99.99831% | 3.19 × 10−19 | 99.99997% | 1.25 × 10−14 |
| 0.001 | 0.0002 | −0.0006 | 99.99832% | 7.17 × 10−19 | 99.99999% | 1.32 × 10−14 |
| Optimizer | Loss | Epochs | Time (mins) | Loss | Accuracy (%) |
|---|---|---|---|---|---|
| ADADELTA | MAE | 748 | 30.26704 | 1.996312 | 90.4873235 |
| ADAGRAD | MAE | 291 | 10.08119 | 1.89912 | 91.5430708 |
| ADAM | MAE | 1368 | 59.35596 | 1.993034 | 88.738672 |
| NADAM | MAE | 1406 | 136.135 | 1.998182 | 88.6279009 |
| RMSPROP | MAE | 584 | 21.62082 | 1.94257 | 93.3610191 |
| SGD | MAE | 1999 | 69.32518 | 118.2991 | 12.9396241 |
| Optimizer | Loss | Epochs | Time (min) | Final Loss | Accuracy (%) |
|---|---|---|---|---|---|
| ADADELTA | MSE | 1875 | 80.10475 | 3.996996 | 93.74246578 |
| ADAGRAD | MSE | 1548 | 54.45818 | 3.996562 | 93.73363789 |
| ADAM | MSE | 1560 | 65.92331 | 3.991645 | 92.54506961 |
| NADAM | MSE | 1675 | 68.79002 | 3.979271 | 93.49059389 |
| RMSPROP | MSE | 1321 | 94.26007 | 3.996391 | 95.29144061 |
| SGD | MSE | 1999 | 75.60933 | 66.43851 | 75.52251806 |
| Optimizer | Loss | Epochs | Time (min) | Final Loss | Accuracy (%) |
|---|---|---|---|---|---|
| ADADELTA | Huber | 903 | 38.92154 | 0.974888 | 93.41850522 |
| ADAGRAD | Huber | 289 | 10.8689 | 0.964193 | 92.80979322 |
| ADAM | Huber | 1584 | 74.40973 | 0.961713 | 92.04611767 |
| NADAM | Huber | 1461 | 147.8641 | 0.968014 | 91.77048061 |
| RMSPROP | Huber | 967 | 38.37425 | 0.9672 | 96.63192028 |
| SGD | Huber | 1999 | 74.94575 | 13.35677 | 64.13893572 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Mentges, A.; Rawal, B. Applied Physics-Informed Neural Networks for Spacecraft Magnetic Testing. Aerospace 2026, 13, 404. https://doi.org/10.3390/aerospace13050404
Mentges A, Rawal B. Applied Physics-Informed Neural Networks for Spacecraft Magnetic Testing. Aerospace. 2026; 13(5):404. https://doi.org/10.3390/aerospace13050404
Chicago/Turabian StyleMentges, Andrew, and Bharat Rawal. 2026. "Applied Physics-Informed Neural Networks for Spacecraft Magnetic Testing" Aerospace 13, no. 5: 404. https://doi.org/10.3390/aerospace13050404
APA StyleMentges, A., & Rawal, B. (2026). Applied Physics-Informed Neural Networks for Spacecraft Magnetic Testing. Aerospace, 13(5), 404. https://doi.org/10.3390/aerospace13050404

