Robotic Arm Research Report
Robotic Arm Research Report
Abstract. This paper studies the continuous motion capture system of a robotic arm based on
MYO. The MYO sensor can collect the electromyographic signal (sEMG) and the motion signal
(IMU) of the arm during exercise, and filter the electromyographic signal, extract the features,
and return the features. After the first transformation, the machine learning algorithm is used for
model training. In order to verify the effect of the recognition of the EMG signal on the deep
learning method, the accuracy comparison experiment with the BP neural network is also added.
In addition, a two-link arm model was built, and the pose information of the end of the arm was
obtained through Euler angle transformation, and then the end pose information of the robotic
arm was obtained through coordinate mapping, and the end pose simulation was performed using
Matlab software. The simulation results prove that the performance of the system meets
expectations, and points out the direction for subsequent research.
1.Introduction
The traditional way of human-computer interaction based on program control fetters the development
of robot intelligence and is difficult to apply to robot systems that need to be directly integrated with the
human body, such as smart prostheses, medical rehabilitation robots and wearable behavior assistance
robots. Modern human-computer interaction technology needs to develop from a way that robots
passively accept instructions to a way that robots actively understand human behavior intentions. From
this, a new type of intelligent human-computer interaction technology that recognizes human behavior
intentions through bioelectric signals is derived. Among them, surface electromyogram py (sEMG) is
favored by many researchers because of its rich information and mature acquisition technology [1].
Most of the previous researches on identifying human behavior intentions through sEMG focused on
classifying human actions. The basic process includes the feature extraction of surface EMG and the
construction of classification models using feature samples. The sEMG-based model can recognize a
variety of gestures and can achieve high accuracy. These can be applied to remote grasping and
interactive robots.
Estimating continuous human joint motion through sEMG is the key point of current theoretical and
applied research. There are two ways to realize continuous joint motion estimation based on sEMG: (1)
Establish a joint dynamics model with sEMG as input combined with muscle physiology, and then
calculate joint torque/angular acceleration, etc. However, the constructed model has a complex structure
and contains many physiological parameters that cannot be directly measured, which is difficult to apply
in practice. (2) Directly establish a regression model that correlates sEMG and joint movement. Among
them, neural network is the most common application, but the structure of neural network has a great
influence on the prediction results, but there is no standardized method to define a suitable network
Content from this work may be used under the terms of the Creative Commons Attribution 3.0 licence. Any further distribution
of this work must maintain attribution to the author(s) and the title of the work, journal citation and DOI.
Published under licence by IOP Publishing Ltd 1
ISPECE 2020 IOP Publishing
Journal of Physics: Conference Series 1754 (2021) 012173 doi:10.1088/1742-6596/1754/1/012173
structure, and the determination of network parameters is excessively dependent for training data, when
there is a difference between the test data and the training data, it is easy to cause the network output to
deviate from the true value.
By collecting the motion IMU signal of the upper and lower bones of the arm, through the
acceleration and Euler angle information, the motion information of the arm can be obtained. Secondly,
a coordinate system is established for the human arm, and a two-link model is created and the posture
information of the arm is mapped to the end of the manipulator through the principle of robot kinematics,
so that the end of the manipulator and the hand keep the same movement.
Therefore, a method is proposed to recognize gestures and initialize the manipulator through sEMG,
and control the movement of the manipulator through IMU signals. This method requires: (1) Select a
highly accurate and reliable gesture recognition algorithm to predict the grasping posture;(2) Processing
the IMU signal to enable it to accurately express the arm motion information, but the accuracy of the
traditional differentiation based on the acceleration information in the IMU is often related to the
accuracy of the IMU equipment. The greater the accuracy, the more expensive the equipment, the higher
the cost. It is difficult to bear the cost in production
This topic selects MYO as the acquisition equipment of sEMG and IMU signals. The sampling
frequency of sEMG is 200hz and the sampling frequency of IMU signal is 50hz. Gestures are recognized
through sEMG signals, and IMU controls the motion of the robotic arm. An experimental platform was
built to verify the feasibility and effectiveness of the system
2
ISPECE 2020 IOP Publishing
Journal of Physics: Conference Series 1754 (2021) 012173 doi:10.1088/1742-6596/1754/1/012173
H(z)= (1)
𝜔 2𝜋𝑓 /𝑓 (2) is filter digital frequency, 𝑓 is filter frequency, 𝑓 is sampling frequency
The surface EMG signal needs to extract its hidden deep features before it can be used to recognize
the action intention of the human body. In traditional methods [4], the features of the sEMG signal are
generally extracted manually, including time domain features, frequency domain features, and time-
frequency domain features. Generally, the EMG features are extracted through the combination of time
window and increment window, as shown in the figure:
Figure 3. Time window and incremental window for extracting sEMG feature
Define N as the number of sampling points in the time window, xi represents the value of the i-th
sample point. Select Mean absolute value (MAV) and Root mean square (RMS) as features, the
expression as (2), is the most commonly used feature and can reflect the average
𝑀𝐴𝑉 ∑ |𝑥 | (2)
𝑅𝑀𝑆 ∑ 𝑥 (3)
level of the amplitude of the EMG signal. It is often used to detect the state of action and rest. The
expression as RMS (3), is related to muscle contraction strength.
Feature normalization is to ensure that these multi-dimensional features have similar scales and
eliminate the dimensional influence between data features. This will help the gradient descent algorithm
run faster and require fewer iterations for model convergence. More importantly, normalizing features
can improve the accuracy of action classification. Linear function normalization (Min-Max Scaling) will
linearly transform the original data to map the result to the range of [0,1] to achieve proportional scaling
of the original data. Its mathematical expression (4)
𝑥 (4)
𝑥 represents the characteristics after standardization, 𝑥 , 𝑥 represent the minimum and
maximum values of the data respectively
The data source is the EMG data of five adult males, and the EMG data of the four gestures of making
a fist, rest, ok the five fingers, and bringing the five fingers together. On the classification model, Linear
Discriminant Analysis(LDA), Random forest(RF), Decision tree(DT), Support Vector Machines(SVM),
k-nearest neighbor classification(KNN) are selected, and the BP neural network [5] is specially
processed for the purpose of comparing the applicability of the system between machine learning and
neural network.
3
ISPECE 2020 IOP Publishing
Journal of Physics: Conference Series 1754 (2021) 012173 doi:10.1088/1742-6596/1754/1/012173
∅ ⎡ 𝑎𝑟𝑐𝑡𝑎𝑛 ⎤
⎢ 𝑞 𝑞 ⎥⎥
𝜃 ⎢arcsin 2 𝑞 𝑞 (5)
𝜑 ⎢ 𝑎𝑟𝑐𝑡𝑎𝑛 ⎥
⎣ ⎦
The results of arctan and arcsin are in the range of , , but is not satisfy all orientations
(the value range of angle θ is already satisfied , , so need to use atan2 instead of arctan
(6).
∅ 𝑎𝑡𝑎𝑛2 2 𝑞 𝑞 𝑞 𝑞 ,1 2 𝑞 𝑞
𝜃 asin 2 𝑞 𝑞 𝑞 𝑞 (6)
𝜑 𝑎𝑡𝑎𝑛2 2 𝑞 𝑞 𝑞 𝑞 ,1 2 𝑞 𝑞
∅, 𝜃, 𝜑 are the rotation angles around the z axis, y axis, and x axis respectively.
By establishing a two-link model of the arm, the calibration coordinate system maps the pose of the
end of the arm to the end of the manipulator to achieve the purpose of following the movement of the
hand. The coordinate system calibration method is as follows: the x-axis is parallel to the upper and
lower arm bones, the y-axis is perpendicular to the upper and lower arm bones, and the z-axis is the
vertical direction of the arm.
4
ISPECE 2020 IOP Publishing
Journal of Physics: Conference Series 1754 (2021) 012173 doi:10.1088/1742-6596/1754/1/012173
5
ISPECE 2020 IOP Publishing
Journal of Physics: Conference Series 1754 (2021) 012173 doi:10.1088/1742-6596/1754/1/012173
In this experiment, two MYO bracelets are worn on the upper and lower arms of the hand respectively,
and the action is to rotate around the shoulder joint for ten seconds, and the obtained data is simulated
in Matlab (Figure 8). It can be seen that the final trajectory is roughly the same as the actual trajectory.
This control method gives full play to the user's own active trajectory correction method, similar to the
control of a mouse, the user can correct errors in real time, achieving the intention of controlling the end
of the robotic arm to reach the target point.
4. Conclusions
This paper studies and compares several machine learning algorithms, and analyzes the pros and cons
of using EMG to recognize gestures, and finally chooses SVM as the recognition algorithm. It is further
proposed to use Euler angles in the IMU signal to obtain the pose information of the arm, and to achieve
the effect of controlling the position of the end of the manipulator following the hand by mapping it to
the end of the manipulator. The system is not restricted by the venue, and the sensor only needs a MYO
bracelet to control the robotic arm and grasp the effect. Compared with the optical calibration system,
this system is more practical. Follow-up can be further researched on control accuracy and angle.
Acknowledgments
This work is supported by Liaoning Provincial Education Department Scientific Research Fund Project
(LFGD2019001). The funders project was built for the experimental platform, and data collection,
decision to publish, or preparation of the manuscript played a huge role.
References
[1] Miguel A. Perez, Maury A. Nussbaum.(2003) Principal components analysis as an evaluation and
classification tool for lower torso sEMG data[J]. Journal of Biomechanics,36(8).
[2] Moniri Ahmad, Terracina Dan, Rodriguez-Manzano Jesus, Strutton Paul H, Georgiou Pantelis.
(2020) Real-Time Forecasting of sEMG Features for Trunk Muscle Fatigue using Machine
Learning.[J]. IEEE transactions on bio-medical engineering, PP.
[3] Hiren K. Mewada, Jitendra Chaudhari.(2019) Low computation digital down converter using
polyphase IIR filter[J]. Circuit World,45(3).
[4] Shang Li, Hongli Zhang, Lin Ye,Shen Su, Xiaoding Guo, Haining Yu,13,Binxing Fang.(2020)
Prison Term Prediction on Criminal Case Description with DeepLearning[J]. CMC:
Computers, Materials & Continua,62(3).
[5] Jing Yang, Yingpeng Hu, Kaixi Zhang, Yanghui Wu.(2020) An improved evolution algorithm using
population competition genetic algorithm and self-correction BP neural network based on
fitness landscape[J]. Soft Computing, (prepublish).
[6] Robotics;(2020) New Findings from Beijing University of Technology in the Area of Robotics
Described (Calibration of Low Cost Imu's Inertial Sensors for Improved Attitude
Estimation)[J]. Journal of Robotics & Machine Learning.