Urban community access personnel safety inspection method based on eye movement data capture

By building eye movement data detection data sets and deep learning networks, combining video and audio features, we can detect the viewpoint positions of people entering and leaving urban communities, and solve the problem of security vulnerabilities in urban communities, and achieve rapid and low-cost detection of violence tendency and self-evolution. model performance improvement.

CN118887485APending Publication Date: 2024-11-01QINGDAO SONLI SOFTWARE INFORMATION TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410597782.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-14
Publication Date
2024-11-01

AI Technical Summary

Technical Problem

There are security loopholes in the management of people entering and leaving urban communities, making it difficult to effectively detect implicit aggression of personnel. Especially in large communities, traditional verbal inquiries and access control methods are difficult to detect potential violence.

Method used

Using a security inspection method based on eye movement data capture, by constructing eye movement data detection data sets, using deep learning network to extract multimodal features, fuse video and audio features, predict viewpoint locations, and collect in and out of the persons through the under-screen eye movement instrument , viewpoint data, determine whether there is a tendency to violence.

Benefits of technology

Fast and low-cost detection of violence tendency is achieved, camouflage behavior can be detected, provides a solid foundation for urban community safety, and achieves self-evolution and performance improvement through continuous learning models.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118887485A_ABST
    Figure CN118887485A_ABST
Patent Text Reader

Abstract

The invention belongs to the technical field of community public security management, and particularly relates to an eye movement data capture-based urban community access personnel safety inspection method, which comprises the following steps of: constructing an eye movement data detection data set, respectively extracting video features and audio features of eye movement data, and carrying out feature fusion to obtain fused audio-video features; converting the fused audio-visual features into viewpoint prediction features, and predicting viewpoint positions; then training and testing a multi-mode audio and video viewpoint prediction network; collecting eye movement data of people entering and exiting from the building, comparing the eye movement data with the predicted eye movement data, and judging whether the current person is a violent person or not; and finally, training data set expansion and continuous learning based on mixed new and old data are carried out, the violence tendency detection can be completed with less time and very low cost, self-evolution can be realized, detection can also be carried out for people with violence tendency very good at'disguise ', and a foundation is laid for urban community safety detection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of community security management, and in particular relates to a method for security inspection of people entering and leaving an urban community based on eye movement data capture. Background Art

[0002] The current rapid development of society is accompanied by the accelerating urbanization process, and community governance has become the focus of current urban governance. With the advancement of modernization, the quality of community workers is getting higher and higher, but there are still many problems. For example, urban community governance lacks a professional talent team, and community affairs are not equal to community personnel. Urban community workers are at an uneven stage, and the level of professionalism is still insufficient.

[0003] At present, there are still many loopholes in the management of people entering and leaving urban communities. Although high-end communities use access control to prevent people from entering and leaving at will, for most communities, people can enter and leave at will because of the large number of floating population in the community. Security work mainly focuses on determining whether there is a criminal act through verbal questioning. However, in most cases, people will disguise themselves and it is very difficult to detect. Especially in some large communities, most houses are rented out. Because people themselves have implicit aggression, even if they have violent tendencies, they will hide their violent tendencies and not be discovered. It is difficult to determine whether there is implicit aggression only by appearance. The size of a person's pupil is usually controlled by the autonomic nervous system. People cannot control eye movement information to conceal their true thoughts. Therefore, the existence of a person's implicit aggression can be determined by analyzing eye movement data. Summary of the invention

[0004] In response to the above problems, the present invention proposes a security inspection method for people entering and leaving urban communities based on eye movement data capture, which can collect the viewpoints of people entering and leaving urban communities, thereby discovering implicit aggression and taking timely measures to maintain community safety and stability.

[0005] To achieve the above object, the present invention is implemented through the following technical solutions:

[0006] A method for checking the safety of people entering and leaving an urban community based on eye movement data capture, specifically comprising the following steps:

[0007] S1. Construct an eye movement data detection dataset: Collect videos related to violence and containing audio, and collect viewpoint data of non-violent people to construct an eye movement data detection dataset;

[0008] S2. Multimodal feature extraction based on eye movement data: Deep learning network is used to extract multimodal features, which include video features and audio features;

