The invention provides a weak supervision video
anomaly detection method and
system based on prompt learning, and belongs to the technical field of abnormal event detection based on
computer vision, and the method comprises the steps: obtaining to-be-processed video data; and
processing the acquired to-be-processed video data by using a pre-trained
anomaly detection model to obtain a specific
classification result of the abnormal events in the video. According to the invention, a video local and global adaptive time modeling module is introduced to capture local and global dependency relationships at the same time, and the relationship between the demand of detailed time modeling and the calculation efficiency is balanced; by utilizing an external
knowledge base, the distinguishing capability of the model on different categories is improved; according to the method, a text-video comparison
loss function is designed, the similarity of a correctly matched text-video pair is enhanced, the similarity of wrong matching is reduced, and too high similarity of a
negative sample is effectively inhibited, so that the distinguishing capability of the model is improved, the matching of the text and the video is more accurate, and the video and
text alignment capability of the model is enhanced.