{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2025,10,11]],"date-time":"2025-10-11T03:02:52Z","timestamp":1760151772081,"version":"build-2065373602"},"reference-count":31,"publisher":"MDPI AG","issue":"23","license":[{"start":{"date-parts":[[2022,11,28]],"date-time":"2022-11-28T00:00:00Z","timestamp":1669593600000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"funder":[{"DOI":"10.13039\/501100012639","name":"Prince Sultan University","doi-asserted-by":"publisher","award":["SEED-2021-CCIS-90"],"award-info":[{"award-number":["SEED-2021-CCIS-90"]}],"id":[{"id":"10.13039\/501100012639","id-type":"DOI","asserted-by":"publisher"}]}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Sensors"],"abstract":"<jats:p>Autonomous robots require control tuning to optimize their performance, such as optimal trajectory tracking. Controllers, such as the Proportional\u2013Integral\u2013Derivative (PID) controller, which are commonly used in robots, are usually tuned by a cumbersome manual process or offline data-driven methods. Both approaches must be repeated if the system configuration changes or becomes exposed to new environmental conditions. In this work, we propose a novel algorithm that can perform online optimal control tuning (OCTUNE) of a discrete linear time-invariant (LTI) controller in a classical feedback system without the knowledge of the plant dynamics. The OCTUNE algorithm uses the backpropagation optimization technique to optimize the controller parameters. Furthermore, convergence guarantees are derived using the Lyapunov stability theory to ensure stable iterative tuning using real-time data. We validate the algorithm in realistic simulations of a quadcopter model with PID controllers using the known Gazebo simulator and a real quadcopter platform. Simulations and actual experiment results show that OCTUNE can be effectively used to automatically tune the UAV PID controllers in real-time, with guaranteed convergence. Finally, we provide an open-source implementation of the OCTUNE algorithm, which can be adapted for different applications.<\/jats:p>","DOI":"10.3390\/s22239240","type":"journal-article","created":{"date-parts":[[2022,11,28]],"date-time":"2022-11-28T08:13:09Z","timestamp":1669623189000},"page":"9240","update-policy":"https:\/\/doi.org\/10.3390\/mdpi_crossmark_policy","source":"Crossref","is-referenced-by-count":4,"title":["OCTUNE: Optimal Control Tuning Using Real-Time Data with Algorithm and Experimental Results"],"prefix":"10.3390","volume":"22","author":[{"ORCID":"https:\/\/orcid.org\/0000-0002-0518-852X","authenticated-orcid":false,"given":"Mohamed","family":"Abdelkader","sequence":"first","affiliation":[{"name":"College of Computer & Information Sciences, Robotics & Internet of Things Laboratory, Prince Sultan University, P.O. Box 66833, Riyadh 11586, Saudi Arabia"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0000-0003-3638-4424","authenticated-orcid":false,"given":"Mohamed","family":"Mabrok","sequence":"additional","affiliation":[{"name":"Mathematics Program, Department of Mathematics, Statistics and Physics, College of Arts and Sciences, Qatar University, Doha P.O. Box 2713, Qatar"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0000-0003-3787-7423","authenticated-orcid":false,"given":"Anis","family":"Koubaa","sequence":"additional","affiliation":[{"name":"College of Computer & Information Sciences, Robotics & Internet of Things Laboratory, Prince Sultan University, P.O. Box 66833, Riyadh 11586, Saudi Arabia"}],"role":[{"role":"author","vocabulary":"crossref"}]}],"member":"1968","published-online":{"date-parts":[[2022,11,28]]},"reference":[{"key":"ref_1","doi-asserted-by":"crossref","first-page":"3505","DOI":"10.1021\/ie900323c","article-title":"Model predictive control tuning methods: A review","volume":"49","author":"Garriga","year":"2010","journal-title":"Ind. Eng. Chem. Res."},{"key":"ref_2","doi-asserted-by":"crossref","first-page":"818","DOI":"10.1007\/s40435-020-00665-4","article-title":"A review of PID control, tuning methods and applications","volume":"9","author":"Borase","year":"2021","journal-title":"Int. J. Dyn. Control"},{"key":"ref_3","first-page":"6235","article-title":"PX4: A node-based multithreaded open source robotics framework for deeply embedded platforms","volume":"2015","author":"Meier","year":"2015","journal-title":"Proc. IEEE Int. Conf. Robot. Autom."},{"key":"ref_4","unstructured":"(2022, March 15). ArduPilot Open Source Autopilot System. Available online: https:\/\/ardupilot.org\/."},{"key":"ref_5","doi-asserted-by":"crossref","first-page":"323","DOI":"10.1137\/0311025","article-title":"On feedback control of linear stochastic systems","volume":"11","author":"Lindquist","year":"1973","journal-title":"SIAM J. Control"},{"key":"ref_6","doi-asserted-by":"crossref","first-page":"764","DOI":"10.2307\/1426972","article-title":"Risk-sensitive linear\/quadratic\/Gaussian control","volume":"13","author":"Whittle","year":"1981","journal-title":"Adv. Appl. Probab."},{"key":"ref_7","first-page":"7","article-title":"Design and analysis of robust H-infinity controller","volume":"3","author":"Bansal","year":"2013","journal-title":"Control. Theory Inform."},{"key":"ref_8","doi-asserted-by":"crossref","first-page":"471","DOI":"10.1016\/0005-1098(83)90002-X","article-title":"Theory and applications of adaptive control\u2014A survey","volume":"19","year":"1983","journal-title":"Automatica"},{"key":"ref_9","doi-asserted-by":"crossref","unstructured":"Tao, G. (2003). Adaptive Control Design and Analysis, John Wiley & Sons.","DOI":"10.1002\/0471459100"},{"key":"ref_10","doi-asserted-by":"crossref","first-page":"2228","DOI":"10.1080\/00207179.2013.810345","article-title":"Model-free control","volume":"86","author":"Fliess","year":"2013","journal-title":"Int. J. Control"},{"key":"ref_11","doi-asserted-by":"crossref","first-page":"6391","DOI":"10.1109\/TIE.2014.2308161","article-title":"A novel model-free adaptive control design for multivariable industrial processes","volume":"61","author":"Xu","year":"2014","journal-title":"IEEE Trans. Ind. Electron."},{"key":"ref_12","doi-asserted-by":"crossref","unstructured":"Hou, Z., and Jin, S. (2013). Model Free Adaptive Control, CRC Press.","DOI":"10.1201\/b15752"},{"key":"ref_13","doi-asserted-by":"crossref","first-page":"79","DOI":"10.1016\/j.neucom.2013.03.065","article-title":"An adaptive PID neural network for complex nonlinear system control","volume":"135","author":"Kang","year":"2014","journal-title":"Neurocomputing"},{"key":"ref_14","doi-asserted-by":"crossref","first-page":"5266","DOI":"10.1109\/TNNLS.2021.3056585","article-title":"Gradient descent-based adaptive learning control for autonomous underwater vehicles with unknown uncertainties","volume":"32","author":"Qiu","year":"2021","journal-title":"IEEE Trans. Neural Netw. Learn. Syst."},{"key":"ref_15","doi-asserted-by":"crossref","first-page":"113025","DOI":"10.1016\/j.oceaneng.2022.113025","article-title":"An adaptive gradient descent attitude estimation algorithm based on a fuzzy system for UUVs","volume":"266","author":"Lyu","year":"2022","journal-title":"Ocean. Eng."},{"key":"ref_16","unstructured":"Yu, C.C. (2006). Autotuning of PID Controllers: A Relay Feedback Approach, Springer Science & Business Media."},{"key":"ref_17","doi-asserted-by":"crossref","first-page":"685","DOI":"10.3182\/20120328-3-IT-3014.00116","article-title":"Genetic Algorithm based PID Tuning for Optimal Power Control of a Three-shaft Brayton Cycle based Power Conversion Unit","volume":"45","author":"Uren","year":"2012","journal-title":"IFAC Proc. Vol."},{"key":"ref_18","doi-asserted-by":"crossref","unstructured":"Maddi, D., Sheta, A., Davineni, D., and Al-Hiary, H. (2019, January 11\u201313). Optimization of PID Controller Gain Using Evolutionary Algorithm and Swarm Intelligence. Proceedings of the 2019 tenth International Conference on Information and Communication Systems (ICICS), Irbid, Jordan.","DOI":"10.1109\/IACS.2019.8809144"},{"key":"ref_19","doi-asserted-by":"crossref","first-page":"109","DOI":"10.1016\/0888-613X(92)90014-Q","article-title":"Neural networks and dynamical systems","volume":"6","author":"Narendra","year":"1992","journal-title":"Int. J. Approx. Reason."},{"key":"ref_20","doi-asserted-by":"crossref","first-page":"612","DOI":"10.1002\/acs.3216","article-title":"dynoNet: A neural network architecture for learning dynamical systems","volume":"35","author":"Forgione","year":"2021","journal-title":"Int. J. Adapt. Control. Signal Process."},{"key":"ref_21","doi-asserted-by":"crossref","first-page":"588","DOI":"10.1016\/j.isatra.2011.06.005","article-title":"Identification and adaptive neural network control of a DC motor system with dead-zone characteristics","volume":"50","author":"Peng","year":"2011","journal-title":"ISA Trans."},{"key":"ref_22","unstructured":"Abadi, M., Agarwal, A., Barham, P., Brevdo, E., Chen, Z., Citro, C., Corrado, G.S., Davis, A., Dean, J., and Devin, M. (2022, October 30). TensorFlow: Large-Scale Machine Learning on Heterogeneous Systems. Available online: tensorflow.org."},{"key":"ref_23","unstructured":"Wallach, H., Larochelle, H., Beygelzimer, A., d\u2019Alch\u00e9-Buc, F., Fox, E., and Garnett, R. (2019). PyTorch: An Imperative Style, High-Performance Deep Learning Library. Advances in Neural Information Processing Systems 32, Curran Associates, Inc."},{"key":"ref_24","unstructured":"Yongquan, Y., Ying, H., and Bi, Z. (2003, January 26\u201329). A PID neural network controller. Proceedings of the International Joint Conference on Neural Networks, Istanbul, Turkey."},{"key":"ref_25","doi-asserted-by":"crossref","first-page":"207","DOI":"10.1016\/j.procs.2015.06.023","article-title":"Multilayer neuro PID controller based on back propagation algorithm","volume":"54","author":"Patel","year":"2015","journal-title":"Procedia Comput. Sci."},{"key":"ref_26","unstructured":"Goodfellow, I., Bengio, Y., and Courville, A. (2016). Deep Learning, MIT Press. Available online: http:\/\/www.deeplearningbook.org."},{"key":"ref_27","unstructured":"Khalil, H. (2002). Nonlinear Systems, Pearson Education, Prentice Hall."},{"key":"ref_28","unstructured":"(2022, April 07). PX4 Control Architecture. Available online: http:\/\/docs.px4.io\/master\/en\/flight_stack\/controller_diagrams.html."},{"key":"ref_29","unstructured":"Koenig, N., and Howard, A. (October, January 28). Design and Use Paradigms for Gazebo, An Open-Source Multi-Robot Simulator. Proceedings of the IEEE\/RSJ International Conference on Intelligent Robots and Systems, Sendai, Japan."},{"key":"ref_30","first-page":"5","article-title":"ROS: An open-source Robot Operating System","volume":"3","author":"Quigley","year":"2009","journal-title":"ICRA Workshop Open Source Softw."},{"key":"ref_31","unstructured":"\u00c5str\u00f6m, K.J., and Wittenmark, B. (1990). Computer-Controlled Systems: Theory and Design, Prentice-Hall, Inc.. [2nd ed.]."}],"container-title":["Sensors"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.mdpi.com\/1424-8220\/22\/23\/9240\/pdf","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,10,11]],"date-time":"2025-10-11T01:28:06Z","timestamp":1760146086000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.mdpi.com\/1424-8220\/22\/23\/9240"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2022,11,28]]},"references-count":31,"journal-issue":{"issue":"23","published-online":{"date-parts":[[2022,12]]}},"alternative-id":["s22239240"],"URL":"https:\/\/doi.org\/10.3390\/s22239240","relation":{},"ISSN":["1424-8220"],"issn-type":[{"type":"electronic","value":"1424-8220"}],"subject":[],"published":{"date-parts":[[2022,11,28]]}}}