Next Article in Journal
Increasing Energy Efficiency in Well Drilling
Next Article in Special Issue
Investigating the Efficiencies of Fusion Algorithms for Accurate Equipment Monitoring and Prognostics
Previous Article in Journal
Numerical and Experimental Studies of the Use of Fiber-Reinforced Polymers in Long-Span Suspension Bridges
Previous Article in Special Issue
Design of Petri Net-Based Cyber-Physical Systems Oriented on the Implementation in Field Programmable Gate Arrays
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Dynamic Lyapunov Machine Learning Control of Nonlinear Magnetic Levitation System

Department of Electrical Engineering, Oakland University, Rochester, MI 48309, USA
*
Author to whom correspondence should be addressed.
Energies 2022, 15(5), 1866; https://doi.org/10.3390/en15051866
Submission received: 15 February 2022 / Revised: 25 February 2022 / Accepted: 28 February 2022 / Published: 3 March 2022
(This article belongs to the Special Issue Control Part of Cyber-Physical Systems: Modeling, Design and Analysis)

Abstract

:
This paper presents a novel dynamic deep learning architecture integrated with Lyapunov control to address the timing latency and constraints of deep learning. The dynamic component permits the network depth to increase or decrease depending on the system complexity/nonlinearity evaluated through the parameterized complexity method. A correlation study between the parameter tuning effect on the error is also made thus causing a reduction in the deep learning time requirement and computational cost during the network training and retraining process. The control Lyapunov function is utilized as an input cost function to the DNN in order to determine the system stability. A relearning process is triggered to account for the introduction of disturbances or unknown model dynamics, therefore, eliminating the need for an observer-based approach. The introduction of the relearning process also allows the algorithm to be applicable to a wider array of cyber–physical systems (CPS). The intelligent controller autonomy is evaluated under different circumstances such as high frequency nonlinear reference, reference changes, or disturbance introduction. The dynamic deep learning algorithm is shown to be successful in adapting to such changes and reaching a safe solution to stabilize the system autonomously.

1. Introduction

