Rotor attitude detection (RAD) is one of the key technologies to control permanent magnet spherical motors (PMSpM). This paper proposes an improved you only look once v8n (YOLOv8n) based RAD method for a PMSpM. The visual image datasets collection and annotation method are described, and three different visual feature objects are set for the RAD. To increase the real-time performance of the YOLOv8n algorithm, the backbone and head of the YOLOv8n network are improved by introducing the FasterNet and c2fFaster modules. PyTorch 2.0.1 and CUDA 11.8 with Python 3.11.4 are used to conduct the verification experiments. The models are trained on both the custom PMSpM datasets and the publicly available datasets COCO 2017. The verification shows that the inference time of the improved YOLOv8n algorithm can be as short as 4.31 ms for the PMSpM custom datasets on the basis of ensuring visual object detection accuracy. Thus, the performance of the improved YOLOv8n algorithm is significantly better than that of the YOLOv8n and the multiobject Kalman kernel correlation filter (MKKCF) algorithm. The PMSpM rotor attitude can be calculated using the positional relationships of three visual objects captured by a single monocular industrial camera. To verify the precision of the proposed RAD method, the contact RAD method is taken as the benchmark for a comparison between the MKKCF-based RAD method and the improved YOLOv8n-based RAD method. Typical PMSpM spatial motion experiments demonstrate that the proposed improved YOLOv8n-based RAD method achieves higher precision than the MKKCF-based visual RAD method.

