A method, device, equipment and medium for employee behavior recognition based on multimodality

The employee behavior recognition method through multi-modal information fusion solves the problem of low accuracy of employee behavior recognition in the existing technology. By acquiring RGB images, posture information and positioning information, using feature extraction and optimization models, the accuracy of behavior recognition is improved. Accuracy.

CN118097782BActive Publication Date: 2024-10-29XIANGJIANG LAB
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410228612.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-02-29
Publication Date
2024-10-29
Estimated Expiration
2044-02-29

AI Technical Summary

Technical Problem

Existing employee behavior recognition technology leads to the problem of low behavior recognition accuracy when processing single employee information.

Method used

Using a multi-modal employee behavior recognition method, by acquiring RGB images, posture information and positioning information, the image feature extraction model, posture information processing model and positioning feature extraction model are used for feature extraction and optimization, and the image features, posture matrix and Locate features, improve model performance, and finally use target detection algorithms for behavior recognition.

Benefits of technology

The accuracy of behavior recognition results is improved. By fusing multiple modal information, comprehensive information fusion features are generated, which enhances the accuracy of behavior recognition.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118097782B_ABST
    Figure CN118097782B_ABST
Patent Text Reader

Abstract

The present application is applicable to the field of behavior recognition technology, and provides a method, device, equipment and medium for employee behavior recognition based on multimodality. The method includes: obtaining the current RGB image, current posture information, and positioning information at T moments; using an image feature extraction model to extract features from the current RGB image to obtain image features; using a posture information processing model to obtain a posture adjacency matrix based on the current posture information; using a positioning feature extraction model to extract features from the positioning information to obtain positioning features; optimizing the three models; using the optimized models to respectively obtain the final image features, final posture adjacency matrix and final positioning features of the employee to be identified; fusing the final image features, final positioning features and final posture adjacency matrix to obtain fused features; using a target detection algorithm to identify the fused features to obtain behavior recognition results. The method of the present application can improve the accuracy of behavior recognition results.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of behavior recognition technology, and in particular to a method, device, equipment and medium for employee behavior recognition based on multimodality. Background Art

[0002] In recent years, production safety has received more and more attention, and more and more behavior recognition technologies have been applied in production to identify employees' behavior and then monitor production safety conditions.

[0003] Behavior recognition studies the movements of targets in videos, such as determining whether a person is walking, jumping, or waving. It has important applications in video surveillance, video recommendation, and human-computer interaction. In recent decades, with the rise of neural networks, many methods have been developed to deal with behavior recognition problems, such as 3D convolutional networks, recurrent neural networks (LSTM, Long Short Term Memory), and graph convolutional networks (GCN, Graph Convolutional Networks). However, when these methods are used to identify employee behaviors, they usually only process a single piece of employee information without considering other information, resulting in low accuracy in employee behavior recognition. Summary of the invention

[0004] The embodiments of the present application provide a method, apparatus, device and medium for employee behavior recognition based on multimodality, which can solve the problem of low accuracy in employee behavior recognition.

[0005] In a first aspect, an embodiment of the present application provides a method for identifying employee behavior based on multimodality, and the method for identifying employee behavior includes:

[0006] Obtain the current RGB images, current posture information, and positioning information of multiple target employees at T moments; the Tth moment is the current moment;

[0007] Use the image feature extraction model to extract features from the current RGB image of each target employee to obtain the image features of the target employee;

[0008] According to the current posture information of each target employee, a posture adjacency matrix of the target employee is obtained by using a posture information processing model; every two key points in the current posture information constitute a key point group, and multiple elements in the posture adjacency matrix correspond one-to-one to multiple key point groups in the current posture information, and each element is used to describe the correlation between the corresponding two key points;

[0009] The positioning feature extraction model is used to extract the features of the positioning information of each target employee at T moments, and the positioning features used to describe the location information of the target employee are obtained;

[0010] The image feature extraction model, the posture information processing model and the positioning feature extraction model are optimized according to the image features, posture adjacency matrix and positioning features of all target employees to obtain an optimized image feature extraction model, an optimized posture information processing model and an optimized positioning feature extraction model;

[0011] The final image features of the employee to be identified are obtained by using the optimized image feature extraction model, the final posture adjacency matrix of the employee to be identified is obtained by using the optimized posture information processing model, and the final positioning features of the employee to be identified are obtained by using the optimized positioning feature extraction model;

[0012] The final image features and the final positioning features of the employee to be identified are fused to obtain the image positioning features of the employee to be identified, and the final posture adjacency matrix and the image positioning features of the employee to be identified are fused to obtain the fused features of the employee to be identified;

[0013] The target detection algorithm is used to identify the fusion features of the employees to be identified, and the behavior recognition results of the employees to be identified are obtained.

[0014] Optionally, according to the current posture information of each target employee, a posture information processing model is used to obtain a posture adjacency matrix of the target employee, including:

[0015] By formula:

[0016] GCN=ReLu(A2(softmax(A1PoseW1)W2))

[0017] T2=A GCN (Pose)

[0018] Calculate the posture adjacency matrix T2 of the target employee;

[0019] Among them, A GCN () represents the weighted average sum of all adjacency matrices in the result of graph convolution operation, GCN represents the result of graph convolution operation, A2 represents the second-layer adjacency matrix obtained after weighted processing of the first-layer adjacency matrix, A1 represents the first-layer adjacency matrix constructed by the topological structure of current posture information, W1 and W2 both represent weight matrices, and Pose represents the current posture information of the target employee.

[0020] Optionally, a positioning feature extraction model is used to extract features from the positioning information of each target employee at T moments to obtain positioning features for describing the location information of the target employee, including:

[0021] By formula:

[0022] T3=Transformer(Position)

[0023] Calculate the positioning feature T3 of the target employee;

[0024] Among them, Position represents the location information of the target employee at T moments.

[0025] Optionally, the image feature extraction model, the posture information processing model and the positioning feature extraction model are optimized according to the image features, posture adjacency matrix and positioning features of all target employees to obtain an optimized image feature extraction model, an optimized posture information processing model and an optimized positioning feature extraction model, including:

[0026] Freeze the parameters of the posture information processing model and the positioning feature extraction model, and optimize the image feature extraction model according to the image features of all target employees to obtain an optimized image feature extraction model;

[0027] Freezing the parameters of the optimized image feature extraction model and the positioning feature extraction model, and optimizing the posture information processing model according to the posture adjacency matrix of all target employee images to obtain an optimized posture information processing model;

[0028] The parameters of the optimized image feature extraction model and the optimized posture information processing model are frozen, and the positioning feature extraction model is optimized according to the positioning features of all target employees to obtain the optimized posture information processing model.

[0029] Optionally, the final image features and the final positioning features of the employee to be identified are fused to obtain the image positioning features of the employee to be identified, including:

[0030] By formula:

[0031] T p =F 1→3 (T'1) ☉T'3

[0032]

[0033]

[0034] Calculate the image location feature T of the employee to be identified p ;

[0035] Among them, T'1 represents the final image feature of the employee to be identified, T'3 represents the final positioning feature of the employee to be identified, represents the downsampled image features obtained by downsampling the final image features, Pool max () indicates the maximum pooling, Pool avg() represents average pooling, W represents the learnable weights for adjusting the global and edge features of the image, ⊙ represents the matrix Hadamard product operation, represents the addition of corresponding elements of the matrix, Represents a function that adjusts the global and edge features of an image.

[0036] Optionally, the final posture adjacency matrix of the employee to be identified and the image positioning features are fused to obtain the fused features of the employee to be identified, including:

[0037] By formula:

[0038] T=C(T p +T c )

[0039]

[0040] Calculate the fusion feature T of the employee to be identified;

[0041] Among them, C() represents the convolution operation, T c Indicates the posture characteristics of the employee to be identified, represents the upsampled posture feature obtained by upsampling the final posture adjacency matrix of the employee to be identified, C 1×1 () represents a 1×1 convolution operation.

[0042] In a second aspect, an embodiment of the present application provides a multimodal employee behavior recognition device, comprising:

[0043] The first acquisition module acquires the current RGB images, current posture information, and positioning information of multiple target employees at T moments; the Tth moment is the current moment;

[0044] The image feature extraction module uses the image feature extraction model to extract features from the current RGB image of each target employee to obtain the image features of the target employee;

[0045] The posture information processing module uses the posture information processing model to obtain the posture adjacency matrix of the target employee according to the current posture information of each target employee; every two key points in the current posture information constitute a key point group, and multiple elements in the posture adjacency matrix correspond to multiple key point groups in the current posture information one by one, and each element is used to describe the correlation between the corresponding two key points;

[0046] The positioning feature extraction module uses the positioning feature extraction model to extract the features of the positioning information of each target employee at T moments, and obtains the positioning features used to describe the location information of the target employee;

[0047] An optimization module optimizes the image feature extraction model, the posture information processing model and the positioning feature extraction model according to the image features, posture adjacency matrix and positioning features of all target employees to obtain an optimized image feature extraction model, an optimized posture information processing model and an optimized positioning feature extraction model;

[0048] The second acquisition module uses the optimized image feature extraction model to obtain the final image features of the employee to be identified, uses the optimized posture information processing model to obtain the final posture adjacency matrix of the employee to be identified, and uses the optimized positioning feature extraction model to obtain the final positioning features of the employee to be identified;

[0049] A fusion module, which fuses the final image features and the final positioning features of the employee to be identified to obtain the image positioning features of the employee to be identified, and fuses the final posture adjacency matrix and the image positioning features of the employee to be identified to obtain the fusion features of the employee to be identified;

[0050] The recognition module uses the target detection algorithm to identify the fusion features of the employee to be identified and obtains the behavior recognition results of the employee to be identified.

[0051] In a third aspect, an embodiment of the present application provides a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned multimodal-based employee behavior recognition method when executing the above-mentioned computer program.

[0052] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the above-mentioned multimodal-based employee behavior recognition method is implemented.

[0053] The above solution of the present application has the following beneficial effects:

[0054] In an embodiment of the present application, by acquiring the current RGB images, current posture information, and positioning information at T moments of multiple target employees, and then using an image feature extraction model to extract features from the current RGB image of each target employee, the image features of the target employees are obtained, and then based on the current posture information of each target employee, the posture adjacency matrix of the target employees is obtained using a posture information processing model, and then the positioning feature extraction model is used to extract features from the positioning information of each target employee at T moments to obtain positioning features for describing the position information of the target employees, and then the image feature extraction model, the posture information processing model, and the positioning feature extraction model are optimized based on the image features, posture adjacency matrices, and positioning features of all target employees to obtain. The optimized image feature extraction model, the optimized posture information processing model and the optimized positioning feature extraction model are then used to obtain the final image features of the employee to be identified, the optimized posture information processing model is used to obtain the final posture adjacency matrix of the employee to be identified, and the optimized positioning feature extraction model is used to obtain the final positioning features of the employee to be identified, and then the final image features and the final positioning features of the employee to be identified are fused to obtain the image positioning features of the employee to be identified, and the final posture adjacency matrix and the image positioning features of the employee to be identified are fused to obtain the fused features of the employee to be identified, and finally the target detection algorithm is used to identify the fused features of the employee to be identified to obtain the behavior recognition result of the employee to be identified. Among them, the image feature extraction model, the posture information processing model and the positioning feature extraction model are optimized according to the image features, posture adjacency matrix and positioning features of all target employees, which can improve the performance of the image feature extraction model, the posture information processing model and the positioning feature extraction model. The fused features obtained by fusing the final image features, the final posture adjacency matrix and the final positioning features contain information of multiple modalities of the employees. Therefore, the information of the fused features is highly comprehensive. Obtaining behavior recognition results based on the fused features with high information comprehensiveness can effectively improve the accuracy of the behavior recognition results.

[0055] Other beneficial effects of the present application will be described in detail in the subsequent specific implementation section. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] In order to more clearly illustrate the technical solutions in the embodiments of the present application, 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 only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0057] Figure 1 A flowchart of a multimodal employee behavior recognition method provided in one embodiment of the present application;