Deep learning is a multi-layer technique for shallow machine learning that enables the neural network to learn complex nonlinear patterns. While a single-layer neural network can make approximate outcome predictions, the addition of hidden layers improves prediction accuracy. Over the last few years, the integration of deep learning into industrial applications has progressed in areas such as robotics, self-driving vehicles, healthcare, and renewable energy. Researchers have advanced the integration of deep learning and nonlinear controls, enabling the controller to successfully learn control policies and iteratively arrive at approximate solutions via reinforcement learning [1]. Other researchers have concentrated on the use of machine learning to gain insight into the unknowns associated with complex system dynamics [2].
While deep-learning-based cyber–physical systems have a number of advantages, such as the ease with which complex patterns may be detected, ability to adapt and learn towards unknowns, and a higher degree of accuracy of predicting the outputs compared to shallow neural networks, but they also present a number of downsides. For instance, DNNs places a premium on the accuracy and diversity of the data collection in order to produce objective findings. Additionally, DNNs make no guarantees about the safety or feasibility of a proposed solution or its conclusions [3]. The introduction of additional data to the DNN addressed the set bias issue, it imposed a delay in the time required for the DNN to identify the best approach [4]. One of the major challenges of DNN in CPS presented in [5] is also finding the right balance between deeper architectures and practical regularization approaches. Linear and nonlinear controllers have presented a practical solution to low to mid-complexity static systems. Despite being efficient in managing mid-complexity system behaviors, they become susceptible to high complexity cyber–physical systems [6]. The control Lyapunov function (CLF) has been employed successfully to control complex nonlinear duffing and Van der Pol systems [7,8,9]. The idea behind using nonlinear controllers allows for a lossless control strategy to avoid system linearization while the integration of deep learning allows for the continuous adjustment and selection of system and control parameters. Machine learning has been utilized in previous research along with usually what is described as a cost function, but one of the downsides found was the amount of time required for the DNN to relearn during the process of updating the data set and also the time requirement to come up with the appropriate solution [10,11]. Further, as demonstrated in [12], the DNN accuracy and run-time to find a solution was affected by the number of parameters required and the dataset size.
Magnetic levitation has emerged as a feasible solution to the present demand for quicker and more efficient transportation methods, and its contact-free technology is already finding uses in space and military in addition to allowing for high speed, safe transit alternatives to railways. For the feedback control loop in a magnetic levitation system, position, velocity, and acceleration measurements are obtained. After the necessary signals have been measured and processed, they are fed into a feedback loop. To measure position, velocity, and acceleration in a Maglev system, contactless transducers must be used. Position and accelerometer sensors are employed to gather system data. Broadband, stability, and robustness in all working situations, linearity over the operational ranges, noise immunity, and immunity to radiation and stray magnetic fields all go into the selection of the transducer. Magneto-optical transducers are made up of two coils wrapped around a nonmagnetic rod. To activate the primary coil, which generates the magnetic field that creates an eddy current, an alternating current must be applied to it. When the eddy current passes through the secondary coil, it forms a magnetic field that generates voltage. The output of the secondary coil decreases as the track gets closer to the secondary coil, due to an increase in the opposing eddy-current field. The output of the transducer may be monitored using Lyapunov nonlinear control, and the clearance between the object and the rails can be regulated. Since batteries have a limited amount of power and are used in both present and future transportation applications, efficiency has been one of the most important design factors. The Maglev system in [13,14,15] incorporated energy harvesting or energy scavenging, which is the technique of capturing and converting ambient energy into useful electrical energy. Various energy sources have been effectively recycled during the last decade, including wind, solar radiation, thermal radiation, vibrations, and, most recently, magnetic energy harvesters. Coils, actuators, and a controller are all necessary components of magnetic energy harvester systems in order to collect and govern the recovered energy. There are coil-magnet components in the harvester that utilize Faraday’s law of electromagnetic induction [16].
CPS systems will continue to grow in complexity following a trend of growth in technology and microchips. The National Academies journal has stated in 2016 that: “today’s practice of CPS system design and implementation is often ad hoc and unable to support the level of complexity, scalability, security, safety, interoperability, and flexible design and operation that will be required to meet future needs”. While previous literature in [17,18] focused on toggling the control law between two or more options through machine learning. In addition, several assumptions or utilizing machine learning are used to utilize the control law over multiple iterations. In this research, we realize that computational solutions such as deep learning have some limitations when it comes to time constraints [10]. This research introduces the use of Pearson correlation and prioritizing high correlation parameters to the error within the algorithm. Moreover, we focus on the utilization of parameterized complexity to evaluate the dataset and keep the depth of the NN to a minimum while maintaining accurate output. A custom architecture of layers is presented. To the best of our knowledge, the integration of the previously mentioned concept has not been discussed in previous literature.
In this research, a novel approach is developed based on the parameterized complexity theory to estimate the complexity of the dataset and accordingly change the depth of the DNN. Rather than quantifying the system complexity purely in terms of its input length, other numerical properties of the input instance are considered such as the correlation between the dataset parameters collected while the CPS system is running or the memory occupation increase or decrease. The initial data set is a collection of parameter variations and their effects on the output. An updated dataset is collected via the deep neural network (DNN), and runs based on the initially defined CPS information. We identify high-performance compact deep learning architectures through a neural architecture search and meta learning. The neural network architecture is customized to minimize the training time and computational power required. A new data set is recorded if the delta error between the actual system error and the predicted system error generated by the DNN after the substitution with the proposed parameters is greater than 0.4. The system begins to add to its current data set while keeping in memory 40% of the older data set. A novel function to calculate the number of NN layers required to relearn the parameters tuning effect on the model. In addition, a novel control Lyapunov function is presented and the results are compared to a PID-controlled Maglev system from [19]. The proposed controller is shown to successfully stabilize the system under different disturbances and reference signal changes safely without going into an infinite loop.

2. Materials and Methods

Due to its efficiency and wide range of applications in real life, the study of magnetic levitation devices has been a focus in both the industrial and long-term theoretical research fields. As more Maglev applications are launched, additional control modifications will be required to ensure the system’s stability.
In this section, a traditional Magnetic Levitation system plant model is explored and the system dynamics equations are presented [20] and then the energy harvesting portion of the model dynamics is introduced [21].
The nonlinear model can be represented by the following set of differential equations and is schematically shown in Figure 1.

2.1. Magnetic Levitation System Dynamics

Traditional magnetic levitation model:
m x ¨ σ x ˙ = i 2 k c ( x x 0 ) 2 m k g
m: mass of the ball.
g: gravity.
x: displacement.
ẍ: acceleration.
i: current.
σ : damping constant [N/m.s].
The displacement and current position of the ball in the magnetic field is controlled by electric current supplied and governed by Equation (2).
F s = I ( t ) U ( t ) = k a T s + 1
i(t): current at time t.
U(t): voltage at time t.
K a : coil inductance.
T s : time constant.
Energy harvesting magnetic levitation model:
x + m g + x K m a g b K m a g t + S q ˙ + ( c m + c e ) x ˙ = 0
m: mass of the ball.
g: gravity.
x: displacement.
ẍ: acceleration.
i: current.
Alpha: magnetic force constant.
The system in Equation (3) presents a traditional magnetic levitation system dynamics. The displacement sensor will provide the feedback needed for the Lyapunov deep learning control to determine the appropriate control signal.
L s q ¨ + R s q ˙ + q C s S x ˙ = e c o s ( ω t ) .
v: voltage input.
R: resistance.
L: inductance.

