{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,4,1]],"date-time":"2026-04-01T18:09:09Z","timestamp":1775066949574,"version":"3.50.1"},"reference-count":39,"publisher":"MDPI AG","issue":"3","license":[{"start":{"date-parts":[[2025,3,7]],"date-time":"2025-03-07T00:00:00Z","timestamp":1741305600000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Computation"],"abstract":"<jats:p>This work proposes a vision system mounted on the head of an omnidirectional robot to track pineapples and maintain them at the center of its field of view. The robot head is equipped with a pan\u2013tilt unit that facilitates dynamic adjustments. The system architecture, implemented in Robot Operating System 2 (ROS2), performs the following tasks: it captures images from a webcam embedded in the robot head, segments the object of interest based on color, and computes its centroid. If the centroid deviates from the center of the image plane, a proportional\u2013integral\u2013derivative (PID) controller adjusts the pan\u2013tilt unit to reposition the object at the center, enabling continuous tracking. A multivariate Gaussian function is employed to segment objects with complex color patterns, such as the body of a pineapple. The parameters of both the PID controller and the multivariate Gaussian filter are optimized using a genetic algorithm. The PID controller receives as input the (x, y) positions of the pan\u2013tilt unit, obtained via an embedded board and MicroROS, and generates control signals for the servomotors that drive the pan\u2013tilt mechanism. The experimental results demonstrate that the robot successfully tracks a moving pineapple. Additionally, the color segmentation filter can be further optimized to detect other textured fruits, such as soursop and melon. This research contributes to the advancement of smart agriculture, particularly for fruit crops with rough textures and complex color patterns.<\/jats:p>","DOI":"10.3390\/computation13030069","type":"journal-article","created":{"date-parts":[[2025,3,7]],"date-time":"2025-03-07T07:05:46Z","timestamp":1741331146000},"page":"69","update-policy":"https:\/\/doi.org\/10.3390\/mdpi_crossmark_policy","source":"Crossref","is-referenced-by-count":1,"title":["The Optimization of PID Controller and Color Filter Parameters with a Genetic Algorithm for Pineapple Tracking Using an ROS2 and MicroROS-Based Robotic Head"],"prefix":"10.3390","volume":"13","author":[{"ORCID":"https:\/\/orcid.org\/0000-0002-9441-2633","authenticated-orcid":false,"given":"Carolina","family":"Maldonado-Mendez","sequence":"first","affiliation":[{"name":"Ingenier\u00eda en Computaci\u00f3n, Instituto de Agroingenier\u00eda, Universidad del Papaloapan, Loma Bonita C.P. 68400, Oaxaca, Mexico"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-6960-5460","authenticated-orcid":false,"given":"Sergio Fabian","family":"Ruiz-Paz","sequence":"additional","affiliation":[{"name":"Ingenier\u00eda en Computaci\u00f3n, Instituto de Agroingenier\u00eda, Universidad del Papaloapan, Loma Bonita C.P. 68400, Oaxaca, Mexico"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-3822-4478","authenticated-orcid":false,"given":"Isaac","family":"Machorro-Cano","sequence":"additional","affiliation":[{"name":"Tuxtepec Campus, Universidad del Papaloapan, Circuito Central #200, Colonia Parque Industrial, San Juan Bautista Tuxtepec C.P. 68301, Oaxaca, Mexico"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-7697-9118","authenticated-orcid":false,"given":"Antonio","family":"Marin-Hernandez","sequence":"additional","affiliation":[{"name":"Artificial Intelligence Research Institute, Universidad Veracruzana, Calle Paseo No. 112, Colonia Nueva Xalapa, Xalapa C.P. 91097, Veracruz, Mexico"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-9997-9690","authenticated-orcid":false,"given":"Sergio","family":"Hernandez-Mendez","sequence":"additional","affiliation":[{"name":"Artificial Intelligence Research Institute, Universidad Veracruzana, Calle Paseo No. 112, Colonia Nueva Xalapa, Xalapa C.P. 91097, Veracruz, Mexico"}]}],"member":"1968","published-online":{"date-parts":[[2025,3,7]]},"reference":[{"key":"ref_1","doi-asserted-by":"crossref","unstructured":"Feidakis, M., Gkolompia, I., Marnelaki, A., Marathaki, K., Emmanouilidou, S., and Agrianiti, E. (2023, January 1\u20134). NAO robot, an educational assistant in training, educational and therapeutic sessions. Proceedings of the 2023 IEEE Global Engineering Education Conference (EDUCON), Kuwait, Kuwait.","DOI":"10.1109\/EDUCON54358.2023.10125229"},{"key":"ref_2","doi-asserted-by":"crossref","unstructured":"Sulistijono, I.A., Rois, M., Yuniawan, A., and Binugroho, E.H. (2021, January 7\u201310). Teleoperated Food and Medicine Courier Mobile Robot for Infected Diseases Patient. Proceedings of the TENCON 2021\u20142021 IEEE Region 10 Conference (TENCON), Auckland, New Zealand.","DOI":"10.1109\/TENCON54134.2021.9707377"},{"key":"ref_3","doi-asserted-by":"crossref","unstructured":"Sunardi, M., and Perkowski, M. (2020, January 9\u201311). Behavior Expressions for Social and Entertainment Robots. Proceedings of the 2020 IEEE 50th International Symposium on Multiple-Valued Logic (ISMVL), Miyazaki, Japan.","DOI":"10.1109\/ISMVL49045.2020.00058"},{"key":"ref_4","doi-asserted-by":"crossref","unstructured":"Fischer, K. (2023, January 28\u201331). Defining Interaction as Coordination Benefits both HRI Research and Robot Development: Entering Service Interactions. Proceedings of the 2023 32nd IEEE International Conference on Robot and Human Interactive Communication (RO-MAN), Busan, Republic of Korea.","DOI":"10.1109\/RO-MAN57019.2023.10309642"},{"key":"ref_5","doi-asserted-by":"crossref","first-page":"307","DOI":"10.1561\/2300000066","article-title":"A roadmap for us robotics\u2014From internet to robotics 2020 edition","volume":"8","author":"Christensen","year":"2021","journal-title":"Found. Trends Robot."},{"key":"ref_6","doi-asserted-by":"crossref","unstructured":"Siciliano, B., Khatib, O., and Kr\u00f6ger, T. (2008). Springer Handbook of Robotics, Springer.","DOI":"10.1007\/978-3-540-30301-5"},{"key":"ref_7","doi-asserted-by":"crossref","unstructured":"Cao, Y., Ke, Z., Li, S., Zhao, S., Wang, J., and Xu, S. (2024, January 2\u20135). Data-Driven Trajectory Tracking Control Algorithm Design for Fast Migration to Different Autonomous Vehicles. Proceedings of the 2024 IEEE Intelligent Vehicles Symposium (IV), Jeju Island, Republic of Korea.","DOI":"10.1109\/IV55156.2024.10588606"},{"key":"ref_8","doi-asserted-by":"crossref","unstructured":"Ayranci, A.A., and Erkmen, B. (2024, January 23\u201325). Edge Computing and Robotic Applications in Modern Agriculture. Proceedings of the 2024 International Congress on Human-Computer Interaction, Optimization and Robotic Applications (HORA), Istanbul, Turkey.","DOI":"10.1109\/HORA61326.2024.10550846"},{"key":"ref_9","doi-asserted-by":"crossref","unstructured":"Duca, O., Minca, E., Filipescu, A., Cernega, D., Solea, R., and Filipescu, A. (2023, January 12\u201315). Flexible Manufacturing with Integrated Robotic Systems in the Context of Industry 5.0. Proceedings of the 2023 IEEE 28th International Conference on Emerging Technologies and Factory Automation (ETFA), Sinaia, Romania.","DOI":"10.1109\/ETFA54631.2023.10275730"},{"key":"ref_10","doi-asserted-by":"crossref","first-page":"108757","DOI":"10.1016\/j.compag.2024.108757","article-title":"Object detection and tracking in Precision Farming: A systematic review","volume":"219","author":"Baja","year":"2024","journal-title":"Comput. Electron. Agric."},{"key":"ref_11","doi-asserted-by":"crossref","unstructured":"Tang, Y., Chen, M., Wang, C., Luo, L., Li, J., Lian, G., and Zou, X. (2020). Recognition and Localization Methods for Vision-Based Fruit Picking Robots: A Review. Front. Plant Sci., 11.","DOI":"10.3389\/fpls.2020.00510"},{"key":"ref_12","doi-asserted-by":"crossref","unstructured":"Hu, N., Su, D., Wang, S., Nyamsuren, P., Qiao, Y., Jiang, Y., and Cai, Y. (2022). LettuceTrack: Detection and tracking of lettuce for robotic precision spray in agriculture. Front. Plant Sci., 13.","DOI":"10.3389\/fpls.2022.1003243"},{"key":"ref_13","doi-asserted-by":"crossref","unstructured":"Su, F., and Fang, G. (2012, January 5\u20137). Moving object tracking using an adaptive colour filter. Proceedings of the 2012 12th International Conference on Control Automation Robotics & Vision (ICARCV), Guangzhou, China.","DOI":"10.1109\/ICARCV.2012.6485302"},{"key":"ref_14","doi-asserted-by":"crossref","unstructured":"Clark, M., Feldpausch, D., and Tewolde, G.S. (2014, January 5\u20137). Microsoft kinect sensor for real-time color tracking robot. Proceedings of the IEEE International Conference on Electro\/Information Technology, Milwaukee, WI, USA.","DOI":"10.1109\/EIT.2014.6871800"},{"key":"ref_15","doi-asserted-by":"crossref","first-page":"1680","DOI":"10.3390\/make5040083","article-title":"A Comprehensive Review of YOLO Architectures in Computer Vision: From YOLOv1 to YOLOv8 and YOLO-NAS","volume":"5","author":"Terven","year":"2023","journal-title":"Mach. Learn. Knowl. Extr."},{"key":"ref_16","doi-asserted-by":"crossref","unstructured":"Chen, Y., Xu, H., Chang, P., Huang, Y., Zhong, F., Jia, Q., Chen, L., Zhong, H., and Liu, S. (2024). CES-YOLOv8: Strawberry Maturity Detection Based on the Improved YOLOv8. Agronomy, 14.","DOI":"10.3390\/agronomy14071353"},{"key":"ref_17","unstructured":"Ukida, H., Terama, Y., and Ohnishi, H. (2012, January 20\u201323). Object tracking system by adaptive pan-tilt-zoom cameras and arm robot. Proceedings of the 2012 Proceedings of SICE Annual Conference (SICE), Akita, Japan."},{"key":"ref_18","doi-asserted-by":"crossref","unstructured":"Saragih, C.F.D., Kinasih, F.M.T.R., Machbub, C., Rusmin, P.H., and Rohman, A.S. (August, January 31). Visual Servo Application Using Model Predictive Control (MPC) Method on Pan-tilt Camera Platform. Proceedings of the 2019 6th International Conference on Instrumentation, Control, and Automation (ICA), Bandung, Indonesia.","DOI":"10.1109\/ICA.2019.8916673"},{"key":"ref_19","doi-asserted-by":"crossref","unstructured":"Yosafat, S.R., Machbub, C., and Hidayat, E.M.I. (2017, January 2\u20133). Design and implementation of Pan-Tilt control for face tracking. Proceedings of the 2017 7th IEEE International Conference on System Engineering and Technology (ICSET), Shah Alam, Malaysia.","DOI":"10.1109\/ICSEngT.2017.8123449"},{"key":"ref_20","doi-asserted-by":"crossref","unstructured":"Chen, J., and Tian, G. (2024). A Tuning Method for Speed Tracking Controller Parameters of Autonomous Vehicles. Appl. Sci., 14.","DOI":"10.3390\/app142210209"},{"key":"ref_21","doi-asserted-by":"crossref","unstructured":"Li, K., Bai, Y., and Zhou, H. (2024). Research on Quadrotor Control Based on Genetic Algorithm and Particle Swarm Optimization for PID Tuning and Fuzzy Control-Based Linear Active Disturbance Rejection Control. Electronics, 13.","DOI":"10.3390\/electronics13224386"},{"key":"ref_22","doi-asserted-by":"crossref","first-page":"106708","DOI":"10.1016\/j.ymssp.2020.106708","article-title":"An improved genetic algorithm optimization fuzzy controller applied to the wellhead back pressure control system","volume":"142","author":"Liang","year":"2020","journal-title":"Mech. Syst. Signal Process."},{"key":"ref_23","doi-asserted-by":"crossref","unstructured":"Chen, Y.S., Hung, Y.H., Lee, M.Y.J., Chang, J.R., Lin, C.K., and Wang, T.W. (2024). Advanced Study: Improving the Quality of Cooling Water Towers\u2019 Conductivity Using a Fuzzy PID Control Model. Mathematics, 12.","DOI":"10.3390\/math12203296"},{"key":"ref_24","doi-asserted-by":"crossref","first-page":"387","DOI":"10.1007\/s00500-016-2474-6","article-title":"Particle swarm optimization algorithm: An overview","volume":"22","author":"Wang","year":"2018","journal-title":"Soft Comput."},{"key":"ref_25","doi-asserted-by":"crossref","first-page":"26","DOI":"10.1109\/MSP.2017.2743240","article-title":"Deep reinforcement learning: A brief survey","volume":"34","author":"Arulkumaran","year":"2017","journal-title":"IEEE Signal Process. Mag."},{"key":"ref_26","unstructured":"Goldberg, D.E. (2013). The Design of Innovation: Lessons from and for Competent Genetic Algorithms, Springer Science & Business Media."},{"key":"ref_27","doi-asserted-by":"crossref","unstructured":"Lambora, A., Gupta, K., and Chopra, K. (2019, January 14\u201316). Genetic algorithm\u2014A literature review. Proceedings of the 2019 International Conference on Machine Learning, Big Data, Cloud and Parallel Computing (COMITCon), Faridabad, India.","DOI":"10.1109\/COMITCon.2019.8862255"},{"key":"ref_28","doi-asserted-by":"crossref","unstructured":"Hernandez-Mendez, S., Maldonado-Mendez, C., Marin-Hernandez, A., and Rios-Figueroa, H.V. (2017, January 22\u201324). Detecting falling people by autonomous service robots: A ROS module integration approach. Proceedings of the 2017 International Conference on Electronics, Communications and Computers (CONIELECOMP), Cholula, Mexico.","DOI":"10.1109\/CONIELECOMP.2017.7891823"},{"key":"ref_29","doi-asserted-by":"crossref","unstructured":"Quigley, M., Conley, K., Gerkey, B., Faust, J., Foote, T., Leibs, J., Wheeler, R., and Ng, A.Y. (2009, January 12\u201317). ROS: An open-source Robot Operating System. Proceedings of the ICRA Workshop on Open Source Software, Kobe, Japan.","DOI":"10.1109\/MRA.2010.936956"},{"key":"ref_30","doi-asserted-by":"crossref","unstructured":"Yang, Y., and Azumi, T. (2020, January 10\u201311). Exploring real-time executor on ros 2. Proceedings of the 2020 IEEE International Conference on Embedded Software and Systems (ICESS), Shanghai, China.","DOI":"10.1109\/ICESS49830.2020.9301530"},{"key":"ref_31","first-page":"11443","article-title":"World pineapple production: An overview","volume":"16","author":"Hossain","year":"2016","journal-title":"Afr. J. Food Agric. Nutr. Dev."},{"key":"ref_32","doi-asserted-by":"crossref","unstructured":"Peng, G., Lam, T.L., Hu, C., Yao, Y., Liu, J., and Yang, F. (2023). Introduction to ROS 2 and Programming Foundation. Introduction to Intelligent Robot System Design: Application Development with ROS, Springer.","DOI":"10.1007\/978-981-99-1814-0"},{"key":"ref_33","doi-asserted-by":"crossref","first-page":"328","DOI":"10.1109\/TE.2020.2993013","article-title":"OpenCV Basics: A Mobile Application to Support the Teaching of Computer Vision Concepts","volume":"63","author":"Sigut","year":"2020","journal-title":"IEEE Trans. Educ."},{"key":"ref_34","doi-asserted-by":"crossref","unstructured":"Prince, S.J. (2012). Computer Vision: Models, Learning, and Inference, Cambridge University Press.","DOI":"10.1017\/CBO9780511996504"},{"key":"ref_35","unstructured":"Adhilpk (2025, February 21). Pineapple Dataset. Available online: https:\/\/www.kaggle.com\/datasets\/adhilpk\/pineapple."},{"key":"ref_36","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_37","doi-asserted-by":"crossref","unstructured":"Tu, Y.H., Wang, R.F., and Su, W.H. (2025). Active Disturbance Rejection Control\u2014New Trends in Agricultural Cybernetics in the Future: A Comprehensive Review. Machines, 13.","DOI":"10.3390\/machines13020111"},{"key":"ref_38","doi-asserted-by":"crossref","first-page":"715","DOI":"10.1093\/comjnl\/bxy077","article-title":"The strong connectivity of bubble-sort star graphs","volume":"62","author":"Wang","year":"2018","journal-title":"Comput. J."},{"key":"ref_39","doi-asserted-by":"crossref","unstructured":"Pan, C.H., Qu, Y., Yao, Y., and Wang, M.J.S. (2024). HybridGNN: A Self-Supervised Graph Neural Network for Efficient Maximum Matching in Bipartite Graphs. Symmetry, 16.","DOI":"10.20944\/preprints202410.1354.v1"}],"container-title":["Computation"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.mdpi.com\/2079-3197\/13\/3\/69\/pdf","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,10,9]],"date-time":"2025-10-09T16:48:50Z","timestamp":1760028530000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.mdpi.com\/2079-3197\/13\/3\/69"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2025,3,7]]},"references-count":39,"journal-issue":{"issue":"3","published-online":{"date-parts":[[2025,3]]}},"alternative-id":["computation13030069"],"URL":"https:\/\/doi.org\/10.3390\/computation13030069","relation":{},"ISSN":["2079-3197"],"issn-type":[{"value":"2079-3197","type":"electronic"}],"subject":[],"published":{"date-parts":[[2025,3,7]]}}}