Video human body behavior recognition method and device in low-light environment

Through the combination of the pre-trained IAT-Transformer model and the MViT v2 action classifier, the accuracy and efficiency problems of video human behavior analysis in low-light environments are solved, and high accuracy and high-efficiency human behavior in low-light environments are achieved. Identify.

CN118799962APending Publication Date: 2024-10-18WUHAN UNIV

Patent Information

Application Number
CN202410835875.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-26
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

In low light or dark environments, human behavior analysis faces the problems of low video quality, high noise, and poor action recognition accuracy and reliability. The existing lighting enhancement methods are complex and computationally intensive, making it difficult to achieve efficient single-stage action recognition. .

Method used

The pre-trained IAT-Transformer model is used for video brightness enhancement, and combined with the MViT v2 action classifier, the illumination adjustment is performed through spatial domain downsampling and the improved IAT-Transformer model to achieve video restoration and human behavior recognition, reducing the number of parameters and Reduce the amount of calculation and improve the recognition accuracy.

Benefits of technology

It achieves high-accuracy and efficient human behavior recognition in low-light environments, is suitable for a variety of lighting conditions, simplifies the training process, and improves the universality and application practicability of the model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118799962A_ABST
    Figure CN118799962A_ABST
Patent Text Reader

Abstract

The invention provides a video human body behavior recognition method and device in a low-light environment, and the method carries out model initialization, and comprises the steps: carrying out the pre-training of a deep network model, and obtaining a pre-training weight; preprocessing the video data, namely segmenting a video clip, and performing preliminary data enhancement on each frame of image in the clip; illumination detection and compression: performing illumination detection on the preprocessed video data, and performing video compression if illumination is insufficient; enhancing the video brightness by using a deep network model, and adjusting and improving the illumination of each frame of the video; inputting the enhanced output sequence into an action recognition classifier for action classification; and inputting the extracted features into a full connection layer classification head, and outputting a classification result through a full convolution channel. According to the method, the parameter quantity and the calculation quantity are reduced, the action recognition accuracy in the weak light environment is improved, the robustness is good, and the reasoning efficiency is optimized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of video human behavior analysis and processing, and specifically relates to a technical solution for video human behavior analysis in a low-light or dark environment. Background Art

[0002] In recent decades, human motion recognition and behavior analysis have been an extremely important research direction. In the field of human-computer interaction, biomedicine, intelligent driving and other real-world fields, there are technical implementation and application needs. At present, human motion recognition research is mostly concentrated in well-lit environments, while human behavior analysis in dark environments is less studied. The behavior recognition and analysis datasets constructed by the academic community basically come from outdoor environments with good lighting or indoor environments with sufficient lighting. Existing research methods can better handle these high-light intensity video data, but the accompanying human motion recognition in weak light or dark environments still has technical challenges. Low-light video quality is low. Due to insufficient light in dark environments, the image quality captured by the camera is low, with many noise points and unclear details, making it more difficult to extract key features of human posture and limb movement, which seriously affects the accuracy and reliability of motion recognition methods. Therefore, in addition to solving the problems existing in the traditional field of human motion recognition, the research on motion recognition in dark scenes must also solve the additional challenges caused by insufficient light.

[0003] The task of action recognition in low-light environments can be divided into two subtasks. The first subtask is the processing of low-light environments. This task mainly solves the problem of low video light intensity. The second subtask is action recognition. This task mainly analyzes human behavior in enhanced video clips. The existing technologies for these two subtasks are introduced as follows:

[0004] Light enhancement methods based on deep learning. For example, CNN-based methods use automatic deep encoders to learn signal features in low-light level images for adaptive light enhancement and denoising, but such methods rely on a large amount of labeled data. There are also some methods based on Retinex theory, which decompose images into reflectance images and illuminance images through a decomposition network and input them into a light adjustment network to extract finer details from the image, which is achieved by merging images after reducing overexposure and enhancing low light levels. However, such methods require paired images (low light and normal light) during training. In addition, there is a class of methods that achieves light enhancement by generating enhancement parameters for each pixel of the input image. GAN networks and transformer networks also provide solutions for low-light enhancement, but such networks are computationally intensive and complex to reason about.

[0005] Action recognition methods based on neural networks. They can be divided into three types: 2D-CNN, 3D-CNN, and Transformer models. Models based on 2D-CNN have lower computational complexity but are limited by the inherent constraints of the two-dimensional architecture. Models based on 3D-CNN use 3D convolutions of the entire video clip to capture spatial and temporal dynamics. However, using full three-dimensional convolutions incurs high computational costs. Methods based on the Transformer architecture have evolved from the roots of natural language processing, extending the entire framework from the spatial to the spatiotemporal domain, simplifying the processing of video sequences, and introducing a spatiotemporal self-attention mechanism, which enables such models to effectively capture the temporal dynamics of video data, but the traditional Transformer architecture calculates global attention and cannot capture the multi-scale features of the video.

[0006] There are some works exploring solutions to the problem of action recognition in low light, but these methods are not perfect enough. There are two main problems. The first is the traditional methods in the illumination enhancement stage, such as the low illumination video enhancement method based on histogram equalization and Retinex theory. The histogram equalization calculation is simple but the robustness is low. The method based on Retinex theory needs to consider the illumination and reflection conditions of the imaging, so the calculation is relatively complex. Another type of deep learning-based methods are mostly two-stage. When solving the problem of human action recognition in low light environments, the two-stage method trains an image enhancement model locally offline, enhances each frame of the video frame by frame to obtain new data under normal light, and then uses these data to train an action recognition network. The training process is complicated, and the two-stage error accumulation will affect the accuracy of the final action recognition. At the same time, the model calculation amount and parameter amount are large, and the inference speed is also reduced. Based on the above problems, a low-light action recognition solution with a single stage and high recognition accuracy is needed, which is specifically designed for low light environments. Summary of the invention

[0007] In response to the demand for video human behavior analysis in actual low-light scenes, the present invention provides a technical solution for video restoration and human behavior recognition in low-light environments.

[0008] In order to achieve the above object, the technical solution of the present invention provides a method for video human behavior recognition in a low-light environment, which performs the following process:

[0009] Model initialization, including pre-training the deep network model to obtain pre-training weights;

[0010] Preprocess the video data, including segmenting the video clips and performing preliminary data enhancement on each frame of the clips;

[0011] Illumination detection and compression, including illumination detection of pre-processed video data, and video compression if the light is insufficient;

[0012] Use a deep network model to enhance video brightness and adjust and improve the illumination of each frame of the video;

[0013] The enhanced output sequence is input into the action recognition classifier for action classification;

[0014] The extracted features are input into the fully connected layer classification head, and the classification results are output through the full convolution channel.

[0015] Moreover, when pre-training the deep network model, the deep network model adopts the traditional IAT-Transformer model.

[0016] Furthermore, when video compression is performed on insufficiently illuminated video frames, compression is achieved through downsampling in the spatial domain.

[0017] Moreover, when using a deep network model to enhance video brightness, an improved IAT-Transformer model is adopted. In the improved IAT-Transformer model, three 3×3 convolutional layers are reduced for the local branch, and the feature map iteration operation at the end of the branch is discarded. The dual-branch branch is changed to a single branch, and a 2-pixel-level feature map correction parameter matrix is ​​directly output; the two 1×1 convolutional layers at the end of the global branch are removed.

[0018] Moreover, the action recognition classifier is implemented using MViT v2.

[0019] On the other hand, the present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method for recognizing human behavior in a low-light environment through video is implemented as described above.

[0020] On the other hand, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the method for recognizing human behavior in a video under a low-light environment as described above is implemented.

[0021] On the other hand, the present invention further provides a computer program product, including a computer program, which, when executed by a processor, implements the above-mentioned method for recognizing human behavior in a video under a low-light environment.

[0022] Compared with the prior art, the human action recognition technology solution for low-light scenes provided by the present invention can achieve the following

[0023] Beneficial effects:

[0024] (1) Good generalization. The proposed low-light video enhancement model is suitable for various action recognition backbone classifiers, such as 2D, 3D, Transformer networks, etc. There is no need to train a separate local enhancement model offline, which saves training time, and the enhancement process parameters can be adaptively learned. The proposed method can effectively adapt to various lighting scenarios and data distributions, and not just perform well on the data used in training. The model has high universality and adaptability and can be reliably applied in the real world. The technical solution of the present invention is built based on the widely used deep learning framework MMAction2. Users can conveniently transplant the solution on the personally established data set according to the needs of the scene, load the pre-trained weights and perform fine-tuning. After the training is completed, the data can be batch predicted and the prediction accuracy can be calculated.

[0025] (2) Lightweight. Compared with existing methods, the solution proposed by the present invention has a shorter training time and does not require additional training of the enhanced model. In addition, the present method forms a more integrated single-stage model, simplifies the parameters of the enhanced model inserted into the action recognition backbone network, and compresses the spatial domain of the video data during the early enhancement process, thereby simplifying and reducing both the model parameters and the data volume itself. Therefore, overall, the solution proposed by the present invention introduces fewer parameters and has high computational reasoning efficiency.

[0026] (3) High accuracy. A low-light video restoration and human behavior analysis method based on IAT-Transformer and action classifier MViT v2 base is proposed, which can effectively improve the accuracy of action recognition in low-light environments. This method provides a promising direction for solving the challenges of low-light action recognition tasks. The present invention introduces a light enhancement component, which is then used in the Transformer action classifier to enhance the feature mapping of video frames under low light, ensuring the consistency of light enhancement and action recognition tasks, and improving the accuracy of action recognition.

[0027] Therefore, the present invention provides a human spatiotemporal motion detection scheme for RGB video based on deep learning, capable of coping with complex scenes. The scheme adopts adaptive anti-interference means, and effectively models human behavior characteristics with reference to the Transformer model and the encoder attention mechanism. The model has fast training speed, fast convergence, high model detection accuracy and speed, strong robustness, and can flexibly handle the difficult problems of existing methods of human motion recognition in dark environments, such as being easily affected by complex environments, limited accuracy, and low efficiency. It has great application value in the fields of nighttime human motion recognition, light enhancement, and autonomous driving.

[0028] The solution of the present invention is simple and convenient to implement, has strong practicality, solves the problems of low practicality and inconvenience in actual application existing in related technologies, can improve user experience, and has important market value. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0030] Figure 1 is a method framework diagram of an embodiment of the present invention;

[0031] Figure 2 is a schematic diagram of video spatiotemporal compression according to an embodiment of the present invention;

[0032] Figure 3 is a structural diagram of an IAT-Transformer enhancement module according to an embodiment of the present invention;

[0033] Figure 4 is a model structure diagram of MViT v2 base according to an embodiment of the present invention;

[0034] Figure 5 A schematic diagram of the physical structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0035] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0036] At present, action recognition in low-light environments has a wide range of applications in real life. Existing action recognition methods focus on the subject of the action, so the recognition effect is not good in some specific real scenes. However, the two-stage action recognition method in low-light scenes introduces additional computational consumption. Some use offline training of illumination enhancement models, adjust the illumination and then perform behavior classification, which cannot be end-to-end, and the existing one-stage method is not lightweight enough. In view of the above problems, the present invention provides a video restoration and human behavior recognition solution based on low-light scenes from the perspective of image enhancement and behavior analysis, which solves the problems of low recognition accuracy and low reasoning efficiency of existing methods. The present invention first performs data preprocessing and model weight preloading, and then reads the video input for adaptive illumination processing. In the enhancement process, two-way processing is performed. The local branch uses IAT-Transformer to generate 3-channel illumination enhancement matrix parameters and bias matrix parameters to enhance the image frame; the global branch generates color correction matrix parameters and gamma parameters through the Transformer encoder to correct the image frame; finally, the IAT-Transformer and MViT v2 backbone network are integrated for action recognition to realize the overall single-step model. The present invention reduces the amount of parameters and calculations, improves the accuracy of action recognition in a low-light environment, has good robustness, and optimizes reasoning efficiency.

[0037] The video restoration and human behavior recognition scheme in low-light environments proposed by the present invention may include model initialization and pre-training weight loading, video data preprocessing, video spatial domain compression, video brightness enhancement, and action classification process. It is suitable for scenes with weak light intensity or dark light, such as outdoor at night, mines, and low-light indoor scenes. The present invention has a high accuracy rate of action recognition without reducing the efficiency of existing action recognition methods.

[0038] See also Figure 1 , a method for video restoration and human behavior recognition in a low-light environment is proposed in the embodiment,

[0039] First, the input data is compressed to eliminate the redundant information in the original video; then, the input video frame is adjusted for brightness with reference to the zero-sample enhancement model, and finally, the action is classified through the action classifier. The specific process is explained as follows:

[0040] (1) The first step is model initialization. Select a suitable deep learning model architecture for initialization and pre-train it on a large dataset, and load the pre-trained weights into the model architecture.

[0041] This step selects a suitable deep network model architecture and pre-trains the model on a large-scale dataset to obtain pre-trained weights in preparation for subsequent steps.

[0042] The present invention proposes to first select a suitable deep learning model architecture, determine the connection mode between the model and the model and each layer within the model, and initialize the parameters. Furthermore, the present invention preferably recommends selecting IAT-Transformer, and this step uses traditional IAT-Transformer for initialization. The model is pre-trained on large-scale data Kinetics datasets and ImageNet datasets to obtain pre-trained weights to achieve initialization and improve the model's learning ability and generalization ability for specific tasks.

[0043] (2) The second step is data preprocessing. When preprocessing the video collected by the visual sensor, the long video is first cropped and the training data is initially enhanced.

[0044] In this step, the long video clip is cut, pruned and segmented, and preliminary data enhancement is performed on each frame of the resulting short video clip, such as scaling, arbitrary cropping, rotation and other operations.

[0045] The embodiment selects to extract 32 frames from the video clip each time, and extracts one frame every 2 seconds to obtain the video sequence as input. This setting of extracting video frames retains most of the useful information contained in the original video. Not taking frames at intervals will bring a large amount of calculation and high memory usage to the subsequent processing process. Then the resolution size of the input frame is scaled to 224×224.

[0046] (3) The third step is illumination detection and video compression: the pre-processed video data is subjected to illumination detection. If the illumination is insufficient, the video is compressed in the spatial domain to reduce the amount of data and prepare for subsequent illumination enhancement.

[0047] After data preprocessing, the video resolution is adjusted to 224×224, and frame extraction is performed in the time dimension, but these video frame sequences still have redundant information in the spatial domain. In order to reduce this redundant information that is useless for the action recognition task, the present invention proposes to first perform illumination detection on the input video frames, and then perform spatial compression on each sequence that does not meet the illumination requirements, that is, perform spatial domain downsampling on the input video frames, and the formula is as follows:

[0048] I′(x)=βI(x)

[0049] Wherein, I(x) is a video frame after data preprocessing, I′(x) is a video frame after video compression, i.e., spatial domain downsampling, and β represents the scaling factor of spatial domain downsampling.

[0050] like Figure 2As shown in the figure, after the video is compressed in the spatiotemporal domain, the resolution and time dimension of the video sequence are reduced. Regarding the selection of the spatial resolution downsampling scale factor, the present invention has verified through experiments that β = 0.5 can meet the requirements for low-light action recognition tasks, which has a certain positive impact on the recognition accuracy. Different scale factors can be adaptively selected for different tasks.

[0051] (4) The fourth step is brightness enhancement. The present invention uses a brightness enhancement model based on the IAT-Transformer to enhance the brightness of the video, and adjusts and improves the illumination of each frame of the video. The brightness features in the video are learned, and a learnable and trainable color matrix vector is added to participate in the color adjustment of the brightness enhancement. While increasing the brightness, the image color details are maintained as much as possible, making the picture more realistic and undistorted. For each frame after brightness enhancement, frame-level restoration is performed by upsampling the spatial domain to restore it to its original size, and a high-resolution image is reconstructed to provide more accurate data support for subsequent human behavior recognition.

[0052] The present invention is based on the IAT-Transformer and is improved. Three 3×3 convolutional layers are reduced for the local branch, and the feature map iteration operation at the end of the branch is discarded to speed up the reasoning speed. The dual-branch branch is changed to a single branch, and two pixel-level feature map correction parameter matrices are directly output. The two 1×1 convolutional layers at the end of the global branch are removed. The improved enhancement process is as follows: First, the continuous frames obtained after the video compression are divided into two branches, each branch is responsible for extracting features of different levels and sizes, and then they are fused together to enhance the brightness of the video frame.

[0053] That is, the video frames are enhanced by extracting the illumination restoration parameter matrix through multiple groups of 1×1, 3×3, and 5×5 convolution kernels in two ways; in addition, the 3×3 color correction matrix and gamma parameters are extracted through the encoder attention module to correct the enhanced frames. The outputs of the two branches are superimposed and upsampled to restore the enhanced feature map sequence.

[0054] The overall structure of the model provided in the embodiment is as follows Figure 3 shown.

[0055] Local branch: ① First, it passes through a 3×3 convolution layer to capture local features, such as edges and textures. ② Then it passes through two consecutive 1×1, 5×5 and 1×1 convolution layers to capture medium-scale spatial features. ③ Then it passes through a 3×3 convolution layer to generate pixel-level feature map enhancement parameter matrix and bias matrix. ④ At the end of the branch, the enhancement matrix dot multiplication and the addition operation with the bias matrix are integrated into the feature map fusion, and the results of multiple convolution branches are merged so that the network can learn from the features learned by different branches, strengthen the brightness features and suppress other useless information. Among them, ①③④ are improvements.

[0056] Global branch: ① First, it passes through two standard 3×3 convolutional layers to expand the receptive field and capture information from a wider area and large-scale structural features of human targets. ② Then, it is divided into inputting the feature map into the Transformer encoding-decoding layer, and through the self-attention mechanism, it generates the video frame color enhancement matrix and the gamma parameter for brightness transformation. ③ Use the color enhancement matrix to perform color adjustment of the global branch input by dot multiplication operation, and use the gamma parameter to perform brightness adjustment of the global branch input by exponential operation. ④ Finally, the outputs of the two operation branches are fused.

[0057] Fusion of global and local branches. The features extracted by the global branch are combined with the features of the local branch to achieve a more refined and targeted brightness enhancement effect. This network design that combines global and local information preserves details while considering overall visual perception when processing video frames with different brightness areas. Finally, the feature map after brightness enhancement is upsampled to the input size, which is video restoration.

[0058] Note that the above brightness enhancement is only for videos with weak lighting. Videos under normal lighting will be directly input into the action classification network for classification, saving algorithm inference time.

[0059] The specific model working process is as follows:

[0060] aFirst, the low-light continuous frames compressed in the spatial domain are divided into two branches as input to the brightness enhancement model to enhance the frames. The entire brightness enhancement model network is composed of a combination of local branches and global branches: first, the spatial dimension feature extraction is performed through 3×3 convolution in the local branch, and then the dot product and bias pixel-level enhancement parameters of the image frame are obtained through two identical 1×1, 5×5, and 1×1 convolution combination modules. The channel dimension of the output tensor matrix is ​​3, corresponding to three color channels. The obtained dot product matrix is ​​multiplied with the original input, and the bias matrix is ​​added to the original input to obtain the output of the local branch.

[0061] b In the global branch, the color parameters of image correction and the gamma parameters of brightness transformation are obtained through the attention mechanism. First, two 3×3 convolutions are used to reduce the dimension of the input, and then a queue sequence matrix is ​​randomly initialized as the query vector of the Transformer and input into the attention module of the encoder together with the feature vector. Finally, a 10-dimensional parameter vector is output. The first 9 dimensions are 3×3 color correction parameters, which are point multiplied with the original input, and the last dimension is the gamma parameter, which is exponentially operated with the original input. The two are fused to obtain the output of the global branch.

[0062] c Superimpose the outputs of the local branch and the global branch, and obtain the final output by upsampling in the spatial domain.

[0063] (5) The fifth step is action classification. The enhanced video frame sequence is input into the action recognition classifier MViT v2 for action classification.

[0064] In specific implementation, the brightness enhancement model can be inserted into the first stage of classifier network feature extraction to achieve the extraction of multi-scale motion features.

[0065] In the embodiment, the output sequence of the fourth step is input into the action recognition classifier MViT v2 for action classification. The improved enhancement model is inserted between the input and stage 1 of the MViT v2 backbone network structure to enhance the brightness of the input, and then the multi-scale features of the action are extracted.

[0066] Specifically, the output of the fourth step is sent to the MViT v2 base backbone network, and the backbone network structure is as follows: Figure 4 As shown. MViT v2 base is a network structure for video analysis based on the Transformer architecture. The process is as follows: The input sequence ① is first decomposed into a series of image blocks (tokens), which are sent to the hierarchical four-stage Transformer structure. ② The low-stage encoding blocks process smaller image blocks such as stage one and stage two, and the high-stage encoding blocks such as stage three and stage four process the merged larger image blocks. Through the scalable self-attention mechanism, feature information of different scales is fused to enhance the effective capture of multi-scale features of the video, and improve the processing power and efficiency of the algorithm.

[0067] (6) The sixth step is to predict the action classification result and give the recognition accuracy. In the embodiment, the features extracted by the action classifier are input into the classification head of the fully connected layer, and the classification result is output through the full convolution channel.

[0068] Specifically, a fully connected layer classification head is added at the end of the action classification backbone, and the output is 1×1 convolution, and the number of output channels is the total number of action categories. For recognition accuracy, the technical solution of the present invention provides the size of Top-1 and Top-5 accuracy. The Top-1 accuracy counts the number of correct category predictions in all test videos, and then divides it by the total number of test video samples. The Top-5 accuracy counts the number of times the true category appears in the top 5 predicted by the model, divided by the total number of samples.

[0069] The video human behavior recognition device in a low-light environment provided by the present invention is described below. The video human behavior recognition method device in a low-light environment described below and the video human behavior recognition method in a low-light environment described above can correspond to each other.

[0070] Figure 5 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 5 As shown, the electronic device may include: a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other via the communication bus. The processor may call the logic instructions in the memory to execute the method for video human behavior recognition in a low-light environment.

[0071] In addition, the logic instructions in the above-mentioned memory can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0072] On the other hand, the present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the video human behavior recognition method in a low-light environment provided by the above-mentioned methods.

[0073] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the video human behavior recognition method in a low-light environment provided by the above methods.

[0074] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0075] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0076] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for video human behavior recognition in a low-light environment, characterized by: Carry out the following process, Model initialization, including pre-training the deep network model to obtain pre-training weights; Preprocess the video data, including segmenting the video clips and performing preliminary data enhancement on each frame of the clips; Illumination detection and compression, including illumination detection of pre-processed video data, and video compression if the light is insufficient; Use a deep network model to enhance video brightness and adjust and improve the illumination of each frame of the video; The enhanced output sequence is input into the action recognition classifier for action classification; The extracted features are input into the fully connected layer classification head, and the classification results are output through the full convolution channel.

2. The method for video human behavior recognition in a low-light environment according to claim 1, characterized in that: When pre-training the deep network model, the deep network model adopts the traditional IAT-Transformer model.

3. The method for video human behavior recognition in a low-light environment according to claim 1, characterized in that: When video compression is performed on insufficiently illuminated video frames, compression is achieved through downsampling in the spatial domain.

4. The method for video human behavior recognition in a low-light environment according to claim 2, characterized in that: When using a deep network model to enhance video brightness, an improved IAT-Transformer model is used. In the improved IAT-Transformer model, three 3×3 convolutional layers are reduced for the local branch, and the feature map iteration operation at the end of the branch is discarded, the double branch branch is changed to a single branch, and two pixel-level feature map correction parameter matrices are directly output; For the global branch, remove the two 1×1 convolutional layers at the end.

5. The method for video human behavior recognition in a low-light environment according to claim 2, characterized in that: The action recognition classifier is implemented using MViT v2.

6. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the method for recognizing human behavior in a video under a low-light environment as described in any one of claims 1 to 5 is implemented.

7. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for recognizing human behavior in a video under a low-light environment as claimed in any one of claims 1 to 5 is implemented.

8. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the method for recognizing human behavior in a video under a low-light environment as claimed in any one of claims 1 to 5 is implemented.

Citation Information

Patent Citations

  • Human body behavior recognition method based on space and time sequence dual-channel fusion model

    CN116580453A

  • Dark scene-oriented end-to-end multi-task action recognition method and system

    CN117315774A

Cited By

  • Underground coal mine human body action recognition method suitable for edge terminal

    CN116189299A

  • Extremely low light human body posture estimation method based on image frequency division feature enhancement

    CN119540995A