2.2. State Space Representation

The below state space equation is aimed towards controlling the position of the Ferrous ball. Taking
x 1 = D i s p l a c e m e n t , x 2 = V e l o c i t y , x 3 = i
therefore, Equations (4) and (5) can be written as a matrix format while considering position as output.
x 1 ˙ x 2 ˙ x 3 ˙ = x 2 g α m ( x 3 x 1 ) 2 R L x 3 + 2 α L x 2 x 3 x 1 2 + 0 0 1 L
y P o s i t i o n = 1 0 0
A variation in the y matrix is made to change the intended controlled output.
y V e l o c i t y = 0 1 0
y C u r r e n t = 0 0 1

2.3. Design of the Lyapunov Controller

Lyapunov control has proven successful in managing complex nonlinear oscillators to a certain extent of oscillator frequency ω = 2.5 Hz [7]. In order to improve the system stability at a higher ω , deep learning was introduced in [4]. The deep learning algorithm is taught the relationship between the system parameters change, the controller parameter change, and the output error slope. If the algorithm detects a sudden change in slop a parameter update is triggered and the deep learning algorithm substitutes the current parameters with updated parameters that are expected to bring the system to stability.
The application of control Lyapunov functions was developed by Z. Artstein and E. D. Sontag in the 1980s and 1990s. Control Lyapunov functions are utilized to determine the stability of a system or a system ability to regain stability. A control Lyapunov function u is selected such that the function is globally positive definite and the time derivative of the control function u ˙ is negative definite and globally exponentially stable.
u = 1 2 ( e ˙ + α e ) 2
taking the time derivative of u
u ˙ = ( e ˙ + α e ) ( e ¨ + α e ˙ )
u ˙ = ( e ˙ + α e ) ( ( y d ¨ y ¨ ) + α e ˙ )
such that the error e = y d y . y d is the desired state and y is the actual state. Upon substitution in y ¨ in (12) we obtain the control law U. The Lyapunov function for the system in (1) is derived for the magnetic levitation model as
U = k m 2 ( e ˙ * α e ) + α e ˙ m + g m + K f v x ˙ i 2 * K c ( x x o ) 2 + y ¨ m
The Lyapunov function for the system in (3) is derived for the energy harvesting magnetic model as
U = y d ¨ α 4 y ¨ ω 4 y + α 3 x ¨ + x + ω 3 x 3 + α 2 y ˙ α 1 N cos ( θ t ) α e ˙ k 2 ( e ˙ + α e )

2.4. Deep Learning Algorithm

The research completed in [7] revealed that the controller parameters had substantial impact on the desired system outcome and error; therefore, the research in [4] successfully presented a deep learning approach that would allow 1 of the controller parameters to change while the system is operational thus tackling sudden changes in stability. One of the disadvantages found through the survey in [10] is that the system learning/relearning process robustness is significantly reduced if more parameters require updates simultaneously. Thus to reach system stability the time requirement and computational cost would significantly increase due to the large variations in the data in the data set. Since the updated parameters are not found within the target time, the system would fail.
In this paper we present a deep learning approach aided by different methods to alleviate the timing issue in research [11] and to increase the number of parameters that can be changed while maintaining a timely outcome and system stability. Researchers have proven success in utilizing the Lyapunov stability function in dynamic DNN weights [22] but in this research the number of deep learning layers increase or decrease in proportionality to the dataset complexity. The controller parameters that fall under the deep learning network include k , α , k f v , k c , α 3 . The parameters were selected by measure of effect on the controller signal and desired output.
Recently, optimization has become popular for finding network architectures that are computationally efficient to train while still performing well on certain classes of learning problems [23,24,25], leveraging the fact that many datasets are similar and thus information from previously trained models can be used. While this strategy is frequently highly effective, the current disadvantage is 11 certain works, for example [26], place a greater emphasis on the model’s memory footprint reduction. The overhead of meta learning or neural architecture search is computationally intensive in and of itself, since it needs training several models on a diverse collection of datasets, while the cost has been dropping in recent years approaching the cost of traditional training.
A critical constraint for learning is the size of the data set used to train the original model. For instance, shown that picture recognition performance is strongly influenced by image biases and that without these biases, transfer learning performance is reduced by 45%. Even with unique data sets created specifically to imitate their training data, we observe an 11–14% decrease in performance [27]. Another possibility for circumventing deep learning’s computational limitations is to switch to other, maybe undiscovered or undervalued methods of machine learning; therefore, in this research we integrated several methods to circumvent the data complexity relationship to computational cost.

2.4.1. Custom Deep Learning Architecture

