Next Article in Journal
The Principle and Development of Optical Maskless Lithography Based Digital Micromirror Device (DMD)
Previous Article in Journal
Process Optimization for Metal-Contact Etching in 3D Integration Devices
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Fourier Approximation of magMEMS Oscillations: Neural Network Space Handling

1
Department of Mathematics, School of Sciences and Humanities, Nazarbayev University, Astana 010000, Kazakhstan
2
Faculty of Electronics, Photonics and Microsystems, Wrocław University of Science and Technology, ul. Janiszewskiego 11/17, 50-372 Wrocław, Poland
*
Author to whom correspondence should be addressed.
Micromachines 2025, 16(12), 1355; https://doi.org/10.3390/mi16121355
Submission received: 12 September 2025 / Revised: 27 October 2025 / Accepted: 23 November 2025 / Published: 28 November 2025
(This article belongs to the Section E:Engineering and Technology)

Abstract

The initial value problem for a model of magnetic Micro-Electro-Mechanical System (magMEMS) with current-carrying conductors is considered. The model equation is a conservative MEMS oscillator due to the presence of the singular term corresponding to the magnetic force between two current-conducting wires. If the excitation parameter is below a certain threshold, the actuator oscillates. Fourier approximation of periodic solutions is enhanced by neural network space handling for both the limiting case where the geometric parameter approaches zero and the general case with arbitrary geometric parameter values. The method is validated through numerical comparisons with high-precision solutions, and its limitations are identified during the verification of experimental results. The findings can be useful for the design of magMEMS models.

1. Introduction

The operation of micro-electro-mechanical systems (MEMS) is strongly influenced by the pull-in effect, which occurs when electrostatic or magnetostatic forces overcome the restoring elastic forces, leading to mechanical instability and collapse. This phenomenon has been extensively investigated for electrostatically actuated MEMS devices [1,2,3]. The classical mass–spring model describing the pull-in effect was first introduced by Nathanson et al. [4], and further analyses clarified that the dynamic pull-in voltage is generally lower than the static pull-in threshold [5,6]. Although the electrostatic pull-in problem is now well understood, the corresponding analysis for magnetic MEMS (magMEMS) actuated by current-carrying conductors remains less developed. Understanding the oscillatory behavior and pull-in thresholds in magMEMS devices is crucial for ensuring reliable operation, particularly because excessive actuation currents can cause structural failure or permanent magnetic saturation [7,8,9,10,11]. Previous studies [12,13,14,15] have addressed dynamic pull-in and periodic oscillations for magnetic actuation models, emphasizing the need for accurate and computationally efficient approximation methods to guide device design.
Over the past two decades, various analytical and numerical techniques have been developed to approximate periodic solutions in nonlinear oscillatory systems. Among the most versatile methods is the Fourier–least squares method (FLSM) [16], which constructs periodic approximations by minimizing the residual of the governing nonlinear differential equation in the Fourier domain. This approach has been successfully applied to classical nonlinear oscillators, including the Duffing and Van der Pol systems [17], yielding accurate results even for strongly nonlinear regimes. Complementary to these classical methods, the rise of physics-informed neural networks (PINNs) [18] has opened a new avenue for integrating machine learning with differential equation modeling. Extensions of this framework, such as Fourier-feature-based PINNs [19], have demonstrated improved convergence for oscillatory solutions by embedding spectral information into the neural network input space. These developments motivate the combination of spectral and learning-based strategies for nonlinear problems with periodic responses.
The novelty of the present work lies in the formulation and application of a Fourier–neural network hybrid approach to compute approximate periodic solutions for magnetostatic MEMS oscillators with current-carrying wires. The proposed methodology combines the Fourier–least squares principle for residual minimization with neural network (NN) space handling, enabling efficient and high-accuracy computation of periodic orbits below the dynamic pull-in threshold. The approach is validated for both the limiting case of vanishing geometric parameter ξ 0 + and for the general nonzero ξ configuration, providing quantitative insights into parameter dependencies and dynamic stability. This hybrid Fourier–neural framework enhances the analytical tractability and computational efficiency of nonlinear magMEMS modeling and can be extended to other classes of oscillatory systems with similar nonlinearities.
This paper is organized as follows. Section 2 introduces the mathematical model of the magMEMS device. In Section 3, we present the construction of approximate Fourier periodic solutions and the neural network-based determination of Fourier parameters. Section 4, in turn, extends the method to the general case and discusses validation and parameter dependencies, while Section 5 concludes the paper with remarks on the effectiveness and potential extensions of the proposed approach.

2. Mathematical Model of magMEMS Oscillator

