An action recognition method for infrared and visible light videos based on knowledge distillation model
Through the knowledge distillation model, the visible light data set is used to train the teacher network, which solves the deficiencies in data volume and performance of the infrared image behavior recognition algorithm, achieves high-performance behavior recognition, and is suitable for video surveillance and other computer vision tasks.
Patent Information
- Application Number
- CN202111191770.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-13
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2041-10-13
AI Technical Summary
The existing infrared and visible light spectrum video image behavior recognition algorithms are few and the amount of data is insufficient. Infrared images have problems such as low contrast, signal-to-noise ratio and low resolution, making it difficult to effectively apply them in the field of video surveillance.
A method based on the knowledge distillation model is adopted, and the visible light data set is used to train the teacher network. Through knowledge distillation, the small student network can learn the teacher network knowledge, make up for the shortcomings of infrared images, and obtain a high-performance behavior recognition model.
It achieves high-accuracy behavior recognition in the case of small infrared data sets and poor training effects, and has small hardware requirements. It is suitable for practical applications and can be extended to other computer vision tasks such as target detection and semantic recognition.
Smart Images

Figure CN113901931B
Abstract
Description
[0001] Invention Name
[0002] The invention relates to a behavior recognition method for infrared and visible light videos based on a knowledge distillation model, and belongs to the technical field of video behavior recognition in the field of computer vision. Background Art
[0003] With the development of the Internet and communication technology, video has gradually become a dominant form of information expression with its advantages of being intuitive, vivid, and convenient. On large video websites, there are hundreds of millions of videos of all kinds, and they continue to grow every minute and every second. With the continuous development of mobile communication technology in recent years, mobile phones have become a new information carrier. On mobile platforms, the development of various video application software is in full swing. Through such software, users can access video resources on the Internet anytime and anywhere, and upload videos they have taken. Therefore, the number of video resources on the Internet has reached an unprecedentedly large number at this stage. On the other hand, with the enhancement of people's safety awareness, video surveillance systems and equipment are also developing and popularizing at a high speed. The existing video surveillance system can only provide video data, but cannot achieve real-time monitoring and early warning functions, and requires a lot of manpower screening and investigation. Faced with massive amounts of data, the problem that needs to be solved is how to extract useful information that users are interested in from the video.
[0004] So far, most Internet videos and surveillance system videos are based on visible light spectra. In recent years, with the popularization of infrared imagers, infrared spectrum images have gradually been used in surveillance systems. In the military field, small target recognition based on infrared images is an important task of the military early warning system. In the civilian field, infrared images are also widely used, including unmanned driving technology and drone technology, which require the detection, identification and screening of surrounding environmental information. The combination of infrared and visible light spectra has brought many advantages to the field of video surveillance. Infrared images are a direct reflection of the thermal radiation energy of an object, and have strong anti-interference ability and high sensitivity. Using infrared images, people can clearly observe the situation ahead in a completely dark night or on a battlefield covered with smoke and clouds, which are difficult to present in visible light images. However, infrared images also have some shortcomings, such as the lack of clear appearance and texture features of the imaged objects. In addition, there is strong noise and background clutter interference inside the infrared imager receiver, which makes the infrared image have problems with low contrast, signal-to-noise ratio and resolution, while visible light images can overcome the problems of infrared images to a certain extent.
[0005] Therefore, combining infrared and visible light spectral images is of great significance in applications such as intelligent monitoring. Behavior recognition based on infrared and visible light dual videos aims to utilize the complementarity of infrared and visible light spectral video images and train models to identify behavioral information of interest in video data. Compared with the booming behavior recognition algorithms based on visible light videos, the existing infrared and visible light spectral video image behavior recognition algorithms are relatively few, lacking in data volume, and are rarely used in practical applications. However, this combination of multiple spectral images is gradually becoming a research field with urgent practical needs and is receiving more and more attention. Summary of the invention
[0006] In view of the shortcomings of the prior art, the present invention proposes a behavior recognition method for infrared and visible light videos based on a knowledge distillation model.
[0007] The present invention proposes a knowledge distillation model for infrared and visible light videos. The greatest contribution of this model is to use the contrast, signal-to-noise ratio and resolution of visible light to make up for the defects of low contrast, signal-to-noise ratio and resolution of infrared images, and obtain a high-performance model with few network parameters. A large teacher network is trained using a visible light dataset, and a small student network with infrared images as input learns the teacher network knowledge through knowledge distillation, so that the performance of the student network approaches that of a teacher network with good performance. The trained small student network can not only solve the problem of small infrared datasets and poor training effects, but can also be used in practical applications with low hardware requirements.
[0008] Terminology explanation:
[0009] 1. NTU RGB+D dataset, containing data in four modalities: RGB, IR, 3D joint information, and depth map. The data was collected using a Microsoft Kinect v2 sensor. The depth map is a sequence of two-dimensional depth values in millimeters. The resolution of each depth frame is 512*424. The joint information consists of the three-dimensional positions of the 25 main joints of the human body detected and tracked in the scene. For each joint and each frame, the corresponding pixels and depth maps on the RGB frame are also provided.
[0010] 2. Kinetics400 dataset, this dataset has 400 human action classes, each action has 400-1150 clips, each clip comes from a unique video. Each clip can last about 10 seconds. The current version has 306,245 videos, divided into three parts, one for training, with 250-1000 videos per class, one for verification, with 50 videos per class, and one for testing, with 100 videos per class. These clips come from youtube videos, and the videos have variable resolutions and frame rates.
[0011] 3. Resnet50 network, Resnet is a residual network, which was proposed to solve the problem that deep networks are difficult to train due to gradient disappearance. Because the gradient is back-propagated to the previous layer, repeated multiplication may make the gradient infinitesimal. As a result, as the number of layers of the network becomes deeper, its performance tends to saturation or even drops rapidly. The core idea of the residual network is to introduce an identity shortcut (also called a jump connection line) to directly skip one or more layers. Resnet50 is a residual network with a 50-layer structure.
[0012] 4. CAM, class activation mapping, refers to the weighted linear sum of these visual patterns at different spatial locations. By simply upsampling the class activation map to the size of the input image, we can identify the image regions that are most relevant to a specific category.
[0013] 5. Resnet18 network is a residual network with an 18-layer structure. The difference from Resnet50 is the number of layers. Resnet50 network structure is more complex and has more parameters.
[0014] 6. TSN, Temporal Segment Network.
[0015] The technical solution of the present invention is:
[0016] A behavior recognition method for infrared and visible light videos based on a knowledge distillation model refers to: pre-processing the behavior video to be recognized and inputting it into a trained student network for behavior recognition; the process of obtaining the trained student network is: using a visible light data set to train a teacher network, and through knowledge distillation, allowing the student network with infrared images as input to learn the teacher network knowledge, so that the performance of the student network is close to that of the teacher network with good performance.
[0017] Preferably, according to the present invention, the pretreatment process comprises:
[0018] A. Cut the behavior video into video clips of several time periods;
[0019] B. Generate a file containing the video data path and the number of frame images contained in each video segment.
[0020] Preferably, according to the present invention, the training process of the student network includes the following steps:
[0021] (1) Train the teacher network;
[0022] (2) Obtain the CAM of the teacher network and the student network;
[0023] (3) Obtain the CAM loss of the teacher network and the student network;
[0024] (4) Obtain the distillation loss of the teacher network and the student network;
[0025] (5) Obtain the cross entropy loss of the teacher network and the student network;
[0026] (6) Minimize CAM loss, distillation loss, and cross entropy loss to train the student network and obtain the trained student network.
[0027] According to the preferred embodiment of the present invention, in step (1), training the teacher network refers to:
[0028] A. Pretreatment, including:
[0029] ① The behavior videos in avi format obtained from the NTU RGB+D dataset were cut into video clips of several time periods (3s);
[0030] ② Classify the video clips obtained in step ①, that is, label the behavior tags;
[0031] ③ Generate a file including the behavior video data path, the number of frame images contained in each video clip, and the behavior label obtained in step ②, and divide it into training set and test set in a ratio of 4:1;
[0032] ④Extract the frame images contained in each video clip and save them.
[0033] B. Send the training set obtained after preprocessing in step A to the built Resnet50 network for training. For the video clip of the input training set, use the random method to select n frames in the video clip, and iterate the training 50 times.
[0034] More preferably, n=3.
[0035] Preferably, according to the present invention, in step (2), the process of obtaining the CAM of the teacher network is as follows:
[0036] Obtain the weighted sum of the feature maps of the last convolutional layer of the teacher network to generate the CAM;
[0037] For a given frame of image, Represents the total activation degree of the kth unit on the last convolutional layer of the teacher network after global average pooling As shown in formula (I):
[0038]
[0039] In formula (I), x is the input of the convolutional layer, y is the output of the convolutional layer, k is the kth unit on the convolutional layer, and T represents the teacher network;
[0040] Therefore, for a given action category c of the teacher network, the corresponding category score input to the softmax layer is As shown in formula (II):
[0041]
[0042] In formula (II), is the weight value of the kth unit of the teacher network corresponding to behavior category c, which indicates that the importance of
[0043] Finally, the probability of the corresponding behavior category c output by the softmax layer is As shown in formula (III):
[0044]
[0045] Set the input bias of the softmax layer to zero. Substitute into In the formula (IV),
[0046]
[0047] definition For the CAM of behavior category c, each spatial element is shown in formula (V):
[0048]
[0049] so, Indicates the degree of saliency of category c at the spatial position (x, y) of an image.
[0050] According to the preferred embodiment of the present invention, in step (2), the process of obtaining the CAM of the student network is as follows:
[0051] Select the student network and obtain the weighted sum of the feature maps of the last convolutional layer to generate the required CAM. Define is the CAM of behavior category c;
[0052] According to a preferred embodiment of the present invention, in step (3), obtaining the CAM loss of the teacher network and the student network refers to:
[0053] definition is the CAM of behavior category c, and the minimum mean square error loss, i.e., CAM loss, is obtained by comparing it with the CAM obtained by the teacher network, as shown in formula (VI):
[0054]
[0055] In formula (VI), m is the total number of behavior categories, and ‖·‖2 represents the L2 norm.
[0056] According to a preferred embodiment of the present invention, in step (4), obtaining the distillation loss of the teacher network and the student network refers to:
[0057] For the behavior category c given by the student network, the corresponding category score input to the softmax layer As shown in formula (VII):
[0058]
[0059] The distillation loss L between the student network output and the soft label output of the teacher network softmax layer K0 As shown in formula (VIII):
[0060]
[0061] In formula (VIII), τ is temperature.
[0062] Preferably, according to the present invention, in step (5), the cross entropy loss of the teacher network and the student network is obtained, as shown in formula (IX):
[0063]
[0064] In formula (IX), q c is the true label of the cth category, is the probability of the corresponding behavior category c output by the softmax layer of the student network; the total loss is shown in formula (Ⅹ):
[0065] L >oss =βL CAM +ατ2L K0 +(1-α)L CE (Ⅹ).
[0066] Further preferably, the teacher network selects a Resnet50 network, a Resnet101 network or a Googlenet network pre-trained based on the Kinetics400 dataset.
[0067] Further preferably, the student network is a Resnet18 network.
[0068] A computer device includes a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of a behavior recognition method for infrared and visible light videos based on a knowledge distillation model are implemented.
[0069] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of a behavior recognition method for infrared and visible light videos based on a knowledge distillation model.
[0070] The beneficial effects of the present invention are:
[0071] 1. In order to solve the problems of small infrared data sets, poor training effects, and difficult applications, the present invention proposes a behavior recognition method for infrared and visible light videos based on a knowledge distillation model. Compared with the existing network model, the advantages of high contrast, signal-to-noise ratio, and resolution of the visible light data set are used to make up for the low contrast, signal-to-noise ratio, and resolution of the infrared data set; the advantages of large visible light data sets are used to make up for the small infrared data set; the high performance of behavior recognition of the visible light data set is used to train a small network with good performance.
[0072] 2. In the present invention, by minimizing the significant regional differences between the teacher network and the student network, the student network can better learn the features in the teacher network and improve the accuracy.
[0073] 3. The present invention utilizes the knowledge distillation method to not only learn the standard answers in the real labels, but also learn the "dark" knowledge in the teacher network, with good robustness.
[0074] 4. The present invention utilizes the knowledge distillation method to train a small network, has low hardware requirements, strong portability, and has great application prospects.
[0075] 5. The knowledge distillation network of the present invention can not only be used in the field of behavior recognition, but can also be expanded to the fields of target detection, semantic recognition, etc. BRIEF DESCRIPTION OF THE DRAWINGS
[0076] Figure 1 A framework diagram of a behavior recognition method for infrared and visible light videos based on a knowledge distillation model of the present invention;
[0077] Figure 2 It is a schematic diagram of the student network training process of the present invention. DETAILED DESCRIPTION
[0078] The present invention will be further defined below in conjunction with the accompanying drawings and embodiments, but is not limited thereto.
[0079] Example 1
[0080] A behavior recognition method based on knowledge distillation model for infrared and visible light videos, such as Figure 1As shown in FIG, it means that the behavior video to be identified is preprocessed and then input into the trained student network for behavior identification; the process of obtaining the trained student network is as follows: the teacher network is trained using the visible light data set, and through knowledge distillation, the student network whose input is the infrared image learns the teacher network knowledge, so that the performance of the student network approaches that of the teacher network with good performance.
[0081] The preprocessing process includes:
[0082] A. Cut the behavior video into several 3s video clips;
[0083] B. Generate a file containing the video data path and the number of frame images contained in each video segment.
[0084] like Figure 2 As shown in Figure 2, the training process of the student network includes the following steps:
[0085] (1) Train the teacher network;
[0086] (2) Obtain the CAM of the teacher network and the student network;
[0087] (3) Obtain the CAM loss of the teacher network and the student network;
[0088] (4) Obtain the distillation loss of the teacher network and the student network;
[0089] (5) Obtain the cross entropy loss of the teacher network and the student network;
[0090] (6) Minimize CAM loss, distillation loss, and cross entropy loss to train the student network and obtain the trained student network.
[0091] In step (1), training the teacher network means:
[0092] A. Pretreatment, including:
[0093] ① Cut the behavior video in avi or mp4 format obtained from the dataset into video clips of several time periods (3s);
[0094] ② Classify the video clips obtained in step ①, that is, label the behavior tags;
[0095] ③ Generate a file including the behavior video data path, the number of frame images contained in each video clip, and the behavior label obtained in step ②, and divide it into training set and test set in a ratio of 4:1;
[0096] ④Extract the frame images contained in each video clip and save them.
[0097] B. The training set obtained after preprocessing in step A is sent to the built Resnet50 network for training. The data used during training is based on the TSN method. For the 3s video clip of the input training set, 3 frame images in the video clip are selected randomly, and iterative training is performed 50 times according to the training process of the convolutional network.
[0098] In step (2), the process of obtaining the CAM of the teacher network is as follows:
[0099] Obtain the weighted sum of the feature maps of the last convolutional layer of the teacher network to generate the CAM;
[0100] For a given frame of image, Represents the total activation degree of the kth unit on the last convolutional layer of the teacher network after global average pooling As shown in formula (I):
[0101]
[0102] In formula (I), x is the input of the convolutional layer, y is the output of the convolutional layer, k is the kth unit on the convolutional layer, and T represents the teacher network;
[0103] Therefore, for a given action category c of the teacher network, the corresponding category score input to the softmax layer is As shown in formula (II):
[0104]
[0105] In formula (II), is the weight value of the kth unit of the teacher network corresponding to behavior category c, which indicates that the importance of
[0106] Finally, the probability of the corresponding behavior category c output by the softmax layer is As shown in formula (III):
[0107]
[0108] Setting the input bias of the softmax layer to zero has no effect on the classification results. Substitute into In the formula (IV),
[0109]
[0110] definition For the CAM of behavior category c, each spatial element is shown in formula (V):
[0111]
[0112] so, Indicates the degree of saliency of category c at the spatial position (x, y) of an image.
[0113] In step (2), the process of obtaining the CAM of the student network is as follows:
[0114] The CAM acquisition process is to take the feature map of the last convolutional layer of the convolutional network and obtain it through the weighted sum of the feature maps.
[0115] Select the small network as the student network and obtain the weighted sum of the feature maps of the last convolutional layer to generate the required CAM. Define is the CAM of behavior category c;
[0116] In step (3), the CAM loss of the teacher network and the student network is obtained, which means:
[0117] definition is the CAM of behavior category c, and the minimum mean square error (MSE) loss, i.e., CAM loss, is obtained by comparing it with the CAM obtained by the teacher network, as shown in formula (VI):
[0118]
[0119] In formula (VI), m is the total number of behavior categories, and ‖·‖2 represents the L2 norm.
[0120] In step (4), the distillation loss of the teacher network and the student network is obtained, which means:
[0121] For the behavior category c given by the student network, the corresponding category score input to the softmax layer As shown in formula (VII):
[0122]
[0123] The distillation loss L between the student network output and the soft label output of the teacher network softmax layer KD As shown in formula (VIII):
[0124]
[0125] In formula (VIII), τ is temperature.
[0126] In step (5), the cross entropy loss of the teacher network and the student network is obtained. When training the student network, the total loss includes not only the CAM loss and the distillation loss, but also the cross entropy loss between the student network output and the true label, as shown in formula (IX):
[0127]
[0128] In formula (IX), q c is the true label of the cth category, is the probability of the corresponding behavior category c output by the softmax layer of the student network; the total loss is shown in formula (Ⅹ):
[0129] L >oss =βL CAM +ατ 2 L KD +(1-α)L CE (Ⅹ).
[0130] The teacher network is selected based on the Resnet50 network pre-trained on the Kinetics400 dataset.
[0131] The student network is Resnet18 network.
[0132] In this embodiment, RGB video data and IR video data in the public data set NTU RGB+D are selected. The data set NTU RGB+D contains data in four modalities: RGB, IR, 3D joint information, and depth map. The data was collected using the Microsoft Kinect v2 sensor. The depth map is a two-dimensional sequence of depth values in millimeters. The resolution of each depth frame is 512*424. The joint information consists of the three-dimensional positions of the 25 main joints of the human body detected and tracked in the scene. For each joint and each frame, the corresponding pixels and depth maps on the RGB frame are also provided.
[0133] The method of the invention is compared with Spatial TDDs, OF-TDDs, and OF-MHI-TDDs methods.
[0134] TDDs stands for trajectory-pooled deep convolutional descriptors, which combines hand-craft features (based on manual extraction of features) and deep convolutional features (based on deep learning extraction of features). This method includes the following steps:
[0135] (1) Using convolutional neural networks to learn convolutional features;
[0136] (2) Using trajectory-constrained sampling and pooling strategies to aggregate convolutional features to form descriptors;
[0137] (3) These local TDDs are aggregated into a global long vector using Fisher vectors, and then classified using the SVM (support vector machine) method.
[0138] Spatial TDDs refers to the TDDs method whose input is the spatial stream of the original image, OF-TDDs refers to the TDDs method whose input is the optical flow, and OF-MHI-TDDs refers to the TDDs method whose input is the optical flow motion history image.
[0139] The method proposed in the present invention is set as follows: the initial learning rate is 0.001, iterates 50 times, and the learning rate is decayed every 10, 20, 30, and 40 iterations. The temperature τ is set to 4, α is set to 0.1, and β is set to 1.
[0140] The small batch NTU RGB+D dataset is used for experiments, and the recognition results are shown in Table 1. Table 1 shows the recognition results (%) of each method on the NTU RGB+D dataset.
[0141] Table 1
[0142] Method NTU RGBD Spatial TDDs 51.43 OF-TDDs 55.81 OF-MHI-TDDs 48.19 Ours 57.61
[0143] As can be seen from Table 1, the method of the present invention achieves an accuracy rate of 57.6%, which is significantly better than Spatial TDDs and OF-MHI-TDDs, and 1.8% higher than OF-TDDs.
[0144] Example 2
[0145] The behavior recognition method for infrared and visible light videos based on the knowledge distillation model described in Example 1 is different in that the teacher network selects a Resnet101 network (a residual network with 101 layers) or a Googlenet network pre-trained based on the Kinetics400 dataset.
[0146] Example 3
[0147] A computer device includes a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of the behavior recognition method for infrared and visible light videos based on a knowledge distillation model in embodiment 1 or 2 are implemented.
[0148] Example 4
[0149] A computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the behavior recognition method for infrared and visible light videos based on a knowledge distillation model in embodiment 1 or 2.
Claims
1. A behavior recognition method for infrared and visible light videos based on a knowledge distillation model, characterized in that: It means: the behavior video to be identified is pre-processed and then input into the trained student network for behavior recognition; the process of obtaining the trained student network is: using the visible light data set to train the teacher network, and through knowledge distillation, the student network with infrared image input learns the teacher network knowledge, so that the performance of the student network is close to that of the teacher network with good performance; The training process of the student network includes the following steps: (1) Train the teacher network; (2) Obtain the CAM of the teacher network and the student network; (3) Obtain the CAM loss of the teacher network and the student network; (4) Obtain the distillation loss of the teacher network and the student network; (5) Obtain the cross entropy loss of the teacher network and the student network; (6) Minimize CAM loss, distillation loss, and cross entropy loss to train the student network and obtain the trained student network.
2. The behavior recognition method for infrared and visible light videos based on the knowledge distillation model according to claim 1 is characterized in that: The preprocessing process includes: A. Cut the behavior video into video clips of several time periods; B. Generate a file containing the video data path and the number of frame images contained in each video segment.
3. The behavior recognition method for infrared and visible light videos based on the knowledge distillation model according to claim 1 is characterized in that: In step (1), training the teacher network means: A. Pretreatment, including: ① Extract the behavior videos in avi format obtained from the NTU RGB+D dataset into video clips of several time periods; ② Classify the video clips obtained in step ①, that is, label the behavior tags; ③ Generate a file including the behavior video data path, the number of frame images contained in each video clip, and the behavior label obtained in step ②, and divide it into training set and test set in a ratio of 4:1; ④ Extract and save the frame images contained in each video clip; B. Send the training set obtained after preprocessing in step A to the built Resnet50 network for training. For the video clip of the input training set, use the random method to select n frames in the video clip, and iterate the training 50 times.
4. The behavior recognition method for infrared and visible light videos based on the knowledge distillation model according to claim 3 is characterized in that: n=3。 5. The behavior recognition method for infrared and visible light videos based on the knowledge distillation model according to claim 1 is characterized in that: In step (2), the process of obtaining the CAM of the teacher network is as follows: Obtain the weighted sum of the feature maps of the last convolutional layer of the teacher network to generate the CAM; For a given frame of image, Represents the total activation degree of the kth unit on the last convolutional layer of the teacher network after global average pooling As shown in formula (I): In formula (I), x is the input of the convolutional layer, y is the output of the convolutional layer, k is the kth unit on the convolutional layer, and T represents the teacher network; Therefore, for a given action category c of the teacher network, the corresponding category score input to the softmax layer is As shown in formula (II): In formula (II), is the weight value of the kth unit of the teacher network corresponding to behavior category c, which indicates that the importance of Finally, the probability of the corresponding behavior category c output by the softmax layer is As shown in formula (III): Set the input bias of the softmax layer to zero. Substitute into In the formula (IV): definition For a CAM of behavior category c, each spatial element is shown in formula (V): so, Indicates the degree of saliency of category c at the spatial position (x, y) of an image; In step (2), the CAM of the student network is obtained as follows: select the student network and obtain the weighted sum of the feature maps of the last convolutional layer to generate the required CAM, and define is the CAM of behavior category c.
6. The behavior recognition method for infrared and visible light videos based on the knowledge distillation model according to claim 5 is characterized in that: In step (3), the CAM loss of the teacher network and the student network is obtained, which means: definition is the CAM of behavior category c, and the minimum mean square error loss, i.e., CAM loss, is obtained by comparing it with the CAM obtained by the teacher network, as shown in formula (VI): In formula (VI), m is the total number of behavior categories and ||·‖2 represents the L2 norm.
7. The behavior recognition method for infrared and visible light videos based on the knowledge distillation model according to claim 1 is characterized in that: In step (4), the distillation loss of the teacher network and the student network is obtained, which means: For the behavior category c given by the student network, the corresponding category score input to the softmax layer As shown in formula (VII): The distillation loss L between the student network output and the soft label output of the teacher network softmax layer KD As shown in formula (VIII): In formula (VIII), τ is temperature.
8. The behavior recognition method for infrared and visible light videos based on a knowledge distillation model according to claim 1, characterized in that: In step (5), the cross entropy loss of the teacher network and the student network is obtained, as shown in formula (IX): In formula (IX), q c is the true label of the cth category, is the probability of the corresponding behavior category c output by the softmax layer of the student network; the total loss is shown in formula (Ⅹ): L loss =βL CAM +at 2 L KD +(1-α)L CE (Ⅹ)。 9. The behavior recognition method for infrared and visible light videos based on the knowledge distillation model according to claim 8, characterized in that: The teacher network is selected based on the Resnet50 network, Resnet101 network or Googlenet network pre-trained on the Kinetics400 dataset; the student network is the Resnet18 network.
10. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the behavior recognition method for infrared and visible light videos based on the knowledge distillation model are implemented as described in any one of claims 1-9.
11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the behavior recognition method for infrared and visible light videos based on a knowledge distillation model are implemented as described in any one of claims 1-9.
Citation Information
Patent Citations
Method and device for identifying abnormal behaviors in super-large bridge tunnel
CN111881853A
Multi-modal human body action recognition method based on knowledge distillation and adversarial learning
CN112364708A
Space-time double-flow segmented network behavior identification method and system based on knowledge distillation
CN112446331A
Multi-mode small target detection method based on knowledge distillation
CN113449680A
Multi modality brain mapping system (MBMS) using artificial intelligence and pattern recognition
US20160035093A1
