Professional Documents
Culture Documents
Abstract. The article is about the construction of a robotic table for the sep-
aration and classification of objects for computer integrated manufacturing,
consisting of a surface with gears distributed in modules with two gears each for
x and y respectively, which allow the displacement of objects and their classi-
fication. The computer vision algorithms used to determine the position of the
object are detailed. In addition, the Kd, Ki, Kp constants are auto tuned through
a neural network to locate and track the objects transported. The design and
construction features as well as the mechanical and electronic system are inte-
grated into a mechatronic system. Finally, for the operation of the robotic table
was tested with objects of different weights, the results showed the usefulness of
the separation and classification system for the tracking of preset trajectories.
1 Introduction
The evolution of robotics has made the processes faster and faster, mainly in the
manufacturing industry where large production capacity is required without neglecting
quality, such as separation and sorting systems on raw material conveyor belts for the
supply of numerical control machines and their respective palletizing and distribution
[1–3].
In recent years, research in artificial intelligence has developed algorithms for
automatic adjustment through learning layers that can solve assigned objectives [4, 5].
For example, a machine learning network can decide, which the best mathematical
model to be applied is, in this paper case it is used for an auto tuning of the constants of
a PID algorithm to track the trajectory of the object on the robotic table, to meet the
high demand for speed of current production lines.
TIME
CAMERA
BELT
DRIVERS
MOTORS
MOTORS
The mechanical design is based on the different movement needs to provide the
transfer of objects to the left, right, front and back, the first aspect of the construction is
the frame that will support the structure. The frame of the table is made of steel with a
dimension of 760 760 mm which makes the table a prototype with a high degree of
usability.
The mechanical transmission system consists of gears and pulleys to transmit the
movement of the motors. The present work is related to the design and manufacture of
the parts in numerical control machines, which allows the motion system to have the
maximum efficiency of transmission of forces corresponding to the transmission ratio,
torque, energy consumption, response speed and compatibility between the surfaces of
the table and the frame.
For the movement of the objects, the table consists of eighteen Polulo 25DX54L
motors with a 75:1 gearbox coupled to the gears by means of a toothed belt to control
the movement in the x and y axes, at the moment it is on them, the implementation of
the motors and the mechanical transmission components are shown in Fig. 3.
The Fig. 4 shows the main part, which consists of a 200 200 mm square with a
double rack that is coupled with the gears in the robotic table, allowing the movement
of the objects on the surface, this piece was built in acrylic to reduce friction.
Mobile Robotic Table with Artificial Intelligence Applied 221
An Arduino Mega card receives information through the serial port to control the
engines, the Pololu TB6612FNG driver with two-channel jumper for each engine was
used.
Once the serial string corresponding to the coordinates of each object has been defined,
it is received by the Arduino, which interprets each command coming from the vision
system and control the drivers that modulate the PWM signal required for each motor.
neuronal network with regressive propagation to find the values of the constants, the
controller has as inputs the x and y coordinates of the object obtained from the image
processing described in the previous section and as output the speed of each motor.
The advantages of using a neural network over traditional tuning methods are to
dispense with the mathematical model and to add robustness to the motion control
system, because in a classic PID there are differences between the model and reality
due to variables that are not considered physical parameters such as air friction and
moments of inertia [8, 9].
The regressive propagation algorithm was used to define the weights of the con-
nection between each perceptrons, for which we took a simple network with the
weights w1 where the activation of an omega neuronal is defined by the cost function
for a training iteration is shown in the equation Co.
2
Co ¼ XðkÞ Xr b f ð1Þ
Where the last activation X (k) is calculated with the weight w1 which is to be
determined multiplied by the previous activation X (k − 1) plus a bias value b(k)
evaluated by a sigmoid function the result is shown in equation X (k).
Each of these is directly related to the neuron of the previous layer and determines
the sensitivity which directly influences the cost value Co.
Finally, for all existing networks the cost function is defined by.
nX
k1 2
CO ¼ Xj ðkÞ Xj ð3Þ
j¼0
The Fig. 8 shows how these values relate to the visible and hidden layers.
For trajectory control and structure prediction, the optimal artificial neural network was
analyzed, and as a starting point the parameters in training ratios, their validation and
the set of tests (a:b:c) were related, i.e. 100:25:25, 150:15:15 and 200:5:5. Connection
weights were used with 4 randomized trials varying the parameters to find the ratio with
the minimum square error (MSE), it is necessary that some interactions be executed to
converge and obtain the required learning [10–12].
The accuracy was modified through the hidden nodes for the 200:5:5 ratios with 4
neurons in the hidden layer, this was obtained by trial and error. The hyperbolic
function f(x) was used for the hidden layer with a linear transfer function applied to
each output layer within −1 and 1 interval. The evaluation was based on connection
weights with a comparison of the minimum square error (MSE) obtained by comparing
the expected results with those of the prediction using the equation (MSE).
1
f ð xÞ ¼ ð4Þ
1 þ exp ð xÞ
Pm
ð y m dm Þ 2
MSE ¼ m1
; ð5Þ
M
where m is the sample, ðym dm Þ are the network outputs and M is the cluster size
studied.
The value for the deviation was determined by applying a correlation coefficient R
with equation (R) to the interactions.
ffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffi
sP PM ffi
M 2 2
m1 ðym y Þ m1 ðym ym Þ
R¼ PM ð6Þ
2
m1 ðy1 y Þ
Where m are the measured dependent variables, ym are the adjusted dependent
P
M
variables for the independent variable, ðym y Þ2 is the sum total of squares,
m1
P
M
2
ðym ym Þ is the sum total of remaining squares.
m1
Starting from the prediction with three experimental models, a model with rec-
ommended proportions was chosen for validation with 1000 tests, being the critical
point where the learning transition stabilizes at 66 tests with a minimum quadratic error
(MSE) of 0.00181818 using 4 neurons (See Fig. 9).
The training correlation R is 0.98853 with a validation value R = 0.99947 sub-
jected to tests reaches R = 0.99961, a differential error of 0.5% is acquired in the
226 H. C. Terán et al.
Fig. 9. Validation of tests with quadratic mean error to 4 neurons in a ratio (200:5:5)
ei ¼ Zi Zbt ð7Þ
Percentage mean error PME using the number of neurons in the output layer
n (PME).
!
1X n
ei
PME ¼ x100 ð8Þ
n i¼1 zi
Mobile Robotic Table with Artificial Intelligence Applied 227
Fig. 10. Real value regression and prediction with neural network model ratio (200:5:5).
Fig. 11. Gradient-validation checks and learning rate vs epochs in artificial neural networks
Table 1 shows the predictions analyzed by modifying the training, validation and
related test set parameters (a:b:c) in percentage, analytically achieving an ideal accu-
racy for the system.
The percentage mean squared error (PMSE) is 1.1E−0.3%, since it is not linear, it is
necessary to find the value percentage root mean squared (PRMSE) of 0.04264%,
being proportional to the system and obtaining a real linear precision of 98.7142%.
The equipment from its inception in the modeling, construction and control (PID-
ANN) stages, allows it to be used in computer integrated manufacturing (CIM),
meeting requirements to reduce errors, speed, flexibility and integration.
Mobile Robotic Table with Artificial Intelligence Applied 229
The accuracy of the 98.7142% exceeds that established by the norms and standards
(MAP) manufacturing automation protocol and the equipment complies with the OSI
(open system interconnection) model.
Since the equipment can be used in computerized numerical control (CNC) or
material distribution table, in future jobs it is projected to observe its performance
applied to the enterprise resource planning (ERP) modules, with the evaluating of
design parameters, factory control, material requirements, classification of orders to
customers and the influence on production costs.
References
1. Malte, B., et al.: How virtualization, decentralization and network building change the
manufacturing landscape. Int. J. Inf. Commun. Eng. 8, 37–44 (2014)
2. Moonet, J., et al.: Innovation in knowledge-intensive industries: the double-edged sword of
competition. J. Bus. Res. 2060–2070 (2013)
3. Gwiazda, J.A., et al.: Modular industrial robots as the tool of process automation in robotized
manufacturing cells. In: IOP Conference Series: Materials Science and Engineering, vol. 95,
pp. 012104-1–6 (2015)
4. Cong, S., Liang, Y.: PID-like neural network nonlinear adaptive control for uncertain
multivariable motion control systems. IEEE Trans. Ind. Electron. 3872–3879 (2009)
5. Beitao, G., et al.: Adaptive PID controller based on BP neural network. International Joint
Conference on Artificial Intelligence, pp. 148–150 (2009)
6. Maleki, E.: Artificial neural networks application for modeling of friction stir welding effects
on mechanical properties of 7075-T6 aluminum alloy. In: IOP Conference Series: Materials
Science and Engineering, pp. 12–34 (2015)
7. González, F., Guarnizo, J.G., Benavides, G.: Emulation system for a distribution center
using mobile robot, controlled by artificial vision and fuzzy logic. IEEE Latin Am. Trans. 12,
557–563 (2014)
8. Vikram, C., Sunil, K., Singla, D.: Comparative analysis of tuning a PID controller using
intelligent methods. Acta Polytechnica Hungarica 235–249 (2014)
9. Boulogne, L.H.: Performance of neural networks for localizing moving objects with an
artificial lateral line. In: IOP Conference Series: Materials Science and Engineering, pp. 1–13
(2017)
10. Hassan, A.K.I.: Modeling insurance fraud detection using imbalanced data classification.
J. Comput. High. Educ. 1–7 (2015)
11. Kamir, et al.: Modeling insurance fraud detection using imbalanced data classification. Int.
J. Innov. Eng. Technol. 1–9 (2015)
12. Oprea, C., et al.: A data mining based model to improve university management. J. Sci. Arts
1–6 (2017)