[0058] Figure 2 A specific flow chart of the Transformer operation provided in one embodiment of the present application;

[0059] Figure 3 A specific flowchart of a multimodal employee behavior recognition method provided in an embodiment of the present application;

[0060] Figure 4 A schematic diagram of the structure of a multi-modal employee behavior recognition device provided in one embodiment of the present application;

[0061] Figure 5 A schematic diagram of the structure of a terminal device provided in one embodiment of the present application. DETAILED DESCRIPTION

[0062] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0063] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.

[0064] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0065] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.

[0066] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

[0067] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0068] In order to solve the problem of low accuracy of existing employee behavior recognition, an embodiment of the present application provides an employee behavior recognition method based on multimodality. The employee behavior recognition method obtains the current RGB images, current posture information, and positioning information at T moments of multiple target employees, and then uses an image feature extraction model to extract features from the current RGB image of each target employee to obtain the image features of the target employee. Then, based on the current posture information of each target employee, a posture information processing model is used to obtain the posture adjacency matrix of the target employee. Then, a positioning feature extraction model is used to extract features from the positioning information of each target employee at T moments to obtain positioning features for describing the position information of the target employee. Then, the image feature extraction model, posture adjacency matrix, and positioning features are processed based on the image features, posture adjacency matrix, and positioning features of all target employees. The information processing model and the positioning feature extraction model are optimized to obtain an optimized image feature extraction model, an optimized posture information processing model and an optimized positioning feature extraction model. Then, the optimized image feature extraction model is used to obtain the final image features of the employee to be identified. The optimized posture information processing model is used to obtain the final posture adjacency matrix of the employee to be identified. The optimized positioning feature extraction model is used to obtain the final positioning features of the employee to be identified. The final image features and the final positioning features of the employee to be identified are fused to obtain the image positioning features of the employee to be identified. The final posture adjacency matrix and the image positioning features of the employee to be identified are fused to obtain the fused features of the employee to be identified. Finally, the target detection algorithm is used to identify the fused features of the employee to be identified to obtain the behavior recognition result of the employee to be identified. Among them, the image feature extraction model, the posture information processing model and the positioning feature extraction model are optimized according to the image features, posture adjacency matrix and positioning features of all target employees, which can improve the performance of the image feature extraction model, the posture information processing model and the positioning feature extraction model. The fused features obtained by fusing the final image features, the final posture adjacency matrix and the final positioning features contain information of multiple modalities of the employees. Therefore, the information of the fused features is highly comprehensive. Obtaining behavior recognition results based on the fused features with high information comprehensiveness can effectively improve the accuracy of the behavior recognition results.

