A security early warning system based on behavioral pattern recognition

By extracting key features of video frames in the security early warning system and performing similarity matching with historical feature vectors, the problem of recognition errors in the existing technology is solved, the representativeness and error tolerance rate of behavior recognition are improved, and efficient early warning and Scheduling strategy generation.

CN118447582BActive Publication Date: 2024-09-24SHENZHEN DIWO VIDEO DIGITAL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410909091.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-08
Publication Date
2024-09-24
Estimated Expiration
2044-07-08

AI Technical Summary

Technical Problem

The existing technology lacks key feature extraction and behavior recognition representativeness of video frames, resulting in recognition errors, and fails to similarity match key features with feature vectors of historical dangerous situations.

Method used

A security early warning system based on behavioral pattern recognition is designed. Video information is collected and processed through the equipment module, key features are extracted to generate feature vectors, and the similarity with the feature vectors of historical dangerous situations is calculated in the evaluation module to generate early warning signals and dispatch information.

Benefits of technology

It improves the representativeness and fault tolerance of behavior recognition, achieves effective extraction and similarity matching of key features of each frame over a period of time, and generates a scheduling strategy with large-sample generalization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118447582B
    Figure CN118447582B
Patent Text Reader

Abstract

The present invention discloses a security warning system based on behavior pattern recognition, which relates to the technical field of intelligent warning, including a device module, an evaluation module and a terminal module, which collect and process face information and action information in a video, analyze the processed face information and action information, generate variation information, and transmit the variation information to the evaluation module, analyze the variation information, obtain a similarity coefficient, and obtain an early warning signal, analyze the early warning signal, and generate dispatch information, wherein the dispatch information includes the number of personnel and rescue calls. The present invention generates a comprehensive vector based on the variation of key features, extracts the key features of each frame for a period of time, is representative of the identification of behavior, calculates the similarity coefficient of the comprehensive vector and the feature vector corresponding to the historical dangerous situation, and generates a dispatch strategy, which has the generalization of large samples and a high fault tolerance rate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of intelligent early warning, and in particular to a security early warning system based on behavior pattern recognition. Background Art

[0002] In recent years, with the rapid development of intelligent early warning technology, intelligent early warning technology can intelligently identify and warn target behaviors through real-time monitoring of video images, and has been widely used in security monitoring, intelligent transportation, smart cities and other fields.

[0003] At present, a Chinese invention patent with application publication number CN 113205545 B discloses a behavior recognition analysis method and system in a regional environment. The method obtains video data, turns on the camera, collects video data, pre-processes the data, processes the collected video data stream frame by frame, extracts valid segments from the video data stream, and uses a target detection method to analyze the static image of the video data to determine whether the video is a valid video. If the video is an invalid video, a new video data stream is obtained again, and behavior recognition analysis is performed on the valid video. However, the related art does not extract key features of each frame over a period of time, lacks representativeness of behavior recognition, does not perform similarity matching between key features and feature vectors of historical dangerous situations, and is prone to recognition errors. Summary of the invention

[0004] The technical problem solved by the present invention is that the related art does not extract key features of each frame over a period of time, lacks representativeness of behavior recognition, does not perform similarity matching between key features and feature vectors of historical dangerous situations, and is prone to recognition errors.

[0005] In order to solve the above technical problems, the present invention provides the following technical solutions: a security early warning system based on behavior pattern recognition, comprising a device module, an evaluation module and a terminal module;

[0006] The device module is used to collect and process face information, sound information and action information in the video, analyze the processed face information, sound information and action information, generate variation information, and transmit the variation information to the evaluation module;

[0007] The evaluation module analyzes the variation information, obtains a similarity coefficient, and obtains an early warning signal, wherein the early warning signal is a warning sound signal with different amplitude thresholds, flashing or always on lights with different brightness thresholds and different colors, and transmits the early warning signal to the terminal module;

[0008] The terminal module analyzes the warning signal and generates dispatch information, which includes the number of personnel and rescue calls.

[0009] As a preferred solution of the security warning system based on behavior pattern recognition described in the present invention, wherein: the device module includes a collection unit and an analysis unit;

[0010] The acquisition unit acquires video information, performs enhancement processing and decomposition processing on the video information, generates a picture set, and transmits the picture set to the analysis unit;

