<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Publishing DTD v1.3 20210610//EN" "JATS-journalpublishing1-3.dtd">
<article article-type="research-article" dtd-version="1.3" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xml:lang="en"><front><journal-meta><journal-id journal-id-type="publisher-id">donstu</journal-id><journal-title-group><journal-title xml:lang="en">Advanced Engineering Research (Rostov-on-Don)</journal-title><trans-title-group xml:lang="ru"><trans-title>Advanced Engineering Research (Rostov-on-Don)</trans-title></trans-title-group></journal-title-group><issn pub-type="epub">2687-1653</issn><publisher><publisher-name>Don State Technical University</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.23947/2687-1653-2025-25-2-142-151</article-id><article-id custom-type="edn" pub-id-type="custom">LDXARH</article-id><article-id custom-type="elpub" pub-id-type="custom">donstu-2402</article-id><article-categories><subj-group subj-group-type="heading"><subject>Research Article</subject></subj-group><subj-group subj-group-type="section-heading" xml:lang="en"><subject>INFORMATION TECHNOLOGY, COMPUTER SCIENCE AND MANAGEMENT</subject></subj-group><subj-group subj-group-type="section-heading" xml:lang="ru"><subject>ИНФОРМАТИКА, ВЫЧИСЛИТЕЛЬНАЯ ТЕХНИКА И УПРАВЛЕНИЕ</subject></subj-group></article-categories><title-group><article-title>Integration of Sensor Data and Mathematical Modeling of Underwater Robot Behavior Using a Digital Twin</article-title><trans-title-group xml:lang="ru"><trans-title>Интеграция сенсорных данных и математическое моделирование поведения подводного робота с использованием цифрового двойника</trans-title></trans-title-group></title-group><contrib-group><contrib contrib-type="author" corresp="yes"><contrib-id contrib-id-type="orcid">https://orcid.org/0000-0002-5330-3369</contrib-id><name-alternatives><name name-style="eastern" xml:lang="ru"><surname>Гладышев</surname><given-names>М. Д.</given-names></name><name name-style="western" xml:lang="en"><surname>Gladyshev</surname><given-names>M. D.</given-names></name></name-alternatives><bio xml:lang="ru"><p>Михаил Дмитриевич Гладышев, аспирант направления «Системный анализ, управление и обработка информации, статистика»</p><p>414056, г. Астрахань, ул. Татищева, 20А</p></bio><bio xml:lang="en"><p>Mikhail D. Gladyshev, postgraduate student majoring in Systems Analysis, Control and Information Processing, Statistics</p><p>20a, Tatishcheva Str., Astrakhan, 414056</p></bio><email xlink:type="simple">mih.gladishev@gmail.com</email><xref ref-type="aff" rid="aff-1"/></contrib><contrib contrib-type="author" corresp="yes"><contrib-id contrib-id-type="orcid">https://orcid.org/0000-0003-1192-0913</contrib-id><name-alternatives><name name-style="eastern" xml:lang="ru"><surname>Рыбаков</surname><given-names>А. В.</given-names></name><name name-style="western" xml:lang="en"><surname>Rybakov</surname><given-names>A. V.</given-names></name></name-alternatives><bio xml:lang="ru"><p>Алексей   Владимирович    Рыбаков, кандидат физико-математических наук, доцент, кафедра «Информационных технологий», доцент, кафедра «Технологии материалов и промышленной инженерии» </p><p>414056, г. Астрахань, ул. Татищева, 20А</p></bio><bio xml:lang="en"><p>Alexey V. Rybakov, Cand.Sci. (Phys.-Math.), Associate Professor of the Department of Information Technologies, Associate Professor of the Department of Materials Technology and Industrial Engineering</p><p>20a, Tatishcheva Str., Astrakhan, 414056</p><p> </p></bio><email xlink:type="simple">rybakov_alex@mail.ru</email><xref ref-type="aff" rid="aff-1"/></contrib></contrib-group><aff-alternatives id="aff-1"><aff xml:lang="ru"><institution>Астраханский государственный университет имени В.Н. Татищева</institution><country>Россия</country></aff><aff xml:lang="en"><institution>Astrakhan Tatishchev State University</institution><country>Russian Federation</country></aff></aff-alternatives><pub-date pub-type="collection"><year>2025</year></pub-date><pub-date pub-type="epub"><day>27</day><month>06</month><year>2025</year></pub-date><volume>25</volume><issue>2</issue><fpage>142</fpage><lpage>151</lpage><permissions><copyright-statement>Copyright &amp;#x00A9; Gladyshev M.D., Rybakov A.V., 2025</copyright-statement><copyright-year>2025</copyright-year><copyright-holder xml:lang="ru">Гладышев М.Д., Рыбаков А.В.</copyright-holder><copyright-holder xml:lang="en">Gladyshev M.D., Rybakov A.V.</copyright-holder><license license-type="creative-commons-attribution" xlink:href="https://creativecommons.org/licenses/by/4.0/" xlink:type="simple"><license-p>This work is licensed under a Creative Commons Attribution 4.0 License.</license-p></license></permissions><self-uri xlink:href="https://www.vestnik-donstu.ru/jour/article/view/2402">https://www.vestnik-donstu.ru/jour/article/view/2402</self-uri><abstract><sec><title>Introduction</title><p>Introduction. Control of underwater robotic complexes (URC) is complicated by factors, such as inertia, stochastic disturbances, and lack of navigation infrastructure. Existing approaches to modeling and predicting URS behavior are known for their weak or absent integration of data from real sensors in real time. By eliminating this gap in integrated solutions, it is possible to combine physical models, digital twins, and visualization. A promising tool for overcoming the above limitations is a digital twin (DT), which provides an accurate digital representation of an object through the integration of data from physical sensors and mathematical models. The objective of the presented study is to develop a method for predicting the dynamics of the URC using a digital twin to improve the efficiency of autonomous control.</p></sec><sec><title>Materials and Methods</title><p>Materials and Methods. The basis of the study was the development of a mathematical model of the motion of an underwater robotic complex. It included differential kinematics, modeling of environmental resistance, and rotation dynamics. The following sensors were used to collect and process data: incremental encoders, a three-axis accelerometer, and a gyroscope. A proportional-integral differentiating (PID) controller was applied to control the motion along each axis. The Unity Game Environment was used to visualize and test the model. It created a digital twin module with the ability to display the system state in real time. The Arduino IDE platform was used as software for low-level programming, as well as MATLAB and Python for data analysis and graphing.</p></sec><sec><title>Results</title><p>Results. To verify the model, experiments were conducted on a physical model. They were compared to the simulation of the object's behavior in a virtual environment. Graphs of discrepancies between physical and simulated trajectories were presented. Statistical metrics characterizing the accuracy of the digital twin were calculated. The maximum deviation in coordinates did not exceed 5.3 mm, the average angular deviation was 3.5°. This confirmed the reliability and practical applicability of the proposed model in autonomous control of a robotic complex. It was also found that the average error along X — 3.11 mm, along Y — 2.92 mm. The average error in angle Z — 1.8°. The response time was less than 10 ms. The stability of the digital twin to minor fluctuations in the data was provided by smoothing the input data, the stability of the system regulator, and adaptation of the model to the calibration values at the start of each cycle.</p><p>Discussion and Conclusion. Digital twins are suitable for predictive control and monitoring of an object under uncertainty. The proposed approach can be scaled for various types of robotic systems operating in aggressive and poorly predictable environments. Further research in this area may involve the introduction of adaptive and neural network control methods.</p></sec></abstract><trans-abstract xml:lang="ru"><sec><title>Введение</title><p>Введение. Управление подводными робототехническими комплексами (ПРТК) осложняется такими факторами, как инерционность, стохастические возмущения и недостаток навигационной инфраструктуры. Существующие подходы к моделированию и прогнозированию поведения ПРТК известны слабой или отсутствующей интеграцией данных с реальных сенсоров в режиме реального времени. Устранив указанный пробел в комплексных решениях, можно объединить физические модели, цифровые двойники и визуализацию. Перспективный инструмент для преодоления названных выше ограничений — цифровой двойник (англ. digital twin, DT), обеспечивающий точную цифровую репрезентацию объекта через интеграцию данных от физических сенсоров и математических моделей. Цель представленного исследования — разработка метода прогнозирования динамики ПРТК с использованием цифрового двойника для повышения эффективности автономного управления.</p></sec><sec><title>Материалы и методы</title><p>Материалы и методы. Основа исследования — разработка математической модели движения подводного робототехнического комплекса. Она включает дифференциальную кинематику, моделирование сопротивления среды и динамики поворота. Для сбора и обработки данных использовались сенсоры: инкрементальные энкодеры, трехосевой акселерометр и гироскоп. Для управления движением по каждой оси задействовали пропорционально-интегрально дифференцирующий (ПИД) регулятор. Для визуализации и проверки модели применялась игровая среда «Юнити» (Unity). В ней создали модуль цифрового двойника с возможностью отображения состояния системы в реальном времени. В качестве программного обеспечения использовалась платформа «Ардуино Ай-ди-и» (Arduino IDE) для низкоуровневого программирования, а также «Матлаб» (Matlab) и «Питон» (Python) для анализа данных и построения графиков.</p></sec><sec><title>Результаты исследования</title><p>Результаты исследования. Для верификации модели проводились эксперименты на физическом макете. Их сопоставили с симуляцией поведения объекта в виртуальной среде. Представлены графики расхождений между физическими и симулированными траекториями. Рассчитаны статистические метрики, характеризующие точность цифрового двойника. Максимальное отклонение по координатам не превышает 5,3 мм, среднее угловое отклонение составило 3,5°. Это подтверждает достоверность и практическую применимость предложенной модели при автономном управлении робототехническим комплексом. Установлено также, что средняя ошибка по X — 3,11 мм, по Y — 2,92 мм. Средняя ошибка угла Z — 1,8°. Время реакции — менее 10 мс. Устойчивость цифрового двойника к незначительным флуктуациям в данных обеспечивается благодаря сглаживанию входных данных, стабильностью системного регулятора и адаптации модели к калибровочным значениям на старте каждого цикла.</p></sec><sec><title>Обсуждение и заключение</title><p>Обсуждение и заключение. Цифровые двойники подходят для прогностического управления и наблюдения за объектом в условиях неопределенности. Предложенный подход целесообразно масштабировать для различных типов робототехнических систем, функционирующих в агрессивных и слабо предсказуемых средах. Дальнейшие исследования в этом направлении могут быть связаны с внедрением адаптивных и нейросетевых методов управления.</p></sec></trans-abstract><kwd-group xml:lang="ru"><kwd>цифровой двойник автономной робототехнической системы</kwd><kwd>подводный робототехнический комплекс</kwd><kwd>предиктивное управление</kwd><kwd>подводный робот</kwd></kwd-group><kwd-group xml:lang="en"><kwd>digital twin of an autonomous robotic system</kwd><kwd>underwater robotic complex</kwd><kwd>predictive control</kwd><kwd>underwater robot</kwd></kwd-group></article-meta></front><body><p>Introduction. In recent years, there has been growing interest in digital twin (DT) technology. These are virtual models closely related to physical objects and designed to display, analyze and predict their behavior in real time [<xref ref-type="bibr" rid="cit1">1</xref>]. DT are widely used to solve applied problems in industry, energy and transport, especially if it is necessary to control and manage objects under conditions of high uncertainty [<xref ref-type="bibr" rid="cit2">2</xref>]. With the spread of autonomous robotic systems, the digital twin becomes an important tool for providing reliable and sustainable management. It allows for the formation of a predictive model of the object's behavior, taking into account both internal parameters and external actions [<xref ref-type="bibr" rid="cit3">3</xref>].</p><p>Of particular interest is the use of DT in the control of underwater robotic complexes (URC), where operating conditions are significantly complicated by poor visibility, lack of precise navigation, communication delays, high inertia, and noise in sensor data. All this reduces the efficiency of traditional closed-loop control systems [<xref ref-type="bibr" rid="cit4">4</xref>]. There are publications on digital twins in the public domain, but the topic is still insufficiently developed in terms of using DT in underwater systems. Existing studies, as a rule, either do not cover predictive control tasks or do not take into account the specificity of the underwater environment and typical sensor errors [<xref ref-type="bibr" rid="cit5">5</xref>]. Numerous papers are characterized by significant gaps related to the lack of integrated solutions for building digital twins of underwater robotic systems focused on stable predictive control and state assessment under conditions of noisy and incomplete data.</p><p>A stable assessment of the current state of the underwater robotic complex (URC) is required, and this can be provided by integrating sensor data — accelerometry, gyroscopy, encoder measurements, and other sources. However, due to the instability and noise typical of inertial sensors, it is necessary to implement algorithms for filtering, correcting and calibrating data at different stages of operation [<xref ref-type="bibr" rid="cit5">5</xref>].</p><p>It should also be noted that in the literature on digital modeling and control of robotic systems, authors often focus on static models or limited control scenarios (e.g., on navigation or position stabilization). At the same time, a comprehensive approach to predicting the dynamic behavior of URC using digital twins in real time has not been sufficiently developed.</p><p>Based on the aforesaid, the objective of this study is to develop and apply a method for predicting the dynamic behavior of the URC using a digital twin to improve the efficiency of controlling an autonomous system when performing underwater engineering work.</p><p>Materials and Methods. To reach the research objective, a comprehensive model was implemented, including a physicomathematical description of the motion, sensor architecture, and visualization.</p><p>Scientific research made it possible to solve the following problems:</p><p>Within the framework of the presented work:</p><p>The motion of the URC is described on the basis of differential kinematics and equations that take into account water resistance, inertial characteristics of the system, and control actions. The model is based on a system of second-order motion equations modified to take into account hydrodynamic resistance and correction coefficients obtained experimentally. Assumptions are made about the rigidity of the housing, insignificant drift, and quasi-stationary motion.</p><p>The system state vector includes coordinates: x, y, z, and heading angle θ, as well as linear and angular rates. The formulas used in the introduction describe kinematic relationships, feedback, resistance model, and control signals. PID controllers with parameters empirically selected on the basis of the system response are used for control along the longitudinal, transverse, and vertical axes.</p><p>A modular sensor system is used to collect data in real time. Its elements:</p><p>The sensor data was pre-filtered, calibrated (normalized relative to the zero position) and integrated into the digital twin model.</p><p>The key stage in building a digital twin is mathematical modeling of the movement of the underwater robotic complex. It allows predicting the behavior of the object in various environments [<xref ref-type="bibr" rid="cit6">6</xref>]. This study considers a mobile URC with a rigid physical structure, moving in a flat (2D) or spatial (3D) coordinate system depending on the task scenario [<xref ref-type="bibr" rid="cit7">7</xref>]. An independent drive for each of the tracks is used to control the movement, which allows for differential maneuvering [<xref ref-type="bibr" rid="cit8">8</xref>].</p><p>To simulate the position and orientation of the URC on the plane, a kinematic model of a differential robot is used, based on the position of the center of mass (or center of geometry) of the robot [<xref ref-type="bibr" rid="cit9">9</xref>]. Let x and y be the coordinates of the center of mass in the global coordinate system, θ — robot’s orientation angle (angle between the longitudinal axis and the OX axis in the global system).</p><p> (1)</p><p> (2)</p><p> (3)</p><p>where v — linear speed of the center of mass (determined by encoder readings); w — angular speed (obtained from a gyroscope or calculated by the difference in track speeds).</p><p>The linear and angular speeds are related to the individual speeds of the right vR and left vL tracks:</p><p> (4)</p><p> (5)</p><p>where L — robot base (distance between tracks).</p><p>The robot's behavior is significantly affected by the underwater environment: water resistance, lifting force, viscous forces, friction forces. These effects are taken into account in the form of generalized disturbance Fd(t) [<xref ref-type="bibr" rid="cit10">10</xref>]. The system of differential equations takes the form:</p><p> (6)</p><p>where M — robot’s mass;  — position radius vector; Fu(t) — control action from the drive system (determined by the PID controller or another algorithm); Fd(t) — environmental disturbances (determined experimentally or set empirically).</p><p>Within the framework of the layout and digital model, the resistance of the environment can be taken into account in the form of a damped term:</p><p> (7)</p><p>where ku — coefficient of viscous resistance of the medium (adjustable parameter of the digital twin).</p><p>The physical model is equipped with encoders, therefore the positions and orientation of the URC in space are calculated through numerical integration of the speeds obtained from the left and right tracks:</p><p> (8)</p><p> (9)</p><p>where ΔsL, ΔsR — increments of distance according to encoder readings; Δs — increment of the center of mass; Δθ — change in orientation.</p><p>We use the current orientation Δθ, to express the new position in the global coordinate system:</p><p> (10)</p><p> (11)</p><p>Mathematical modeling is a fundamental part of the development of a digital twin of an underwater complex [<xref ref-type="bibr" rid="cit11">11</xref>]. The objective of modeling is to formalize the processes of movement [<xref ref-type="bibr" rid="cit12">12</xref>], control and response to external actions with the possibility of further analysis of the stability and accuracy of execution of control actions [<xref ref-type="bibr" rid="cit13">13</xref>].</p><p>The underwater robot is considered as a system with multiple inputs and outputs, located in an environment with a high level of inertia, delay and stochastic disturbances [<xref ref-type="bibr" rid="cit14">14</xref>]. Control actions are implemented through thrust modules, and movements are tracked using encoders and inertial measurement units [<xref ref-type="bibr" rid="cit15">15</xref>]. The model can be described as a system of second-order equations with position and speed feedback:</p><p> (12)</p><p>where M — mass matrix (includes inertial characteristics); D — damping matrix (taking into account viscous resistance of water); K — stiffness matrix (includes elastic forces in the case of mechanical constraints); x(t) — position and orientation vector in 3D space; u(t) — control action (signals to the motors); B — control distribution matrix.</p><p>For rotational motion, the Euler model is used:</p><p> (13)</p><p>where J — inertia tensor of the robot, ω(t) — angular speed (from the gyroscope), τ(t) — control moment.</p><p>When implementing a spot turn operation, as a rule, tracks with different directions of rotation are used. The difference in speeds on the right and left tracks sets the moment:</p><p> (14)</p><p>To set the angle of rotation, the expression is used:</p><p> (15)</p><p>The control system is implemented in the form of PID controllers for each axis (X, Y, Z):</p><p> (16)</p><p>where e(t) = xreF(t) − x(t) — error between target and current position. Coefficients Kp, Ki, KD are adjusted according to the optimality criterion.</p><table-wrap id="table-1"><caption><p>Table 1</p><p>Regulator Coefficients for Position Stabilization</p></caption><table><tbody><tr><td>Axis</td><td>Kp</td><td>Ki</td><td>Kd</td></tr><tr><td>X</td><td>1.20</td><td>0.05</td><td>0.60</td></tr><tr><td>Y</td><td>1.00</td><td>0.04</td><td>0.50</td></tr><tr><td>Z</td><td>2.00</td><td>0.10</td><td>0.90</td></tr></tbody></table></table-wrap><p>The physical model of the robot is implemented on the basis of Arduino Mega 2560 Pro. Microcontroller — ATMega 2560-16AU, 16 MHz, 256 KB FLash, with 54 digital inputs/outputs (I/O), 16 analog inputs, USB-UART interface CH340G. The complex is connected to sensors and a drive control system. Data is collected and transmitted to the digital environment via Serial port in the format of combined time-stamped lines.</p><p>The virtual implementation of the digital twin is created in Unity. C#-scripts are used to interpret the data, display the movements, rotations and behavior of the object in a three-dimensional environment. Axes, contours, coordinate values and trajectories are visualized. A model of a translucent robot that does not interact with other objects is used, which allow us to concentrate on comparing movements.</p><p>A data processor and a filtering system are implemented on the Unity side. Integration with correction based on sensor data is applied to calculate angles and coordinates. Individual blocks are implemented as scripts with the ability to scale the project. Standard metrics are used to statistically assess accuracy: standard deviation, maximum deviation, and average error in coordinates and angles.</p><p>Research Results. To verify the model in a digital environment, movements were simulated under successive control actions. Then, the trajectories of rectilinear and semicircular motion were compared (Fig. 1 and 3). The readings of the digital robot were compared to the ideal trajectory. The root-mean-square analysis showed a discrepancy when moving in a straight line (Fig. 2) and in a semicircle (Fig. 4).</p><fig id="fig-1"><caption><p>Fig. 1. Trajectories of motion in a straight line</p></caption><graphic xlink:href="donstu-25-2-g001.jpeg"><uri content-type="original_file">https://cdn.elpub.ru/assets/journals/donstu/2025/2/LXuKEkixbSagKe56mLpecZrxrmgB4MHYgfOLpBaR.jpeg</uri></graphic></fig><fig id="fig-2"><caption><p>Fig. 2. Error (%) when measuring on a straight line</p></caption><graphic xlink:href="donstu-25-2-g002.jpeg"><uri content-type="original_file">https://cdn.elpub.ru/assets/journals/donstu/2025/2/bXcOjJubprMhKQ8wfv0MTM769et0ENGApUWd7wYX.jpeg</uri></graphic></fig><fig id="fig-3"><caption><p>Fig. 3. Trajectories of movement in a semicircle</p></caption><graphic xlink:href="donstu-25-2-g003.jpeg"><uri content-type="original_file">https://cdn.elpub.ru/assets/journals/donstu/2025/2/ZujvUAxX0NEu4t2cgQUiJ5xVzbEnzE4UccDa7Ojt.jpeg</uri></graphic></fig><fig id="fig-4"><caption><p>Fig. 4. Error (%) when measuring on a semicircle</p></caption><graphic xlink:href="donstu-25-2-g004.jpeg"><uri content-type="original_file">https://cdn.elpub.ru/assets/journals/donstu/2025/2/0scXkQqlSW9WYKjqBKCHV9oW8uQsm5Nck6DOOYMj.jpeg</uri></graphic></fig><p>The quality of displaying the URC behavior in the digital twin was assessed during experiments that included linear motion, the spot turn, and the trajectory with turns. In parallel, data from real sensors was recorded and compared to the parameters of the model in Unity. The results of measurements and comparisons are presented in Table 2.</p><table-wrap id="table-2"><caption><p>Table 2</p><p>Deviation Indicators</p></caption><table><tbody><tr><td>Metric</td><td>Value</td></tr><tr><td>Maximum deviation of X</td><td>5.3 mm</td></tr><tr><td>Maximum deviation of Y</td><td>4.8 mm</td></tr><tr><td>Average angular deviation</td><td>3.5о</td></tr></tbody></table></table-wrap><p>The digital twin was visualized in the Unity environment. This flexible 3D engine allowed us to embed data streams from physical sensors, display spatial movements, orientation, and also create scenarios for interaction with the external environment (Fig. 5).</p><fig id="fig-5"><caption><p>Fig. 5. Robotic complex control program</p></caption><graphic xlink:href="donstu-25-2-g005.jpeg"><uri content-type="original_file">https://cdn.elpub.ru/assets/journals/donstu/2025/2/C2ri61p4SEX4Qhtr2DWEatWMRjrM10vSamYsEPmo.jpeg</uri></graphic></fig><p>Data from physical sensors (accelerometers, gyroscopes, encoders) was transmitted via a COM port (communications port) using a custom script in C#. Incoming data was divided into channels and displayed as parameters of the twin object.</p><p>The digital model in Unity used the same coordinate system and the same control structure as the implemented mathematical model. Its functions were:</p><p>The solution allows creating a closed loop “model – reality – visualization” and provides consistency between the digital twin and the physical system (Fig. 6).</p><fig id="fig-6"><caption><p>Fig. 6. Software operation algorithm: DR — digital robot, PhR — physical robot</p></caption><graphic xlink:href="donstu-25-2-g006.jpeg"><uri content-type="original_file">https://cdn.elpub.ru/assets/journals/donstu/2025/2/zq611GjK42Lexl2Mq5BIFZAFfNe1jEcLjkyGulxN.jpeg</uri></graphic></fig><p>The elements of the software operation algorithm are listed below.</p><p>System Startup and Initialization. The physical robot is turned on and connected via USB to a computer that collects and analyzes data, runs the main program, and initializes additional scripts:</p><p>All this takes place in Unity, after which the system is ready for work.</p><p>Robot Initialization. After the program is launched, its connection with the physical robot is established. Consequently, calibration occurs, and then the sensors and modules are launched: gyroscope, accelerometer, encoders, voltmeter, ammeter. A control message about the robot's readiness for launch and the start of data transmission is sent to Unity. After that, the stage of waiting for commands starts.</p><p>Receiving Command from the User. The value of the user interface entered into the program is analyzed and processed. The message is passed to intermediate scripts to perform the actions of the digital and physical robots.</p><p>Digital Robot’s Command Response. The entered values and actions are recorded in the computer memory. Based on the embedded command execution algorithms and a mathematical model, the digital robot moves in digital space. At the same time, data on its position, speed and distance traveled, are recorded. After executing the command, the robot maintains its position and orientation in space.</p><p>Physical Robot’s Command Response. Data is transmitted to the Arduino Mega microcontroller. Here, it is analyzed and, depending on the entered command and value, scripts are activated that are responsible for the operation of sensors: left and right encoders, accelerometers, and gyroscopes. Only after that does movement start at the user's command. During the execution of the command, the robot records its position and orientation in space and transmits data to the user interface program, where the data is visualized using a 3D model linked to the physical robot.</p><p>Data Collection and Display. At this stage, data on position, tilt angles, distance traveled and other parameters are collected from the digital and physical robots and visualized in the user interface program. After that, the program waits for a new command.</p><p>The described algorithm is based on the classical principles of closed-loop feedback control systems. The use of data from sensors (accelerometers, gyroscopes, encoders) allows for the implementation of a measuring element in the general structural form of control systems. The mathematical model integrated into Unity acts as an observer, tracking the behavior of the system and providing visual verification of the correctness of command execution.</p><p>The system is designed taking into account:</p><p>Formulas (17)–(19) present the indicators that are used to analyze the accuracy of the digital twin.</p><p>Absolute position error (in mm):</p><p> (17)</p><p>Root mean square orientation error (in degrees):</p><p> (18)</p><p>Percentage deviation of the final position:</p><p> (19)</p><p>As a result of experiments and analysis of sensor readings, additional parameters are obtained that characterize the error of the developed system (Table 3).</p><table-wrap id="table-3"><caption><p>Table 3</p><p>Detected Errors in the System</p></caption><table><tbody><tr><td>Parameter</td><td>Value</td></tr><tr><td>Mean error on Х</td><td>3.11 mm</td></tr><tr><td>Mean error on Y</td><td>2.92 mm</td></tr><tr><td>Average error of angle Z</td><td>1.8о</td></tr><tr><td>Maximum deviation</td><td>5.3 mm</td></tr><tr><td>Reaction time</td><td>&lt;100 ms</td></tr></tbody></table></table-wrap><p>The digital twin is resistant to minor fluctuations in the data due to the following factors:</p><p>Discussion and Conclusion. A model of a digital twin of a robotic complex based on the integration of sensor data, mathematical modeling and 3D visualization has been developed and experimentally confirmed. Sustainable control and tracking of the behavior of the robotic complex have been implemented. The results of the comparative analysis of the digital model and the real system are presented. The results of the comparison have proven:</p><p>The constructed model makes it possible to adequately assess the current state and predict the behavior of the URC under uncertainty. PID controllers provide stability during control, and visualization in Unity makes it possible to implement a digital twin as an interface for interaction with the system. Further development of this solution may be related to the implementation of adaptive and neural network control methods.</p></body><back><ref-list><title>References</title><ref id="cit1"><label>1</label><citation-alternatives><mixed-citation xml:lang="ru">Мешков А.В., Громов В.С. Формирование траектории цифрового двойника многозвенного механизма с использованием адаптивного алгоритма оценки параметров нелинейного движения. Научно-технический вестник информационных технологий, механики и оптики. 2022;22(5):889–895. https://doi.org/10.17586/2226-1494-2022-22-5-889-895</mixed-citation><mixed-citation xml:lang="en">Meshkov AV, Gromov VS. Adaptive Nonlinear Motion Parameters Estimation Algorithm for Digital Twin of MultiLink Mechanism Motion Trajectory Synthesis. Scientific and Technical Journal of Information Technologies, Mechanics and Optics. 2022;22(5):889–895. https://doi.org/10.17586/2226-1494-2022-22-5-889-895</mixed-citation></citation-alternatives></ref><ref id="cit2"><label>2</label><citation-alternatives><mixed-citation xml:lang="ru">Кубриков М.В. Цифровой двойник в системе внешнего адаптивного управления роботамиманипуляторами. Космические аппараты и технологии. 2023;7(2):171–176. https://doi.org/10.26732/j.st.2023.2.10</mixed-citation><mixed-citation xml:lang="en">Kubrikov MV. Digital Twin in the System of External Adaptive Control of Robot Manipulators. Spacecrafts &amp; Technologies. 2023;7(2):171–176. https://doi.org/10.26732/j.st.2023.2.10</mixed-citation></citation-alternatives></ref><ref id="cit3"><label>3</label><citation-alternatives><mixed-citation xml:lang="ru">Кузьменко В.П., Соленый С.В. Разработка модели цифрового двойника для гибридной производственной линии по сборке светодиодных осветительных приборов. Известия высших учебных заведений. Приборостроение. 2022;65(10):725–734. https://doi.org/10.17586/0021-3454-2022-65-10-725-734</mixed-citation><mixed-citation xml:lang="en">Kuzmenko VP, Soleniy SV. Development of a Digital Twin Model for a Hybrid Production Line for LED Lighting Devices Assembly. Journal of Instrument Engineering. 2022;65(10):725–734. https://doi.org/10.17586/0021-3454-2022-65-10-725-734</mixed-citation></citation-alternatives></ref><ref id="cit4"><label>4</label><citation-alternatives><mixed-citation xml:lang="ru">Jingsong Fan, Xiangqiang Zhong, Zhimin Di, Huajie Fang. Collaborative Operation of 6-DOF Industrial Robot Based on Digital Twin. Journal of Physics: Conference Series. 2022;2206(1):012019. https://doi.org/10.1088/1742-6596/2206/1/012019</mixed-citation><mixed-citation xml:lang="en">Jingsong Fan, Xiangqiang Zhong, Zhimin Di, Huajie Fang. Collaborative Operation of 6-DOF Industrial Robot Based on Digital Twin. Journal of Physics: Conference Series. 2022;2206(1):012019. https://doi.org/10.1088/1742-6596/2206/1/012019</mixed-citation></citation-alternatives></ref><ref id="cit5"><label>5</label><citation-alternatives><mixed-citation xml:lang="ru">Farhadi A, Lee S, Hinchy EP, O'Dowd N, McCarthy CT. The Development of a Digital Twin Framework for an Industrial Robotic Drilling Process. Sensors. 2022;22(19):7232. https://doi.org/10.3390/s22197232</mixed-citation><mixed-citation xml:lang="en">Farhadi A, Lee S, Hinchy EP, O'Dowd N, McCarthy CT. The Development of a Digital Twin Framework for an Industrial Robotic Drilling Process. Sensors. 2022;22(19):7232. https://doi.org/10.3390/s22197232</mixed-citation></citation-alternatives></ref><ref id="cit6"><label>6</label><citation-alternatives><mixed-citation xml:lang="ru">Qinglei Zhang, Run Xiao, Zhen Liu, Jianguo Duan, Jiyun Qin. Process Simulation and Optimization of Arc Welding Robot Workstation Based on Digital Twin. Machines. 2023;11(1):53. https://doi.org/10.3390/machines11010053</mixed-citation><mixed-citation xml:lang="en">Qinglei Zhang, Run Xiao, Zhen Liu, Jianguo Duan, Jiyun Qin. Process Simulation and Optimization of Arc Welding Robot Workstation Based on Digital Twin. Machines. 2023;11(1):53. https://doi.org/10.3390/machines11010053</mixed-citation></citation-alternatives></ref><ref id="cit7"><label>7</label><citation-alternatives><mixed-citation xml:lang="ru">Hang Wu, Zhaoming Liu, Long Cui, Lirong Guan, Hongwei Wang. Digital Twin of Non-Ferrous Metal Casting Robot. In book: M Chen, et al (eds). Advances in Machinery, Materials Science and Engineering Application. Amsterdam: IOS Press; 2022. 760 p. https://doi.org/10.3233/ATDE220502</mixed-citation><mixed-citation xml:lang="en">Hang Wu, Zhaoming Liu, Long Cui, Lirong Guan, Hongwei Wang. Digital Twin of Non-Ferrous Metal Casting Robot. In book: M Chen, et al (eds). Advances in Machinery, Materials Science and Engineering Application. Amsterdam: IOS Press; 2022. 760 p. https://doi.org/10.3233/ATDE220502</mixed-citation></citation-alternatives></ref><ref id="cit8"><label>8</label><citation-alternatives><mixed-citation xml:lang="ru">Chancharoen R, Chaiprabha K, Wuttisittikulkij L, Asdornwised W, Saadi M, Phanomchoeng G. Digital Twin for a Collaborative Painting Robot. Sensors. 2022;23(1):17. https://doi.org/10.3390/s23010017</mixed-citation><mixed-citation xml:lang="en">Chancharoen R, Chaiprabha K, Wuttisittikulkij L, Asdornwised W, Saadi M, Phanomchoeng G. Digital Twin for a Collaborative Painting Robot. Sensors. 2022;23(1):17. https://doi.org/10.3390/s23010017</mixed-citation></citation-alternatives></ref><ref id="cit9"><label>9</label><citation-alternatives><mixed-citation xml:lang="ru">Banic MS, Simonovic M, Stojanović L, Rangelov D, Miltenovic A, Perić M. Digital Twin Based Lightweighting of Robot Unmanned Ground Vehicles. Facta Universitatis. Series: Automatic Control and Robotics. 2022;21(3):188. https://doi.org/10.22190/FUACR221121015B</mixed-citation><mixed-citation xml:lang="en">Banic MS, Simonovic M, Stojanović L, Rangelov D, Miltenovic A, Perić M. Digital Twin Based Lightweighting of Robot Unmanned Ground Vehicles. Facta Universitatis. Series: Automatic Control and Robotics. 2022;21(3):188. https://doi.org/10.22190/FUACR221121015B</mixed-citation></citation-alternatives></ref><ref id="cit10"><label>10</label><citation-alternatives><mixed-citation xml:lang="ru">Xin Liu, Du Jiang, Bo Tao, Guozhang Jiang, Ying Sun, Jianyi Kong, et al. Genetic Algorithm-Based Trajectory Optimization for Digital Twin Robots. Frontiers in Bioengineering and Biotechnology. 2022;9:793782. http://doi.org/10.3389/fbioe.2021.793782</mixed-citation><mixed-citation xml:lang="en">Xin Liu, Du Jiang, Bo Tao, Guozhang Jiang, Ying Sun, Jianyi Kong, et al. Genetic Algorithm-Based Trajectory Optimization for Digital Twin Robots. Frontiers in Bioengineering and Biotechnology. 2022;9:793782. http://doi.org/10.3389/fbioe.2021.793782</mixed-citation></citation-alternatives></ref><ref id="cit11"><label>11</label><citation-alternatives><mixed-citation xml:lang="ru">Garg G, Kuts V, Anbarjafari G. Digital Twin for FANUC Robots: Industrial Robot Programming and Simulation Using Virtual Reality. Sustainability. 2021;13(18):10336. http://doi.org/10.3390/su131810336</mixed-citation><mixed-citation xml:lang="en">Garg G, Kuts V, Anbarjafari G. Digital Twin for FANUC Robots: Industrial Robot Programming and Simulation Using Virtual Reality. Sustainability. 2021;13(18):10336. http://doi.org/10.3390/su131810336</mixed-citation></citation-alternatives></ref><ref id="cit12"><label>12</label><citation-alternatives><mixed-citation xml:lang="ru">Đoàn Thanh Xuân, Tran Van Huynh, Thanh-Hung Nguyen, Vu Toan Thang. Applying Digital Twin and Multi-Adaptive Genetic Algorithms in Human–Robot Cooperative Assembly Optimization. Applied Sciences. 2023;13(7):4229. http://doi.org/10.3390/app13074229</mixed-citation><mixed-citation xml:lang="en">Đoàn Thanh Xuân, Tran Van Huynh, Thanh-Hung Nguyen, Vu Toan Thang. Applying Digital Twin and MultiAdaptive Genetic Algorithms in Human–Robot Cooperative Assembly Optimization. Applied Sciences. 2023;13(7):4229. http://doi.org/10.3390/app13074229</mixed-citation></citation-alternatives></ref><ref id="cit13"><label>13</label><citation-alternatives><mixed-citation xml:lang="ru">Sichao Liu, Xi Vincent Wang, Lihui Wang. Digital Twin-Enabled Advance Execution for Human-Robot Collaborative Assembly. CIRP Annals — Manufacturing Technology. 2022;71(1):25–28. http://doi.org/10.1016/j.cirp.2022.03.024</mixed-citation><mixed-citation xml:lang="en">Sichao Liu, Xi Vincent Wang, Lihui Wang. Digital Twin-Enabled Advance Execution for Human-Robot Collaborative Assembly. CIRP Annals — Manufacturing Technology. 2022;71(1):25–28. http://doi.org/10.1016/j.cirp.2022.03.024</mixed-citation></citation-alternatives></ref><ref id="cit14"><label>14</label><citation-alternatives><mixed-citation xml:lang="ru">Kibira D, Weiss BA. Towards a Digital Twin of a Robot Workcell to Support Prognostics and Health Management. In: Proc. 2022 Winter Simulation Conference at Singapore. New York: IEEE; 2022. P. 2968–2979. http://doi.org/10.1109/WSC57314.2022.10015371</mixed-citation><mixed-citation xml:lang="en">Kibira D, Weiss BA. Towards a Digital Twin of a Robot Workcell to Support Prognostics and Health Management. In: Proc. 2022 Winter Simulation Conference at Singapore. New York: IEEE; 2022. P. 2968–2979. http://doi.org/10.1109/WSC57314.2022.10015371</mixed-citation></citation-alternatives></ref><ref id="cit15"><label>15</label><citation-alternatives><mixed-citation xml:lang="ru">Xuan Liu, He Gan, Ying Luo, YangQuan Chen, Liang Gao. Digital-Twin-Based Real-Time Optimization for a Fractional Order Controller for Industrial Robots. Fractal and Fractional. 2023;7(2):167. http://doi.org/10.3390/fractalfract7020167</mixed-citation><mixed-citation xml:lang="en">Xuan Liu, He Gan, Ying Luo, YangQuan Chen, Liang Gao. Digital-Twin-Based Real-Time Optimization for a Fractional Order Controller for Industrial Robots. Fractal and Fractional. 2023;7(2):167. http://doi.org/10.3390/fractalfract7020167</mixed-citation></citation-alternatives></ref></ref-list><fn-group><fn fn-type="conflict"><p>The authors declare that there are no conflicts of interest present.</p></fn></fn-group></back></article>