[0069] Next, an exemplary description is given of the multimodal employee behavior recognition method provided in this application.

[0070] like Figure 1 As shown, the multimodal employee behavior recognition method provided by the present application includes the following steps:

[0071] Step 11, obtaining the current RGB images, current posture information, and positioning information at T moments of multiple target employees.

[0072] The Tth moment is the current moment. For example, if the time starts at 10:00 a.m., it is the first moment. If the time interval is 5 minutes, the data of the target employee at 10:25 needs to be collected, then the sixth moment is the current moment. The target employee is the employee whose RGB image, posture information and positioning information can be collected.

[0073] In some embodiments of the present application, the current RGB image of the target employee can be obtained through a device such as an RGB camera, and the current RGB image of the target employee can be processed using a human key point recognition model, such as a cascaded pyramid network (CPN) to obtain the current posture information of the target employee, and the global positioning system (GPS) can be used to obtain the positioning information of the target employee at T moments.

[0074] Step 12: Use the image feature extraction model to extract features from the current RGB image of each target employee to obtain the image features of the target employee.

[0075] In some embodiments of the present application, the image feature extraction model may be a residual neural network (ResNet), which uses the residual neural network to extract features from the current RBG image of each target employee to obtain the image features of the target employee.

[0076] It is worth mentioning that the image features can describe the information in the current RBG image of the target employee and convert the image into a data form that is convenient for further processing.

[0077] Step 13: According to the current posture information of each target employee, a posture adjacency matrix of the target employee is obtained using a posture information processing model.

[0078] Every two key points in the above current posture information constitute a key point group, and multiple elements in the posture adjacency matrix correspond one-to-one to multiple key point groups in the current posture information, and each element is used to describe the correlation between the corresponding two key points.

[0079] Specifically, through the formula:

[0080] GCN=ReLu(A2(softmax(A1PoseW1)W2))

