The invention relates to the technical field of body intelligence, in particular to a body intelligence
attack detection method based on a constraint function, mainly solves the technical problems of insufficient
granularity, poor real-time performance and insufficient robustness of the existing
attack detection method, and comprises the following steps: S1, selecting key points; s2, generating a constraint function; s3, analyzing the images where the key points are located by adopting a credible multi-
modal model, and generating task fingerprints; s4, comparing the constraint function with the task fingerprints, and calculating an output difference;
semantic equivalence measurement is introduced; a tolerance value is introduced, if the output difference exceeds a threshold value, it is judged that the constraint function is attacked, and the
system stops task execution. According to the method, the detection accuracy exceeding 92% can be realized in various
attack scenes; the problems of false report and missing report caused by insufficient rule coverage or large
language model output diversity can be avoided, and the robustness is high; and the execution safety and the real-time performance of the body-equipped
intelligent agent in a complex and open environment can be obviously improved.