[0011] The analysis unit obtains pictures in a picture collection, extracts and analyzes key features of the pictures, the key features including facial features, individual action features and group action features, generates feature vectors, and calculates changes in the number of faces, the positions, the individual actions and the group actions, and transmits the changes in the number of faces, the positions, the individual actions and the group actions to an evaluation module.

[0012] As a preferred solution of the security warning system based on behavior pattern recognition described in the present invention, wherein: the key features include face information and action information, the face information includes face image and facial expression, and the action information includes motion trajectory information, individual action information and group action information;

[0013] The acquisition unit is configured with a portrait acquisition strategy, and the portrait acquisition strategy includes:

[0014] The first monitoring time is divided into interval 1 to interval Q, and the corresponding collected videos are video 1 to video Q. Video 1 to video Q are enhanced and decomposed respectively to generate image sets 1 to image sets Q. Image set 1 includes {image 11, image 12, ..., image 1N}, image set 2 includes {image 21, image 22, ..., image 2N}, ..., image set Q includes {image Q1, image Q2, ..., image QN}.

[0015] As a preferred solution of the security warning system based on behavior pattern recognition described in the present invention, the acquisition unit is also configured with a portrait analysis strategy, and the portrait analysis strategy includes:

[0016] Obtain image set 1, extract face quantity feature 1X, position feature 1Y, individual action feature 1C and group action feature 1D in the image set 1, generate feature vector 1 (1X, 1Y, 1C, 1D), when the individual action is standing, 1C is 0, when the individual action is lying, 1C is 1, when the individual action is running or walking, 1C is 2, repeat the above steps, obtain image set 2-image set N, generate feature vector 2 to feature vector N;

[0017] Based on the relationship between adjacent feature vectors traversed in time order, comprehensive vectors 1 to N-1 are generated, where comprehensive vector 1 includes {X', Y', C', D'} ,...comprehensive vector N-1 includes {X', Y', C', D'} , X' is the change in the number of faces in adjacent feature vectors. When the number of faces increases, X' is a positive number, when the number of faces decreases, X' is a negative number, and when the number of faces remains unchanged, X' is 0. Y' is the change in position. Since the time interval between image frames is in seconds, the change in position is taken as the straight-line distance between two position points. C' is the change in individual action, and D' is the change in group action.

[0018] As a preferred solution of the security warning system based on behavior pattern recognition described in the present invention, the acquisition unit uses a function transformation method to obtain a crowd density function, and the function transformation method includes:

[0019] Get the face quantity feature, generate the face quantity feature set {1X, 2X, ..., NX}, and set the person coordinates included in each element of the face quantity feature set to H ( , ), where n is the number of the face quantity feature, i is the number of the person coordinates corresponding to the number of the face quantity feature, n=1,2,...,N, i is 0 or a positive integer;

[0020] Construct a matrix of the same size as any image in the image set, set all elements in the matrix to 0, traverse the coordinates of the people, set the positions of the people to 1, and convolve the matrix with the set values ​​through the Gaussian kernel function to obtain the crowd density function;

[0021] The acquisition unit calculates the change in crowd density based on the crowd density function, and transmits the change in crowd density to the evaluation module, the evaluation module includes an evaluation unit and an early warning unit, the evaluation unit is used to calculate the similarity between the comprehensive vector and the feature vector corresponding to the historical dangerous situation, generate an early warning signal, and transmit it to the early warning unit and the terminal module, the early warning unit is used to send the early warning signal.

[0022] As a preferred solution of the security warning system based on behavior pattern recognition described in the present invention, the evaluation module is configured with a similarity coefficient calculation strategy, and the similarity coefficient calculation strategy includes:

[0023] Obtain a comprehensive vector, obtain a feature vector corresponding to the historical dangerous situation, and compare it with the comprehensive vector through the Jaccard similarity method to obtain a similarity coefficient. The similarity coefficient is between 0 and 1. The larger the similarity coefficient, the more similar the comprehensive vector is to the feature vector corresponding to the historical dangerous situation.

[0024] As a preferred solution of the security warning system based on behavior pattern recognition described in the present invention, the evaluation module is further configured with a warning placement strategy, and the warning placement strategy includes:

[0025] The warning light 1 and the warning horn 1 are respectively installed up and down next to the door monitoring device, the warning light 2 and the warning horn 2 are respectively installed on the inner and outer walls of the security personnel's office, and the warning light 3 and the warning horn 3 are respectively installed on the inner and outer walls of the medical room.

[0026] As a preferred solution of the security warning system based on behavior pattern recognition described in the present invention, wherein: the evaluation module obtains a comprehensive vector, obtains a feature vector corresponding to a historical dangerous situation, compares it with the comprehensive vector through a Jaccard similarity calculation method, and obtains a similarity coefficient, the similarity coefficient is between 0 and 1, and the larger the similarity coefficient, the more similar the comprehensive vector is to the feature vector corresponding to the historical dangerous situation;

[0027] The evaluation module is configured with a similarity coefficient calculation strategy, and the similarity coefficient calculation strategy includes:

[0028] Obtain a comprehensive vector, recorded as comprehensive vector A, A∈[1,N-1], obtain the feature vector corresponding to the historical dangerous situation, which is the comparison vector B;

[0029] The jaccard similarity calculation method is used to calculate the ratio J(A, B) of the size of the union of the comprehensive vector A and the comparison vector B.

[0030] The calculation expression of the similarity coefficient is XS=1-J(A,B).

[0031] As a preferred solution of the security early warning system based on behavior pattern recognition described in the present invention, the terminal module is configured with a scheduling analysis strategy, and the scheduling analysis strategy includes:

[0032] When the similarity coefficient is greater than or equal to 0.8, the portrait feature information is obtained to obtain the number of personnel, and the number of security personnel dispatched is not less than the number of personnel, and the number of medical personnel dispatched is not less than the number of personnel, and the status of the security personnel and medical personnel in the terminal module is marked as busy;

[0033] When the similarity coefficient is greater than or equal to 0.5 and less than 0.8, the portrait feature information is obtained, and the number of security personnel dispatched is not less than the number of personnel, and the number of medical personnel half of the number of personnel is dispatched, and the status of the security personnel and the medical personnel in the terminal module is marked as busy;

[0034] When the similarity coefficient is greater than or equal to 0.3 and less than 0.5, the portrait feature information is obtained, and half the number of security personnel are dispatched, and one medical staff is dispatched at the same time, and the status of the security personnel and the medical staff in the terminal module are marked as busy;

[0035] When the similarity coefficient is greater than 0 and less than 0.3, no warning sound signal is issued, and the green light of the fourth brightness threshold is always on, and no scheduling control is performed.

[0036] As a preferred solution of the security early warning system based on behavior pattern recognition described in the present invention, wherein: the terminal module is configured with a security planning strategy, and the security planning strategy includes:

[0037] The security personnel and medical personnel are located respectively through GIS, the faces of dangerous persons are tracked, and a security map is sent to the security personnel and medical personnel. The security map is a map of the area that the security personnel and medical personnel are responsible for.

[0038] The beneficial effects of the present invention include: dividing surveillance videos into frames according to time intervals, generating an image set, extracting key features of each frame in the image set, calculating the change in the number of faces, the change in positions, the change in individual movements and the change in crowd density based on the key features, generating a comprehensive vector, extracting key features of each frame over a period of time, which is representative for behavior recognition, calculating the similarity coefficient between the comprehensive vector and the feature vector corresponding to historical dangerous situations, and generating a scheduling strategy, which has the generalization of large samples and a high fault tolerance rate. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 A basic flow chart of a security warning system based on behavior pattern recognition is provided for one embodiment of the present invention. DETAILED DESCRIPTION

[0040] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the drawings. It is obvious that the described embodiments are only part of the embodiments of the present invention, but not all of the embodiments.

[0041] Example 1, reference Figure 1 , as an embodiment of the present invention, provides a security warning system based on behavior pattern recognition, including: a device module, an evaluation module and a terminal module;

[0042] The device module is used to collect and process face information, sound information and action information in the video, analyze the processed face information, sound information and action information, generate variation information, and transmit the variation information to the evaluation module;

[0043] The evaluation module analyzes the variation information, obtains a similarity coefficient, and obtains an early warning signal, wherein the early warning signal is a warning sound signal with different amplitude thresholds, flashing or always on lights with different brightness thresholds and different colors, and transmits the early warning signal to the terminal module;

