Comparison of Machine Learning Algorithms for DC Motor PID Control with Genetic Algorithm


  • Ethan Deng American Heritage Schools, Broward Campus
  • Leya Joykutty
  • Juliana Caulkins



Machine Learning, PID, Genetic Algorithm


Proportional-Integral-Derivative (PID) is a closed loop control system based on dynamic system feedback commonly employed in industrial control systems that require continuous modulated control. The purpose of this project was to improve the efficacy of PID control, a branch of classical control theory, to allow for the application of PID controllers in more complex and non-linear environments. The research compares the results of different machine learning algorithms with genetic algorithms to optimize PID control parameters to achieve more precise control of 12V DC motors. Genetic Algorithm (GA) is a metaheuristic algorithm used to solve search and optimization problems in machine learning. GAs are developed based on the process of natural selection and genetics, relying on biologically inspired operators. After a series of selections and crossovers, the genetic algorithm selected the fittest generation of PID constants that would result in the optimal PID controller which minimizes system error value and linearizes the system behavior. Optimizing PID parameters to enhance the efficacy of classical control theory could increase machining precision in industrial production and improve the robustness of integrated PID controllers in complex environments such as the human body, enabling PID controllers to be an adaptive, simple, and viable option to be implemented in implantable artificial organs and motorized prosthetics. The results of the study suggest that GA optimized PID parameters are effective in regulating the system behavior of DC motors and the enhanced PID control system could be implemented in a wide range of rapidly changing and non-linear applications. 


Download data is not yet available.


Metrics Loading ...

References or Bibliography

Grelewicz, P., Khuat, T.T., Czeczot, J., Klopot, T., & Gabrys, B. (2021). Application of Machine Learning to Performance Assessment for a class of PID-based Control Systems. ArXiv, abs/2101.02939.

Handson Technology. (n.d.). L298N Dual H-Bridge Motor Driver [PDF]. dataspecs/L298N%20Motor%20Driver.pdf

Hernández-Alvarado, R., García-Valdovinos, L. G., Salgado-Jiménez, T., Gómez-Espinosa, A., & Fonseca-Navarro, F. (2016). Neural Network-Based Self-Tuning PID Control for Underwater Vehicles. Sensors (Basel, Switzerland), 16(9), 1429.

I W Widhiada et al. (2019). IOP Conf. Ser.: Mater. Sci. Eng. 673 012109

Jali, Mohd & Azam, N & Ghazali, Rozaimi & Jaafar, Hazriq Izzuan & Bohari, Z. (2016). PID control tuning using PSO for prosthetic hand system. International Journal of Applied Engineering Research. 11. 10274-10280.

Jayachitra, A., & Vinodha, R. (2014). Genetic algorithm based PID controller tuning approach for continuous stirred tank reactor. Advances in Artificial Intelligence, 2014, 1-8.

Mirzal, A., Yoshii, S., & Furukawa, M. (2012). PID Parameters Optimization by Using Genetic Algorithm. ArXiv, abs/1204.0885.

Nyberg, A. (2017). Optimizing PID parameters with machine learning. arXiv preprint arXiv:1709.09227.

Tanvir Ahmmed, Irin Akhter, S. M. Rezaul Karim, F. A. Sabbir Ahamed, Genetic Algorithm Based PID Parameter Optimization, American Journal of Intelligent Systems, Vol. 10 No. 1, 2020, pp. 8-13. doi: 10.5923/j.ajis.20201001.02.

Yi Zhou, "A Summary of PID Control Algorithms Based on AI-Enabled Embedded Systems", Security and Communication Networks, vol. 2022, Article ID 7156713, 7 pages, 2022.



How to Cite

Deng, E., Joykutty, L., & Caulkins, J. (2023). Comparison of Machine Learning Algorithms for DC Motor PID Control with Genetic Algorithm. Journal of Student Research, 12(1).



Research Articles