The network architecture begins with the input layer receiving a precollected data set of 38,000 points including the time, V (cost function), velocity, position, parameters ( k , α , k f v , k c , α 3 ), reference, and error. Secondly, we create a convolution layer to compute the correlation between the input data sets. A fully connected convolution layer reduces the losses in correlation in contrast to a regular convolution layer. The third layer is a batch normalization layer to stabilize the learning process and reduce the number of training epochs required to train the network. The forth activation layer is required to stabilize the learning process and reduce the number of training epochs required to train deep networks. A fifth dropout layer is introduced to resolve the problem of over-fitting. Over-fitting occurs when the networks have high accuracy on the training data set but very low accuracy on the test data set. Finally the regression layer is added to compute the losses and readjust the node weights to accordingly. Algorithm 1 presents the steps towards obtaining the output.
Algorithm 1: Dynamic Deep Learning Algorithm.
Memory = 40% of the old training data previous_system_average = system error average of the training data initialization;
Energies 15 01866 i001

2.4.2. Parameterized Complexity and Dynamic Programming

The goal of parameterized complexity is to provide an alternate way for resolving intractable computational problems [28]. Rather than defining the complexity of an algorithm solely in terms of the length of its input, other numerical features of the input are considered. For example, the vertex cover problem is NP-hard, which means that it is unsolvable in the usual sense. If the run-time is additionally expressed in terms of the vertex cover size k, this problem can be solved in time 2O(k)nO. If k is small enough in comparison to the number of cases to solve, this is referred to as tractable. This improved concept of efficiency is called fixed-parameter tractability, and it has evolved into a canon of computational complexity [29]. Dynamic programming breaks down a complex problem into smaller decision sub-problems. These usually contain overlapping values that can be adjusted, but more crucially, the local values can be blended in a controlled fashion. Value functions are typically indicated by the notation V1, V2, …, Vn, where Vi signifies the system’s value at step i. Typically, the procedure involves some type of recursion [30,31]. Following this reasoning we define the complexity of our data set using two factors. factor K is the number of data points, As the number of data-points increases the assumed dataset complexity increases proportionally. On the other hand factor f is defined as the number of parameters or features defined in the data set, as the correlation increases the relationship between the parameter and controlling the error is easier to ascertain. According to the above assumptions, the relationship O ( k f n L o g ( n ) ) was utilized. For the case of having 38,000 data-points where K is the constant 2.8 × 10 4 and 7 features, it would yield 37 min of estimated DNN run time. At 6 min of run time it was found that 5 deep learning layers delivered 97% accuracy; with the increase in the required run time for each additional 10 min of run time, one additional layer was added. For 100,000 datasets, for 17 min of run time we added one additional fully connected convolution layer with 50 nodes increasing the number of deep neural network layers to 6 layers while maintaining 97% accuracy or higher.
The algorithm flow diagram is presented in Figure 2 to integrate the Maglev system model and Lyapunov control with the DNN running in the background with the continues stream of new data to support relearning. The DNN architecture developed is presented in Figure 3 where 38,000 data-points propagate through the input and hidden layers as the system begins to accumulate new data points. In order to maintain safe control strategy only 10% of the data set is updated when the DNN predicted error accuracy begins degrading. The AI runs continuously in tandem with the control and system. If the error slope surpasses a set threshold > abs|1| the neural network is queried to introduce new control parameters that are predicted to reduce the current system error. The network proposed in Figure 3 is initially trained and then used to predict new ( k , α , k f v , k c , α 3 ).
The concept of memory use is commonly referred to as self-refreshing memory and was first introduced and tested in [32,33,34]. The notion is that even when perturbations occur, they may not stay long enough for the network to lose its ability to anticipate the system error if the system parameters return to normal after the network has been retrained numerous times.

2.4.3. Deep Learning Algorithm Data Set

Initially the model is ran multiple times with different ( k , α , k f v , k c , α 3 ) while the output velocity, displacement and error is collected in a time indexed data set. The data set is later used to train the dynamic DNN model, which predicts the error for any suggested set of ( k , α , k f v , k c , α 3 ) depending on the current state of the system (velocity, displacement) at time t. The DNN is triggered to intervene if the error slope of 10 sequential data points exceeds the set value of 0.5. The algorithm sequentially begins to suggest an alternative set of control parameters predicted by the DNN to bring the system back to stability. After the suggested parameters are placed in the controller if the error slope does not begin to decline within 5 s from the introduction of new parameters the algorithm restarts the process while in parallel comparing the actual error to the predicted error if the difference is more than 1 then the DNN is triggered to relearn the system dynamics keeping 40% of the old data set in memory to maintain system safety.

3. Results