[0009] S3. Eye movement data fusion based on multimodal data: First, the video features and audio features are superimposed and fused by cross fusion, and then the feature similarity between different heads is measured by CrossTransformer to obtain the fused audio-visual features;

[0010] S4. Eye movement position prediction based on multimodal data: convert the fused audio-visual features into viewpoint prediction features and predict the viewpoint position;

[0011] S5, network training and testing: 100 videos of the eye movement data detection data set described in step S1 are selected for training and testing the multimodal audio-visual viewpoint prediction network;

[0012] S6. Collection of eye movement data of people entering and leaving: Use an eye tracker under the screen to collect viewpoint data of outsiders;

[0013] S7, eye movement data consistency determination: compare the collected eye movement data of people entering and leaving with the predicted eye movement data to determine whether the current person is a violent person;

[0014] S8, training data set expansion: update the training data model based on the collected eye movement data of people entering and leaving, retrain the model with the updated data, and expand the data set by continuously collecting new violent videos;

[0015] S9. Continuous learning based on mixed new and old data: Based on mixed new and old data, continuous learning is performed using a continuous learning model.

[0016] As a further technical solution of the present invention, the specific process of step S2 is: using the Transformer method to learn the correlation between audio and video, firstly dividing the video and audio into blocks of the same size, and for the audio blocks, the audio signal needs to be converted into a spectrogram, and then divided into blocks of the same size,

[0017] [a1,…,a i , …, a n ]←Split(MFCC(Audio))

[0018] [v1,…,v i , …, v n ]←Split(Video)

[0019] Among them, MFCC(·) represents the conversion of sound information into spectrogram through Fourier transform; Split(·) represents the splitting of input image and spectrogram into small patches; [a1…a i …a n ] represents the generated spectrogram block; [v1…v i …v n] represents the generated picture block, and the obtained audio features AudioFeature and video features VideoFeature are:

[0020] AudioFeature=Transformer

[0021] ([Linear(Encoder(a1)),…Linear(Encoder(a i )), …Linear(Encoder(a n ))]+Position), VideoFeature=Transformer

[0022] ([Linear(Encoder(v1)),…Linear(Encoder(v i )),…Linear(Encoder(v n ))]+Position),

[0023] Among them, Encoder(·) represents the forward encoding module; Linear(·) represents the linear layer, which maps the encoded features to a unified space; Transformer represents the Transformer layer, which contains multiple sub-layers, which are defined in detail as follows:

[0024] VideoFeature i+1 =Multi_Headed(Self_Attention(LN(AudioFeature i ))+AudioFeature i ),

[0025] AudioFeature i+1 =Multi_Headed(Self_Attention(LN(VideoFeature i ))+VideoFeature i ),

[0026] Among them, VideoFeature i+1 Represents the output video features of the i+1th layer Transformer; Multi_Headed represents the multi-head attention mechanism, Multi_Headed(Q, K, V) = Attention(W Q X, W K X, W VX), Q = K = V = VideoFeature or Q = K = V = AudioFeature; LN stands for Layer Normalisation; Self_Attention stands for the self-attention mechanism,

[0027] As a further technical solution of the present invention, the fused audio-visual features obtained in step S3 are:

[0028]

[0029] Among them, CrossTransformer(·) is a function that fuses audio and visual features; the function operation of fusing audio and visual features is as follows:

[0030] VideoAudioFeature i+1 =Multi_Headed(Self_Attention(LN(Concat(VisualFeaturei,AudioFeature i )))+Concat(VisualFeature i , AudioFeature i )),

[0031] Where Multi_Headed(Q, K, V) = Attention(W Q X, W K X, W V X), Q = V = VideoFeature K = AudioFeature, Concat represents the superposition operation between features.

[0032] As a technical solution of the present invention, step S4 recovers the spatial position of the fused audio-visual features by decoding, and based on the convolution operation, the block-based representation is sampled with a certain overlap rate around the current representation, specifically:

[0033] VideoAudioFeature→Conv({Token1,…,Token i ,…,Token n}),

[0034] {Token1 N ,…,Token i N ,…,Token n N}=Conv({<Token1,Token2,Token4,Token5> ,…,Tokeni ,…,Token n}),

