Human body action recognition method based on infrared image

Through the human body movement recognition method based on infrared images, the depth separation convolution module and random forest classifier are used to solve the problem of insufficient recognition accuracy of visible light technology in harsh environments, and efficient and real-time human body movement recognition under infrared images are achieved .

CN119007292APending Publication Date: 2024-11-22NORTHEASTERN UNIV AT QINHUANGDAO

Patent Information

Application Number
CN202411117067.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-15
Publication Date
2024-11-22

AI Technical Summary

Technical Problem

The existing human body motion recognition technology based on visible light is insufficient in recognition accuracy and stability under light changes and inclement weather conditions, making it difficult to meet the needs of real-time motion recognition.

Method used

Using the human body movement recognition method based on infrared images, the infrared image data set is obtained, preprocessing and key point annotation is carried out, and a full convolutional neural network with deep separable convolution module is constructed. Combined with a random forest classifier, infrared human body is extracted and identified. Bone key points, reduce calculation complexity and improve real-time.

Benefits of technology

It improves the accuracy and robustness of infrared human body movement recognition, can stably identify human body movements at night or in severe weather environments, reduces manual labeling errors and calculations, and enhances the generalization ability and real-time nature of the model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119007292A_ABST
    Figure CN119007292A_ABST
Patent Text Reader

Abstract

The invention discloses a human body action recognition method based on an infrared image. The method comprises the following steps: acquiring the infrared image; constructing an infrared image human skeleton key point coordinate data set; constructing an infrared image human skeleton key point extraction network; training an infrared image human skeleton key point extraction network and a random forest classifier based on the infrared image human skeleton key point coordinate data set; and obtaining a to-be-identified infrared image, and performing action classification and prediction on the to-be-identified infrared image based on the infrared image human skeleton key point extraction network and the random forest classifier. Sample labels are generated through Gaussian distribution, relative distances from other key points to the heart are introduced as features, and a full convolutional neural network of a depth separable convolution module is combined, so that the limitation that an existing behavior recognition method only depends on a visible light environment under the dark night or severe weather condition is solved, and the behavior recognition accuracy is improved. And the real-time performance and the accuracy of infrared human body behavior action recognition are remarkably improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of human motion recognition, and in particular to a human motion recognition method based on infrared images. Background Art

[0002] With the expansion of human activities and the increase in security needs, modern surveillance systems are increasingly in need of efficient and reliable human motion recognition technology. Traditional visible light image recognition technology is greatly affected by lighting conditions and the environment, and is easily affected by factors such as lighting changes and shadow interference, which reduces recognition accuracy and stability. In low light or bad weather conditions, the performance of this technology is even more limited and it is difficult to meet the requirements of real-time motion recognition.

[0003] In contrast, infrared image technology can effectively detect and capture the thermal radiation characteristics of the target, and is not restricted by lighting conditions, so it can achieve stable human motion detection and recognition both during the day and at night. This makes the human motion recognition method based on infrared images an ideal choice, especially in complex monitoring environments, such as outdoor nighttime or in severe weather conditions.

[0004] The representative action recognition method based on dynamic skeletons, ST-GCN (Spatiotemporal Graph Convolutional Network model), uses a posture extraction framework to extract the dynamic skeleton features of the human body in the video and inputs them into the back-end convolutional neural network for recognition and classification. However, this method is established in a visible light environment, extracts multi-frame video features for behavior prediction, and the model architecture is relatively complex, and the real-time performance needs to be improved. Existing behavior action recognition methods based on visible light environments do not meet the needs of real-time infrared image human action recognition. Therefore, it is of great significance to design a real-time infrared thermal imaging human action recognition method. Summary of the invention

[0005] The technical problem to be solved by the present invention is to reduce computational complexity and optimize resource utilization, and to perform human behavior action recognition through infrared images.

[0006] To achieve the above object, the present invention provides the following technical solution: a method for human motion recognition based on infrared images, comprising the following steps:

[0007] S1. Obtain infrared image dataset.

[0008] In a laboratory environment, multiple sets of infrared videos were shot using an infrared camera, from which images were captured frame by frame and classified. Then, technical means such as flipping and cropping were used to increase the diversity and richness of the data.

[0009] S2. Preprocess the infrared image dataset and obtain the coordinates of the key points of the human skeleton in the infrared image.

[0010] The process of preprocessing the infrared image data set and obtaining the coordinates of the key points of the human skeleton in the infrared image includes: using opencv to implement key point annotation of the infrared human action image, and using Gaussian distribution to generate sample labels.

[0011] Use opencv to implement key point annotation of infrared human action images, including: using opencv to directly mark the key points of the image and save the marked coordinates in a txt file.

[0012] The sample labels are generated by using Gaussian distribution, including: using Gaussian distribution to generate sample labels in the form of a two-dimensional probability density map, wherein the center point has the highest probability.

[0013] S3. Replace the reference point, clean and calibrate all coordinate data, and obtain the infrared image human skeleton key point data set.

[0014] The heart was replaced as the reference point, and all coordinate data were cleaned and calibrated to ensure the accuracy and consistency of the data. The relative distances from other key points to the heart were calculated, and these distances were used as input data for the subsequent random forest classifier.

[0015] S4. Construct a human skeleton key point extraction network for infrared images.

[0016] The network structure for extracting key points of human skeleton from infrared images is a fully convolutional neural network combined with a depthwise separable convolutional module. The fully convolutional neural network combined with a depthwise separable convolutional module is obtained by sequentially connecting two downsampling convolutional layers, 12 series-connected depthwise separable convolutional layers, and two upsampling deconvolutional layers.

[0017] The L2 loss function (squared error loss function) of the infrared image human posture extraction network training process is defined as follows:

[0018]

[0019] In the above formula, Y i represents the true label, Represents the output of the model, n represents the number of labels in the sample, and the L2 loss function measures the difference between the predicted value and the true value by square error, and imposes a stronger penalty on larger errors, ensuring that the model can fit the data more accurately.

[0020] The training process of the infrared image human posture extraction network uses the AdamW optimizer to optimize the training process. The AdamW optimizer is improved based on the Adam optimizer. It updates parameters by combining weight decay to reduce the risk of model overfitting.

[0021] S5. Based on the infrared image dataset and the infrared human dynamic skeleton feature dataset, an infrared image human skeleton key point extraction network is trained to obtain a trained infrared image human skeleton key point extraction network.

[0022] S6. Train a random forest classifier based on the infrared human dynamic skeleton feature dataset to obtain a trained random forest classifier.

[0023] The specific operation of training a random forest classifier based on the infrared human dynamic skeleton feature dataset is as follows: the infrared image human skeleton key point dataset with the heart as the reference point is used as the input of the random forest classifier.

[0024] The random forest classifier uses cross-validation to adjust hyperparameters to identify actions including standing, walking, squatting, and lying down.

[0025] S7. Obtain an infrared image to be identified, and classify and predict the action of the infrared image to be identified based on the infrared image human skeleton key point extraction network and random forest classifier.

[0026] The classification and prediction of actions of the infrared image to be identified based on the infrared image human skeleton key point extraction network and the random forest classifier further includes: first, using the infrared image human skeleton key point extraction network to extract the coordinates of the human skeleton key points of the infrared image to be identified; then using the coordinates of the human skeleton key points to be identified as the input of the random forest classifier, and using the random forest classifier to classify and predict the actions of the coordinates of the human skeleton key points to be identified.

[0027] Due to the adoption of the above technical solution, the beneficial effects of the present invention are:

[0028] 1. In the present invention, sample labels are generated by Gaussian distribution, which reduces manual labeling errors and improves the accuracy of subsequent skeleton key point extraction and action recognition.

[0029] 2. In the present invention, the heart is used as the reference point of the key points of the human skeleton in infrared images, which ensures the accuracy and consistency of the data and highlights the core role of the heart in data analysis. The relative distances from other key points to the heart are introduced as features, eliminating the influence of image size on the position of key points, allowing the classifier to focus more on identifying the intrinsic features of key points, simplifying the task and improving the accuracy and robustness of classification.

[0030] 3. In the present invention, a human skeleton key point extraction network for infrared images is proposed, which combines a fully convolutional neural network with a deep separable convolution module. The network reduces the amount of computation by using a deep separable convolution module based on the characteristics of single-channel data of infrared images.

[0031] 4. In the present invention, a random forest classifier is used to perform action recognition on a single frame image based on the human skeleton key points extracted from the infrared image. Considering the significance of the skeleton key points relative to the action and the discontinuity of feature extraction in the infrared image, this method not only accurately identifies the actions corresponding to the human skeleton key points, but also improves the real-time performance.

[0032] 5. In the present invention, an infrared thermal imager is used to collect pedestrian image data, which is suitable for severe weather environments such as nighttime darkness, rain and fog, which are detection environments that visible light cameras and ordinary digital night vision devices are not capable of. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 It is the overall flow chart of the present invention;

[0034] Figure 2 A flowchart of obtaining a human skeleton key point data set of infrared images according to the present invention;

[0035] Figure 3 It is a depth separable convolution module in the infrared image human skeleton key point extraction network of the present invention;

[0036] Figure 4 This is a result diagram of the present invention performing action classification and prediction on the infrared image to be recognized. DETAILED DESCRIPTION

[0037] 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.

[0038] The features and performance of the present invention are further described in detail with reference to the embodiments.

[0039] The embodiment of the present invention provides a method for human motion recognition based on infrared images, such as Figure 1 As shown, the following steps are included:

[0040] S1. Obtain infrared image dataset.

[0041] S2. Obtain the coordinates of key points of human skeleton in infrared images.

[0042] S201. Use opencv to directly mark the key points of the image and save the marked coordinates in a txt file.

[0043] S202. Multiply the coordinates of each key point by the image shape, and map the coordinates to a specific position in the image.

[0044] S203. According to the set label size, traverse each coordinate point on the label plane and calculate the Gaussian function value corresponding to the point. Then, these values ​​are normalized to generate a two-dimensional probability density map of labels, the center of which has the highest probability.

[0045] S204. Convert the generated Gaussian labels into integer types and save them in the image to realize the generation of Gaussian label samples.

[0046] S3. Obtain a dataset of key points of human skeleton in infrared images, replace the coordinate reference points, and clean and calibrate all coordinate data to obtain a dataset of key points of human skeleton in infrared images.

[0047] Specifically, the heart was replaced as the reference point, and all coordinate data were cleaned and calibrated to ensure the accuracy and consistency of the data. The relative distances from other key points to the heart were calculated, and these distances were used as input data for the subsequent infrared image human skeleton key point extraction network and random forest classifier. By introducing relative distance as a feature, we successfully eliminated the influence of image size on the key point position, allowing the network model to focus more on identifying the intrinsic features of the key points. This processing strategy not only simplifies the classification task, but also improves the accuracy and robustness of the classification.

[0048] S4. Construct a human skeleton key point extraction network for infrared images.

[0049] Specifically, the network structure for extracting key points of human skeleton in infrared images is a fully convolutional neural network combined with a deep separable convolutional module.

[0050] Depthwise separable convolution Figure 3 As shown in the figure, first there is a 3×3 depthwise convolution, followed by batch normalization and activation function, then a 1×1 pointwise convolution, and then batch normalization and activation function. The activation function uses ReLU, and the mathematical expression is f(x)=max(0,x), where max(0,x) means taking the larger value between the input value x and 0. Depthwise separable convolution consists of depthwise convolution and pointwise convolution. Depthwise convolution is used to extract spatial features, and pointwise convolution is used to extract channel features. First, depthwise convolution is performed on each channel, and then all channels are merged into the output feature map through pointwise convolution, thereby reducing the amount of calculation and improving calculation efficiency.

[0051] The fully convolutional neural network combined with the depthwise separable convolution module is obtained by sequentially connecting two downsampling convolutional layers, 12 serially connected depthwise separable convolutional layers, and two upsampling deconvolutional layers.

[0052] The network training process uses the L2 loss function (squared error loss function) and the AdamW optimizer.

[0053] The L2 loss function is defined as follows:

[0054]

[0055] In the above formula, Y i represents the true label, Represents the output of the model, n represents the number of labels in the sample, and the L2 loss function measures the difference between the predicted value and the true value by square error, and imposes a stronger penalty on larger errors, ensuring that the model can fit the data more accurately.

[0056] The AdamW optimizer first maintains two variables for each parameter. One is the first-order moment estimate of the gradient, and the other is the second-order moment estimate of the gradient, both of which are initialized to zero vectors. For a given loss function, the gradient of the model's parameters to the loss is calculated by backpropagation. This means calculating the partial derivative of each parameter with respect to the loss function. The first-order moment estimate of the gradient and the second-order moment estimate of the gradient are then updated using the exponential moving average method. Finally, the deviations in the initial estimate of the variable are corrected, and the corrected first-order and second-order moment estimates are used to update the model's parameters. The AdamW optimizer can update the model's parameters according to the gradient and improve the model's generalization ability, while combining the characteristics of the AdamW optimizer's adaptive learning rate and momentum.

[0057] S5. Training of infrared image human skeleton key point extraction network: training the infrared image human skeleton key point extraction network based on the infrared image dataset and the infrared human dynamic skeleton key point dataset to obtain the trained infrared image human skeleton key point extraction network.

[0058] The infrared image data set and the infrared human dynamic skeleton key point data set of the present invention are divided into a training set and a verification set with a ratio of 4:1 and one-to-one correspondence. The infrared image data set and the infrared human dynamic skeleton key point data set are used to train an infrared image human skeleton key point extraction network. During the training process of the infrared image human skeleton key point extraction network, the hyperparameters of the infrared image human skeleton key point extraction network are set, including the batch size of the training, the number of training rounds and the initial learning rate. The training set is input into the infrared image human skeleton key point extraction network for training to obtain the trained infrared image human skeleton key point extraction network, and the verification set is used to verify the work to evaluate the model prediction performance. The average precision index AP (average precision) is used to evaluate the accuracy of the test result to determine whether the accuracy of the test result reaches the optimal. If the accuracy of the test result reaches the optimal, the training is stopped to obtain the infrared image human skeleton key point extraction network; if the accuracy of the test result does not reach the optimal, the hyperparameters of the infrared image human skeleton key point extraction network are adjusted until the accuracy of the test result reaches the optimal, the model hyperparameters are obtained, and then the trained infrared image human skeleton key point extraction network is obtained.

[0059] S6. Training of random forest classifier: training a random forest classifier based on an infrared human dynamic skeleton feature dataset to obtain a trained random forest classifier.

[0060] The infrared image human skeleton key point dataset with the heart as the reference point is used as the input of the random forest classifier. The training of the random forest classifier uses cross-validation to adjust the hyperparameters, and the average precision index AP (average precision) is used to evaluate the accuracy of the test results to select the model with the highest accuracy. After training, the average loss of the model drops below 0.05. The selected model is used to identify infrared human body movements.

[0061] S7. Action recognition of infrared images. Obtain the infrared image to be identified, and classify and predict the action of the infrared image to be identified based on the infrared image human skeleton key point extraction network and random forest classifier.

[0062] Get the infrared image to be identified, use the infrared image human skeleton key point extraction network to extract the human skeleton key points of the infrared image, and obtain the coordinate data of the human skeleton key points to be identified. Use the coordinate data of the human skeleton key points to be identified as the input of the random forest classifier, and use the random forest classifier to classify and predict the action of the human skeleton key point coordinate data, such as Figure 4 shown.

[0063] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A method for human motion recognition based on infrared images, characterized in that: The method comprises the following steps: S1. Obtain infrared image dataset; S2. Preprocess the infrared image data set and obtain the coordinates of key points of human skeleton in the infrared image; S3. Replace the reference point, clean and calibrate all coordinate data, and obtain a data set of key points of human skeleton in infrared images; S4. Construct a human skeleton key point extraction network for infrared images; S5. Based on the infrared image dataset and the infrared human dynamic skeleton feature dataset, the infrared image human skeleton key point extraction network is trained to obtain the trained infrared image human skeleton key point extraction network; S6. training a random forest classifier based on the infrared human body dynamic bone feature dataset to obtain a trained random forest classifier; S7. Obtain an infrared image to be identified, and classify and predict the action of the infrared image to be identified based on the infrared image human skeleton key point extraction network and random forest classifier.

2. The method for human motion recognition based on infrared images according to claim 1, characterized in that: The preprocessing in S2 further includes: using opencv to implement key point annotation of infrared human action images, and using Gaussian distribution to generate sample labels. The two-dimensional Gaussian function formula has the following form: G(x,y)=A×exp(-(x-μ x ) 2 / 2σ x 2 -(y-μ y ) 2 / 2σ y 2 ) Among them, (x, y) is the coordinate point on the label plane, A is the Gaussian peak value (i.e., the maximum response value), (μ x ,μ y ) is the desired key point location, σ x and σ y It is the standard deviation that controls the shape of the Gaussian distribution, with the expected maximum response as the center point, generating a two-dimensional normal distribution graph as the label.

3. The method for human motion recognition based on infrared images according to claim 1, characterized in that: The replacement of the reference point in S3 further includes: taking the heart as the reference point, calculating the relative distances from other key points to the heart, and using these distances as input data for a subsequent random forest classifier.

4. The method for human motion recognition based on infrared images according to claim 1, characterized in that: The infrared image human skeleton key point extraction network constructed in S4 further includes a fully convolutional neural network combined with a deep separable convolution module, which is obtained by sequentially connecting two downsampling convolutional layers, 12 serially connected deep separable convolutional layers, and two upsampling deconvolutional layers.

5. A human motion recognition method based on infrared images according to claim 1, characterized in that: The infrared image human skeleton key point extraction network described in S4 uses the L2 loss function, which is defined as follows: In the above formula, Y i Represents the true label, Y represents the output of the model, n represents the number of labels in the sample, and the calculation of L2 loss involves taking the squared difference of each label value and summing them up to get the overall loss value.

6. A method for human motion recognition based on infrared images according to claim 1, characterized in that: The infrared image human skeleton key point extraction network described in S4 uses the AdamW optimizer. The AdamW optimizer is improved based on the Adam optimizer. It updates parameters by combining weight decay to reduce the risk of model overfitting.

7. The method for human motion recognition based on infrared images according to claim 1, characterized in that: The random forest classifier described in S6 used cross-validation to tune hyperparameters.

Citation Information

Patent Citations

  • A human posture recognition method based on depth learning

    CN109086754A

  • A motion capture system and a method thereof are provided

    CN109800645A

  • Multi-feature fusion fatigue monitoring identification method for pole climbing operation

    CN113378702A

  • Equipment control method and device, electronic device and storage medium

    CN113495490A

  • Infrared image tumble detection method based on improved Alpharose

    CN114299050A

Cited By

  • Machining surface plastic deformation measurement method and system based on deep learning

    CN119756210A