The magnetic force between two current carrying conductors having length L and separated by the distance b (Figure 1) can be expressed as [12]:
F L = i 1 i 2 μ 0 μ r 2 π b b 2 + L 2 + L 2 b 2 L 2 b 2 + 1 1 .
Then, the second Newton’s law of motion implies
m x ˜ ¨ + k s x ˜ i 1 i 2 μ 0 μ r 2 π ( b x ˜ ) ( b x ˜ ) 2 + L 2 + L 2 ( b x ˜ ) 2 L 2 ( b x ˜ ) 2 + 1 1 = 0 ,
where the restoring force due to the presence of a spring or springs with constant k s is
F R = k s x ˜ ,
and the attraction force between the current-carrying filaments due to the magnetic fields produced by the currents i 1 , i 2 is given as
F L = i 1 i 2 μ 0 μ r 2 π ( b x ˜ ) ( b x ˜ ) 2 + L 2 + L 2 ( b x ˜ ) 2 L 2 ( b x ˜ ) 2 + 1 1 .
The governing differential Equation (2) does not include a damping term with x ˜ ˙ since we assume that the air resistance and the mechanical damping of the flexible platform are negligible. Let us introduce the dimensionless distance and time as follows
x = x ˜ b and t = t ˜ k s m ,
respectively. The dimensionless model equation then becomes
x ¨ + x K ξ 2 ( 1 x ) ξ 2 ( 1 x ) 2 + 1 + 1 ( 1 x ) ξ 2 ( 1 x ) 2 + 1 ξ = 0 ,
where the scaled excitation parameter K is given by
K = μ 0 μ r i 1 i 2 L 2 π k s b 2 ,
and
ξ = b L
denotes the scaled geometric parameter. We complement Equation (2) with zero initial conditions
x ( 0 ) = x ˙ ( 0 ) = 0 ,
and assume that the currents in both wires are in the same direction or unidirectional, i.e., K 0 .
Multiplying both sides of Equation (4) by x ˙ and then integrating with respect to t leads to the conservation of the total energy
E K , ξ ( t ) = 1 2 ( x ˙ ( t ) ) 2 + 1 2 x 2 ( t ) K ξ 2 ( 1 x ( t ) ) 2 + 1 + artanh 1 ξ 2 ( 1 x ( t ) ) 2 + 1 ξ x ( t ) K 1 + ξ 2 artanh 1 1 + ξ 2 ,
from which it follows that
( x ˙ ( t ) ) 2 = x 2 ( t ) + 2 K ξ 2 ( 1 x ( t ) ) 2 + 1 + artanh 1 ξ 2 ( 1 x ( t ) ) 2 + 1 ξ x ( t ) + 2 K 1 + ξ 2 artanh 1 1 + ξ 2 .
Let
f K , ξ ( s ) = s 2 + 2 K ξ 2 ( 1 s ) 2 + 1 + artanh 1 ξ 2 ( 1 s ) 2 + 1 ξ s + 2 K 1 + ξ 2 artanh 1 1 + ξ 2
be related to the righ-hand-side of Equation (7). The solution x ( t ) is periodic if the corresponding phase portrait in the ( x , x ˙ ) forms a closed curve. This holds true when the function f K , ξ ( s ) has a root in the interval ( 0 , 1 ) . In the critical case K = K ξ * , the function f K , ξ ( s ) has a double root at s = A ξ * . This condition is satisfied when
f K ξ * , ξ ( A ξ * ) = 0 and f K ξ * , ξ s ( A ξ * ) = 0 ,
which results in the transcendental equation for A ξ * :
A ξ * 2 ξ 2 ( 1 A ξ * ) ξ 2 ( 1 A ξ * ) 2 + 1 + 1 ( 1 A ξ * ) ξ 2 ( 1 A ξ * ) 2 + 1 ξ = ξ 2 ( 1 A ξ * ) 2 + 1 + artanh 1 ξ 2 ( 1 A ξ * ) 2 + 1 ξ A ξ * + 1 + ξ 2 artanh 1 1 + ξ 2 .
The value of A ξ * , representing the maximum deflection, can be obtained numerically for various values of the parameter ξ by solving Equation (10). Then, the corresponding dynamic pull-in threshold K ξ * can be calculated as follows
K ξ * = ξ 2 ( 1 A ξ * ) ξ 2 ( 1 A ξ * ) 2 + 1 + 1 ( 1 A ξ * ) ξ 2 ( 1 A ξ * ) 2 + 1 ξ 1 A ξ *
due to the second condition from Equation (9). In Figure 2, the effect of the geometry parameter ξ on both the maximum deflection A ξ * of the flexible platform and the dynamic pull-in threshold K ξ * is illustrated. The maximum deflection A ξ * decreases as ξ increases due to a weakening Lorentz force. For the same reason, the dynamic pull-in threshold K ξ * increases with increasing ξ .
When the motion of the filament is caused by the magnetic field of an infinite current-carrying conductor, i.e., ξ 0 + , the zero initial value problem for Equation (4) becomes
x ¨ + x K 1 x = 0 , x ( 0 ) = x ˙ ( 0 ) = 0 .
Multiplying (12) by x ˙ and integrating with respect to time, we get the conservation of energy
E K , 0 ( t ) = 1 2 x ˙ ( t ) 2 + 1 2 x 2 ( t ) + K ln ( 1 x ( t ) ) 0
for all t 0 , and the corresponding function f K , ξ ( s ) defined in Equation (8) is given in the limit case ξ = 0 by f K , 0 ( s ) = s 2 2 K ln ( 1 s ) . The initial value problem by Equation (12) has periodic solutions if K < K 0 * , otherwise it has pull-in solutions. The dynamic pull-in threshold K 0 * and the maximum deflection A 0 * are given by [13,15]
K 0 * = 2 W 1 e 1 / 2 / 2 + 1 4 W 1 2 e 1 / 2 / 2 = 0.2036321888 ,
and
A 0 * = 1 + 1 4 K 0 * 2 = 0.71533 ,
which can be deduced from Equation (9). In Equation (14), W 1 : [ 1 / e , 0 ) [ 1 , ) denotes the second branch of the LambertW function which is defined as a solution y ( x ) 1 to the transcendental equation y e y = x for x [ 1 / e , 0 ) . The maximum deflection A satisfies for 0 < K < K 0 * the transcendental equation
A 2 + 2 K ln ( 1 A ) = 0 .
The lower bound for the separatrix K ( ξ ) = K ξ * can be inferred from Equation (11) as follows
K ξ * ( 1 A 0 * ) A 0 * ξ 2 ( 1 A 0 * ) 2 + 1 ξ 2 ( 1 A 0 * ) 2 + 1 ξ ( 1 A 0 * ) ξ 2 ( 1 A 0 * ) 2 + 1 = ( 1 A 0 * ) A 0 * + ( 1 A 0 * ) 2 A 0 * ξ + ( 1 A 0 * ) ( ( A 0 * ) 2 2 A 0 * + 1 ) A 0 * 2 ξ 2 + O ( ξ 4 )
due to the fact that A ξ * A 0 * = 0.715331863 , see Equation (15) and Figure 2. Notice that K 0 * = ( 1 A 0 * ) A 0 * according to the second condition in Equation (9). The lower bound K ˜ ξ * from Equation (17) confirms that the dynamic pull-in threshold K ξ * increases with increasing geometric parameter ξ as shown in Figure 2.

3. Approximate Periodic Solutions

3.1. Fourier Approximation