[0035] in,<Token1,Token2,Token4,Token5> For the four adjacent tokens, Token1 N To pass<Token1,Token2,Token4,Token5> Generate new representations.

[0036] As a further technical solution of the present invention, when step S5 trains the multimodal audio-visual viewpoint prediction network, the training loss function of the network is the BCEwithLogistloss and KLloss functions, and the output of the network is,

[0037] Out fixation =Sigmoid(Conv(Con{Token1 N ,…,Token i N ,…,Token n N})),

[0038] Among them, Con represents the combination of block position-based representations into a viewpoint prediction map, and reduces the dimension to 1 channel through convolution Conv, and outputs the viewpoint Out through Sigmoid fixaion ; After the training is completed, the model of the trained network is output to a file to save the network model with the highest accuracy;

[0039] During testing, the audio-visual data is converted and input into the multimodal audio-visual viewpoint prediction network, and the pre-trained model is loaded and the viewpoint data is output.

[0040] As a further technical solution of the present invention, the specific process of step S6 is:

[0041] Play violent video data to the people entering and leaving, and play sound data while playing the violent video. Start the eye tracker to collect viewpoint data of the people entering and leaving. The whole process lasts for 3 minutes. Randomly select 6 violent video clips from the violent video data set to display them in the following way: Fixation←[x,y]=‖Computer‖←EyeTracker(Person), where Person represents the person entering and leaving whose viewpoints are collected; EyeTracker represents the eye tracker that collects viewpoints; ‖Computer‖ represents the coordinate information [x,y] sent to the computer; Fixation represents the eye movement data of the people entering and leaving obtained by mapping the viewpoint data to the violent video.

[0042] As a further technical solution of the present invention, the process of step S7 to determine whether the current person is a violent person is as follows:

[0043]

[0044] in, Indicates whether there is a tendency of violence; T represents the threshold, that is, the balance point of the tendency of violence; Binary means binarizing the viewpoint; abs is the degree of consistency.

[0045] As a further technical solution of the present invention, the continuous learning model in step S9 adopts a twin branch model, which is defined as follows:

[0046] ..., TransformerLayer i (on / off(SubBranch1), on / off(SubBranch2)),…

[0047] Among them, TransformerLayer i Represents a layer in the feature extraction layer of the audio-visual network. On / off represents whether the current branch is learned or frozen. SubBranch represents the sub-branch. The two have the same structure, but the parameters are not shared.

[0048] Compared with the prior art, the present invention has the following beneficial effects:

[0049] In response to the current security loopholes in the security inspection of people entering and leaving urban communities, the present invention proposes a security inspection method for people entering and leaving urban communities based on eye movement data capture, and detects people with violent tendencies based on viewpoint data comparison. The detection of violent tendencies can be completed in a very short time and at a very low cost, and it can achieve self-evolution, and can also detect people with violent tendencies who are very good at "disguising" themselves, laying a foundation for urban community security detection. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] Figure 1 A flow chart of a method for security inspection of people entering and leaving an urban community based on eye movement data capture provided by the present invention.

[0051] Figure 2 A network structure diagram of the method for security inspection of people entering and leaving urban communities based on eye movement data capture provided by the present invention. DETAILED DESCRIPTION

[0052] The present invention will be further described below by way of embodiments in conjunction with the accompanying drawings.

[0053] Example:

[0054] like Figure 1 As shown in FIG2 , the method for security inspection of people entering and leaving an urban community based on eye movement data capture provided in this embodiment specifically includes the following steps:

[0055] S1. Build an eye movement data detection dataset:

[0056] In order to construct an eye movement data detection data set, this embodiment first downloads violence-related videos from the Internet, downloads the audio of the video while downloading the video, and collects the viewpoint data of non-violent personnel by manual annotation. The process of collecting the viewpoint data of non-violent personnel is as follows: in order to organize mentally healthy non-violent volunteers, psychological tests are first conducted. Only after the test is completed can they participate in the experiment as non-violent personnel. The purpose of the experiment is unknown to the volunteers in advance and they have no relevant experience in collecting viewpoints. In the process of collecting viewpoints, volunteers need to wear headphones. If the volunteers feel any discomfort, the experiment will be terminated, and they will rest for a period of time and then continue the experiment. If the volunteers propose to terminate the experiment, data collection will be stopped and the experimental results will be eliminated from the final results.