1.
K.
Bai
,
H.
Yan
, and
K.-M.
Lee
, “
Robust control of a spherical motor in moving frame
,”
Mechatronics
75
,
102548
(
2021
).
2.
X.
Liu
,
L.
Yan
,
P.
Xiang
,
X.
He
,
N.
Du
, and
C.
Wu
, “
A novel three-DOF transverse flux spherical actuator with decoupling mechanism
,” in
2023 26th International Conference on Electrical Machines and Systems (ICEMS)
(
IEEE
,
2023
), pp.
3728
3732
.
3.
S.
Zhou
,
G.
Li
,
Q.
Wang
,
R.
Zhou
,
Z.
Qian
,
J.
Xu
, and
Q.
Ye
, “
Geometrical equivalence principle based modeling and analysis for monolayer Halbach array spherical motor with cubic permanent magnets
,”
IEEE Trans. Energy Convers.
36
,
3241
3250
(
2021
).
4.
H.
Li
,
X.
Hu
, and
L.
Cui
, “
Magnetic field analysis for the permanent magnet spherical motor with SMC core
,”
IEEE Trans. Magn.
59
(
6
),
8201509
(
2023
).
5.
Z.
Li
,
Y.
Zhu
,
B.
Xie
,
Y.
Wang
,
X.
Guo
, and
H.
Sun
, “
Position detection method of piezoelectric driven spherical motor based on laser detection
,”
Micromachines
13
,
662
(
2022
).
6.
M.
Li
,
K.-M.
Lee
, and
E.
Hanson
, “
Sensor fusion based on embedded measurements for real-time three-DOF orientation motion estimation of a weight-compensated spherical motor
,”
IEEE Trans. Instrum. Meas.
71
,
1
9
(
2022
).
7.
J.
Liu
,
H.
Deng
,
C.
Hu
,
Z.
Hua
, and
W.
Chen
, “
Adaptive backstepping sliding mode control for 3-DOF permanent magnet spherical actuator
,”
Aerosp. Sci. Technol.
67
,
62
71
(
2017
).
8.
K.
Bai
,
Y.
Ding
,
Z.
Que
,
H.
Yan
,
X.
Chen
,
S.
Wen
, and
K.-M.
Lee
, “
Regulation and tracking control of omnidirectional rotation for spherical motors
,”
IEEE Trans. Ind. Electron.
70
,
1696
1705
(
2023
).
9.
S.
Gao
,
Q.
Wang
,
G.
Li
,
Z.
Qian
,
Q.
Ye
,
Q.
Zhang
, and
Z.
Li
, “
Novel design of multi-DOF motor position estimation based on wireless power transmission modeling
,”
IEEE Trans. Ind. Electron.
71
(
3
),
2853
2863
(
2024
).
10.
M.
Shi
,
Q.
Wang
,
G.
Li
,
R.
Zhou
, and
S.
Gao
, “
A new attitude estimation method for spherical reluctance motor based on few flux linkage samples
,”
IEEE Trans. Ind. Electron.
71
(
7
),
7580
7589
(
2024
).
11.
Y.
Yu
,
M.
Yang
, and
F.
Chai
, “
Multi-DOF orientation detection of a permanent magnet spherical motor based on back EMF
,”
IEEE Trans. Transp. Electrif.
10
(
2
),
3283
3291
(
2024
).
12.
M.
Shi
,
Q.
Wang
,
G.
Li
,
R.
Zhou
,
Y.
Liu
, and
Q.
Ye
, “
A new rotor position estimation method for spherical reluctance motor based on inductance characteristics obtained from measurement
,”
IEEE Trans. Instrum. Meas.
72
,
2003910
(
2023
).
13.
M.
Mi
,
Y.
Che
,
H.
Li
, and
J.
Li
, “
Rotor position identification of permanent magnet spherical motor based on equilateral spherical triangles
,”
IEEE Trans. Instrum. Meas.
73
,
6002709
(
2024
).
14.
H.
Li
,
E.
Bai
,
M.
Mi
, and
Y.
Yan
, “
Identification of Euler angles of permanent magnet spherical motor rotor based on hall sensors array
,”
Measurement
199
,
111500
(
2022
).
15.
A.
Bhatia
,
M.
Kumagai
, and
R.
Hollis
, “
Six-stator spherical induction motor for balancing mobile robots
,” in
2015 IEEE International Conference on Robotics and Automation (ICRA)
(
IEEE
,
2015
), pp.
226
231
.
16.
G.
Seyfarth
,
A.
Bhatia
,
O.
Sassnick
,
M.
Shomin
,
M.
Kumagai
, and
R.
Hollis
, “
Initial results for a ballbot driven with a spherical induction motor
,” in
2016 IEEE International Conference on Robotics and Automation (ICRA)
(
IEEE
,
2016
), pp.
3771
3776
.
17.
L.
Yan
,
I.-M.
Chen
,
Z.
Guo
,
Y.
Lang
, and
Y.
Li
, “
A three degree-of-freedom optical orientation measurement method for spherical actuator applications
,”
IEEE Trans. Autom. Sci. Eng.
8
,
319
326
(
2011
).
18.
Z.
Lu
,
G.
Li
,
Q.
Wang
,
S.
Zhou
, and
S.
Gao
, “
Adaptive backstepping sliding mode control of permanent magnet spherical motor based on disturbance observer
,”
Rev. Sci. Instrum.
93
,
065002
(
2022
).
19.
S.
Zhou
,
G.
Li
,
Q.
Wang
,
J.
Xu
,
Q.
Ye
, and
S.
Gao
, “
Rotor attitude estimation for spherical motors using multiobject Kalman KCF algorithm in monocular vision
,”
IEEE Trans. Ind. Electron.
70
,
265
275
(
2023
).
20.
J.
Stevenson
and
J.
Jordan
, “
Absolute position measurement using optical detection of coded patterns
,”
J. Phys. E: Sci. Instrum.
21
,
1140
(
1988
).
21.
H.
Garner
,
M.
Klement
, and
K.-M.
Lee
, “
Design and analysis of an absolute non-contact orientation sensor for wrist motion control
,” in
2001 IEEE/ASME International Conference on Advanced Intelligent Mechatronics. Proceedings (Cat. No. 01TH8556)
(
IEEE
,
2001
), Vol.
1
, pp.
69
74
.
22.
Q.
Wang
,
Z.
Qian
, and
G.
Li
, “
Vision based orientation detection method and control of a spherical motor
,” in
2010 53rd IEEE International Midwest Symposium on Circuits and Systems
(
IEEE
,
2010
), pp.
1145
1148
.
23.
K. N.
Souza
,
R. S.
Pontes
,
A. P.
Oliveira
, and
G. A.
Barreto
, “
Design and control of a three-coil permanent magnet spherical motor
,”
Energies
11
,
2009
(
2018
).
24.
Y.
Lu
,
C.
Hu
,
Q.
Wang
,
Y.
Hong
,
W.
Shen
, and
C.
Zhou
, “
A new rotor position measurement method for permanent magnet spherical motors
,”
Appl. Sci.
8
,
2415
(
2018
).
25.
L.
Xue
,
Q.
Wang
,
S.
Lu
,
G.
Li
, and
R.
Tang
, “
Attitude estimation of a permanent magnet spherical motor based on an improved fast discriminative scale space tracking algorithm
,”
Meas. Sci. Technol.
31
,
055005
(
2020
).
26.
S.
Zhou
,
W.
Cao
,
Q.
Wang
,
M.
Zhou
,
X.
Zheng
,
J.
Lou
, and
Y.
Chen
, “
KMFDSST algorithm-based rotor attitude estimation for a spherical motor
,”
IEEE Trans. Ind. Inf.
20
(
3
),
4463
4472
(
2024
).
27.
H.
Lou
,
X.
Duan
,
J.
Guo
,
H.
Liu
,
J.
Gu
,
L.
Bi
, and
H.
Chen
, “
DC-YOLOv8: Small-size object detection algorithm based on camera sensor
,”
Electronics
12
,
2323
(
2023
).
28.
A.
Guo
,
K.
Sun
, and
Z.
Zhang
, “
A lightweight YOLOv8 integrating FasterNet for real-time underwater object detection
,”
J. Real-Time Image Process.
21
,
49
(
2024
).
29.
H.-T.
Geng
,
Z.-Y.
Liu
,
J.
Jiang
,
Z.-C.
Fan
, and
J.-X.
Li
, “
Embedded road crack detection algorithm based on improved YOLOv8
,”
J. Comput. Appl.
44
(
5
),
1613
1618
(
2024
).
You do not currently have access to this content.