The differential equation in (12) can be rewritten as
( 1 x ) x ¨ x 2 + x = K .
In order to obtain an approximate periodic solution of this conservative singular oscillator, we employ a Fourier approximation method. The key idea is to project the dynamics onto a subspace spanned by a finite number of basis functions that inherently satisfy the initial conditions. In our case, we consider the following ansatz:
x ^ ( t ) = α sin 2 ( ω t ) + β sin 2 ( 2 ω t ) + γ sin 2 ( 3 ω t ) ,
which guarantees that
x ^ ( 0 ) = 0 and x ^ ˙ ( 0 ) = 0 .
In Equation (19), the parameter ω denotes the frequency. The parameter vector with four parameters
θ = [ ω , α , β , γ ] ,
which include both a dominant frequency component and amplitude coefficients for the first three harmonics, are then determined by enforcing that the ansatz approximately satisfies the governing equation. After differentiating the ansatz and substituting into Equation (18), we obtain
2 ω 2 α sin 2 ( ω t ) + β sin 2 ( 2 ω t ) + γ sin 2 ( 3 ω t ) 1 × 2 α sin 2 ( ω t ) α 32 β sin 4 ( ω t ) + 32 β sin 2 ( ω t ) 4 β + 18 γ sin 2 ( 3 ω t ) 9 γ + α sin 2 ( ω t ) + β sin 2 ( 2 ω t ) + γ sin 2 ( 3 ω t ) α sin 2 ( ω t ) + β sin 2 ( 2 ω t ) + γ sin 2 ( 3 ω t ) 2 = K .
Denoting the left-hand side of Equation (20) by f θ ( t ) , we define a loss function as the mean squared error
G ( θ ) = 1 N i = 1 N f θ ( t i ) K 2 ,
where in our implementation, the residual f θ ( t i ) K is computed at N = 100 equidistant points t i in the time interval [ 0 , 5 π ] . This range was chosen because it covers several periods of x ^ ( t ) . Our goal is to minimize G ( θ ) over the parameter vector θ . This is achieved by an unconstrained gradient descent procedure.

3.2. Minimization Strategy

For each fixed value of K, the initial guess for the parameters was chosen as
θ = [ 1 , K , K / 2 , K / 4 ] .
This choice is motivated by physical intuition: for small values of the excitation parameter K, the amplitude of the oscillations is expected to be small and to scale approximately linearly with K, while the dominant oscillatory behavior remains near the natural (or fundamental) frequency of the linear part of the system (here, approximately unity). Although simple stochastic gradient descent [20] or SGD with momentum can be used to update θ , our experiments showed that the Adam optimizer [21] converged significantly faster and more robustly. The Fourier residual is computed using PyTorch’s (PyTorch Stable (2.9.0) release) automatic differentiation [22], and the parameter vector is updated iteratively over 1000 iterations. Details of the optimization algorithm are as follows:
  • Initialization: For a given K (with K < K * ), initialize the parameter vector
    θ = [ 1 , K , K / 2 , K / 4 ]
    and generate N equidistant time points t i [ 0 , 5 π ] .
  • Loss Evaluation: Compute the Fourier residual f θ ( t i ) at each t i and evaluate the mean squared error loss
    G ( θ ) = 1 N i = 1 N f θ ( t i ) K 2 .
  • Gradient Update: Use the Adam optimizer to update θ by backpropagating the gradient of G ( θ ) .
  • Iteration: Perform the update for a fixed number of iterations (e.g., 1000 iterations). At each iteration, compare the current loss with the best loss recorded so far and save the corresponding θ if the current loss is lower.
  • Output: After the final iteration, output the parameter vector θ that achieved the minimum loss along with its corresponding loss value.

3.3. Comparison with High-Precision Runge-Kutta ODE Solver

We validate each approximate solution by comparing it to a high-precision Runge-Kutta (RK4) integration of
( 1 x ) x ¨ x 2 + x = K ,
with Δ t chosen as 10 6 and with a precision of 10 8 . Figure 3 illustrates these comparisons for three representative values of K. The solid lines show the Fourier-based approximations, whereas the dashed lines represent the RK4 solution sampled at several time steps. We observe excellent agreement.
To further quantify the accuracy, we compute the absolute error between the Fourier approximation and the RK4 solution, sampled on the same temporal grid, and plot this in Figure 4. We find that an error remains small for ω and α , with slightly larger deviations on β , γ . The Fourier-based method captures the behavior of the larger modes, but it underestimates the amplitudes of the highest-frequency terms somewhat.

3.4. Neural Network Fitting of Amplitude-Frequency Parameters

Although we can solve for θ = [ ω , α , β , γ ] repeatedly for each individual K black by minimizing L ( θ ) , it is often convenient to have an explicit (or near-explicit) mapping from K to the parameters [ ω , α , β , γ ] . We accomplish this by training a single neural network whose output layer has four nodes, corresponding to ω ( K ) , α ( K ) , β ( K ) , and γ ( K ) . Concretely, we sample K at various points in ( 0 , K ˜ ] , with K ˜ near the dynamic pull-in threshold K * , and for each K we find the best-fit θ that minimizes L ( θ ) . This yields a training set { [ K i , ω i , α i , β i , γ i ] } .
The neural network is a fully connected feedforward 4-layer net with widths of 64, 128, 64, and 32 nodes, using GELU  [23] activations for smoothness. Specifically, this activation is defined as
GELU ( x ) = x 2 1 + erf x 2 ,
where erf denotes the error function. We optimize for up to 500 , 000 epochs, employing the Adam optimizer and a cosine-annealing learning rate schedule [24]. An early stopping criterion is used based on a patience threshold to halt training once no further improvement in the loss is observed.
Figure 5 shows a direct comparison of the neural-network-predicted profiles of ω ( K ) , α ( K ) , β ( K ) , and γ ( K ) in the range of 0 K 0.2 versus the true values obtained from repeated least-squares fits of θ . The network captures the parameter trends very accurately.
Finally, Figure 6 illustrates the absolute errors
| ω NN ( K ) ω ref ( K ) | , | α NN ( K ) α ref ( K ) | , | β NN ( K ) β ref ( K ) | , | γ NN ( K ) γ ref ( K ) |
across the sampled K-values, plotted in a log scale. These small errors confirm that the neural networks successfully learn the parameter dependencies over the entire range ( 0 , K ˜ ] .

3.5. Maximum Deflection Comparison with Exact Solution