Initially The system is tested without the DNN and with the Lyapunov control in place. The results are compared to a system without the DNN and with PID control in place. Both controllers were tested under an input reference sine wave signal and input frequency of 40 rad/s. The results are recorded as shown in (Figure 4, Figure 5, Figure 6 and Figure 7). The system is found to be stable with the system parameters set to the values in Table 1 and the controller parameters set to the initial static values in Table 2 until the ω frequency of oscillations of the reference signal is increased over 4000 rad/sec where the system error begins to increase and both controllers have shown there static parameters unable to compensate for the change in ω (Figure 8 and Figure 9). The Lyapunov-controlled system outperformed PID since PID required a choice between overshoot and undershoot. The system performance would improve but with an initial overshoot that would repeat with the change of the step value; therefore, Lyapunov control was selected for the adaptation as Lyapunov controller performance is shown to be superior to the PID as shown in Figure 4 and Figure 5. The system was also tested under switching reference signals before the addition of dynamic deep learning and after its addition and the results are recorded to show the improvement. Under switching signal conditions the PID controller is shown to perform less effectively as shown in Figure 10).
Once the desired reference signal is changed from sinusoidal to the step function, the output error increases significantly as the static parameters require some changes to adapt for the signal change. Hence, the application of deep learning resolves sudden changes in the reference signal, as is shown in Section 3.2, where the algorithm reaction to reference signal change is detailed.

3.1. Error Parameter Correlation Study and Deep Learning Algorithm Application Results

The controller parameters were found to have different effects on the error variation as time progress. It was found that as the dataset is increased from 38,000 points to 100,000 data points and the parameters under the DNN purview are increased from one parameter K to 5 parameters ( k , α , k f v , k c , α 3 ) the DNN time required to find the appropriate combination of parameters was infinite; therefore, a Pearson correlation study between the effect of parameter change and error was utilized. The Pearson correlation coefficient (PCC) is a measure of the linear correlation between two sets of data and the results presented in Figure 11. The ratio of two variables covariance to the product of their standard deviations with the result always falling between −1 and 1 was demonstrated by (15). The priority is then assigned to each parameter accordingly. The correlation data are updated with the introduction of a new data set or if the deep learning network is triggered to relearn. The sequence at which the parameters are changed is also studied by varying the parameters in different sequences while the error vector is recorded. It was found that the change of sequence of the controller parameters had no effect on the output error reduction but instead the parameter with the highest correlation to the error had the most impact on the error reduction.
r = i = 1 n ( x i x ¯ ) ( y i y ¯ ) i = 1 n ( x i x ¯ ) 2 i = 1 n ( y i y ¯ ) 2
As Figure 11 shows, the highest correlation is between K, and as the error in parameter K is varied, the error is either reduced or increased depending on the state of the system; therefore, the priority of change to control is given to k and then the other parameters sequentially α , k f v , k c , α 3 . The correlation is continuously calculated as mentioned in the previous paragraph to account for change. In this section, we apply the DNN described in Section 2.4 to observe its effect on the system performance and hence the error. Figure 12 and Figure 13 shows the effect of utilizing the Dynamic Lyapunov control in stabilizing the system output under high frequency. In Figure 14, the reference signal is shown to be switched from sinusoidal to the step function and back to sinusoidal with the error between the reference and output position signal successfully being under control. The deep learning network reacts to the change of the reference signal type by updating the controller parameter K to 2700 from 20. If the change of K does not restabilize the system, the algorithm considers the second-highest parameter correlation to the error α and then the third, as mentioned at the beginning of this section.

3.2. Network Retraining

It was found that without the use of memory, the retraining phase of the neural network could take longer and, in some situations, continue into an indefinite state without finding the best solution. Because we only examine the change in the average of the system error, the speed with which the system returns to its stable condition has an impact on the retraining phase. The requirement for retraining will not be met if the difference between the prior system error average and the new system error average does not exceed the set point. The network can recall the stable and perturbed history of the system parameters attributable to the new data introduced to the memory. Figure 15 presents the flow logic and conditions towards the retraining process. While in Figure 16 the RMSE for training and re-training phase are presented.

4. Conclusions

Dynamic Lyapunov control is applied to a nonlinear Maglev model that is experiencing chaotic behavior. The study shows the effectiveness of dynamic deep learning integration with Lyapunov control allowing an autonomous CPS algorithm where the optimal parameters are found to maintain CPS stability. The algorithm is able to achieve safe parameter recommendations within 0.1 ms to 8 s from triggering the DNN depending on the number of parameters that require change and the type of nonlinear dynamics introduced. The algorithm is shown to yield successful results after testing different scenarios of switching inputs or applying high frequency input. In future studies, unsupervised types of machine learning architectures may be researched. Additionally, another research direction is to enable the deep learning system to select between different types of controllers or strategies based on the type of instability discovered. Adjusting the control mechanism would require additional processing power and data sets, but can be utilized in conjunction with parameter adjustment as a last resort towards system stability. Additionally, sliding mode control can be examined, which, when combined with the deep learning methods utilized in this study, could produce positive outcomes.