[0081] T2=A GCN ((Pose)

[0082] Calculate the pose adjacency matrix T2 of the target worker.

[0083] Among them, AGCN () represents the weighted average sum of all adjacency matrices in the result of graph convolution operation, GCN represents the result of graph convolution operation, A2 represents the second-layer adjacency matrix obtained after weighted processing of the first-layer adjacency matrix, A1 represents the first-layer adjacency matrix constructed by the topological structure of current posture information, W1 and W2 both represent weight matrices, and Pose represents the current posture information of the target employee.

[0084] Exemplarily, the posture information processing model may be a network model such as a graph convolutional neural network (GCN), and the posture information processing model may be run using computer software such as Matlab to obtain a posture adjacency matrix of the target employee.

[0085] It can be understood that the above formula for calculating the posture adjacency matrix T2 can be understood as an expression of the posture information processing model.

[0086] It is worth mentioning that the modality of the final processing result obtained by processing the posture information using traditional graph convolutional neural networks and other methods is not convenient for joint processing with image features, but the elements in the posture adjacency matrix obtained during the processing can describe the correlation between the key points in the posture information, and the modality of the posture adjacency matrix is ​​convenient for joint processing with image features.

[0087] Step 14: Use the positioning feature extraction model to extract features from the positioning information of each target employee at T moments to obtain positioning features for describing the location information of the target employee.

[0088] Specifically, through the formula:

[0089] T3=Transformer (Positiom)

[0090] Calculate the positioning feature T3 of the target employee.

[0091] Among them, Position represents the location information of the target employee at T moments.

[0092] Exemplarily, the positioning feature extraction model may be a network model such as a transformer network, and the positioning feature extraction model may be run using computer software such as Matlab to obtain the positioning features of the target employee.

[0093] It can be understood that the above formula for calculating the positioning feature extraction T3 can be understood as an expression of the positioning feature extraction model.

[0094] It is worth mentioning that the positioning features can describe the positioning information of the target employees and convert the positioning information into a data form that is convenient for further processing.

[0095] The steps of obtaining the positioning features are described below with reference to a specific example.

[0096] The Transformer() operation in the above formula for calculating the target employee's location feature T3 is as follows: Figure 2 As shown in the figure, Position represents the positioning information of the target employee at T moments, Encoder represents the encoder, Dncoder represents the decoder, and Bounding represents the bounding box of the target employee.

[0097] Step 15, optimizing the image feature extraction model, the posture information processing model and the positioning feature extraction model according to the image features, posture adjacency matrix and positioning features of all target employees to obtain an optimized image feature extraction model, an optimized posture information processing model and an optimized positioning feature extraction model.

[0098] In some embodiments of the present application, the above steps of optimizing the image feature extraction model, the posture information processing model and the positioning feature extraction model according to the image features, posture adjacency matrix and positioning features of all target employees to obtain the optimized image feature extraction model, the optimized posture information processing model and the optimized positioning feature extraction model are specifically as follows:

[0099] In the first step, the parameters of the posture information processing model and the positioning feature extraction model are frozen, and the image feature extraction model is optimized according to the image features of all target employees to obtain an optimized image feature extraction model.

[0100] In the second step, the parameters of the optimized image feature extraction model and the positioning feature extraction model are frozen, and the posture information processing model is optimized according to the posture adjacency matrix of all target employee images to obtain the optimized posture information processing model.

[0101] The third step is to freeze the parameters of the optimized image feature extraction model and the optimized posture information processing model, and optimize the positioning feature extraction model according to the positioning features of all target employees to obtain the optimized posture information processing model.

[0102] Exemplarily, the parameters of the posture information processing model and the positioning feature extraction model are frozen, and it is determined whether the proportion of image features that meet the expected quality among all target employees' image features is greater than or equal to a preset proportion. If so, the image feature extraction model is used as the optimized image feature extraction model; otherwise, the parameters of the image feature extraction model are adjusted, and the step of using the image feature extraction model to extract features from the current RGB image of each target employee to obtain the image features of the target employee is returned.

[0103] Then, the parameters of the optimized image feature extraction model and the positioning feature extraction model are frozen to determine whether the proportion of posture adjacency matrices of all target employees that meet the expected quality is greater than or equal to the preset proportion. If so, the posture information processing model is used as the optimized posture information processing model. Otherwise, the parameters in the posture information processing model are adjusted, and the step of obtaining the posture adjacency matrix of the target employee using the posture information processing model according to the current posture information of each target employee is returned.

[0104] Finally, the parameters of the optimized image adjustment extraction model and the optimized posture information processing model are frozen to determine whether the proportion of positioning features that meet the expected quality among the positioning features of all target employees is greater than or equal to the preset proportion. If so, the posture information processing model is used as the optimized posture information processing model; otherwise, the parameters of the posture information processing model are adjusted, and the step of using the positioning feature extraction model to extract features from the positioning information of each target employee at T moments is returned to obtain the positioning features used to describe the position information of the target employees.

[0105] It is worth mentioning that using the image features, posture adjacency matrix and positioning features of all target employees to train the three models can enable the models to achieve the expected performance. In addition, using parameter freezing to train the three models can ensure that other models are not affected when training a single model.

[0106] In addition, since the postures and movement trajectories of target employees may have different patterns at different times of the day, the three models are trained using the information of multiple target employees at the current moment to ensure the timeliness of the models.

[0107] Step 16, using the optimized image feature extraction model to obtain the final image features of the employee to be identified, using the optimized posture information processing model to obtain the final posture adjacency matrix of the employee to be identified, and using the optimized positioning feature extraction model to obtain the final positioning features of the employee to be identified.

[0108] The above-mentioned employees to be identified are employees who need to undergo behavioral identification.

[0109] Specifically, the current RGB image of the employee to be identified is processed using the optimized image feature extraction model to obtain the final image features of the employee to be identified, the current posture information of the employee to be identified is processed using the optimized posture information processing model to obtain the final posture adjacency matrix of the employee to be identified, and the positioning information of the employee to be identified at T moments is processed using the optimized positioning feature extraction model to obtain the final positioning features of the employee to be identified.

[0110] Exemplarily, computer software such as Matlab can be used to respectively run the above-mentioned optimized image feature extraction model, optimized posture information processing model, and optimized positioning feature extraction model to obtain the final image features, final posture adjacency matrix, and final positioning features of the employee to be identified.

[0111] It is worth mentioning that the final image features obtained using the optimized image feature extraction model have high accuracy, the final posture adjacency matrix obtained using the optimized posture information processing model has high accuracy, and the final positioning features obtained using the optimized positioning feature extraction model have high accuracy.

[0112] Step 17, fusing the final image features and the final positioning features of the employee to be identified to obtain the image positioning features of the employee to be identified, and fusing the final posture adjacency matrix and the image positioning features of the employee to be identified to obtain the fused features of the employee to be identified.

[0113] In some embodiments of the present application, the steps of fusing the final image features and the final positioning features of the employee to be identified to obtain the image positioning features of the employee to be identified, and fusing the final posture adjacency matrix and the image positioning features of the employee to be identified to obtain the fused features of the employee to be identified are specifically:

[0114] In the first step, the final image features and the final positioning features of the employee to be identified are fused to obtain the image positioning features of the employee to be identified.

[0115] Specifically, through the formula:

[0116] T p =F 1→3 (T'1)⊙T'3

[0117]

[0118]

[0119] Calculate the image location feature T of the employee to be identified p .

[0120] Among them, T'1 represents the final image feature of the employee to be identified, T'3 represents the final positioning feature of the employee to be identified, represents the downsampled image features obtained by downsampling the final image features, Pool max () indicates the maximum pooling, Pool avg () represents average pooling, W represents the learnable weights for adjusting the global and edge features of the image, ⊙ represents the matrix Hadamard product operation, represents the addition of corresponding elements of the matrix, Represents a function that adjusts the global and edge features of an image.

[0121] In the second step, the final posture adjacency matrix of the employee to be identified and the image positioning features are fused to obtain the fused features of the employee to be identified.

[0122] Specifically, through the formula:

[0123] T=C(T p +T c )

[0124]

[0125] Calculate the fusion feature T of the employee to be identified.

[0126] Among them, C() represents the convolution operation, T c Indicates the posture characteristics of the employee to be identified, represents the upsampled posture feature obtained by upsampling the final posture adjacency matrix of the employee to be identified, C 1×1 () represents a 1×1 convolution operation.

[0127] Specifically, the above steps can be executed using computer software such as Matlab and Mathematica to obtain the fusion features of the employees to be identified.

[0128] It should be noted that the fused features obtained by fusing the final image features, the final posture adjacency matrix and the final positioning features contain information of multiple modalities of the employees, so the information of the fused features is highly comprehensive.

[0129] Step 18: Use the target detection algorithm to identify the fusion features of the employee to be identified, and obtain the behavior recognition result of the employee to be identified.

[0130] In some embodiments of the present application, the above-mentioned target detection algorithm can be a target detection network such as a single browse (YOLO, You Only Look Once) network.

[0131] Exemplarily, the YOLO network is used to identify the fused features to obtain the behavior recognition results of the employee to be identified. The information from the final image features in the fused features is the main input source to the YOLO network, and the information from the final posture adjacency matrix and the final positioning features are auxiliary input sources to improve the accuracy of classification and positioning.

[0132] It should be noted that the above behavior recognition results are used to describe the current behavior of the employee to be identified, such as sitting upright, walking, working, etc.

[0133] It is worth mentioning that obtaining behavior recognition results based on fusion features with high information comprehensiveness can effectively improve the accuracy of behavior recognition results.

[0134] The following is an illustrative example of the multimodal employee behavior recognition method of the present application.

[0135] like Figure 3 As shown, the RGB image (i.e., the current RGB image mentioned above) is input into the Resnet network (i.e., the image feature extraction model mentioned above) to obtain image features, the posture graph structure (i.e., the current posture information mentioned above) is input into the GCN network (i.e., the posture information processing model mentioned above) to obtain the posture adjacency matrix, the positioning information is input into the Transformer to obtain the positioning features, the image features, the posture adjacency matrix, and the positioning features are input into the feature fusion module for fusion to obtain the fused features, and the fused features are input into the target detection module to obtain the employee behavior recognition results.

[0136] The following is an exemplary description of the multimodal employee behavior recognition device provided by the present application.

[0137] like Figure 4 As shown, the embodiment of the present application provides a multi-modal employee behavior recognition device, and the multi-modal employee behavior recognition device 400 includes:

[0138] The first acquisition module 401 acquires the current RGB images, current posture information, and positioning information of multiple target employees at T moments; the Tth moment is the current moment;

[0139] The image feature extraction module 402 uses the image feature extraction model to extract features from the current RGB image of each target employee to obtain the image features of the target employee;

[0140] The posture information processing module 403 obtains the posture adjacency matrix of the target employee using the posture information processing model according to the current posture information of each target employee; every two key points in the current posture information constitute a key point group, and multiple elements in the posture adjacency matrix correspond to multiple key point groups in the current posture information one by one, and each element is used to describe the correlation between the corresponding two key points;

[0141] The positioning feature extraction module 404 uses the positioning feature extraction model to extract features from the positioning information of each target employee at T moments to obtain positioning features for describing the position information of the target employee;

[0142] The optimization module 405 optimizes the image feature extraction model, the posture information processing model and the positioning feature extraction model according to the image features, posture adjacency matrix and positioning features of all target employees to obtain an optimized image feature extraction model, an optimized posture information processing model and an optimized positioning feature extraction model;

[0143] The second acquisition module 406 uses the optimized image feature extraction model to obtain the final image features of the employee to be identified, uses the optimized posture information processing model to obtain the final posture adjacency matrix of the employee to be identified, and uses the optimized positioning feature extraction model to obtain the final positioning features of the employee to be identified;

[0144] The fusion module 407 fuses the final image features and the final positioning features of the employee to be identified to obtain the image positioning features of the employee to be identified, and fuses the final posture adjacency matrix and the image positioning features of the employee to be identified to obtain the fusion features of the employee to be identified;

[0145] The identification module 408 uses a target detection algorithm to identify the fusion features of the employee to be identified, and obtains a behavior recognition result of the employee to be identified.

[0146] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.

[0147] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0148] like Figure 5 As shown, an embodiment of the present application provides a terminal device, and the terminal device D10 of this embodiment includes: at least one processor D100 ( Figure 5 Only one processor is shown in the figure), a memory D101, and a computer program D102 stored in the memory D101 and executable on the at least one processor D100, wherein the processor D100 implements the steps of any of the above-mentioned method embodiments when executing the computer program D102.

[0149] Specifically, when the processor D100 executes the computer program D102, the current RGB images, current posture information, and positioning information at T moments of multiple target employees are obtained, and then the image feature extraction model is used to extract features from the current RGB image of each target employee to obtain the image features of the target employee. Then, according to the current posture information of each target employee, the posture adjacency matrix of the target employee is obtained by using the posture information processing model. Then, the positioning feature extraction model is used to extract features from the positioning information of each target employee at T moments to obtain positioning features for describing the position information of the target employee. Then, the image feature extraction model, the posture information processing model, and the positioning feature extraction model are used to extract features from the positioning information of each target employee at T moments to obtain positioning features for describing the position information of the target employee. The model is optimized to obtain an optimized image feature extraction model, an optimized posture information processing model and an optimized positioning feature extraction model. The optimized image feature extraction model is then used to obtain the final image features of the employee to be identified. The optimized posture information processing model is used to obtain the final posture adjacency matrix of the employee to be identified. The optimized positioning feature extraction model is used to obtain the final positioning features of the employee to be identified. The final image features and the final positioning features of the employee to be identified are fused to obtain the image positioning features of the employee to be identified. The final posture adjacency matrix and the image positioning features of the employee to be identified are fused to obtain the fused features of the employee to be identified. Finally, the target detection algorithm is used to identify the fused features of the employee to be identified to obtain the behavior recognition result of the employee to be identified. Among them, the image feature extraction model, the posture information processing model and the positioning feature extraction model are optimized according to the image features, posture adjacency matrix and positioning features of all target employees, which can improve the performance of the image feature extraction model, the posture information processing model and the positioning feature extraction model. The fused features obtained by fusing the final image features, the final posture adjacency matrix and the final positioning features contain information of multiple modalities of the employees. Therefore, the information of the fused features is highly comprehensive. Obtaining behavior recognition results based on the fused features with high information comprehensiveness can effectively improve the accuracy of the behavior recognition results.

[0150] The processor D100 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0151] In some embodiments, the memory D101 may be an internal storage unit of the terminal device D10, such as a hard disk or memory of the terminal device D10. In other embodiments, the memory D101 may also be an external storage device of the terminal device D10, such as a plug-in hard disk, a smart memory card (SMC, SmartMedia Card), a secure digital (SD, Secure Digital) card, a flash card (Flash Card), etc. equipped on the terminal device D10. Further, the memory D101 may also include both an internal storage unit of the terminal device D10 and an external storage device. The memory D101 is used to store an operating system, an application program, a boot loader (BootLoader), data and other programs, such as the program code of the computer program, etc. The memory D101 may also be used to temporarily store data that has been output or is to be output.