In order to further assess the accuracy of the approximate Fourier solutions, we compared the maximum (peak) amplitude of each Fourier solution against the exact amplitude obtained from the transcendental equation (see Equation (16))
A 2 2 K ln ( 1 A ) = 0 ,
where we ignore the trivial solution A = 0 . For each sampled value of K, we used a standard root-finding method (Brent’s method) to solve for the nontrivial maximum deflection A ref . Next, we optimized the Fourier parameters θ = [ ω , α , β , γ ] with 2000 Adam steps, constructed the corresponding Fourier approximate solution and extracted its maximum deflection A Fourier . The procedure was repeated for 20 values of K in the range ( 0 , K * ) .
Figure 7 illustrates the results. The left panel shows both the true amplitude (solid line) and the Fourier-based amplitude (dashed line) as functions of K. The right panel plots the absolute difference | A Fourier A ref | in a logarithmic scale. We observe that the approximation remains accurate over the entire range of K, with the absolute error staying within a small margin for practical purposes.
Notice that the exact maximum deflection can be expressed in terms of Taylor expansion using Equation (21) and implicit differentation:
A = 2 K + 2 K 2 + 14 3 K 3 + 14 K 4 + 2138 45 K 5 + 1562 9 K 6 + .
This result was obtained in Mathematica [25] by employing AsymptoticSolve.

4. Extension to Non-Zero Geometric Parameter

The approach described in Section 3 focused on the limiting case ξ 0 , where the governing equation simplifies to Equation (12). In practical magMEMS design, however, the geometric parameter ξ = b / L is typically non-zero and can significantly affect the system dynamics. This section extends our Fourier neural network method to handle the general case with arbitrary ξ > 0 , using the full governing Equation (4).

4.1. Generalized Fourier Approximation for Arbitrary ξ

For non-zero ξ , the governing Equation (4) can be rewritten as:
x ¨ + x τ ( x , ξ ) = K ,
where τ ( x , ξ ) is defined as:
τ ( x , ξ ) = ξ 2 ( 1 x ) ξ 2 ( 1 x ) 2 + 1 + 1 ( 1 x ) ξ 2 ( 1 x ) 2 + 1 ξ .
We employ the same Fourier ansatz as in Equation (19):
x ^ ( t ) = α sin 2 ( ω t ) + β sin 2 ( 2 ω t ) + γ sin 2 ( 3 ω t ) ,
which automatically satisfies the initial conditions x ^ ( 0 ) = x ^ ˙ ( 0 ) = 0 . The key difference is that now we must optimize the parameter vector θ = [ ω , α , β , γ ] for each pair ( K , ξ ) rather than just K alone.
The residual function becomes:
R θ ( t ; K , ξ ) = x ^ ¨ ( t ) + x ^ ( t ) τ ( x ^ ( t ) , ξ ) K ,
and the loss function is defined as:
L ( θ ; K , ξ ) = 1 N i = 1 N R θ ( t i ; K , ξ ) 2 .

4.2. Two-Input Neural Network Architecture

To efficiently handle the extended parameter space, we train a neural network that maps from the two-dimensional input ( K , ξ ) directly to the four Fourier parameters [ ω , α , β , γ ] (see Figure 8). This contrasts with the one-dimensional input K used in the ξ 0 case. The same surrogate rationale from Stage 2 applies here: once trained, the map ( K , ξ ) [ ω , α , β , γ ] provides instantaneous, differentiable evaluations that amortize per-query optimization and enable gradient-based inverse design across the two-parameter space.
The neural network architecture consists of fully connected layers with widths and GELU activations. We optimize the parameters for a grid of ( K , ξ ) pairs where K [ 0.01 , 0.19 ] and ξ [ 0.1 , 2.0 ] , ensuring that all combinations remain below the dynamic pull-in threshold K ξ * .

Workflow Overview and Grid Summary

The procedure follows two concise steps: (i) direct optimization of θ = [ ω , α , β , γ ] for each ( K i , ξ j ) on a coarse grid (no neural network in this step), producing a dataset ( K , ξ ) ( ω , α , β , γ ) ; and (ii) training a feedforward neural network to model this mapping. In the extended setting, the NN has two inputs ( K , ξ ) and four outputs ( ω , α , β , γ ) , compared to one input (K only) when ξ = 0 .
We use 20 points in K and 20 points in ξ (i.e., 400 total pairs) (Table 1).

4.3. Validation Against High-Precision Solutions

Figure 9 presents a comprehensive validation of our approach for different values of ξ . For each ξ { 0.1 , 0.5 , 1.0 , 2.0 } and various K values, we compare the Fourier approximation against high-precision Runge-Kutta solutions. The left panels show excellent agreement between the methods, while the right panels display the absolute errors on a logarithmic scale, demonstrating the high accuracy of our approach across different geometric configurations.

4.4. Parameter Dependency Analysis

The trained neural network enables efficient exploration of how the Fourier parameters vary with both K and ξ . Figure 10 illustrates the dependence of each parameter [ ω , α , β , γ ] on K for selected values of ξ . The crosses represent the reference values obtained from individual optimizations, while the solid lines show the neural network predictions.
The results reveal that the geometric parameter ξ has a pronounced effect on the parameter dependencies. In particular, the higher-order harmonic coefficients β and γ show significant variation with ξ , indicating that the geometric ratio between conductor separation and length plays a crucial role in determining the oscillatory behavior.
The fitted trends are consistent with the magnetostatic softening process. The fundamental frequency ω decreases almost linearly with K, with a steeper slope for smaller ξ . The leading amplitude α grows roughly linearly with K and is suppressed as ξ increases, reflecting a weaker effective forcing. Higher harmonics remain small, that is, β increases with K and is most pronounced for small ξ , whereas γ stays close to zero and vanishes as ξ grows. Consequently, for larger ξ the response is nearly single-harmonic, which explains the improved accuracy observed in Figure 9.
Figure 11 quantifies the accuracy of the neural network predictions by showing the absolute errors between predicted and reference values. The errors remain small across the entire parameter space, confirming the reliability of our approach.

4.5. Three-Dimensional Parameter Surfaces