Author Contributions

Conceptualization, A.M. and M.Z.; methodology, A.M.; software, A.M.; validation, A.M. and M.Z.; formal analysis, A.M.; investigation, A.M.; resources, A.M.; data curation, A.M.; writing—original draft preparation, A.M.; writing—review and editing, A.M.; visualization, A.M.; supervision, M.Z.; project administration, A.M. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Kim, J.W.; Park, B.J.; Yoo, H.; Oh, T.H.; Lee, J.H.; Lee, J.M. A model-based deep reinforcement learning method applied to finite-horizon optimal control of nonlinear control-affine system. J. Process Control 2020, 87, 166–178. [Google Scholar] [CrossRef]
  2. Quade, M.; Isele, T.; Abel, M. Machine learning control explainable and analyzable methods. Phys. D Nonlinear Phenom. 2020, 412, 132582. [Google Scholar] [CrossRef]
  3. Kuutti, S.; Bowden, R.; Jin, Y.; Barber, P.; Fallah, S. A Survey of Deep Learning Applications to Autonomous Vehicle Control. IEEE Trans. Intell. Transp. Syst. 2021, 22, 712–733. [Google Scholar] [CrossRef]
  4. Mahmoud, A.; Ismaeil, Y.; Zohdy, M. Continuous Lyapunov Controlled Non-linear System Optimization Using Deep Learning with Memory. Int. J. Control Sci. Eng. 2020, 10, 23–30. [Google Scholar] [CrossRef]
  5. Wickramasinghe, C.S.; Marino, D.L.; Amarasinghe, K.; Manic, M. Generalization of deep learning for cyber-physical system security: A survey. In Proceedings of the IECON 2018—44th Annual Conference of the IEEE Industrial Electronics Society, Washington, DC, USA, 20–23 October 2018. [Google Scholar]
  6. Törngren, M.; Sellgren, U. Complexity challenges in development of cyber-physical systems. In Principles of Modeling: Essays Dedicated to Edward A. Lee on the Occasion of His 60th Birthday; Lohstroh, M., Derler, P., Sirjani, M., Eds.; Springer: Cham, Switzerland, 2018; pp. 478–503. [Google Scholar] [CrossRef]
  7. Alghassab, M.; Mahmoud, A.; Zohdy, M.A. Nonlinear control of chaotic forced Duffing and van der pol oscillators. Int. J. Mod. Nonlinear Theory Appl. 2017, 6, 26–37. [Google Scholar] [CrossRef] [Green Version]
  8. El-mezyani, T.; Wilson, R.; Leonard, J.; Edrington, C.; Srivastava, S.; Khazraei, M.; Qin, H.; Kimball, J.; Ferdowsi, M. Evaluation of nonlinearity and complexity in ssts Systems. In Proceedings of the 2012 IEEE International Systems Conference SysCon 2012, Vancouver, BC, Canada, 19–22 March 2012; pp. 1–7. [Google Scholar]
  9. Dai, H.; Landry, B.; Yang, L.; Pavone, M.; Tedrake, R. Lyapunov-stable neural-network control. Robotics: Science and Systems XVII. arXiv 2021, arXiv:2109.14152. [Google Scholar]
  10. Thompson, N.C.; Greenewald, K.; Lee, K.; Manso, G.F. The computational limits of deep learning. arXiv 2020, arXiv:2007.05558. [Google Scholar]
  11. Liu, X.; Xie, L.; Wang, Y.; Zou, J.; Xiong, J.; Ying, Z.; Vasilakos, A.V. Privacy and security issues in Deep learning: A survey. IEEE Access 2021, 9, 4566–4593. [Google Scholar] [CrossRef]
  12. Zarei, M.; Wang, Y.; Pajic, M. Statistical verification of learning-based cyber-physical systems. In Proceedings of the 23rd International Conference on Hybrid Systems: Computation and Control, Sydney, NSW, Australia, 21–24 April 2020. [Google Scholar]
  13. Kecik, K.; Mitura, A.; Lenci, S.; Warminski, J. Energy harvesting from a magnetic levitation system. Int. J. Non-Linear Mech. 2017, 94, 200–206. [Google Scholar] [CrossRef]
  14. Priya, S. Advances in energy harvesting using low profile piezoelectric transducers. J. Electroceramics 2007, 19, 167–184. [Google Scholar] [CrossRef]
  15. Li, Z.; Zuo, L.; Luhrs, G.; Lin, L.; Qin, Y.X. Electromagnetic energy-harvesting shock absorbers: Design, modeling, and road tests. IEEE Trans. Veh. Technol. 2013, 62, 1065–1074. [Google Scholar] [CrossRef]
  16. Priya, S.; Inman, D.J. Energy Harvesting Technologies; Springer: New York, NY, USA, 2009; Volume 21. [Google Scholar]
  17. Li, S.; Ahn, C.K.; Guo, J.; Xiang, Z. Neural network-based sampled-data control for switched uncertain nonlinear systems. IEEE Trans. Syst. Man Cybern. Syst. 2021, 51, 5437–5445. [Google Scholar] [CrossRef]
  18. Rego, R.C.; de Araújo, F.M. Learning-based robust neuro-control: A method to compute control Lyapunov functions. Int. J. Robust Nonlinear Control 2021, 5, 2644–2661. [Google Scholar] [CrossRef]
  19. Ahmad, I.; Shahzad, M.; Palensky, P. Optimal PID control of magnetic levitation system using genetic algorithm. IEEE Int. Energy Conf. (ENERGYCON) 2014, 1429–1433. [Google Scholar] [CrossRef]
  20. Rocha, R.T.; Balthazar, J.M.; Tusset, A.M.; de Souza, S.L.; Janzen, F.C.; Arbex, H.C. On a non-ideal magnetic levitation system: Nonlinear dynamical behavior and energy harvesting analyses. Nonlinear Dyn. 2019, 95, 3423–3438. [Google Scholar] [CrossRef]
  21. Kecik, K.; Kowalczuk, M. Effect of Nonlinear Electromechanical Coupling in Magnetic Levitation Energy Harvester. Energies 2021, 14, 2715. [Google Scholar] [CrossRef]
  22. Patil, O.S.; Le, D.M.; Greene, M.L.; Dixon, W.E. Lyapunov-derived control and adaptive update laws for inner and outer layer weights of a deep neural network. IEEE Control Syst. Lett. 2022, 6, 1855–1860. [Google Scholar] [CrossRef]
  23. Pham, H.; Guan, M.; Zoph, B.; Le, Q.; Dean, J. Efficient neural architecture search via parameters sharing. In Proceedings of the International Conference on Machine Learning, Stockholm, Sweden, 10–15 July 2018; pp. 4095–4104. [Google Scholar]
  24. Cai, H.; Gan, C.; Wang, T.; Zhang, Z.; Han, S. Once for all: Train one network and specialize it for efficient deployment. In Proceedings of the International Conference on Learning Representations, Addis Ababa, Ethiopia, 26–30 April 2020. [Google Scholar]
  25. Finn, C.; Abbeel, P.; Levine, S. Model-agnostic meta-learning for fast adaptation of deep networks. In Proceedings of the 34th International Conference on Machine Learning, Sydney, NSW, Australia, 6–11 August 2017; Volume 70, pp. 1126–1135. [Google Scholar]
  26. Long, M.; Zhu, H.; Wang, J.; Jordan, M.I. Deep transfer learning with joint adaptation networks. In Proceedings of the 34th International Conference on Machine Learning, Sydney, NSW, Australia, 6–11 August 2017; pp. 2208–2217. [Google Scholar]
  27. McCloskey, M.; Cohen, N. Catastrophic interference in connectionist networks: The sequential learning problem. In The Psychology of Learning and Motivation; Academic Press: Cambridge, MA, USA, 1989; Volume 24, pp. 109–164. [Google Scholar]
  28. Ali, J.M.; Hussain, M.A.; Tade, M.O.; Zhang, J. Artificial intelligence techniques applied as estimator in chemical process systems—A literature survey. Expert Syst. Appl. 2015, 42, 5915–5931. [Google Scholar]
  29. Clark, J.B.; Jacques, D.R. Practical measurement of complexity in Dynamic Systems. Procedia Comput. Sci. 2012, 8, 14–21. [Google Scholar] [CrossRef] [Green Version]
  30. Downey, R.G.; Fellows, M.R. Parameterized approximation. Texts Comput. Sci. 2013, 623–644. [Google Scholar] [CrossRef]
  31. Gomes, V.M.; Paiva, J.R.; Reis, M.R.; Wainer, G.A.; Calixto, W.P. Mechanism for measuring system complexity applying sensitivity analysis. Complexity 2019, 2019, 1855–1860. [Google Scholar] [CrossRef]
  32. Robins, A. Catastrophic Forgetting, rehearsal and pseudorehearsal. Connect. Sci. 1995, 7, 123–146. [Google Scholar] [CrossRef]
  33. Robins, A. Consolidation in Neural Networks and in the Sleeping Brain. Connect. Sci. 1996, 8, 259–276. [Google Scholar] [CrossRef]
  34. Ans, B.; Rousset, S. Neural networks with a self-refreshing memory: Knowledge transfer in sequential Learning tasks without catastrophic forgetting. Connect. Sci. 2000, 12, 1–19. [Google Scholar] [CrossRef]