[0044] The terminal module analyzes the warning signal and generates dispatch information, which includes the number of personnel and rescue calls.

[0045] The present invention extracts key features of each frame over a period of time, which is representative for behavior recognition, calculates similarity coefficients between the comprehensive vector and feature vectors corresponding to historical dangerous situations, and generates a scheduling strategy, which has the generalization of large samples and a high fault tolerance rate.

[0046] The equipment module includes a collection unit and an analysis unit;

[0047] The acquisition unit acquires video information, performs enhancement processing and decomposition processing on the video information, generates a picture set, and transmits the picture set to the analysis unit;

[0048] The analysis unit obtains pictures in a picture collection, extracts and analyzes key features of the pictures, the key features including facial features, individual action features and group action features, generates feature vectors, and calculates changes in the number of faces, the positions, the individual actions and the group actions, and transmits the changes in the number of faces, the positions, the individual actions and the group actions to an evaluation module.

[0049] In a specific implementation, the device includes a camera, an MCU, a warning horn and a warning light.

[0050] The key features include face information and action information, the face information includes face image and facial expression, and the action information includes motion trajectory information, individual action information and group action information;

[0051] The acquisition unit is configured with a portrait acquisition strategy, and the portrait acquisition strategy includes:

[0052] The first monitoring time is divided into interval 1 to interval Q, and the corresponding collected videos are video 1 to video Q. Video 1 to video Q are enhanced and decomposed respectively to generate image sets 1 to image sets Q. Image set 1 includes {image 11, image 12, ..., image 1N}, image set 2 includes {image 21, image 22, ..., image 2N}, ..., image set Q includes {image Q1, image Q2, ..., image QN}.

[0053] In a specific implementation, the decomposition process is to obtain a video, read video information, decode the video, obtain single frame information, save the video as a picture, count, and save the count value.

[0054] The acquisition unit is also configured with a portrait analysis strategy, which includes:

[0055] Obtain image set 1, extract face quantity feature 1X, position feature 1Y, individual action feature 1C and group action feature 1D in the image set 1, generate feature vector 1 (1X, 1Y, 1C, 1D), when the individual action is standing, 1C is 0, when the individual action is lying, 1C is 1, when the individual action is running or walking, 1C is 2, repeat the above steps, obtain image set 2-image set N, generate feature vector 2 to feature vector N;

[0056] Based on the relationship between adjacent feature vectors traversed in time order, comprehensive vectors 1 to N-1 are generated, where comprehensive vector 1 includes {X', Y', C', D'} ,...comprehensive vector N-1 includes {X', Y', C', D'} , X' is the change in the number of faces in adjacent feature vectors. When the number of faces increases, X' is a positive number, when the number of faces decreases, X' is a negative number, and when the number of faces remains unchanged, X' is 0. Y' is the change in position. Since the time interval between image frames is in seconds, the change in position is taken as the straight-line distance between two position points. C' is the change in individual action, and D' is the change in group action.

[0057] In the specific implementation, the change in group action is expressed as the change in crowd density in the image. Traversing the relationship between adjacent feature vectors includes obtaining two adjacent feature vectors, denoted as feature vector P and feature vector P+1, P∈[1,N-1], and the relationship between adjacent feature vectors is composed of the difference between feature vector P+1 and feature vector P.

[0058] The acquisition unit obtains a crowd density function using a function transformation method, and the function transformation method includes:

[0059] Get the face quantity feature, generate the face quantity feature set {1X, 2X, ..., NX}, and set the person coordinates included in each element of the face quantity feature set to H ( , ), where n is the number of the face quantity feature, i is the number of the person coordinates corresponding to the number of the face quantity feature, n=1,2,...,N, i is 0 or a positive integer;

[0060] In the specific implementation, the coordinates of the personnel are located based on GIS and presented in the form of coordinates.

[0061] Construct a matrix of the same size as any image in the image set, set all elements in the matrix to 0, traverse the coordinates of the people, set the positions of the people to 1, and convolve the matrix with the set values ​​through the Gaussian kernel function to obtain the crowd density function;

[0062] In a specific implementation, the size of the image is length×width, with pixel size as the unit length.