[0057] S2. Analysis of the advantages of multimodal data:

[0058] The occurrence of violent crimes is often accompanied by the appearance of sound, which can more deeply stimulate people's senses. As one of the five senses, sound bears the important task of communicating with the outside world. Playing sound when playing videos can make people feel more in a real environment. Therefore, in the process of playing violent videos, this embodiment adds sound stimulation, and the addition of sound stimulation can greatly affect the distribution of people's viewpoints, thereby digging out the real intentions of people.

[0059] S3. Multimodal feature extraction based on eye movement data:

[0060] This embodiment uses a deep learning network to extract multimodal features. The multimodal features include video features and audio features. To extract video features, this embodiment uses a Transformer method to learn the correlation between audio and video. First, the video and audio are divided into patches of the same size. For the audio patches, the audio signal needs to be converted into a spectrogram and then divided into patches of the same size.

[0061] [a1,…,a i , …, a n ]←Split(MFCC(Audio))

[0062] [v1,…,v i , …, v n ]←Split(Video)

[0063] Among them, MFCC(·) represents the conversion of sound information into spectrogram through Fourier transform; Split(·) represents the splitting of input image and spectrogram into small patches; [a1…ai …a n ] represents the generated spectrogram block; [v1…v i …v n ] represents the generated picture block, and the obtained audio features AudioFeature and video features VideoFeature are:

[0064] AudioFeature=Transformer

[0065] ([Linear(Encoder(a1)),…Linear(Encoder(a i )), …Linear(Encoder(a n ))]+Position), VideoFeature=Transformer

[0066] ([Linear(Encoder(v1)),…Linear(Encoder(v i )), …Linear(Encoder(v n ))]+Position),

[0067] Among them, Encoder(·) represents the forward encoding module; Linear(·) represents the linear layer, which maps the encoded features to a unified space; Transformer represents the Transformer layer, which contains multiple sub-layers, which are defined in detail as follows:

[0068] VideoFeature i+1 =Multi_Headed(Self_Attention(LN(AudioFeature i ))+AudioFeature i ),

[0069] AudioFeature i+1 =Multi_Headed(Self_Attention(LN(VideoFeature i ))+VideoFeature i ),

[0070] Among them, VideoFeature i+1 Represents the output video features of the i+1th layer Transformer; Multi_Headed represents the multi-head attention mechanism, Multi_Headed(Q, K, V) = Attention(W Q X, W KX, W V X), Q = K = V = VideoFeature or Q = K = V = AudioFeature; LN stands for Layer Normalisation; Self_Attention stands for the self-attention mechanism,

[0071] S4. Eye movement data fusion based on multimodal data:

[0072] After obtaining the audio feature AudioFeature and the video feature VideoFeature, the two features are fused. In this embodiment, the cross-fusion method is first used for superposition fusion, and then the feature similarity between different heads is measured by CrossTransformer, so that features with high similarity are given a higher response value to obtain the fused audio-visual features:

[0073]

[0074] Among them, CrossTransformer(·) is a function that fuses audio and visual features; the function operation of fusing audio and visual features is as follows:

[0075] VideoAudioFeature i+1 =Multi_Headed(Self_Attention(LN(Concat(VisualFeature i , AudioFeature i )))+Concat(VisualFeature i , AudioFeature i )),

[0076] Where Multi_Headed(Q, K, V) = Attention(W Q X, W K X, W V X), Q = V = VideoFeature K = AudioFeature, Concat represents the superposition operation between features.

[0077] S5. Eye movement position prediction based on multimodal data:

[0078] The fused audio-visual feature VideoAudioFeature is converted into a viewpoint prediction feature, and the viewpoint position is predicted. This patent uses a feature reading method to convert the audio-visual feature into viewpoint position information. Since the viewpoint is a spatial position, the audio-visual feature is a block-based high-dimensional information. Therefore, the spatial position of VideoAudioFeature is restored by decoding. This embodiment is based on a convolution operation, and the block-based representation (Token) is sampled with a certain overlap rate around the current representation (Token), so as to achieve the purpose of restoring a high-resolution representation (Token), specifically:

[0079] VideoAudioFeature→Conv({Token1,…,Token i ,…,Token n}),

[0080] {Token1 N ,…,Token i N ,…,Token n N}=Conv({<Token1,Token2,Token4,Token5> ,…,Token i ,…,Token n}),

[0081] in,<Token1,Token2,Token4,Token5> For the four adjacent tokens, Token1 N A new token (Token) generated by (Token1, Token2, Token4, Token5).

[0082] S6. Network training:

[0083] In this embodiment, 100 videos of the eye movement data detection data set described in step S1 are selected for training and testing the multimodal audio-visual viewpoint prediction network. When training the multimodal audio-visual viewpoint prediction network, the training loss function of the network is the BCEwithLogistloss and KLloss functions, and the output of the network is,

[0084] Out fixation =Sigmoid(Conv(Con{Token1 N ,…,Token i N ,…,Token n N})),

[0085] Among them, Con represents the combination of block position-based representations into a viewpoint prediction map, and reduces the dimension to 1 channel through convolution Conv, and outputs the viewpoint Out through Sigmoid fixation ; After the training is completed, the model of the trained network is output to a file to save the network model with the highest accuracy.

[0086] S7, Network test:

[0087] To test the performance of the multimodal eye movement data prediction network, this embodiment converts the audio-visual data into and inputs it into the multimodal audio-visual viewpoint prediction network, loads the pre-trained model and outputs the viewpoint data.

[0088] S8. Collection of eye movement data of people entering and leaving:

[0089] When people enter or leave, it is necessary to collect eye movement data of the people. This embodiment adopts an under-screen eye tracker, because the head-mounted eye tracker may cause the people to not cooperate, while the under-screen eye tracker can collect viewpoint data without the people entering or leaving performing any operations during the viewpoint collection process. Specifically:

[0090] Play violent video data to the people entering and leaving, and play sound data while playing the violent video, start the eye tracker to collect viewpoint data of the people entering and leaving. The whole process lasts for 3 minutes, and 6 violent video clips are randomly selected from the violent video data set to display the following display method: Fixation←[x,y]=‖Computer‖←EyeTracker(Person), where Person represents the person entering and leaving whose viewpoints are collected; EyeTracker represents the eye tracker that collects viewpoints; ‖Computer‖ represents the coordinate information [x,y] sent to the computer; Fixation represents the eye movement data of the people entering and leaving obtained by mapping the viewpoint data to the violent video.

[0091] S9. Determination of consistency of eye movement data:

[0092] Combine the collected eye movement data of people entering and leaving Fixation with the predicted eye movement data Out fixationFor comparison, after the comparison is completed, it is necessary to give whether the current person is a violent person. This embodiment does not turn whether it is a violent person into a binary classification problem. This is because violent people are not easy to find in life. If they have violent tendencies, they will not admit that they have violent tendencies, and it is even more impossible to cooperate to complete the experiment and explain that they are violent people. Therefore, it is not feasible to determine whether it is a violent person through binary classification. This embodiment only needs to determine whether the current in and out personnel are consistent with the viewpoints collected by normal and healthy people. Because if there is a very large difference from the viewpoint of normal and healthy people, it proves that the person has violent tendencies, and it is necessary to specify corresponding measures or actions for the relevant personnel. The consistency determination of eye movement data is achieved through the following process:

[0093]

[0094] in, Indicates whether there is a tendency of violence; T represents the threshold, that is, the balance point of the tendency of violence. In this embodiment, T=30% is selected because the fixed threshold cannot change with the viewpoint. Therefore, this embodiment uses the form of a determination percentage as the threshold; Binary means binarizing the viewpoint; abs is used to calculate the degree of consistency.

[0095] S10, training data set expansion:

[0096] Since most of the people entering and leaving the room are healthy and non-violent, collecting their eye movement data will be conducive to updating the eye movement training data model, and the updated data can retrain the model, thereby improving the model performance. Not only can the eye movement training data continue to grow, but violent videos can also increase. By continuously collecting new violent videos, the data set can be expanded. Therefore, the method proposed in this embodiment is an open method that can be continuously improved with changes in the environment and society, and thoroughly realizes the intelligence of the model and the improvement of its performance.

[0097] S11. Continuous learning based on mixed new and old data:

[0098] The main reason why this embodiment uses a multimodal eye movement data model for prediction is that the current labeled data is relatively complex, and the traditional training data method can only train a "one-time" model, and the model cannot achieve "cyclical" self-evolution. Because if violent personnel can train their own eye movements with a high intensity based on the eye movement collection model, thereby strongly controlling their own eye movements, the model performance will be reduced. If the model can evolve itself with the "disguise" of violent personnel, it will greatly improve the performance of the network model and enhance the accuracy of model prediction. Therefore, this embodiment is based on a mixture of new and old data, and uses a continuous learning model for continuous learning. The continuous learning model uses a twin branch model, which is defined as follows:

[0099] ..., TransformerLayer i (on / off(SubBranch1), on / off(SubBranch2)),…

[0100] Among them, TransformerLayer i Represents a layer in the feature extraction layer of the audio-visual network. On / off represents whether the current branch is learned or frozen. SubBranch represents the sub-branch. The two have the same structure, but the parameters are not shared.

[0101] The algorithms and network structures not described in detail in this article are general technologies in the field.

[0102] It should be noted that the purpose of publishing the embodiments is to help further understand the present invention, but those skilled in the art can understand that various substitutions and modifications are possible without departing from the spirit and scope of the present invention and the appended claims. Therefore, the present invention should not be limited to the contents disclosed in the embodiments, and the scope of protection claimed by the present invention shall be subject to the scope defined in the claims.

Claims

1. A method for security inspection of people entering and leaving urban communities based on eye movement data capture, characterized in that: The specific steps include: S1. Construct an eye movement data detection dataset: Collect videos related to violence and containing audio, and collect viewpoint data of non-violent people to construct an eye movement data detection dataset; S2. Multimodal feature extraction based on eye movement data: Deep learning network is used to extract multimodal features, which include video features and audio features; S3. Eye movement data fusion based on multimodal data: First, the video features and audio features are superimposed and fused by cross fusion, and then the feature similarity between different heads is measured by CrossTransformer to obtain the fused audio-visual features; S4. Eye movement position prediction based on multimodal data: convert the fused audio-visual features into viewpoint prediction features and predict the viewpoint position; S5, network training and testing: 100 videos of the eye movement data detection data set described in step S1 are selected for training and testing the multimodal audio-visual viewpoint prediction network; S6. Collection of eye movement data of people entering and leaving: using an eye tracker under the screen to collect viewpoint data of people entering and leaving; S7, eye movement data consistency determination: compare the collected eye movement data of people entering and leaving with the predicted eye movement data to determine whether the current person is a violent person; S8, training data set expansion: update the training data model based on the collected eye movement data of people entering and leaving, retrain the model with the updated data, and expand the data set by continuously collecting new violent videos; S9. Continuous learning based on mixed new and old data: Based on mixed new and old data, continuous learning is performed using a continuous learning model.

2. According to claim 1, the method for security inspection of people entering and leaving urban communities based on eye movement data capture is characterized in that: The specific process of step S2 is: using the Transformer method to learn the correlation between audio and video, first divide the video and audio into blocks of the same size, and for the audio blocks, the audio signal needs to be converted into a spectrogram and then divided into blocks of the same size. [a1,…,a i ,…,a n ]←Split(MFCC(Audio)) [v1,…,v i ,…,v n ]←Split(Video) Among them, MFCC(·) represents the conversion of sound information into spectrogram through Fourier transform; Split(·) represents the splitting of input image and spectrogram into small blocks; [a1…a i …a n ] represents the generated spectrogram block; [v1…v i …v n ] represents the generated picture block, and the obtained audio features AudioFeature and video features VideoFeature are: AudioFeature=Transformer ([Linear(Encoder(a1)),…Linear(Encoder(a i )),…Linear(Encoder(a n ))]+Position),VideoFeature=Transformer ([Linear(Encoder(v1)),…Linear(Encoder(v i )),…Linear(Encoder(v n ))]+Position), Among them, Encoder(·) represents the forward encoding module; Linear(·) represents the linear layer, which maps the encoded features to a unified space; Transformer represents the Transformer layer, which contains multiple sub-layers, which are defined in detail as follows: VideoFeature i+1 =Multi_Headed(Self_Attention(LN(AudioFeature i ))+AudioFeature i ), AudioFeature i+1 =Multi_Headed(Self_Attention(LN(VideoFeature i ))+VideoFeature i ), Among them, VideoFeature i+1 Represents the output video features of the i+1th layer Transformer; Multi_Headed represents the multi-head attention mechanism, Multi_Headed(Q,K,V)=Attention(W Q X,W K X,W V X), Q = K = V = VideoFeature or Q = K = V = AudioFeature; LN stands for Layer Normalisation; Self_Attention stands for the self-attention mechanism, 3. According to claim 2, the method for security inspection of people entering and leaving urban communities based on eye movement data capture is characterized in that: The fused audio-visual features obtained in step S3 are: Among them, CrossTransformer(·) is a function that fuses audio and visual features; the function operation of fusing audio and visual features is as follows: VideoAudioFeature i+1 = Multi_Headed(Self_Attention.LN(Concat(VisualFeature i ,AudioFeature i )) / + Concat(VisualFeature i ,AudioFeature i )), Where Multi_Headed(Q,K,V)=Attention(W Q X,W K X,W V X), Q = V = VideoFeature K = AudioFeature, Concat represents the superposition operation between features.