[0152] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.

[0153] An embodiment of the present application provides a computer program product. When the computer program product runs on a terminal device, the terminal device can implement the steps in the above-mentioned method embodiments when executing the computer program product.

[0154] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device that can carry the computer program code to the multi-modal employee behavior recognition method device / terminal device, recording medium, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.

[0155] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0156] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

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

Claims

1. A multimodal employee behavior recognition method, characterized in that: include: Obtain the current RGB images, current posture information, and positioning information at T moments of multiple target employees; The Tth moment is the current moment; Using an image feature extraction model to extract features from the current RGB image of each target employee to obtain image features of the target employee; According to the current posture information of each target employee, a posture adjacency matrix of the target employee is obtained by using a posture information processing model; Every two key points in the current posture information constitute a key point group, a plurality of elements in the posture adjacency matrix correspond one-to-one to a plurality of key point groups in the current posture information, and each of the elements is used to describe the correlation between the corresponding two key points; Using a positioning feature extraction model to extract features from the positioning information of each target employee at T moments, to obtain positioning features for describing the location information of the target employee; Optimizing the image feature extraction model, the posture information processing model, and the positioning feature extraction model according to the image features, posture adjacency matrix, and positioning features of all target employees to obtain an optimized image feature extraction model, an optimized posture information processing model, and an optimized positioning feature extraction model; Using the optimized image feature extraction model to obtain the final image features of the employee to be identified, using the optimized posture information processing model to obtain the final posture adjacency matrix of the employee to be identified, and using the optimized positioning feature extraction model to obtain the final positioning features of the employee to be identified; The final image feature of the employee to be identified and the final positioning feature are fused to obtain the image positioning feature of the employee to be identified, and the final posture adjacency matrix of the employee to be identified and the image positioning feature are fused to obtain the fused feature of the employee to be identified; The target detection algorithm is used to identify the fusion features of the employee to be identified, and a behavior recognition result of the employee to be identified is obtained.

