Leveraging programmable logic controllers for machine learning applications in industrial setups

dc.contributor.authorZamora Arranz, David
dc.contributor.authorGarcía Bringas, Pablo
dc.contributor.authorGude, Juan José
dc.contributor.authorSer Lorente, Javier del
dc.date.accessioned2026-05-04T08:01:07Z
dc.date.available2026-05-04T08:01:07Z
dc.date.issued2026-06
dc.date.updated2026-05-04T08:01:06Z
dc.description.abstractMachine Learning (ML) has become a powerful tool for addressing complex classification and regression tasks in industrial settings. Despite the widespread use of programmable logic controllers (PLCs) in these environments, ML models are typically executed on external computing devices due to inherent PLC limitations: restricted memory capacity, long cycle times, and limited computational power. These constraints hinder the direct deployment of ML algorithms on PLCs and often require additional hardware, increasing system complexity and deployment costs. This paper addresses this challenge by demonstrating the direct implementation of four ML algorithms on a Siemens S7-1516 PLC: Linear Regression, Logistic Regression, k-Nearest Neighbors (kNN), and a Neural Network. In addition, a real-world laboratory prototype modeling the thermal behavior of an industrial 3D printer is presented to illustrate the practical applicability of our research findings. To overcome PLC resource constraints, two optimization strategies are proposed: (1) algorithmic adaptations to reduce execution cycle time, and (2) a custom, high-performance matrix multiplication library designed to replace the naive implementation common in standard tools. We evaluate the performance of the proposed implementations across datasets of varying sizes, comparing the standard TIA Portal functions to our optimized library. The results demonstrate that that the optimized implementations achieve acceptable cycle times and consistently outperform the baseline, confirming the feasibility of efficient, native ML execution on PLCs. These findings open new avenues for embedding ML capabilities directly into PLC-based automation systems, enabling smarter and more autonomous industrial control.en
dc.identifier.citationZamora-Arranz, D., Garcia-Bringas, P., Gude, J. J., & Del Ser, J. (2026). Leveraging programmable logic controllers for machine learning applications in industrial setups. Results in Engineering, 30. https://doi.org/10.1016/J.RINENG.2026.110194
dc.identifier.doi10.1016/J.RINENG.2026.110194
dc.identifier.eissn2590-1230
dc.identifier.urihttps://hdl.handle.net/20.500.14454/5848
dc.language.isoeng
dc.publisherElsevier B.V.
dc.rights© 2026 The Author(s)
dc.subject.otherArtificial intelligence
dc.subject.otherMachine learning
dc.subject.otherPLC
dc.titleLeveraging programmable logic controllers for machine learning applications in industrial setupsen
dc.typejournal article
dcterms.accessRightsopen access
oaire.citation.titleResults in Engineering
oaire.citation.volume30
oaire.licenseConditionhttps://creativecommons.org/licenses/by-nc-nd/4.0/
oaire.versionVoR
Archivos
Bloque original
Mostrando 1 - 1 de 1
Cargando...
Miniatura
Nombre:
zamora_leveraging_2026.pdf
Tamaño:
4.44 MB
Formato:
Adobe Portable Document Format
Colecciones