Port preliminary anomaly screening method and system based on multi-feature fusion, and terminal
Through multi-feature fusion technology, combined with face recognition, heart rate, fatigue, body temperature and posture detection, fast and accurate exception screening of entry personnel is solved, which solves the problems of low manual judgment efficiency and poor accuracy, and improves the efficiency and accuracy of the entry process. Security.
Patent Information
- Application Number
- CN202410736946.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-07
- Publication Date
- 2024-09-06
AI Technical Summary
In the existing technology, the efficiency and accuracy of manually judging whether there is an abnormality in the entry personnel is low, resulting in congestion at the entry gate and heavy burden on customs staff, which is prone to omissions.
A preliminary port anomaly screening method based on multi-feature fusion is used to obtain video data for face recognition and feature extraction, including heart rate, fatigue and body temperature detection, combined with human posture detection, to generate multi-modal fusion features and classify them to achieve entry control Initial abnormal screening of personnel.
It improves the accuracy and efficiency of abnormal screening of incoming personnel, realizes real-time abnormal status detection, reduces congestion at entry ports, and significantly speeds up the entry process.
Smart Images

Figure CN118606891A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of port anomaly detection, and in particular to a method, system, terminal and computer-readable storage medium for preliminary port anomaly screening based on multi-feature fusion. Background Art
[0002] With the globalization of trade and travel, population mobility has further intensified, and the number of people entering and leaving various ports has increased dramatically. The prevention and control of cross-border infectious diseases faces complex and severe challenges. In addition, due to the complex backgrounds and diverse sources of the incoming population, preventing imported cases is a key difficulty in prevention and control.
[0003] At present, when managing incoming personnel, customs staff mainly rely on their personal experience to manually judge whether there are any abnormal circumstances among incoming personnel, and conduct temporary spot checks on incoming personnel suspected of being abnormal. However, the daily flow of people passing through the customs is very large, and customs staff cannot observe the situation of each incoming person. In other words, the manual judgment method not only increases the customs clearance time and aggravates the congestion of people at the entry checkpoint, but also leads to a heavy manpower burden on customs staff, and is prone to omissions, resulting in low accuracy and efficiency in screening incoming personnel.
[0004] Therefore, the prior art still needs to be improved and developed. Summary of the invention
[0005] The main purpose of the present invention is to provide a method, system, terminal and computer-readable storage medium for preliminary abnormal screening at ports based on multi-feature fusion, aiming to solve the problem of low efficiency and poor accuracy in the prior art of preliminary abnormal screening of incoming personnel through manual judgment.
[0006] To achieve the above object, the present invention provides a port preliminary anomaly screening method based on multi-feature fusion, the port preliminary anomaly screening method based on multi-feature fusion comprises the following steps:
[0007] Obtaining the video data to be processed at the target port, performing face recognition processing on the video data, and obtaining face video data corresponding to each person to be screened in the video data;
[0008] Performing feature extraction operations based on each of the face video data to obtain multimodal fusion features corresponding to each of the persons to be screened;
[0009] Performing human posture detection based on the video data to obtain posture features corresponding to each person to be screened;
[0010] The final screening features corresponding to each of the persons to be screened are obtained according to the multimodal fusion features and posture features corresponding to each of the persons to be screened, and a classification operation is performed based on each of the final screening features to obtain a preliminary abnormal screening result corresponding to each of the persons to be screened.
[0011] Optionally, the method for preliminary abnormal screening of ports based on multi-feature fusion, wherein the step of obtaining the video data to be processed of the target port, performing face recognition processing on the video data, and obtaining the face video data corresponding to each person to be screened in the video data, specifically includes:
[0012] Acquire the video data to be processed of the target port, wherein the video data is obtained by real-time shooting of a shooting device;
[0013] Inputting the video data into a pre-trained face detection model, the face detection model performs face recognition processing on the video data to obtain the face area corresponding to each screened person;
[0014] Generate facial video data corresponding to each of the screened personnel based on the facial area of each of the screened personnel.
[0015] Optionally, the method for preliminary abnormal screening at ports based on multi-feature fusion, wherein the feature extraction operation is performed based on each of the face video data to obtain the multimodal fusion features corresponding to each of the persons to be screened, specifically includes:
[0016] Estimating the heart rate based on each face video data to obtain the heart rate characteristics of each person to be screened;
[0017] Perform fatigue detection based on each of the face video data to obtain fatigue characteristics of each of the persons to be screened;
[0018] Performing body temperature detection based on each of the face video data to obtain the body temperature characteristics of each of the persons to be screened;
[0019] Based on the attention mechanism, the heart rate characteristics, fatigue characteristics and body temperature characteristics of each person to be screened will be fused respectively to obtain a multimodal fusion feature.
[0020] Optionally, the method for preliminary abnormal screening of ports based on multi-feature fusion, wherein the attention mechanism is used to fuse the heart rate feature, fatigue feature and body temperature feature of each person to be screened to obtain a multimodal fusion feature, specifically including:
[0021] Calculating according to the fatigue characteristics and body temperature characteristics of each of the to-be-screened persons to obtain the heart rate attention weight corresponding to each of the to-be-screened persons, and calculating according to each of the heart rate attention weights and the corresponding heart rate characteristics to obtain a plurality of attention heart rate characteristics;
[0022] Calculate the fatigue attention weight corresponding to each of the to-be-screened persons according to the heart rate characteristics and body temperature characteristics of each to-be-screened person, and calculate the fatigue attention weight and the corresponding fatigue characteristics according to each to-be-screened person to obtain a plurality of attention fatigue characteristics;
[0023] Calculate the body temperature attention weight corresponding to each of the to-be-screened persons according to the heart rate characteristics and fatigue characteristics of each to-be-screened person, and calculate according to each of the body temperature attention weights and the corresponding body temperature characteristics to obtain a plurality of attention body temperature characteristics;
[0024] The attention heart rate characteristics, attention fatigue characteristics and attention body temperature characteristics corresponding to each of the persons to be screened are fused to obtain a multimodal fusion characteristic of each of the persons to be screened.
[0025] Optionally, the method for preliminary abnormal screening at ports based on multi-feature fusion, wherein the human posture detection is performed based on the video data to obtain the posture features corresponding to each person to be screened, specifically includes:
[0026] Inputting the video data into a pre-trained posture recognition network, the posture recognition network performs human body key point recognition on the video data to obtain human body key points corresponding to each person to be screened;
[0027] Posture estimation is performed based on the key points of the human body of each of the screened personnel to obtain posture features corresponding to each of the screened personnel.
[0028] Optionally, the method for preliminary abnormal screening at a port based on multi-feature fusion, wherein the multimodal fusion features and posture features corresponding to each person to be screened are respectively fused to obtain the final fusion features corresponding to each person to be screened, and a classification operation is performed based on each of the final fusion features to obtain the preliminary abnormal screening results corresponding to each person to be screened, specifically including:
[0029] Performing feature fusion processing on the multimodal fusion features and posture features corresponding to each of the persons to be screened, respectively, to obtain the final screening features corresponding to each of the persons to be screened;
[0030] Based on the pre-trained abnormal screening network, each of the persons to be screened is classified according to each of the final screening features to obtain an abnormal probability value corresponding to each person to be screened;
[0031] A preliminary abnormal screening result corresponding to each person to be screened is generated according to each abnormal probability value.
[0032] Optionally, the method for preliminary abnormality screening at a port based on multi-feature fusion, wherein the generating of preliminary abnormality screening results corresponding to each person to be screened according to each abnormal probability value, specifically includes:
[0033] Based on the preset threshold, the abnormal probability value corresponding to each of the persons to be screened is judged respectively;
[0034] If the abnormal probability value is greater than the preset threshold, a preliminary abnormal screening result indicating that there is no abnormality is generated for the corresponding person to be screened;
[0035] If the abnormal probability value is less than or equal to the preset threshold, a preliminary abnormal screening result indicating the presence of an abnormality is generated for the corresponding person to be screened.
[0036] In addition, to achieve the above-mentioned purpose, the present invention also provides a port preliminary anomaly screening system based on multi-feature fusion, wherein the port preliminary anomaly screening system based on multi-feature fusion includes:
[0037] A face data acquisition module is used to acquire the video data to be processed at the target port, perform face recognition processing on the video data, and obtain face video data corresponding to each person to be screened in the video data;
[0038] A multimodal feature acquisition module, used to perform feature extraction operations based on each of the face video data to obtain multimodal fusion features corresponding to each of the persons to be screened;
[0039] A posture feature acquisition module, used to perform human posture detection based on the video data to obtain the posture features corresponding to each person to be screened;
[0040] The preliminary abnormality screening module is used to obtain the final screening features corresponding to each person to be screened according to the multimodal fusion features and posture features corresponding to each person to be screened, and perform classification operations based on each of the final screening features to obtain the preliminary abnormality screening results corresponding to each person to be screened.
[0041] In addition, to achieve the above-mentioned purpose, the present invention also provides a terminal, wherein the terminal includes: a memory, a processor, and a port preliminary anomaly screening program based on multi-feature fusion stored in the memory and run on the processor, and when the port preliminary anomaly screening program based on multi-feature fusion is executed by the processor, the steps of the port preliminary anomaly screening method based on multi-feature fusion as described above are implemented.
[0042] In addition, to achieve the above-mentioned purpose, the present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a port preliminary anomaly screening program based on multi-feature fusion, and when the port preliminary anomaly screening program based on multi-feature fusion is executed by a processor, the steps of the port preliminary anomaly screening method based on multi-feature fusion as described above are implemented.
[0043] In the present invention, the video data to be processed of the target port is obtained, and the video data is subjected to face recognition processing to obtain the face video data corresponding to each person to be screened in the video data; feature extraction operations are performed based on each of the face video data to obtain the multimodal fusion features corresponding to each of the persons to be screened; human posture detection is performed based on the video data to obtain the posture features corresponding to each of the persons to be screened; the final screening features corresponding to each of the persons to be screened are obtained according to the multimodal fusion features and posture features corresponding to each of the persons to be screened, and classification operations are performed based on each of the final screening features to obtain the preliminary abnormal screening results corresponding to each of the persons to be screened. The present invention realizes the rapid abnormal screening of port inbound personnel through multimodal feature fusion, and also improves the accuracy of abnormal screening of inbound personnel, and realizes real-time abnormal state detection through multimodal algorithms, improves the efficiency of abnormal screening, avoids congestion at ports of entry, and greatly speeds up the efficiency of entry. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] Figure 1 It is a flow chart of a preferred embodiment of the method for preliminary abnormal screening of ports based on multi-feature fusion of the present invention;
[0045] Figure 2 It is a detailed flow chart of a preferred embodiment of the method for preliminary abnormal screening of ports based on multi-feature fusion of the present invention;
[0046] Figure 3 It is a schematic diagram of the principle of a preferred embodiment of the port preliminary abnormal screening system based on multi-feature fusion of the present invention;
[0047] Figure 4 Schematic diagram of the operating environment of a preferred embodiment of the terminal of the present invention. DETAILED DESCRIPTION
[0048] In order to make the purpose, technical solution and advantages of the present invention clearer and more specific, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0049] In order to solve the problem of low efficiency and poor accuracy in the prior art of preliminary abnormal screening of incoming personnel by manual judgment, the preliminary abnormal screening method of ports based on multi-feature fusion of the present invention is implemented based on two hardware construction schemes. The first is for larger entry ports, which requires large-scale deployment of cameras (it can also be connected to the existing closed-circuit monitoring system), and at the same time, a central server is set up to transmit the video data obtained by each camera through a wired network, and transmit it to the background in real time, and then the central server performs corresponding calculations on the video data; the second is a plug-and-play portable device that can be used for temporary checkpoint detection. It consists of a single camera and a mobile computing chip, and the total volume is equivalent to two laptops.
[0050] The method for screening preliminary abnormalities at ports based on multi-feature fusion described in the preferred embodiment of the present invention is as follows: Figure 1 As shown, the port preliminary anomaly screening method based on multi-feature fusion includes the following steps:
[0051] Step S10: Obtain the video data to be processed at the target port, perform face recognition processing on the video data, and obtain face video data corresponding to each person to be screened in the video data.
[0052] Specifically, Figure 2 As shown, in a preferred embodiment of the present invention, the video data to be processed shot by the shooting device is first obtained, the video data includes one or more persons to be screened, and then the facial parts are automatically detected and tracked in real time through calculation to obtain the facial video data corresponding to each screened person.
[0053] Further, the step of obtaining the video data to be processed at the target port, performing face recognition processing on the video data, and obtaining face video data corresponding to each person to be screened in the video data specifically includes:
[0054] Obtain the video data to be processed of the target port, wherein the video data is obtained by real-time shooting of the shooting equipment; input the video data into a pre-trained face detection model, and the face detection model performs face recognition processing on the video data to obtain the face area corresponding to each screening person; generate the face video data corresponding to each screening person according to the face area of each screening person.
[0055] Specifically, in a preferred embodiment of the present invention, video data is obtained by shooting with a shooting device, which may be a camera or other device with a camera function; first, the video data to be processed at the target port is obtained, and the video data is a complete real-time video recording, which includes multiple people who have passed the screening. Therefore, the video data is first input into a pre-trained face detection model, and the face detection model performs face recognition processing on the video data based on the face detection algorithm. The face detector in the face detection model is first used to locate the face area in the video data, so as to obtain the face area corresponding to each person to be screened, and then a convolutional neural network is used to extract the facial features of the face area corresponding to each person to be screened, so as to obtain the face video data corresponding to each person to be screened.
[0056] Step S20: performing feature extraction operations based on each of the face video data to obtain multimodal fusion features corresponding to each of the persons to be screened.
[0057] Specifically, in a preferred embodiment of the present invention, after obtaining the facial video data corresponding to each person to be screened, multimodal features are extracted for each person to be screened based on the facial video data, and the multiple modal features corresponding to each person to be screened are fused to obtain the multimodal fusion features corresponding to each person to be screened.
[0058] Furthermore, the feature extraction operation is performed based on each of the face video data to obtain the multimodal fusion features corresponding to each of the persons to be screened, specifically including:
[0059] Heart rate estimation is performed based on each facial video data to obtain the heart rate characteristics of each person to be screened; fatigue detection is performed based on each facial video data to obtain the fatigue characteristics of each person to be screened; body temperature detection is performed based on each facial video data to obtain the body temperature characteristics of each person to be screened; based on the attention mechanism, the heart rate characteristics, fatigue characteristics and body temperature characteristics of each person to be screened are fused to obtain multimodal fusion characteristics.
[0060] Specifically, the facial video data will be used as the input of multiple different feature extraction network sub-models, so as to obtain multiple modal features corresponding to each person to be screened, wherein the feature extraction network sub-models include: non-contact heart rate estimation model, fatigue detection model, infrared temperature measurement model (in another preferred embodiment of the present invention, it may also include a cough detection model). The above-mentioned feature extraction network sub-models are all feature extraction models trained by technicians through a large number of data sets.
[0061] Then, all face video data are input into the contactless heart rate estimation model, such as Figure 2 As shown, the non-contact heart rate estimation model can detect the skin microvascular vibration caused by the heartbeat through a recurrent neural network, thereby obtaining the corresponding heart rate characteristics of the person to be screened; in another preferred embodiment of the present invention, the non-contact heart rate estimation model can also use a long short-term memory neural network to capture the time series information of the facial color changes of the person to be screened, and then predict the heart rate through the time series information, thereby obtaining the corresponding heart rate characteristics of each person to be screened.
[0062] At the same time, all face video data are input into the fatigue detection model, such as Figure 2 As shown, the fatigue detection model will first analyze the facial micro-expressions of the corresponding persons to be screened, and then obtain the corresponding eye features based on the facial video data of each person to be screened. The relationship between the eye features and the degree of fatigue has been established in the training stage, so finally the fatigue degree of the persons to be screened can be predicted based on the relationship between the eye features and the degree of fatigue and the facial micro-expressions, and the corresponding fatigue features of each person to be screened can be obtained; in a preferred embodiment of the present invention, the fatigue detection features can use a recurrent neural network.
[0063] At the same time, before all facial video data are input into the infrared temperature measurement model, it is necessary to obtain the facial infrared video data corresponding to each facial video data. It should be noted that the shooting device in the preferred embodiment of the present invention also includes an infrared camera. The infrared camera will shoot at the same angle as the ordinary camera, so in fact the video data will also have corresponding infrared video data. By preprocessing the infrared video data, the facial infrared video data corresponding to each facial video data is obtained; all facial video data and all facial infrared video data are input into the infrared temperature measurement model, and the model will align the facial video data and the facial infrared video data to ensure that the two video data are aligned in space (which can be achieved through feature matching or geometric transformation), and obtain the body temperature detection data corresponding to each person to be screened, and then perform body temperature detection on each person to be screened according to the body temperature detection data of each person to be screened, detect the face surface temperature of each person to be screened, and use it as the corresponding body temperature feature.
[0064] As an example, the feature extraction process can be expressed as: For face video data, it can be expressed as X cont , first obtain the embedded representation of each heart rate data, fatigue data and body temperature data from the face data, specifically expressed as: X cont '=Embedding(X cont ), where X cont ' can be expressed as any one of heart rate data, fatigue data and body temperature data; then the Transformer encoder is used to extract the corresponding heart rate features, fatigue features and body temperature features, which can be specifically expressed as: hcont = Transformer(X cont '); where h cont It can represent any one of the heart rate features, fatigue features and body temperature features. For the heart rate features, fatigue features and body temperature features, the attention mechanism is used for feature fusion, which can be specifically expressed as: h cont ′=Attention(h cont ), where h cont ′ represents multimodal fusion features.
[0065] Furthermore, the attention mechanism will fuse the heart rate features, fatigue features and body temperature features of each person to be screened respectively to obtain multimodal fusion features, specifically including:
[0066] Calculation is performed based on the fatigue characteristics and body temperature characteristics of each person to be screened to obtain the heart rate attention weight corresponding to each person to be screened, and calculation is performed based on each heart rate attention weight and the corresponding heart rate characteristics to obtain multiple attention heart rate characteristics; calculation is performed based on the heart rate characteristics and body temperature characteristics of each person to be screened to obtain the fatigue attention weight corresponding to each person to be screened, and calculation is performed based on each fatigue attention weight and the corresponding fatigue characteristics to obtain multiple attention fatigue characteristics; calculation is performed based on the heart rate characteristics and fatigue characteristics of each person to be screened to obtain the body temperature attention weight corresponding to each person to be screened, and calculation is performed based on each body temperature attention weight and the corresponding body temperature characteristics to obtain multiple attention body temperature characteristics; the attention heart rate characteristics, attention fatigue characteristics and attention body temperature characteristics corresponding to each person to be screened are fused to obtain the multimodal fusion characteristics of each person to be screened.
[0067] Specifically, the multiple modal features of each person to be screened extracted by the present invention are all continuous features, that is, each modal feature actually corresponds to the features of the entire video data.
[0068] Calculate the attention weight of the heart rate feature to other features, specifically expressed as: Similarity heart-to-others =softmax(W heart-to-others ·h heart ), where Similarity heart-to-others represents the heart rate attention weight, W heart-to-others represents the learnable attention weight matrix corresponding to the heart rate feature, h heart represents the heart rate feature; then the calculated heart rate attention weight is used to calculate the heart rate feature to obtain the feature after the fusion of the two-way attention mechanism, that is, the attention heart rate feature, which is specifically expressed as: Among them, i represents the i-th moment, represents the heart rate attention weight at the i-th moment in the heart rate (continuous) feature, represents the heart rate characteristics at the i-th moment, h′ heart Indicates attention heart rate characteristics.
[0069] Then the attention weight of fatigue feature to other features is calculated, which is specifically expressed as: Similarity fatigue-to-others =softmax(W fatigue-to-others ·h fatigue ), where Similarity fatigue-to-others represents fatigue attention weight, W fatigue-to-others represents the learnable attention weight matrix corresponding to the fatigue feature, h fatigue represents the fatigue feature; then the fatigue feature is calculated using the calculated fatigue attention weight to obtain the feature after the fusion of the bidirectional attention mechanism, that is, the attention fatigue feature, which is specifically expressed as: Among them, i represents the i-th moment, represents the fatigue attention weight at the i-th moment in the fatigue (continuous) feature, represents the fatigue characteristics at the i-th moment, h′ fatigue Indicates characteristics of attention fatigue.
[0070] Finally, the attention weight of the temperature feature to other features is calculated, which is specifically expressed as: Similarity temperature-to-others =softmax(W temperature-to-others ·h temperature ), where Similarity temperature-to-others represents the body temperature attention weight, W temperature-to-others represents the learnable attention weight matrix corresponding to the body temperature feature, h temperature represents the body temperature feature; then the calculated body temperature attention weight is used to calculate the body temperature feature to obtain the feature after the fusion of the two-way attention mechanism, that is, the attention body temperature feature, which is specifically expressed as: Among them, i represents the i-th moment, represents the body temperature attention weight at the i-th moment in the body temperature (continuous) feature, represents the body temperature characteristics at the i-th moment, h′ temperature Indicates attention to body temperature characteristics.
[0071] Finally, the attention heart rate feature, attention fatigue feature and attention body temperature feature corresponding to each person to be screened are fused to obtain the multimodal fusion feature h cont ′, where h cont ′=[h′ fatigue , h′ heart , h′temperature ].
[0072] Step S30: Perform human posture detection based on the video data to obtain posture features corresponding to each person to be screened.
[0073] Specifically, in a preferred embodiment of the present invention, Figure 2 As shown, the video data is used as the input of the pre-trained posture recognition network, and then human posture detection is performed based on the video data to obtain the posture features corresponding to each person to be screened in the video data.
[0074] Furthermore, the human posture detection is performed based on the video data to obtain the posture features corresponding to each person to be screened, specifically including:
[0075] The video data is input into a pre-trained posture recognition network, and the posture recognition network performs human body key point recognition on the video data to obtain the human body key points corresponding to each of the to-be-screened persons; posture estimation is performed based on the human body key points of each of the screened persons to obtain the posture features corresponding to each of the screened persons.
[0076] Specifically, in a preferred embodiment, the posture recognition network adopts a ResNet network (deep residual neural network); the pre-trained posture recognition network performs a human key point recognition operation on the video data to obtain the human key points corresponding to each person to be screened, and then the posture recognition network is used to perform posture estimation according to the human key points corresponding to each person to be screened to obtain the posture features corresponding to each person to be screened, which can be specifically expressed as: pose =ResNet(human key points); where X pose Indicates posture characteristics.
[0077] Step S40: obtaining final screening features corresponding to each of the persons to be screened according to the multimodal fusion features and posture features corresponding to each of the persons to be screened, and performing classification operations based on each of the final screening features to obtain preliminary abnormal screening results corresponding to each of the persons to be screened.
[0078] Specifically, in a preferred embodiment of the present invention, the multimodal fusion features and posture features of each person to be screened are first fused to obtain the final screening features of each person to be screened, and finally each person to be screened is classified according to the final screening features of each person to be screened, so as to obtain the preliminary abnormal screening results corresponding to each person to be screened, wherein the content of the preliminary abnormal screening results includes no abnormality and the presence of abnormality, and the specific form can be graphic and text form, table form, and graphic, text and table coexistence form, which is not limited in the present invention.
[0079] Furthermore, the multimodal fusion features and posture features corresponding to each of the persons to be screened are fused respectively to obtain the final fusion features corresponding to each of the persons to be screened, and a classification operation is performed based on each of the final fusion features to obtain the preliminary abnormal screening results corresponding to each of the persons to be screened, specifically including:
[0080] The multimodal fusion features and posture features corresponding to each of the persons to be screened are respectively subjected to feature fusion processing to obtain the final screening features corresponding to each of the persons to be screened; based on the pre-trained abnormal screening network, each of the persons to be screened is classified according to each of the final screening features to obtain the abnormal probability value corresponding to each of the persons to be screened; and the preliminary abnormal screening results corresponding to each of the persons to be screened are generated according to each of the abnormal probability values.
[0081] Specifically, the multimodal fusion features and posture features corresponding to each person to be screened are firstly fused to obtain the final screening features corresponding to each person to be screened, which can be specifically expressed as: h merged =concat[h cont ′,X pose ]; where h merged Represents the final screening feature.
[0082] In order to further obtain the corresponding preliminary abnormal screening results of the candidates from each final screening feature, classification processing is performed based on the pre-trained abnormal screening network according to the final screening features corresponding to each candidate. Specifically, a binary fully connected layer and a sigmoid activation function are added after the abnormal screening network to output the abnormal probability value corresponding to each candidate. The abnormal probability value is a probability value in the range of [0, 1]. Finally, the corresponding preliminary abnormal screening results are generated according to the abnormal probability value of each candidate.
[0083] It should be noted that in the training process of the anomaly screening network, the loss function uses the cross entropy loss function, which is specifically expressed as: Among them, y i represents the true label, Represents the classification prediction result, and N represents the number of samples.
[0084] Furthermore, generating a preliminary abnormal screening result corresponding to each person to be screened according to each abnormal probability value specifically includes:
[0085] Based on the preset threshold, the abnormal probability value corresponding to each of the persons to be screened is judged respectively; if the abnormal probability value is greater than the preset threshold, a preliminary abnormal screening result indicating that there is no abnormality is generated for the corresponding person to be screened; if the abnormal probability value is less than or equal to the preset threshold, a preliminary abnormal screening result indicating that there is an abnormality is generated for the corresponding person to be screened.
[0086] Specifically, in a preferred embodiment of the present invention, a technician sets a preset threshold, which is used to judge the abnormal probability value. In a preferred embodiment of the present invention, the preset threshold is set to 0.5 (which can be modified according to actual needs). If the abnormal probability value of a person to be screened is greater than 0.5, a preliminary abnormal screening result indicating that there is no abnormality is generated for this person to be screened; if the abnormal probability value of a person to be screened is less than or equal to 0.5, a preliminary abnormal screening result indicating that there is an abnormality is generated for this person to be screened.
[0087] It should be noted that after the preliminary abnormal screening results corresponding to all persons to be screened are generated, customs staff can conduct temporary testing on inbound persons whose preliminary abnormal screening results indicate abnormalities based on all the preliminary abnormal screening results, thereby ensuring the safety and control of entry and exit.
[0088] Furthermore, if Figure 3 As shown, based on the above-mentioned port preliminary anomaly screening method based on multi-feature fusion, the present invention also provides a port preliminary anomaly screening system based on multi-feature fusion, wherein the port preliminary anomaly screening system based on multi-feature fusion includes:
[0089] The face data acquisition module 51 is used to acquire the video data to be processed at the target port, perform face recognition processing on the video data, and obtain the face video data corresponding to each person to be screened in the video data;
[0090] A multimodal feature acquisition module 52, used to perform feature extraction operations based on each of the face video data to obtain multimodal fusion features corresponding to each of the persons to be screened;
[0091] A posture feature acquisition module 53 is used to perform human posture detection based on the video data to obtain the posture feature corresponding to each person to be screened;
[0092] The preliminary abnormal screening module 54 is used to obtain the final screening features corresponding to each of the persons to be screened according to the multimodal fusion features and posture features corresponding to each of the persons to be screened, and to perform classification operations based on each of the final screening features to obtain the preliminary abnormal screening results corresponding to each of the persons to be screened.
[0093] Furthermore, if Figure 4As shown, based on the above-mentioned method and system for preliminary anomaly screening at a port based on multi-feature fusion, the present invention also provides a terminal accordingly, and the terminal includes a processor 10, a memory 20 and a display 30. Figure 4 Only some components of the terminal are shown, but it should be understood that it is not required to implement all of the components shown, and more or fewer components may be implemented instead.
[0094] In some embodiments, the memory 20 may be an internal storage unit of the terminal, such as a hard disk or memory of the terminal. In other embodiments, the memory 20 may also be an external storage device of the terminal, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the terminal. Further, the memory 20 may also include both an internal storage unit of the terminal and an external storage device. The memory 20 is used to store application software and various types of data installed in the terminal, such as the program code of the installation terminal. The memory 20 may also be used to temporarily store data that has been output or is to be output. In one embodiment, a preliminary abnormal screening program 40 for ports based on multi-feature fusion is stored on the memory 20, and the preliminary abnormal screening program 40 for ports based on multi-feature fusion can be executed by the processor 10, thereby realizing the preliminary abnormal screening method for ports based on multi-feature fusion in the present application.
[0095] In some embodiments, the processor 10 may be a central processing unit (CPU), a microprocessor or other data processing chip, used to run the program code or process data stored in the memory 20, such as executing the preliminary anomaly screening method for ports based on multi-feature fusion.
[0096] In some embodiments, the display 30 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, etc. The display 30 is used to display information on the terminal and to display a visual user interface. The components 10-30 of the terminal communicate with each other via a system bus.
[0097] In one embodiment, when the processor 10 executes the port preliminary abnormality screening program 40 based on multi-feature fusion in the memory 20, the following steps are implemented:
[0098] Obtaining the video data to be processed at the target port, performing face recognition processing on the video data, and obtaining face video data corresponding to each person to be screened in the video data;
[0099] Performing feature extraction operations based on each of the face video data to obtain multimodal fusion features corresponding to each of the persons to be screened;
[0100] Performing human posture detection based on the video data to obtain posture features corresponding to each person to be screened;
[0101] The final screening features corresponding to each of the persons to be screened are obtained according to the multimodal fusion features and posture features corresponding to each of the persons to be screened, and a classification operation is performed based on each of the final screening features to obtain a preliminary abnormal screening result corresponding to each of the persons to be screened.
[0102] The step of obtaining the video data to be processed at the target port, performing face recognition processing on the video data, and obtaining face video data corresponding to each person to be screened in the video data specifically includes:
[0103] Acquire the video data to be processed of the target port, wherein the video data is obtained by real-time shooting of a shooting device;
[0104] Inputting the video data into a pre-trained face detection model, the face detection model performs face recognition processing on the video data to obtain the face area corresponding to each screened person;
[0105] Generate facial video data corresponding to each of the screened personnel based on the facial area of each of the screened personnel.
[0106] The feature extraction operation is performed based on each of the face video data to obtain the multimodal fusion features corresponding to each of the persons to be screened, specifically including:
[0107] Estimating the heart rate based on each face video data to obtain the heart rate characteristics of each person to be screened;
[0108] Perform fatigue detection based on each of the face video data to obtain fatigue characteristics of each of the persons to be screened;
[0109] Performing body temperature detection based on each of the face video data to obtain the body temperature characteristics of each of the persons to be screened;
[0110] Based on the attention mechanism, the heart rate characteristics, fatigue characteristics and body temperature characteristics of each person to be screened will be fused respectively to obtain a multimodal fusion feature.
[0111] Among them, the attention mechanism will fuse the heart rate characteristics, fatigue characteristics and body temperature characteristics of each person to be screened respectively to obtain multimodal fusion characteristics, specifically including:
[0112] Calculating according to the fatigue characteristics and body temperature characteristics of each of the to-be-screened persons to obtain the heart rate attention weight corresponding to each of the to-be-screened persons, and calculating according to each of the heart rate attention weights and the corresponding heart rate characteristics to obtain a plurality of attention heart rate characteristics;
[0113] Calculate the fatigue attention weight corresponding to each of the to-be-screened persons according to the heart rate characteristics and body temperature characteristics of each to-be-screened person, and calculate the fatigue attention weight and the corresponding fatigue characteristics according to each to-be-screened person to obtain a plurality of attention fatigue characteristics;
[0114] Calculate the body temperature attention weight corresponding to each of the to-be-screened persons according to the heart rate characteristics and fatigue characteristics of each to-be-screened person, and calculate according to each of the body temperature attention weights and the corresponding body temperature characteristics to obtain a plurality of attention body temperature characteristics;
[0115] The attention heart rate characteristics, attention fatigue characteristics and attention body temperature characteristics corresponding to each of the persons to be screened are fused to obtain a multimodal fusion characteristic of each of the persons to be screened.
[0116] The human body posture detection based on the video data to obtain the posture features corresponding to each person to be screened specifically includes:
[0117] Inputting the video data into a pre-trained posture recognition network, the posture recognition network performs human body key point recognition on the video data to obtain human body key points corresponding to each person to be screened;
[0118] Posture estimation is performed based on the key points of the human body of each of the screened personnel to obtain posture features corresponding to each of the screened personnel.
[0119] The multimodal fusion features and posture features corresponding to each person to be screened are respectively fused to obtain the final fusion features corresponding to each person to be screened, and a classification operation is performed based on each final fusion feature to obtain the preliminary abnormal screening results corresponding to each person to be screened, specifically including:
[0120] Performing feature fusion processing on the multimodal fusion features and posture features corresponding to each of the persons to be screened, respectively, to obtain the final screening features corresponding to each of the persons to be screened;
[0121] Based on the pre-trained abnormal screening network, each of the persons to be screened is classified according to each of the final screening features to obtain an abnormal probability value corresponding to each person to be screened;
[0122] A preliminary abnormal screening result corresponding to each person to be screened is generated according to each abnormal probability value.
[0123] The generating of the preliminary abnormal screening result corresponding to each person to be screened according to each abnormal probability value specifically includes:
[0124] Based on the preset threshold, the abnormal probability value corresponding to each of the persons to be screened is judged respectively;
[0125] If the abnormal probability value is greater than the preset threshold, a preliminary abnormal screening result indicating that there is no abnormality is generated for the corresponding person to be screened;
[0126] If the abnormal probability value is less than or equal to the preset threshold, a preliminary abnormal screening result indicating the presence of an abnormality is generated for the corresponding person to be screened.
[0127] The present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a port preliminary anomaly screening program based on multi-feature fusion, and when the port preliminary anomaly screening program based on multi-feature fusion is executed by a processor, the steps of the port preliminary anomaly screening method based on multi-feature fusion as described above are implemented.
[0128] In summary, the present invention provides a method for preliminary abnormal screening of ports based on multi-feature fusion. The system and terminal, the method includes: obtaining the video data to be processed of the target port, performing face recognition processing on the video data, and obtaining the face video data corresponding to each person to be screened in the video data; performing feature extraction operations based on each of the face video data, and obtaining the multimodal fusion features corresponding to each of the persons to be screened; performing human posture detection based on the video data, and obtaining the posture features corresponding to each of the persons to be screened; obtaining the final screening features corresponding to each of the persons to be screened according to the multimodal fusion features and posture features corresponding to each of the persons to be screened, and performing classification operations based on each of the final screening features, and obtaining the preliminary abnormal screening results corresponding to each of the persons to be screened. The present invention realizes the rapid abnormal screening of port inbound personnel through multimodal feature fusion, and also improves the accuracy of abnormal screening of inbound personnel, and realizes real-time abnormal state detection through multimodal algorithms, improves the efficiency of abnormal screening, avoids congestion at the entry port, and greatly speeds up the efficiency of entry.
[0129] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or terminal including the element.
[0130] Of course, those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing related hardware (such as a processor, a controller, etc.) through a computer program, and the program can be stored in a computer-readable storage medium that can be read by a computer, and the program can include the processes of the above-mentioned method embodiments when executed. The computer-readable storage medium can be a memory, a disk, an optical disk, etc.
[0131] It should be understood that the application of the present invention is not limited to the above examples. For ordinary technicians in this field, improvements or changes can be made based on the above description. All these improvements and changes should fall within the scope of protection of the claims attached to the present invention.
Claims
1. A preliminary abnormal screening method for ports based on multi-feature fusion, characterized in that: The port preliminary anomaly screening method based on multi-feature fusion includes: Obtaining the video data to be processed at the target port, performing face recognition processing on the video data, and obtaining face video data corresponding to each person to be screened in the video data; Performing feature extraction operations based on each of the face video data to obtain multimodal fusion features corresponding to each of the persons to be screened; Performing human posture detection based on the video data to obtain posture features corresponding to each person to be screened; The final screening features corresponding to each of the persons to be screened are obtained according to the multimodal fusion features and posture features corresponding to each of the persons to be screened, and a classification operation is performed based on each of the final screening features to obtain a preliminary abnormal screening result corresponding to each of the persons to be screened.
2. The method for preliminary abnormal screening of ports based on multi-feature fusion according to claim 1 is characterized in that: The step of obtaining the video data to be processed at the target port, performing face recognition processing on the video data, and obtaining face video data corresponding to each person to be screened in the video data specifically includes: Acquire the video data to be processed of the target port, wherein the video data is obtained by real-time shooting of a shooting device; Inputting the video data into a pre-trained face detection model, the face detection model performs face recognition processing on the video data to obtain the face area corresponding to each screened person; Generate facial video data corresponding to each of the screened personnel based on the facial area of each of the screened personnel.
3. The method for preliminary abnormal screening of ports based on multi-feature fusion according to claim 1 is characterized in that: The feature extraction operation is performed based on each of the face video data to obtain the multimodal fusion features corresponding to each of the to-be-screened persons, specifically including: Estimating the heart rate based on each face video data to obtain the heart rate characteristics of each person to be screened; Perform fatigue detection based on each of the face video data to obtain fatigue characteristics of each of the persons to be screened; Performing body temperature detection based on each of the face video data to obtain the body temperature characteristics of each of the persons to be screened; Based on the attention mechanism, the heart rate characteristics, fatigue characteristics and body temperature characteristics of each person to be screened will be fused respectively to obtain a multimodal fusion feature.
4. The method for preliminary abnormal screening of ports based on multi-feature fusion according to claim 3 is characterized in that: The attention mechanism will fuse the heart rate features, fatigue features and body temperature features of each person to be screened respectively to obtain multimodal fusion features, specifically including: Calculating according to the fatigue characteristics and body temperature characteristics of each of the to-be-screened persons to obtain the heart rate attention weight corresponding to each of the to-be-screened persons, and calculating according to each of the heart rate attention weights and the corresponding heart rate characteristics to obtain a plurality of attention heart rate characteristics; Calculate the fatigue attention weight corresponding to each of the to-be-screened persons according to the heart rate characteristics and body temperature characteristics of each to-be-screened person, and calculate the fatigue attention weight and the corresponding fatigue characteristics according to each to-be-screened person to obtain a plurality of attention fatigue characteristics; Calculate the body temperature attention weight corresponding to each of the to-be-screened persons according to the heart rate characteristics and fatigue characteristics of each to-be-screened person, and calculate according to each of the body temperature attention weights and the corresponding body temperature characteristics to obtain a plurality of attention body temperature characteristics; The attention heart rate characteristics, attention fatigue characteristics and attention body temperature characteristics corresponding to each of the persons to be screened are fused to obtain a multimodal fusion characteristic of each of the persons to be screened.
5. The method for preliminary abnormal screening of ports based on multi-feature fusion according to claim 1 is characterized in that: The human posture detection is performed based on the video data to obtain the posture features corresponding to each person to be screened, specifically including: Inputting the video data into a pre-trained posture recognition network, the posture recognition network performs human body key point recognition on the video data to obtain human body key points corresponding to each person to be screened; Posture estimation is performed based on the key points of the human body of each of the screened personnel to obtain posture features corresponding to each of the screened personnel.
6. The method for preliminary abnormality screening of ports based on multi-feature fusion according to claim 1 is characterized in that: The multimodal fusion features and posture features corresponding to each of the persons to be screened are respectively fused to obtain the final fusion features corresponding to each of the persons to be screened, and a classification operation is performed based on each of the final fusion features to obtain the preliminary abnormal screening results corresponding to each of the persons to be screened, specifically including: Performing feature fusion processing on the multimodal fusion features and posture features corresponding to each of the persons to be screened, respectively, to obtain the final screening features corresponding to each of the persons to be screened; Based on the pre-trained abnormal screening network, each of the persons to be screened is classified according to each of the final screening features to obtain an abnormal probability value corresponding to each person to be screened; A preliminary abnormal screening result corresponding to each person to be screened is generated according to each abnormal probability value.
7. The method for preliminary abnormality screening of ports based on multi-feature fusion according to claim 6 is characterized in that: The generating of the preliminary abnormal screening result corresponding to each of the to-be-screened persons according to each of the abnormal probability values specifically includes: Based on the preset threshold, the abnormal probability value corresponding to each of the persons to be screened is judged respectively; If the abnormal probability value is greater than the preset threshold, a preliminary abnormal screening result indicating that there is no abnormality is generated for the corresponding person to be screened; If the abnormal probability value is less than or equal to the preset threshold, a preliminary abnormal screening result indicating the presence of an abnormality is generated for the corresponding person to be screened.
8. A port preliminary anomaly screening system based on multi-feature fusion, characterized in that: The port preliminary anomaly screening system based on multi-feature fusion includes: A face data acquisition module is used to acquire the video data to be processed at the target port, perform face recognition processing on the video data, and obtain face video data corresponding to each person to be screened in the video data; A multimodal feature acquisition module, used to perform feature extraction operations based on each of the face video data to obtain multimodal fusion features corresponding to each of the persons to be screened; A posture feature acquisition module, used to perform human posture detection based on the video data to obtain the posture feature corresponding to each person to be screened; The preliminary abnormality screening module is used to obtain the final screening features corresponding to each person to be screened according to the multimodal fusion features and posture features corresponding to each person to be screened, and perform classification operations based on each of the final screening features to obtain the preliminary abnormality screening results corresponding to each person to be screened.
9. A terminal, characterized in that: The terminal includes: a memory, a processor, and a port preliminary anomaly screening program based on multi-feature fusion stored in the memory and executable on the processor. When the port preliminary anomaly screening program based on multi-feature fusion is executed by the processor, the steps of the port preliminary anomaly screening method based on multi-feature fusion as described in any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a port preliminary anomaly screening program based on multi-feature fusion, and when the port preliminary anomaly screening program based on multi-feature fusion is executed by a processor, the steps of the port preliminary anomaly screening method based on multi-feature fusion as described in any one of claims 1-7 are implemented.