[0063] The acquisition unit calculates the change in crowd density based on the crowd density function, and transmits the change in crowd density to the evaluation module, the evaluation module includes an evaluation unit and an early warning unit, the evaluation unit is used to calculate the similarity between the comprehensive vector and the feature vector corresponding to the historical dangerous situation, generate an early warning signal, and transmit it to the early warning unit and the terminal module, the early warning unit is used to send the early warning signal.

[0064] The evaluation module obtains a comprehensive vector, obtains a feature vector corresponding to the historical dangerous situation, and compares it with the comprehensive vector through a Jaccard similarity calculation method to obtain a similarity coefficient, the similarity coefficient is between 0 and 1, and the larger the similarity coefficient, the more similar the comprehensive vector is to the feature vector corresponding to the historical dangerous situation;

[0065] The evaluation module is configured with a similarity coefficient calculation strategy, and the similarity coefficient calculation strategy includes:

[0066] Obtain a comprehensive vector, recorded as comprehensive vector A, A∈[1,N-1], obtain the feature vector corresponding to the historical dangerous situation, which is the comparison vector B;

[0067] The jaccard similarity calculation method is used to calculate the ratio J(A, B) of the size of the union of the comprehensive vector A and the comparison vector B.

[0068] The calculation expression of the similarity coefficient is XS=1-J(A,B).

[0069] The evaluation module also configures an early warning placement strategy, which includes:

[0070] The warning light 1 and the warning horn 1 are respectively installed up and down next to the door monitoring device, the warning light 2 and the warning horn 2 are respectively installed on the inner and outer walls of the security personnel's office, and the warning light 3 and the warning horn 3 are respectively installed on the inner and outer walls of the medical room.

[0071] By installing warning lights and warning horns next to the door monitoring equipment, it serves to warn people who may cause danger, thereby effectively reducing the harm caused by people. By installing warning lights on the walls inside the security personnel and medical staff's offices, the security personnel can clearly detect dangerous situations and respond in time. Warning horns are installed on the outer walls of the security personnel and medical staff's offices respectively, which reduces the damage of the warning sound to the security personnel's ears and is beneficial to the security personnel's health.

[0072] The evaluation module is also configured with an early warning control strategy, which includes:

[0073] Obtaining the similarity coefficient;

[0074] The evaluation module transmits the similarity coefficient to the terminal module.

[0075] The terminal module is configured with a scheduling analysis strategy, and the scheduling analysis strategy includes:

[0076] When the similarity coefficient is greater than or equal to 0.8, the portrait feature information is obtained to obtain the number of personnel, and the number of security personnel dispatched is not less than the number of personnel, and the number of medical personnel dispatched is not less than the number of personnel, and the status of the security personnel and medical personnel in the terminal module is marked as busy;

[0077] When the similarity coefficient is greater than or equal to 0.5 and less than 0.8, the portrait feature information is obtained, and the number of security personnel dispatched is not less than the number of personnel, and the number of medical personnel half of the number of personnel is dispatched, and the status of the security personnel and the medical personnel in the terminal module is marked as busy;

[0078] When the similarity coefficient is greater than or equal to 0.3 and less than 0.5, the portrait feature information is obtained, and half the number of security personnel are dispatched, and one medical staff is dispatched at the same time, and the status of the security personnel and the medical staff in the terminal module are marked as busy;

[0079] When the similarity coefficient is greater than 0 and less than 0.3, no warning sound signal is issued, and the green light of the fourth brightness threshold is always on, and no scheduling control is performed.

[0080] Scheduling information is generated through scheduling strategies, and the number of security personnel and medical staff is reasonably scheduled to avoid waste of resources. The working status of security personnel and medical staff is marked to avoid repeated scheduling, thereby improving the rationality of work allocation.

[0081] The terminal module is configured with a security planning strategy, which includes:

[0082] The security personnel and the medical personnel are positioned respectively through GIS, the faces of the security personnel and the medical personnel are tracked, and a security map is sent to the security personnel and the medical personnel. The security map is a map of the area that the security personnel and the medical personnel are responsible for.