To provide a comprehensive view of the parameter space, Figure 12 presents three-dimensional surface plots showing how each Fourier parameter varies simultaneously with both K and ξ . These surfaces capture the full parameter dependencies and can serve as visual guides for magMEMS design optimization.
The surface plots show that the frequency parameter ω increases smoothly with both K and ξ , exhibiting a nearly linear relationship across the parameter space. The primary amplitude coefficient α displays a more complex behavior, decreasing with increasing ξ while showing nonlinear dependence on K. The higher-order harmonic coefficients β and γ remain relatively small, with β showing the most variation across the parameter space and γ remaining close to zero throughout most of the domain. All parameters demonstrate smooth, well-behaved surfaces without discontinuities, ensuring the numerical stability of the approach.
This extended framework provides magMEMS designers with a comprehensive tool for analyzing devices with arbitrary conductor geometries, enabling rapid optimization across the full design space defined by both electrical and geometric parameters.
Alternatives such as low-order polynomials, splines, radial-basis interpolation, or Kriging/Gaussian process (GP) can approximate smooth maps very well, but in our two-parameter input ( K , ξ ) we observed: (i) nonuniform sensitivity and mild nonlinearity near the pull-in boundary; (ii) cross-coupling between K and ξ ; and (iii) the need for stable analytic gradients. A small fully connected NN handled these without hand-crafted basis selection, provided smooth, differentiable predictions, and generalized well between grid points. Interpolation-based surrogates typically require denser, more regular grids and may introduce non-smooth derivatives at knots, while GP/Kriging adds kernel selection and O ( n 3 ) scaling. The compact NN achieved comparable or better accuracy with straightforward training and O ( 1 ) inference.

5. Proof-of-Concept Measurement and Error Budget

5.1. Prototype Experimental Set-Up

The coil wire was driven with a DC current of 4 A , while the magMEMS cantilever carried a DC bias on the order of milliamperes (Figure 13). Displacement was recorded using a SIOSTM Nano Vibration Analyzer (Ilmenau, Germany), a laser Doppler vibrometer with a noise floor of 5 pm / Hz . Since the instrument’s DC path is suppressed, purely static deflection could not be measured directly. Instead, the quasi-DC response was inferred under sub-resonant harmonic actuation. The calibrated quasi-static sensitivity is S stat = μ 0 μ r i 1 L 2 π b k s 6.46 × 10 2 nm / mA ( 65 pm / mA ) .
In the present large-gap regime, the nondimensional groups obtained from Table 2 satisfy K 4.01 × 10 7 and ξ 3.10 × 10 2 , from which it follows that R ( x 0 ) K / ξ 1.3 × 10 9 1 . The linearization of (4) about the DC equilibrium x 0 yields
δ x ¨ + 1 R ( x 0 ) δ x = f ( t ) , R ( x ) = K ( 1 x ) 2 ξ 2 ( 1 x ) 2 + 1 ,
so k eff = k s 1 R ( x 0 ) k s . Consequently, the quasi-static gain is independent of the DC bias:
X rms = 1 2 μ 0 μ r i 1 i 2 ac L eff 2 π b k s 1 1 R ( x 0 ) 1 2 μ 0 μ r i 1 i 2 ac L eff 2 π b k s .
Thus any observable DC trend is attributed to a weak DC dependence of parasitic AC ripple and the readout chain rather than elastic/magnetic softening.
Measured RMS contains signal and a DC-independent baseline. Using the i 2 = 0 mA point as baseline, X noise = 5.54 pm, the signal-only RMS is computed in the power domain as
X sig = max X meas 2 X noise 2 , 0 .
With the quasi-static gain G = S stat / 2 46 pm / mA , the equivalent ripple current is i 2 , ripple = X sig / G .
The experimental parameters were extracted from Table 2, and the excitation parameter K was computed via Equation (5). For completeness, the nondimensional groups read ξ = b / L 3.10 × 10 2 and K = μ 0 μ r i 1 i 2 L / ( 2 π k s b 2 ) i 2 , so K 4.01 × 10 7 at i 2 = 10 mA . Since R ( 0 ) K / ξ 10 9 , the operation is overwhelmingly far from pull-in, and the quasi-static RMS is flat versus DC bias to first order. Thus, any residual variation reflects unintended AC ripple or environmental excitation.
We then analyzed the vibration spectrum. With a DC current applied to the magMEMS cantilever, the first-harmonic RMS amplitude varied by at least a factor of five, from 1.6 pm under repulsive bias to 7 pm under attractive bias; see Table 3. For clarity, Table 3 reports the measured RMS values together with the estimated uncertainty Δ .
This example illustrates a limitation of the Fourier approach at very small excitation: for the present range of the excitation parameter, the relative error of higher Fourier coefficients deteriorates the approximation. Nevertheless, one can compute the maximum deflection numerically as the root of f K , ξ ( s ) in Equation (8). For the case considered we obtain s = 6.476 · 10 10 , which yields 1.043 · 10 12 m } as the maximum deflection.

5.2. Experimental Perspective

To validate the findings obtained with the test Fourier neural network, a model magMEMS device is required. The simplest configuration, both in form and function, consists of two parallel conductor wires positioned opposite one another. These wires are self-supporting, serving simultaneously as conductors and as mechanical scaffolding. To regulate their length and stiffness, the conductors are fabricated in the form of ribbons and placed on an insulating substrate, with certain sections extending partially across a gap. Furthermore, the wires may be curved or bent, enabling them to contract or expand in response to external stimuli. A schematic illustration of the structure is presented in Figure 14.
The primary advantage of the proposed structure lies in its relative simplicity of fabrication and operation. Detection of the desired wire deflection induced by the self-generated magnetic field must be carried out using a high-resolution microscopic technique such as scanning electron microscopy (SEM), for example.
The initial test structures were fabricated with L = 40 μ m and b = 5 μ m , as illustrated in Figure 15. To ensure mechanical stability and to prevent wedging, the structure may be produced with more conductive lines than strictly required; however, in the verification experiment, only two lines were employed. The stiffness of the structure is governed by the line thickness, which in this case was set to 3 μ m , yielding a stiffness of approximately 10 N / m . Based on the general model, the design parameters can subsequently be optimized to satisfy the Fourier parameters defined by the three-term ansatz in Equation (19).

6. Conclusions