Figure 1. Magnetic levitation system controller setup.
Figure 1. Magnetic levitation system controller setup.
Energies 15 01866 g001
Figure 2. Magnetic levitation system controller setup.
Figure 2. Magnetic levitation system controller setup.
Energies 15 01866 g002
Figure 3. Deep learning layers.
Figure 3. Deep learning layers.
Energies 15 01866 g003
Figure 4. Phase portrait of the Maglev system with a reference sinusoidal wave of 40 rad/s frequency under Lyapunov control.
Figure 4. Phase portrait of the Maglev system with a reference sinusoidal wave of 40 rad/s frequency under Lyapunov control.
Energies 15 01866 g004
Figure 5. Lyapunov controlled position with reference to sinusoidal wave of 40 rad/s frequency.
Figure 5. Lyapunov controlled position with reference to sinusoidal wave of 40 rad/s frequency.
Energies 15 01866 g005
Figure 6. Phase portrait of the Maglev system with a reference sinusoidal wave of 40 rad/s frequency under PID control.
Figure 6. Phase portrait of the Maglev system with a reference sinusoidal wave of 40 rad/s frequency under PID control.
Energies 15 01866 g006
Figure 7. PID controlled position with reference to sinusoidal wave of 40 rad/s frequency.
Figure 7. PID controlled position with reference to sinusoidal wave of 40 rad/s frequency.
Energies 15 01866 g007
Figure 8. Lyapunov controlled position with reference to sinusoidal wave of 4000 rad/s frequency.
Figure 8. Lyapunov controlled position with reference to sinusoidal wave of 4000 rad/s frequency.
Energies 15 01866 g008
Figure 9. PID controlled position with reference to sinusoidal wave. The figure shows a 10 Milliseconds snippet of 4000 rad/s frequency.
Figure 9. PID controlled position with reference to sinusoidal wave. The figure shows a 10 Milliseconds snippet of 4000 rad/s frequency.
Energies 15 01866 g009
Figure 10. The position with reference to a combined signal of sinusoidal and step function under PID control.
Figure 10. The position with reference to a combined signal of sinusoidal and step function under PID control.
Energies 15 01866 g010
Figure 11. Pearson correlation chart between the parameters and error.
Figure 11. Pearson correlation chart between the parameters and error.
Energies 15 01866 g011
Figure 12. Phase portrait of the Maglev system with a reference sinusoidal wave of 4000 rad/s under Deep Lyapunov Control.
Figure 12. Phase portrait of the Maglev system with a reference sinusoidal wave of 4000 rad/s under Deep Lyapunov Control.
Energies 15 01866 g012
Figure 13. Deep Lyapunov controlled position with reference to sinusoidal wave of 4000 rad/s frequency.
Figure 13. Deep Lyapunov controlled position with reference to sinusoidal wave of 4000 rad/s frequency.
Energies 15 01866 g013
Figure 14. The position with reference to a combination of sinusoidal and step function.
Figure 14. The position with reference to a combination of sinusoidal and step function.
Energies 15 01866 g014
Figure 15. Network retraining flow chart.
Figure 15. Network retraining flow chart.
Energies 15 01866 g015
Figure 16. Network retraining RMSE chart.
Figure 16. Network retraining RMSE chart.
Energies 15 01866 g016
Table 1. Maglev system parameters.
Table 1. Maglev system parameters.
ParameterValue
Mass (Kg)0.1
Gravity ( m s 2 )9.8
R s ( O h m ) 1
C s ( F ) 0.5
L s ( H e n r y ) 0.4
e0.002
S0.4
ω 2
Table 2. Lyapunov controller parameters.
Table 2. Lyapunov controller parameters.
ParameterValue
K0.1
Alpha19.8
K f v 2
K c 0.001
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Mahmoud, A.; Zohdy, M. Dynamic Lyapunov Machine Learning Control of Nonlinear Magnetic Levitation System. Energies 2022, 15, 1866. https://doi.org/10.3390/en15051866

AMA Style

Mahmoud A, Zohdy M. Dynamic Lyapunov Machine Learning Control of Nonlinear Magnetic Levitation System. Energies. 2022; 15(5):1866. https://doi.org/10.3390/en15051866

Chicago/Turabian Style

Mahmoud, Amr, and Mohamed Zohdy. 2022. "Dynamic Lyapunov Machine Learning Control of Nonlinear Magnetic Levitation System" Energies 15, no. 5: 1866. https://doi.org/10.3390/en15051866

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