[0083] In the specific implementation, the terminal module is provided with a handheld terminal and a cloud terminal. The handheld terminal is used by security personnel and medical personnel to check the routes and the movement trends of personnel. The cloud terminal is used to store early warning signals, realize real-time positioning of security personnel and medical personnel through GIS, track the faces of dangerous personnel, and send security maps to security personnel and medical personnel, which is beneficial for security personnel and medical personnel to dynamically adjust the walking path and avoid unclear positioning. It is beneficial for security personnel to stop dangerous situations in time and for medical personnel to provide timely treatment to people in dangerous situations.

[0084] The present invention divides surveillance videos into frames according to time intervals, generates an image set, and extracts key features of each frame in the image set. Based on the key features, the changes in the number of faces, the positions, the individual movements, and the crowd density are calculated to generate a comprehensive vector. The key features of each frame over a period of time are extracted to be representative for behavior recognition. The similarity coefficient between the comprehensive vector and the feature vector corresponding to historical dangerous situations is calculated, and a scheduling strategy is generated. The method has the generalization of large samples and a high fault tolerance rate.

[0085] It should be understood by those skilled in the art that the embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media containing computer-usable program codes. Among them, the storage medium may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (Static Random Access Memory, referred to as SRAM), electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, referred to as EEPROM), erasable programmable read-only memory (Erasable Programmable Read Only Memory, referred to as EPROM), programmable read-only memory (Programmable Red-Only Memory, referred to as PROM), read-only memory (Read-Only Memory, referred to as ROM), magnetic memory, flash memory, magnetic disk or optical disk. These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0086] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention, which should all be included in the scope of the claims of the present invention.

Claims

1. A security early warning system based on behavioral pattern recognition, It is characterized in that Includes equipment module, evaluation module and terminal module; The device module includes a collection unit and an analysis unit, and the device module is used to collect and process face information and action information in the video, analyze the processed face information and action information, generate variation information, and transmit the variation information to the evaluation module; The acquisition unit obtains a crowd density function using a function transformation method, and the function transformation method includes: Get the face quantity feature, generate the face quantity feature set {1X, 2X, ..., NX}, and set the person coordinates included in each element of the face quantity feature set to H ( , ), where n is the number of the face quantity feature, i is the number of the person coordinates corresponding to the number of the face quantity feature, n=1,2,...,N, i is 0 or a positive integer; Construct a matrix of the same size as any image in the image set, set all elements in the matrix to 0, traverse the coordinates of the people, set the positions of the people to 1, and convolve the matrix with the set values ​​through the Gaussian kernel function to obtain the crowd density function; The acquisition unit calculates the change in crowd density based on the crowd density function, and transmits the change in crowd density to the evaluation module, the evaluation module includes an evaluation unit and an early warning unit, the evaluation unit is used to calculate the similarity between the comprehensive vector and the feature vector corresponding to the historical dangerous situation, generate an early warning signal, and transmit it to the early warning unit and the terminal module, the early warning unit is used to send the early warning signal; The evaluation module analyzes the variation information, obtains a similarity coefficient, and obtains an early warning signal, wherein the early warning signal is a warning sound signal with different amplitude thresholds, flashing or always on lights with different brightness thresholds and different colors, and transmits the early warning signal to the terminal module; The evaluation module obtains a comprehensive vector, obtains a feature vector corresponding to the historical dangerous situation, and compares it with the comprehensive vector through a Jaccard similarity calculation method to obtain a similarity coefficient, the similarity coefficient is between 0 and 1, and the larger the similarity coefficient, the more similar the comprehensive vector is to the feature vector corresponding to the historical dangerous situation; The evaluation module is configured with a similarity coefficient calculation strategy, and the similarity coefficient calculation strategy includes: Obtain a comprehensive vector, recorded as comprehensive vector A, A∈[1,N-1], obtain the feature vector corresponding to the historical dangerous situation, which is the comparison vector B; The jaccard similarity calculation method is used to calculate the ratio J(A, B) of the size of the union of the comprehensive vector A and the comparison vector B. The calculation expression of similarity coefficient is XS=1-J(A,B); The terminal module analyzes the warning signal and generates dispatch information, which includes the number of personnel and rescue calls.

2. A security early warning system based on behavior pattern recognition as claimed in claim 1, Features: The acquisition unit acquires video information, performs enhancement processing and decomposition processing on the video information, generates a picture set, and transmits the picture set to the analysis unit; The analysis unit obtains pictures in a picture collection, extracts and analyzes key features of the pictures, the key features including facial features, individual action features and group action features, generates feature vectors, and calculates changes in the number of faces, the positions, the individual actions and the group actions, and transmits the changes in the number of faces, the positions, the individual actions and the group actions to an evaluation module.

