This application discloses a method,
system, device, equipment, and medium for controlling the facial expressions of a bionic
robot, relating to the field of simulated
robot control. The method includes: constructing a
virtual model of the bionic
robot, setting several virtual attachment points, acquiring a continuous
facial expression sequence, extracting several target
facial expression moments and corresponding target
facial expression states from the continuous facial expression sequence; setting the target facial expression state at each target facial expression moment as the target to be imitated, using the displacement parameters of each
servo motor as optimization variables, and constructing an objective function based on the
geometric error between the actual position of the virtual attachment point in the
virtual model and the target position under the target facial expression state; iteratively sampling and simulating in the parameter space that satisfies the
servo motor constraints, calculating the objective function values corresponding to the displacement parameters, until the optimal
servo motor parameter set at the corresponding target facial expression moment is obtained, and combining it into a continuous control sequence; converting the continuous control sequence into facial expression control commands, and deploying them to the servo motors of the bionic robot for execution. This achieves optimization of the bionic head's facial expressions.