Approximate oscillatory solutions for a magMEMS switch with current-carrying conductors are obtained using the Fourier Neural Network Method for both the limiting case ξ 0 + and the general case with arbitrary geometric parameter ξ > 0 . Approximate periodic solutions for the range of the excitation parameter values less than the pull-in value exhibit accuracy comparable to that of classical ODE solvers. Numerical illustrations and validations of the effect of both the scaled excitation parameter K and geometric parameter ξ on the oscillation characteristics were presented. This allows for rapid evaluation of magMEMS switch device performance for various excitation currents, filament lengths, maximum separation distances, and spring parameters. The extension to non-zero ξ significantly broadens the applicability of the method, enabling comprehensive design space exploration. These results are especially useful in system optimization and can be easily implemented in a time domain circuit simulator like Spice.
MagMEMS devices under consideration are uniform in material composition, which is not the universal case. Inclusion of auxiliary materials (e.g., support, insulating, forming, etc.) might prove model less applicable by shear change to wire-wire b dimension. However, the most ubiquitous form of RF switches, nanowire-based circuits, or active MEMS devices are formed of a single material only [8]. As such, they are most accurately described by the introduced model. We believe that the nanofield is one of the main application areas.
The results obtained in this work can be useful for the design of magMEMS based on current-carrying filaments. Applications include design of magMEMS switches, oscillators, and resonators. The next research phase will involve a comprehensive experimental study of oscillating current-carrying filaments, transitioning from scaled-up prototypes to application-ready magMEMS devices. To develop a more complete model, future studies should explore damping and nonlinear resonances in harmonically excited systems.

Author Contributions

Conceptualization, P.S., B.P., P.P. and G.E.; methodology, A.B. and P.S.; software, A.B.; validation, P.S., A.B., A.D., P.P., B.P. and G.E.; formal analysis, A.B., A.D., P.S. and K.T.; investigation, A.B.; resources, P.S.; data curation, A.B.; writing—original draft preparation, A.B., P.S., P.P., B.P. and G.E.; writing—review and editing, P.S., A.B., A.D., P.P., B.P., K.T. and G.E.; visualization, A.B.; supervision, P.S., A.D. and G.E.; project administration, P.S.; funding acquisition, P.S., B.P., P.P. and A.D. All authors have read and agreed to the published version of the manuscript.

Funding

This research has been supported by the Ministry of Education and Science of the Republic of Kazakhstan within the framework of Project AP19676969 “Modeling, Analysis and Optimization of MEMS and magMEMS” and by National Science Centre of Poland project in OPUS 27 contest “Tip quantum dot transistor picometrology: new routes to explore the quantum systems using scanning probe microscopy—SQTMet”.

Data Availability Statement

The code for this project is available at: https://github.com/armanbolatov/magmems_optimization (accessed on 22 November 2025). The data supporting the reported results can be reproduced using the provided code.

Acknowledgments

The authors thank the reviewers for their valuable comments and suggestions that helped improve the quality of this manuscript.

Conflicts of Interest

The authors declare no conflicts of interest. The funders had no role in the design of the study; in the collection, analyses, or interpretation of data; in the writing of the manuscript; or in the decision to publish the results.

References

  1. Younis, M.I. MEMS Linear and Nonlinear Statics and Dynamics; Springer: Berlin/Heidelberg, Germany, 2011. [Google Scholar]
  2. Omarov, D.; Nurakhmetov, D.; Wei, D.; Skrzypacz, P. On the application of Sturm’s theorem to analysis of dynamic pull-in for a graphene-based MEMS model. Appl. Comput. Mech. 2018, 12, 59–72. [Google Scholar] [CrossRef]
  3. Skrzypacz, P.; Dongming, W.; Nurakhmetov, D.; Kostsov, E.G.; Sokolov, A.A.; Begzhigitov, M.; Ellis, G. Analysis of dynamic pull-in voltage and response time for a micro-electro-mechanical oscillator made of power-law materials. Nonlinear Dyn. 2021, 105, 227–240. [Google Scholar] [CrossRef]
  4. Nathanson, H.; Newell, W.; Wickstrom, R.; Davis, J. The resonant gate transistor. IEEE Trans. Electron Devices 1967, 14, 117–133. [Google Scholar] [CrossRef]
  5. Zhang, W.; Yan, H.; Peng, Z.-K.; Meng, G. Electrostatic pull-in instability in mems/nems: A review. Sens. Actuators A Phys. 2014, 214, 187–218. [Google Scholar] [CrossRef]
  6. Flores, G. On the dynamic pull-in instability in a mass-spring model of electrostatically actuated MEMS devices. J. Differ. Equ. 2017, 262, 3597–3609. [Google Scholar] [CrossRef]
  7. Park, B.; Li, M.; Liyanage, S.; Shafai, C. Lorentz force based resonant MEMS magnetic-field sensor with optical readout. Sens. Actuators A Phys. 2016, 241, 12–18. [Google Scholar] [CrossRef]
  8. Feng, X.L.; He, R.; Yang, P.; Roukes, M.L. Very high frequency silicon nanowire electromechanical resonators. Nano Lett. 2007, 7, 1953–1959. [Google Scholar] [CrossRef]
  9. Loh, O.Y.; Espinosa, H.D. Nanoelectromechanical contact switches. Nat. Nanotechnol. 2012, 7, 283–295. [Google Scholar] [CrossRef] [PubMed]
  10. Sun, W.P.; Lim, C.W.; Wu, B.S.; Wang, C. Analytical approximate solutions to oscillation of a current-carrying wire in a magnetic field. Nonlinear Anal. Real World Appl. 2009, 10, 1882–1890. [Google Scholar] [CrossRef]
  11. Senturia, S.D. Microsystem Design; Springer: Boston, MA, USA, 2001. [Google Scholar]
  12. Skrzypacz, P.; Ellis, G.; He, J.-H.; He, C.-H. Dynamic pull-in and oscillations of current-carrying filaments in magnetic micro-electro-mechanical system. Commun. Nonlinear Sci. Numer. Simul. 2022, 109, 106350. [Google Scholar] [CrossRef]
  13. He, J.-H.; Nurakhmetov, D.; Skrzypacz, P.; Wei, D. Dynamic Pull-in for Micro-Electro-Mechanical Device with a Current-Carrying Conductor. J. Low Freq. Noise Vib. Act. Control 2019, 40, 1059–1066. [Google Scholar] [CrossRef]
  14. He, J.-H.; Skrzypacz, P.S.; Zhang, Y.; Pang, J. Approximate periodic solutions to microelectromechanicalem oscillator subject to magnetostatic excitation. Math. Methods Appl. Sci. 2020. [Google Scholar] [CrossRef]
  15. Skrzypacz, P.; Ellis, G.; Pruchnik, B.; Putek, P. Generalized analysis of dynamic pull-in for singular magMEMS and MEMS oscillators. Sci. Rep. 2025, 15, 23691. [Google Scholar] [CrossRef] [PubMed]
  16. Bota, C.; Caruntu, B.; Bundau, O. Approximate periodic solutions for oscillatory phenomena modelled by nonlinear differential equations. Math. Probl. Eng. 2014, 2014, 513473. [Google Scholar] [CrossRef]
  17. Nayfeh, A.H.; Mook, D.T. Nonlinear Oscillations; John Wiley & Sons: Hoboken, NJ, USA, 2024. [Google Scholar]
  18. Raissi, M.; Perdikaris, P.; Karniadakis, G.E. Physics-informed neural networks: A deep learning framework for solving forward and inverse problems involving nonlinear partial differential equations. J. Comput. Phys. 2019, 378, 686–707. [Google Scholar] [CrossRef]
  19. Wang, S.; Teng, Y.; Perdikaris, P. Understanding and mitigating gradient flow pathologies in physics-informed neural networks. SIAM J. Sci. Comput. 2021, 43, A3055-81. [Google Scholar] [CrossRef]
  20. Bottou, L. Large-Scale Machine Learning with Stochastic Gradient Descent. In Proceedings of COMPSTAT’2010; Springer: Berlin/Heidelberg, Germany, 2010; pp. 177–186. [Google Scholar]
  21. Kingma, D.P.; Ba, J. Adam: A Method for Stochastic Optimization. In Proceedings of the International Conference on Learning Representations (ICLR), San Diego, CA, USA, 7–9 May 2015. [Google Scholar]
  22. Paszke, A.; Gross, S.; Massa, F.; Lerer, A.; Bradbury, J.; Chanan, G.; Killeen, T.; Lin, Z.; Gimelshein, N.; Antiga, L.; et al. PyTorch: An Imperative Style, High-Performance Deep Learning Library. Adv. Neural Inf. Process. Syst. 2019, 32, 8024–8035. [Google Scholar]
  23. Hendrycks, D.; Gimpel, K. Gaussian Error Linear Units (GELUs). arXiv 2016, arXiv:1606.08415. [Google Scholar]
  24. Loshchilov, I.; Hutter, F. SGDR: Stochastic Gradient Descent with Warm Restarts. In Proceedings of the International Conference on Learning Representations (ICLR), Toulon, France, 24–26 April 2017. [Google Scholar]
  25. Wolfram Research, Inc. Mathematica Version 14.3; Wolfram Research, Inc.: Champaign, IL, USA, 2025; Available online: https://www.wolfram.com/mathematica (accessed on 25 November 2025).