2. The employee behavior recognition method according to claim 1, characterized in that: The step of obtaining the posture adjacency matrix of the target employees by using the posture information processing model according to the current posture information of each target employee includes: By formula: GCN=ReLu(A2(softmax(A1PoseW1)W2)) T2=A GCN (Pose) Calculate the posture adjacency matrix T2 of the target employee; Among them, A GCN () represents the weighted average sum of all adjacency matrices in the result of the graph convolution operation, GCN represents the result of the graph convolution operation, A2 represents the second-layer adjacency matrix obtained after weighted processing of the first-layer adjacency matrix, A1 represents the first-layer adjacency matrix constructed by the topological structure of the current posture information, W1 and W2 both represent weight matrices, and Pose represents the current posture information of the target employee.

3. The employee behavior recognition method according to claim 1, characterized in that: The method of using the positioning feature extraction model to extract features from the positioning information of each target employee at T moments to obtain positioning features for describing the location information of the target employee includes: By formula: T3=Transformer(Position) Calculate the positioning feature T3 of the target employee; Wherein, Position represents the location information of the target employee at T moments.

4. The employee behavior recognition method according to claim 1, characterized in that: The image feature extraction model, the posture information processing model and the positioning feature extraction model are optimized according to the image features, posture adjacency matrix and positioning features of all target employees to obtain an optimized image feature extraction model, an optimized posture information processing model and an optimized positioning feature extraction model, including: Freezing the parameters of the posture information processing model and the positioning feature extraction model, and optimizing the image feature extraction model according to the image features of all target employees to obtain an optimized image feature extraction model; Freezing the parameters of the optimized image feature extraction model and the positioning feature extraction model, and optimizing the posture information processing model according to the posture adjacency matrix of all target employee images to obtain an optimized posture information processing model; The parameters of the optimized image feature extraction model and the optimized posture information processing model are frozen, and the positioning feature extraction model is optimized according to the positioning features of all target employees to obtain the optimized posture information processing model.