4. According to claim 3, the method for security inspection of people entering and leaving urban communities based on eye movement data capture is characterized in that: Step S4 recovers the spatial position of the fused audio-visual features by decoding. Based on the convolution operation, the block-based representation is sampled with a certain overlap rate around the current representation. Specifically, VideoAudioFeature→Conv({Token1,…,Token i ,…,Token n }) {Token1 N ,…,Token i N ,…,Token n N }= Conv({<Token1,Token2,Token4,Token5>,…,Token i ,…,Token n }), in,<Token1,Token2,Token4,Token5> For the four adjacent tokens, Token1 N To pass<Token1,Token2,Token4,Token5> Generate new representations.

5. According to claim 4, the method for security inspection of people entering and leaving urban communities based on eye movement data capture is characterized in that: When step S5 trains the multimodal audio-visual viewpoint prediction network, the network training loss function is BCEwithLogistloss and KLloss function, and the network output is, Among them, Con represents the combination of block position-based representations into a viewpoint prediction map, and reduces the dimension to 1 channel through convolution Conv, and outputs the viewpoint Out through Sigmoid fixaion ; After the training is completed, the model of the trained network is output to a file to save the network model with the highest accuracy; During testing, the audio-visual data is converted and input into the multimodal audio-visual viewpoint prediction network, and the pre-trained model is loaded and the viewpoint data is output.

6. The method for security inspection of people entering and leaving urban communities based on eye movement data capture according to claim 5 is characterized in that: The specific process of step S6 is: Play violent video data to the people entering and leaving, and play sound data while playing the violent video, start the eye tracker to collect viewpoint data of the people entering and leaving. The whole process lasts for 3 minutes, and 6 violent video clips are randomly selected from the violent video data set to display the following display method: Fixation←[x,y]=‖Computer‖←EyeTracker(Person), where Person represents the person entering and leaving whose viewpoints are collected; EyeTracker represents the eye tracker that collects viewpoints; ‖Computer‖ represents the coordinate information [x,y] sent to the computer; Fixation represents the eye movement data of the people entering and leaving obtained by mapping the viewpoint data to the violent video.

7. The method for security inspection of people entering and leaving urban communities based on eye movement data capture according to claim 6 is characterized in that: The process of step S7 to determine whether the current person is a violent person is as follows: in, Indicates whether there is a tendency of violence; T represents the threshold, that is, the balance point of the tendency of violence; Binary means binarizing the viewpoint; abs is the degree of consistency.

8. The method for security inspection of people entering and leaving urban communities based on eye movement data capture according to claim 7 is characterized in that: The continuous learning model in step S9 adopts a twin branch model, which is defined as follows: …,TransformerLayer i (on / off(SubBranch1),on / off(SubBranch2)),… Among them, TransformerLayer i Represents a layer in the feature extraction layer of the audio-visual network. On / off represents whether the current branch is learned or frozen. SubBranch represents the sub-branch. The two have the same structure, but the parameters are not shared.