Figure 1. magMEMS with current-carrying filaments. The instantaneous distance between filaments is b x ˜ ( t ) .
Figure 1. magMEMS with current-carrying filaments. The instantaneous distance between filaments is b x ˜ ( t ) .
Micromachines 16 01355 g001
Figure 2. Maximum deflection A ξ * of flexible part and dynamic pull-in threshold K ξ * along with its lower bound K ˜ ξ * . Pairs ( ξ , K ) below the separatrix K * = K ξ * (solid line) lead to periodic solutions.
Figure 2. Maximum deflection A ξ * of flexible part and dynamic pull-in threshold K ξ * along with its lower bound K ˜ ξ * . Pairs ( ξ , K ) below the separatrix K * = K ξ * (solid line) lead to periodic solutions.
Micromachines 16 01355 g002
Figure 3. Comparison of the Fourier approximation (solid lines) with a high-precision Runge-Kutta solution (dashed lines) for three different values of K.
Figure 3. Comparison of the Fourier approximation (solid lines) with a high-precision Runge-Kutta solution (dashed lines) for three different values of K.
Micromachines 16 01355 g003
Figure 4. Absolute error between the Fourier-based approximation and the Runge-Kutta solution for different values of K. Note the logarithmic scale on the vertical axis.
Figure 4. Absolute error between the Fourier-based approximation and the Runge-Kutta solution for different values of K. Note the logarithmic scale on the vertical axis.
Micromachines 16 01355 g004
Figure 5. Neural-network fitting of the parameters ω , α , β , γ as functions of K. Crosses (×) represent the individual solutions obtained from the Fourier-residual minimization; solid lines show the neural network predictions.
Figure 5. Neural-network fitting of the parameters ω , α , β , γ as functions of K. Crosses (×) represent the individual solutions obtained from the Fourier-residual minimization; solid lines show the neural network predictions.
Micromachines 16 01355 g005
Figure 6. Log-scale plot of absolute errors between the neural network predictions and the individually optimized parameter values.
Figure 6. Log-scale plot of absolute errors between the neural network predictions and the individually optimized parameter values.
Micromachines 16 01355 g006
Figure 7. (Left) Comparison of the reference maximum deflection (solid line) derived from solving A 2 2 K ln ( 1 A ) = 0 with the Fourier-based maximum deflection (dashed line). (Right) The absolute error between these two maximum deflections displayed on a logarithmic scale.
Figure 7. (Left) Comparison of the reference maximum deflection (solid line) derived from solving A 2 2 K ln ( 1 A ) = 0 with the Fourier-based maximum deflection (dashed line). (Right) The absolute error between these two maximum deflections displayed on a logarithmic scale.
Micromachines 16 01355 g007
Figure 8. Neural network architecture for mapping ( K i , ξ j ) to Fourier parameters [ ω , α , β , γ ] . The network uses two inputs for the general case ( ξ 0 ) compared to one input (K only) when ξ = 0 .
Figure 8. Neural network architecture for mapping ( K i , ξ j ) to Fourier parameters [ ω , α , β , γ ] . The network uses two inputs for the general case ( ξ 0 ) compared to one input (K only) when ξ = 0 .
Micromachines 16 01355 g008
Figure 9. Validation of Fourier approximations for non-zero ξ values. Left panels: Comparison between Fourier solutions (solid lines) and RK4 solutions (dashed lines). Right panels: Absolute errors on logarithmic scale. Each row corresponds to a different ξ value: 0.1, 0.5, 1.0, and 2.0.
Figure 9. Validation of Fourier approximations for non-zero ξ values. Left panels: Comparison between Fourier solutions (solid lines) and RK4 solutions (dashed lines). Right panels: Absolute errors on logarithmic scale. Each row corresponds to a different ξ value: 0.1, 0.5, 1.0, and 2.0.
Micromachines 16 01355 g009
Figure 10. Fourier parameters as functions of K for different ξ values. Crosses: individual optimization results. Solid lines: neural network predictions. The geometric parameter ξ significantly influences the parameter trends, particularly for β and γ .
Figure 10. Fourier parameters as functions of K for different ξ values. Crosses: individual optimization results. Solid lines: neural network predictions. The geometric parameter ξ significantly influences the parameter trends, particularly for β and γ .
Micromachines 16 01355 g010
Figure 11. Absolute errors between neural network predictions and reference parameter values for different ξ values, displayed on logarithmic scale. The errors remain small across all parameters and ξ values.
Figure 11. Absolute errors between neural network predictions and reference parameter values for different ξ values, displayed on logarithmic scale. The errors remain small across all parameters and ξ values.
Micromachines 16 01355 g011
Figure 12. Three-dimensional parameter surfaces showing the variation of Fourier parameters [ ω , α , β , γ ] with both excitation parameter K and geometric parameter ξ . These surfaces provide comprehensive insight into the parameter dependencies for magMEMS design.
Figure 12. Three-dimensional parameter surfaces showing the variation of Fourier parameters [ ω , α , β , γ ] with both excitation parameter K and geometric parameter ξ . These surfaces provide comprehensive insight into the parameter dependencies for magMEMS design.
Micromachines 16 01355 g012
Figure 13. Simplified representation and photograph of the experimental setup with an elastic microcantilever carrying a current-leading filament.
Figure 13. Simplified representation and photograph of the experimental setup with an elastic microcantilever carrying a current-leading filament.
Micromachines 16 01355 g013
Figure 14. Idea of a MagMEMS—model device, with mechanical and electric structure simplified to the basic case—two conductors.
Figure 14. Idea of a MagMEMS—model device, with mechanical and electric structure simplified to the basic case—two conductors.
Micromachines 16 01355 g014
Figure 15. SEM image of an realized, but unoptimized exemplary structure for in-principle observation and validation of the calculated parameters.
Figure 15. SEM image of an realized, but unoptimized exemplary structure for in-principle observation and validation of the calculated parameters.
Micromachines 16 01355 g015
Table 1. Illustrative 20 × 20 grid of ( K , ξ ) pairs. Each entry stores the optimized parameter vector θ i , j = [ ω , α , β , γ ] obtained in Step 1 of optimization algorithm.
Table 1. Illustrative 20 × 20 grid of ( K , ξ ) pairs. Each entry stores the optimized parameter vector θ i , j = [ ω , α , β , γ ] obtained in Step 1 of optimization algorithm.
K 1 K 2 K 20
ξ 1 θ 1 , 1 θ 1 , 2 θ 1 , 20
ξ 2 θ 2 , 1 θ 2 , 2 θ 2 , 20
ξ 20 θ 20 , 1 θ 20 , 2 θ 20 , 20
Table 2. Variables and parameters, updated with the correct gap and active length.
Table 2. Variables and parameters, updated with the correct gap and active length.
Variables and ParametersValueUnitsDescription
i 1 4 [ A ] current in coil wire
i 2 10 × 10 3 [ A ] current in cantilever, used for K below
b 1.61 × 10 3 [ m ] effective coil–cantilever separation
L 5.20 × 10 6 [ m ] effective active length
k s 0.04 [ N / m ] spring constant of cantilever
μ 0 4 π × 10 7 [ N / A 2 ] vacuum permeability
μ r 1 [ ] relative permeability
K = μ 0 μ r i 1 i 2 L 2 π k s b 2 4.01 × 10 7 [ ] excitation at i 2 = 10 mA
ξ = b L 3.096 × 10 2 [ ] geometric parameter
S stat = μ 0 μ r i 1 L 2 π b k s 6.46 × 10 2 [ nm / mA ] quasi-static sensitivity ( 65 pm / mA )
Table 3. RMS vibration under DC bias with power-domain baseline removal and implied equivalent ripple.
Table 3. RMS vibration under DC bias with power-domain baseline removal and implied equivalent ripple.
i 2 DC (mA) X meas (pm) ± Δ (pm) X sig (pm) i 2 , ripple (mA)
05.541.110.000.000
24.290.860.000.000
46.951.394.200.092
68.461.696.400.140
86.741.353.800.083
107.191.444.600.100
Baseline X noise = X meas ( 0 mA ) = 5.54 pm . Signal-only X sig = max ( X meas 2 X noise 2 , 0 ) . Gain G = S stat / 2 46 pm / mA . Equivalent ripple i 2 , ripple = X sig / G .
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.

