The invention discloses a mechanical arm precision control method based on a neural network, and relates to the field of mechanical arm precision control, and the method comprises the steps: S1, constructing a multi-source
sensing data collection system of a mechanical arm
system, and obtaining a joint control instruction,
tail end track feedback, an environment state and stress data in real time; s2, constructing a
time sequence prediction model based on a
mask encoder,
processing high-dimensional dynamic error data by adopting a
mask encoder structure, adaptively dividing time sequences of different sampling frequencies through a multi-patch projection module, and introducing an arbitrary variable attention mechanism to capture
time sequence dependence and heterogeneity between variables; s3, training the model by adopting a composite
loss function; and S4, the mechanical arm target
pose error point
estimation output by the trained model is injected into a mechanical arm control instruction, the motion track of the mechanical arm is compensated in real time, and the mechanical arm is driven to execute high-precision
motion control. The problems that in the prior art, efficient and accurate modeling of a multivariable
time sequence is difficult, and scheduling optimization is insufficient are solved.