5. The employee behavior recognition method according to claim 1, characterized in that: The step of fusing the final image feature of the employee to be identified and the final positioning feature to obtain the image positioning feature of the employee to be identified includes: By formula: T p =F 1→3 (T′1)⊙T′3 Calculate the image positioning feature T of the employee to be identified p ; Wherein, T'1 represents the final image feature of the employee to be identified, T'3 represents the final positioning feature of the employee to be identified, represents the downsampled image feature obtained by downsampling the final image feature, Pool max () indicates the maximum pooling, Pool avg () represents average pooling, W represents the learnable weights for adjusting the global and edge features of the image, ⊙ represents the matrix Hadamard product operation, represents the addition of corresponding elements of the matrix, Represents a function that adjusts the global and edge features of an image.

6. The employee behavior recognition method according to claim 5, characterized in that: The step of fusing the final posture adjacency matrix of the employee to be identified and the image positioning features to obtain the fused features of the employee to be identified includes: By formula: T=C(T p +T c ) Calculating the fusion feature T of the employee to be identified; Among them, V() represents the convolution operation, T c represents the posture feature of the employee to be identified, represents the upsampled posture feature obtained by upsampling the final posture adjacency matrix of the employee to be identified, C 1×1 () represents a 1×1 convolution operation.

7. A multimodal employee behavior recognition device, characterized in that: include: The first acquisition module acquires the current RGB images, current posture information, and positioning information of multiple target employees at T moments; the Tth moment is the current moment; An image feature extraction module uses an image feature extraction model to extract features from the current RGB image of each target employee to obtain image features of the target employee; A posture information processing module, which uses a posture information processing model to obtain a posture adjacency matrix of each target employee according to the current posture information of each target employee; Every two key points in the current posture information constitute a key point group, a plurality of elements in the posture adjacency matrix correspond one-to-one to a plurality of key point groups in the current posture information, and each of the elements is used to describe the correlation between the corresponding two key points; A positioning feature extraction module, which uses a positioning feature extraction model to extract features from the positioning information of each target employee at T moments to obtain positioning features for describing the position information of the target employee; An optimization module optimizes the image feature extraction model, the posture information processing model and the positioning feature extraction model according to the image features, posture adjacency matrix and positioning features of all target employees to obtain an optimized image feature extraction model, an optimized posture information processing model and an optimized positioning feature extraction model; The second acquisition module uses the optimized image feature extraction model to obtain the final image features of the employee to be identified, uses the optimized posture information processing model to obtain the final posture adjacency matrix of the employee to be identified, and uses the optimized positioning feature extraction model to obtain the final positioning features of the employee to be identified; A fusion module, which fuses the final image features of the employee to be identified and the final positioning features to obtain the image positioning features of the employee to be identified, and fuses the final posture adjacency matrix of the employee to be identified and the image positioning features to obtain the fusion features of the employee to be identified; The recognition module uses a target detection algorithm to recognize the fusion features of the employee to be recognized, and obtains a behavior recognition result of the employee to be recognized.

8. A terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the multimodal employee behavior recognition method according to any one of claims 1 to 6 is implemented.

9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the multimodal-based employee behavior recognition method according to any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Behavior recognition method and system based on artificial intelligence

    CN117152670A

  • Dangerous driving action identification method

    CN117292363A