Share and Cite

MDPI and ACS Style

Skrzypacz, P.; Bolatov, A.; Dziedzic, A.; Ellis, G.; Tangirbergen, K.; Pruchnik, B.; Putek, P. Fourier Approximation of magMEMS Oscillations: Neural Network Space Handling. Micromachines 2025, 16, 1355. https://doi.org/10.3390/mi16121355

AMA Style

Skrzypacz P, Bolatov A, Dziedzic A, Ellis G, Tangirbergen K, Pruchnik B, Putek P. Fourier Approximation of magMEMS Oscillations: Neural Network Space Handling. Micromachines. 2025; 16(12):1355. https://doi.org/10.3390/mi16121355

Chicago/Turabian Style

Skrzypacz, Piotr, Arman Bolatov, Andrzej Dziedzic, Grant Ellis, Kaisar Tangirbergen, Bartosz Pruchnik, and Piotr Putek. 2025. "Fourier Approximation of magMEMS Oscillations: Neural Network Space Handling" Micromachines 16, no. 12: 1355. https://doi.org/10.3390/mi16121355

APA Style

Skrzypacz, P., Bolatov, A., Dziedzic, A., Ellis, G., Tangirbergen, K., Pruchnik, B., & Putek, P. (2025). Fourier Approximation of magMEMS Oscillations: Neural Network Space Handling. Micromachines, 16(12), 1355. https://doi.org/10.3390/mi16121355

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop