Quantitative Evaluation of Automatic Translation Between Industrial Robot Programming Languages Using Machine Learning
Nathaniel Morales-Centla, Richard Torrealba-Meléndez, Edna Iliana Tamariz-Flores, César Augusto Arriaga-Arriaga, Mario López-LópezThis paper presents a quantitative evaluation of an automatic translation system between industrial robot programming languages based on a sequence-to-sequence (Seq2Seq) neural architecture using Long Short-Term Memory (LSTM) networks. The study addresses the interoperability problem between proprietary robot programming languages by proposing a data-driven approach capable of learning correspondences between structured code instructions. A parallel dataset of 28,000 aligned instruction pairs was constructed and preprocessed through tokenization and normalization to enable structured sequence learning. The model was trained under four configurations (50,100, 150 and 200 epochs) to analyze the impact of training duration on performance and generalization capability. The system was evaluated using multiple quantitative metrics, including accuracy, loss, BLEU, and Exact Match (EM), allowing assessment of both structural similarity and exact sequence correctness. Experimental results demonstrate that the 200-epoch configuration improves the performance across all metrics, achieving an accuracy of 0.9943, a BLEU score of 0.682, and an Exact Match of 0.970 on the test set. These results indicate that the model is capable of generating both structurally consistent and syntactically correct translations. The analysis shows that while BLEU captures structural similarity, EM provides a stricter evaluation of exact sequence correctness, which is critical in structured code translation tasks where minor variations may affect execution. The proposed approach demonstrates the feasibility of applying neural machine translation techniques to industrial robot programming, contributing to improved interoperability and reduced manual effort in multi-platform robotic environments.