3. A security early warning system based on behavior pattern recognition as claimed in claim 2, Features: The key features include face information and action information, the face information includes face image and facial expression, and the action information includes motion trajectory information, individual action information and group action information; The acquisition unit is configured with a portrait acquisition strategy, and the portrait acquisition strategy includes: The first monitoring time is divided into interval 1 to interval Q, and the corresponding collected videos are video 1 to video Q. Video 1 to video Q are enhanced and decomposed respectively to generate image sets 1 to image sets Q. Image set 1 includes {image 11, image 12, ..., image 1N}, image set 2 includes {image 21, image 22, ..., image 2N}, ..., image set Q includes {image Q1, image Q2, ..., image QN}.

4. A security early warning system based on behavior pattern recognition as claimed in claim 3, Features: The acquisition unit is also configured with a portrait analysis strategy, which includes: Obtain image set 1, extract face quantity feature 1X, position feature 1Y, individual action feature 1C and group action feature 1D in the image set 1, generate feature vector 1 (1X, 1Y, 1C, 1D), when the individual action is standing, 1C is 0, when the individual action is lying, 1C is 1, when the individual action is running or walking, 1C is 2, repeat the above steps, obtain image set 2-image set N, generate feature vector 2 to feature vector N; Based on the relationship between adjacent feature vectors traversed in time order, comprehensive vectors 1 to N-1 are generated, where comprehensive vector 1 includes {X', Y', C', D'} ,...comprehensive vector N-1 includes {X', Y', C', D'} , X' is the change in the number of faces in adjacent feature vectors. When the number of faces increases, X' is a positive number, when the number of faces decreases, X' is a negative number, and when the number of faces remains unchanged, X' is 0. Y' is the change in position. Since the time interval between image frames is in seconds, the change in position is taken as the straight-line distance between two position points. C' is the change in individual action, and D' is the change in group action.

5. A security early warning system based on behavior pattern recognition as claimed in claim 1, Features: The evaluation module also configures an early warning placement strategy, which includes: The warning light 1 and the warning horn 1 are respectively installed up and down next to the door monitoring device, the warning light 2 and the warning horn 2 are respectively installed on the inner and outer walls of the security personnel's office, and the warning light 3 and the warning horn 3 are respectively installed on the inner and outer walls of the medical room.

6. A security early warning system based on behavior pattern recognition as claimed in claim 5, Features: The evaluation module is also configured with an early warning control strategy, which includes: Obtaining the similarity coefficient; The evaluation module transmits the similarity coefficient to the terminal module.

7. A security early warning system based on behavior pattern recognition as claimed in claim 6, Features: The terminal module is configured with a scheduling analysis strategy, and the scheduling analysis strategy includes: When the similarity coefficient is greater than or equal to 0.8, the portrait feature information is obtained to obtain the number of personnel, and the number of security personnel dispatched is not less than the number of personnel, and the number of medical personnel dispatched is not less than the number of personnel, and the status of the security personnel and medical personnel in the terminal module is marked as busy; When the similarity coefficient is greater than or equal to 0.5 and less than 0.8, the portrait feature information is obtained, and the number of security personnel dispatched is not less than the number of personnel, and the number of medical personnel half of the number of personnel is dispatched, and the status of the security personnel and the medical personnel in the terminal module is marked as busy; When the similarity coefficient is greater than or equal to 0.3 and less than 0.5, the portrait feature information is obtained, and half the number of security personnel are dispatched, and one medical staff is dispatched at the same time, and the status of the security personnel and the medical staff in the terminal module are marked as busy; When the similarity coefficient is greater than 0 and less than 0.3, no warning sound signal is issued, and the green light of the fourth brightness threshold is always on, and no scheduling control is performed.

8. A security early warning system based on behavior pattern recognition as claimed in claim 7, Features: The terminal module is configured with a security planning strategy, which includes: The security personnel and medical personnel are located respectively through GIS, the faces of the dangerous persons are tracked, and a security map is sent to the security personnel and medical personnel. The security map is a map of the area that the security personnel and the medical personnel are responsible for.