Submitted:
07 February 2024
Posted:
08 February 2024
You are already at the latest version
Abstract
Keywords:
1. Introduction
- Training and testing ML approaches to solve direct and indirect electromagnetic problems;
- Selection of the ML model;
- Selection of the model hyper—parameters;
- Dataset generation;
- Regularization approaches;
- How machine learning treats ill posed inverse problems.
2. The Benchmark Problem
3. Considered Machine Learning Models
- -
- a “Direct Problem” (DP), where examples of the radii/currents set and of the corresponding flux density values are used to create a model able to generate the target field map, hence replicating the LFM from the radii. The direct model is then used within traditional optimization or inverse problem resolution algorithms;
- -
- a first class of “Inverse Problem” (IP#1), where measurements (inputs) and currents (outputs) are used to create a model of the underlying linear map. In this case, radii are assumed known, and the linear model is related to the (pseudo-)inverse of the LFM.
- -
- a second class of “Inverse Problem” (IP#2), where the currents are known and provided as input together with the measurements, while the outputs are the radii;
- -
- finally, a third class (IP#3), where both currents and radii (the outputs) must be recovered from field measurements, which are the only inputs in this case.
- Shallow Neural Networks (SNN) [18,19]: this is the standard approach: an artificial neural network with a single hidden layer with logistic activation functions. In the DP, Ni input neurons (corresponding to the radii), Nh hidden neurons and No output neurons (the elements of the LFM) are trained to provide the output. While Ni=10, the LFM will be represented by a reduced number of real numbers, corresponding to the main components in a PCA analysis based on the correlation analysis of the measurements. The full matrix is then recovered by exploiting the components identified in the PCA. In the inverse problems IP#1, IP#2 and IP#3, the SNN is used a straightforward solver, and the meaning of output neurons depends on the type of considered problem. This point will be further discussed below.
- The number Nh of hidden neurons is varied to assess model capabilities. The different SNN’s are trained using Levenberg-Marquardt Bayesian Regularization approach [23], which minimizes the weights together with the discrepancy on the data. Early topping is performed by means of worsen performance on a validartion set.
- Convolutional Networks (CNN) [20,21]. This class of NN will be considered for IP#3 only. A higher number of hidden layers is present here, and the network can be named “deep”. The inner layers are classified as “convolutional” and “pooling”, with different associated actions on the data. The activation functions are in this scheme the “ReLU” functions. This model has an intrinsic capability of building a reduced order inner model, which can be exploited to cope with the highly correlated nature of the input, represented by the flux density map in the ROI. The ADAM algorithm is used to train the CNN.
- In order to compare ML with more traditional statistical regression approaches, we have also considered Support-Vector Regression (SVR) [24,25] for the inverse problems. SVR training algorithm builds a linear model in a higher dimensional space exploiting the so called “kernel trick” by minimizing a quadratic objective function which is a combination of the Euclidean norm of the weights of the linear model and the sum of the so called slack variables, which represent a threshold of the maximum absolute deviation between the predicted and target values. The LIBSVM implementation of the SVR was employed

4. Results
4.1. Direct Problem
4.2. Inverse Problem #1
4.3. Inverse Problem #2

4.4. Inverse Problem #3

4.4. Inverse Problem #3: forward solution of inverted patterns
5. Discussion
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Acknowledgments
Conflicts of Interest
References
- Mohammed, O.A.; Lowther, D.A.; Lean, M.H.; Alhalabi, B. On the creation of a generalized design optimization environment for electromagnetic devices. IEEE Transactions on Magnetics 2001, 37, 3562–3565. [Google Scholar] [CrossRef]
- Massa, A.; Salucci, M. On the design of complex EM devices and systems through the System-by-Design paradigm: A framework for dealing with the computational complexity. IEEE Transactions on Antennas and Propagation 2021, 70, 1328–1343. [Google Scholar] [CrossRef]
- Li, Y.; Lei, G.; Bramerdorfer, G.; Peng, S.; Sun, X.; Zhu, J. Machine learning for design optimization of electromagnetic devices: Recent developments and future directions. Applied Sciences 2021, 11, 1627. [Google Scholar] [CrossRef]
- Khan, A.; Lowther, D.A. Machine learning applied to the design and analysis of low frequency electromagnetic devices. In Proceedings of the IEEE 21st International Symposium on Electrical Apparatus & Technologies (SIELA 2020), Bourgas, Bulgaria, 03–06 June 2020; pp. 1–4. [Google Scholar] [CrossRef]
- Khan, A.; Ghorbanian, V.; Lowther, D. Deep learning for magnetic field estimation. IEEE Transactions on Magnetics 2019, 55, 1–4. [Google Scholar] [CrossRef]
- Khan, A.; Mohammadi, M.H.; Ghorbanian, V.; Lowther, D. Efficiency map prediction of motor drives using deep learning. IEEE Transactions on Magnetics 2020, 56, 1–4. [Google Scholar] [CrossRef]
- Rahman, M.M.; Khan, A.; Lowther, D.; Giannacopoulos, D. Evaluating magnetic fields using deep learning. COMPEL-The international journal for computation and mathematics in electrical and electronic engineering 2023, 42, 1113–1130. [Google Scholar] [CrossRef]
- Formisano, A. A comparison of different formulations for an inverse source magnetostatic problem. In Proceedings of the International Applied Computational Electromagnetics Society Symposium (ACES 2019), Miami, FL, USA, 14‐19 April 2019; pp. 1‐2, url: https://ieeexplore.ieee.org/document/8713032.
- Formisano, A.; Martone, R. Different regularization methods for an inverse magnetostatic problem. International Journal of Applied Electromagnetics and Mechanics 2019, 60, S49–S62. [Google Scholar] [CrossRef]
- Barmada, S.; Fontana, N.; Sani, L.; Thomopulos, D; Tucci, M. Deep learning and reduced models for fast optimization in electromagnetics. IEEE Transactions on Magnetics 2020, 56, 1‐4. [CrossRef]
- Barmada, S.; Tucci, M.; Sani, L.; Tozzo, C. Deep Neural Network Based Electro‐Mechanical Optimization of Electric Motors. IEEE Transactions on Magnetics 2022, 59, 8201204‐ 8201204. [CrossRef]
- Tucci, M.; Barmada, S.; Sani, L.; Thomopulos, D.; Fontana, N. Deep neural networks based surrogate model for topology optimization of electromagnetic devices. In Proceedings of the International Applied Computational Electromagnetics Society Symposium (ACES 2019), Miami, FL, USA, 14–19 April 2019; pp. 1–2, url: https://ieeexplore.ieee.org/document/8712975. [Google Scholar]
- M. Tucci, S. Barmada, A. Formisano and D. Thomopulos. A regularized procedure to generate a deep learning model for topology optimization of electromagnetic devices. Electronics, vol. 10, 2021. [CrossRef]
- Barmada, S.M; Fontana, N.; Formisano, A.; Thomopulos, D.; Tucci, M. A deep learning surrogate model for topology optimization. IEEE Transactions on Magnetics 2021, 57, 1–4. [Google Scholar] [CrossRef]
- Barmada, S.; Di Barba, P.; Formisano, A.; Mognaschi, M.E.; Tucci, M. Learning-Based Approaches to Current Identification from Magnetic Sensors. Sensors 2023, 23, 3832. [Google Scholar] [CrossRef]
- Barmada, S.; Formisano, A.; Thomopulos, D.; Tucci, M. Deep learning as a tool for inverse problems resolution: a case study. COMPEL-The international journal for computation and mathematics in electrical and electronic engineering 2022, 41, 2120–2133. [Google Scholar] [CrossRef]
- Barmada, S.; Barba, P.D.; Fontana, N.; Mognaschi, M.E.; Tucci, M. Electromagnetic Field Reconstruction and Source Identification Using Conditional Variational Autoencoder and CNN. IEEE Journal on Multiscale and Multiphysics Computational Techniques 2023, 8, 322–331. [Google Scholar] [CrossRef]
- Haykin, S. Neural networks and learning machines, 3rd ed.; Prentice Hall: New York, NY, USA, 2011; ISBN 13-978-8131763773. [Google Scholar]
- Aggarwal, C.C. Neural Networks and Deep Learning; Springer Nature Switzerland AG: Cham, Switzerland, 2018; ISBN 978-3-319-94463-0. [Google Scholar] [CrossRef]
- Goodfellow, I.; Bengio, Y.; Courville, A. Deep learning; MIT press: Cambridge, MA, USA, 2016; ISBN 13-9780262035613. [Google Scholar]
- Aggarwal, C.C. Neural Networks and Deep Learning; Springer Nature Switzerland AG: Cham, Switzerland, 2018; Convolutional Neural Networks, pp 315–371; ISBN 978-3-319-94463-0. [CrossRef]
- Alotto, P.; Di Barba, P.; Formisano, A.; Lozito, G.M.; Martone, R.; Mognaschi, M.E.; Repetto, M.; Salvini, A.; Savini, A. Synthesizing sources in magnetics: a benchmark problem 2021, COMPEL-The international journal for computation and mathematics in electrical and electronic engineering, 40, 1084-1103. [CrossRef]
- Foresee, F.D.; Hagan, M.T. Gauss-Newton approximation to Bayesian learning. In Proceedings of the International Joint Conference on Neural Networks (IJCNN 1997), Houston, TX, USA, 12–12 June 1997; pp. 1930–1935. [Google Scholar] [CrossRef]
- Cortes, C.; Vapnik, V. Support-vector networks. Mach Learn 1995, 20, 273–297. [Google Scholar] [CrossRef]
- Smola, A.J.; Schölkopf, B. A tutorial on support vector regression. Statistics and computing 2004, 14, 199–222. [Google Scholar] [CrossRef]
- Khan, A.; Lowther, D.A. Physics informed neural networks for electromagnetic analysis. IEEE Transactions on Magnetics 2022, 58, 1–4. [Google Scholar] [CrossRef]
- Creswell, A.; White, T.; Dumoulin, V.; Arulkumaran, K.; Sengupta, B.; Bharath, A.A. Generative adversarial networks: An overview. IEEE signal processing magazine 2018, 35, 53–65. [Google Scholar] [CrossRef]









| I1 | I2 | I3 | I4 | I5 | I6 | I7 | I8 | I9 | I10 |
|---|---|---|---|---|---|---|---|---|---|
| 0.91% | 0.98% | 1.11% | 1.12% | 1.44% | 1.54% | 2.22% | 2.69% | 2.24% | 2.21% |
| R1 | R2 | R3 | R4 | R5 | R6 | R7 | R8 | R9 | R10 |
|---|---|---|---|---|---|---|---|---|---|
| 6.75% | 7.67% | 8.42% | 8.71% | 10.40% | 9.14% | 12.94% | 13.23% | 12.98% | 13.14% |
| I1 | I2 | I3 | I4 | I5 | I6 | I7 | I8 | I9 | I10 |
|---|---|---|---|---|---|---|---|---|---|
| 3.53% | 4.47% | 4.48% | 4.51% | 4.54% | 5.15% | 5.85% | 7.19% | 6.97% | 2.21% |
| R1 | R2 | R3 | R4 | R5 | R6 | R7 | R8 | R9 | R10 |
| 24.53% | 24.40% | 24.62% | 26.06% | 25.34% | 24.61% | 25.97% | 24.49% | 26.04% | 24.44% |
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. |
© 2024 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 (http://creativecommons.org/licenses/by/4.0/).