Action recognition model training method and device, action recognition method and device, equipment and medium
By extracting the two-dimensional pixel coordinates of the joint points of high-altitude workers to determine the three-dimensional space coordinates and training the action recognition model, the problem of low efficiency and accuracy of action recognition for high-altitude power grid workers in the existing technology is solved, and the movement of high-altitude workers on the power grid is realized. Accurate identification and intelligent security management.
Patent Information
- Application Number
- CN202410636469.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-22
- Publication Date
- 2024-08-27
AI Technical Summary
Existing human action recognition methods have low recognition efficiency and accuracy in high-altitude power grid work scenarios. In particular, methods based on deep learning have problems such as high computational cost, large amount of spatiotemporal decomposition network parameters, and poor long-term sequence video data processing.
By obtaining sample images of high-altitude workers, the attitude estimation network is used to extract the two-dimensional pixel coordinates of joint points, determine the three-dimensional spatial coordinates of joint points, and train an action recognition model based on the long-term memory network to achieve accurate recognition of the actions of high-altitude workers in the power grid.
It improves the efficiency and accuracy of action recognition for high-altitude workers, realizes automation and intelligence of safety management, and adapts to the needs of the high-altitude working environment of the power grid.
Smart Images

Figure CN118553012A
Abstract
Description
Technical Field
[0001] The embodiments of the present disclosure relate to the field of gesture recognition technology, and in particular to a training and recognition method, device, equipment, and medium for a motion recognition model. Background Art
[0002] When working on poles or high-altitude lines, power grid workers at high altitudes may inevitably violate safety regulations or make illegal moves for convenience due to physical reasons or behavioral habits, which can easily lead to loose safety belts or falling off the lines. Therefore, identifying and pre-controlling dangerous actions of power grid workers at high altitudes is an important measure to ensure the personal safety of on-site workers.
[0003] The existing methods of human action recognition mainly include traditional behavior recognition methods and action recognition methods based on deep learning. Traditional behavior recognition methods manually judge the information with extraction value and design feature extraction. Usually, the calculation accuracy is low, the scene application effect is poor, and the time and space complexity during recognition is higher. The action recognition method based on deep learning is the mainstream method of human action recognition at present. The action recognition network based on deep learning mainly includes: 2D-CNN, 3D-CNN and spatiotemporal decomposition network. The 2D-CNN network contains a spatial stream and a temporal stream. The access to the temporal context is very limited, and it is difficult to model actions with a large time span; the 3D-CNN network model has high training complexity and high computational cost, which may lead to poor action recognition effect; the network parameters of the spatiotemporal decomposition network are too many, and the processing effect of long time series video data is poor. Summary of the invention
[0004] The disclosed embodiments provide a method, device, equipment, and medium for training and recognizing an action recognition model, thereby realizing accurate recognition of the actions of workers working at heights in power grids.
[0005] In a first aspect, a method for training an action recognition model is provided, comprising:
[0006] Obtain sample images collected by data acquisition equipment for personnel working at heights;
[0007] Extracting posture features of the aerial worker from the sample image through a posture estimation network, wherein the posture features include two-dimensional pixel coordinates of joint points;
[0008] Determine the three-dimensional spatial coordinates of the joint point according to the two-dimensional pixel coordinates of the joint point;
[0009] The action recognition model is trained according to the three-dimensional spatial coordinates of the joint points.
[0010] In a second aspect, a motion recognition method is provided, comprising:
[0011] Acquire a target image acquired by a data acquisition device;
[0012] Inputting the target image into a target action recognition model, so as to process the target sample image through the action recognition model to obtain an action recognition result in the target sample image;
[0013] Wherein, the target action recognition model is trained by the action recognition model training method described in the first aspect above.
[0014] In a third aspect, a training device for an action recognition model is provided, comprising:
[0015] A sample image acquisition module is used to acquire sample images collected by a data acquisition device for high-altitude workers;
[0016] A posture feature acquisition module, used to extract the posture features of the aerial worker from the sample image through a posture estimation network, wherein the posture features include two-dimensional pixel coordinates of joint points;
[0017] A joint point three-dimensional space coordinate acquisition module, used to determine the joint point three-dimensional space coordinates according to the joint point two-dimensional pixel coordinates;
[0018] The model training module is used to train the action recognition model according to the three-dimensional spatial coordinates of the joint points.
[0019] In a fourth aspect, a motion recognition device is provided, characterized in that it includes:
[0020] A target image acquisition module is used to acquire a target image acquired by a data acquisition device;
[0021] A recognition module, used for inputting the target image into a target action recognition model, so as to process the target sample image through the action recognition model and obtain an action recognition result in the target sample image;
[0022] Wherein, the target action recognition model is trained by the action recognition model training method described in the first aspect above;
[0023] In a fifth aspect, an electronic device is provided, the electronic device comprising:
[0024] one or more processors;
[0025] a storage device for storing one or more programs,
[0026] When the one or more programs are executed by the one or more processors, the one or more processors implement the training method of the action recognition model as described in the first aspect above or the action recognition method as described in the second aspect above.
[0027] In a sixth aspect, a computer-readable storage medium is provided, on which a computer program is stored. When the program is executed by a processor, the training method of the action recognition model as described in the first aspect or the action recognition method as described in the second aspect is implemented.
[0028] In a seventh aspect, a computer program product is provided, the computer program product comprising a computer program, which, when executed by a processor, implements the training method of the action recognition model as described in the first aspect or the action recognition method as described in the second aspect.
[0029] The disclosed embodiment discloses a training and recognition method, device, equipment, and medium for an action recognition model, the method comprising: obtaining a sample image collected by a data acquisition device for a person working at high altitude; extracting the posture features of the person working at high altitude from the sample image through a posture estimation network, wherein the posture features include two-dimensional pixel coordinates of joint points; determining the three-dimensional spatial coordinates of the joint points according to the two-dimensional pixel coordinates of the joint points; and training the action recognition model according to the three-dimensional spatial coordinates of the joint points. This technical solution determines the three-dimensional spatial coordinates of the joint points using the two-dimensional pixel coordinates of the joint points included in the posture features; and trains the action recognition model using the three-dimensional spatial coordinates of the joint points, thereby realizing accurate recognition of the actions of people working at high altitude in power grids, and further realizing the automation and intelligence of safety management.
[0030] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the embodiments of the present disclosure. Other features of the embodiments of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0032] Figure 1 is a flow chart of a method for training an action recognition model provided in the first embodiment of the present disclosure;
[0033] Figure 2 It is a structural diagram of a GRU network provided in Embodiment 1 of the present disclosure;
[0034] Figure 3 It is a schematic diagram of the process of obtaining the posture characteristics of a person working at high altitude by using the OpenPose network provided in the first embodiment of the present disclosure;
[0035] Figure 4 is a schematic diagram of human skeleton feature information provided by Embodiment 1 of the present disclosure;
[0036] Figure 5 is a schematic diagram of an action recognition process provided by the first embodiment of the present disclosure;
[0037] Figure 6 is a flow chart of a motion recognition method provided by Embodiment 2 of the present disclosure;
[0038] Figure 7 It is a structural schematic diagram of a training device for an action recognition model provided in Embodiment 3 of the present disclosure;
[0039] Figure 8 A schematic diagram of the structure of a motion recognition device provided in a fourth embodiment of the present disclosure;
[0040] Fig. 9 It is a structural diagram of an electronic device provided in Embodiment 5 of the present disclosure. DETAILED DESCRIPTION
[0041] In order to enable those skilled in the art to better understand the solutions of the embodiments of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only embodiments of a part of the embodiments of the present disclosure, rather than all of the embodiments. Based on the embodiments in the embodiments of the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the embodiments of the present disclosure.
[0042] It should be noted that the terms "first", "second", etc. in the specification and claims of the embodiments of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product, or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products, or devices.
[0043] Embodiment 1
[0044] Figure 1 This is a flowchart of a method for training a motion recognition model provided in the first embodiment of the present disclosure. This embodiment is applicable to the case of training a motion recognition model. The method can be executed by a training device for a motion recognition model. The training device for a motion recognition model can be implemented in the form of hardware and / or software. The training device for a motion recognition model can be configured in an electronic device, including but not limited to computers, computers, terminals, servers and other devices with data processing capabilities. Figure 1 As shown, the method includes:
[0045] S110, obtaining sample images collected by a data collection device for personnel working at heights.
[0046] In this embodiment, sample images collected by a data acquisition device for high-altitude workers can be obtained, wherein the data acquisition device can be a device for collecting images of high-altitude workers, such as a 2D camera.
[0047] S120. Extracting posture features of the aerial worker from the sample image through a posture estimation network, wherein the posture features include two-dimensional pixel coordinates of joint points.
[0048] Specifically, after obtaining sample images collected for high-altitude workers, the sample images can be input into a posture estimation network, and the posture features of the high-altitude workers are extracted from the sample images through the posture estimation network, wherein the posture estimation network can be used to extract the posture features of the high-altitude workers in the sample images, and the posture estimation network can be an OpenPose network. The OpenPose network is a human posture estimation framework based on deep learning, which can detect key points of the human body in images or videos in real time; the posture features can be the posture features of the high-altitude workers in the sample images, and the posture features can include two-dimensional pixel coordinates of joint points, wherein the two-dimensional pixel coordinates of joint points can be the position coordinates of the human body joint points in the coordinate system of the sample image.
[0049] S130. Determine the three-dimensional spatial coordinates of the joint point according to the two-dimensional pixel coordinates of the joint point.
[0050] In this embodiment, after obtaining the two-dimensional pixel coordinates of the joint points, the three-dimensional spatial coordinates of the joint points are determined according to the two-dimensional pixel coordinates of the joint points, wherein the three-dimensional spatial coordinates of the joint points may be the coordinates of the joint points of the aerial workers in the real world.
[0051] It should be noted that the three-dimensional spatial coordinates of the joint points can be determined based on the time series and the two-dimensional pixel coordinates of the joint points, wherein the time series data can provide coordinate information that changes over time. Exemplarily, the aerial workers are constantly moving in the time series, and the sample images of the aerial workers can be continuously collected through a 2D camera, and the two-dimensional pixel coordinates of the joint points of the aerial workers can be extracted from the sample images using a posture estimation network, and the three-dimensional spatial coordinates of the joint points are calculated by a triangulation method in combination with the parameters and motion information of the 2D camera, wherein the triangulation method is a commonly used technology in computer vision, remote sensing, geographic information systems and other fields, and is used to determine the precise position and distance of a point by measuring two or more observation points at known locations.
[0052] It needs to be explained that the joint parameters of the aerial workers can be identified based on the three-dimensional spatial coordinates of the joint points, and then the movements of the aerial workers can be judged.
[0053] S140, training an action recognition model according to the three-dimensional spatial coordinates of the joint points.
[0054] Specifically, after obtaining the three-dimensional spatial coordinates of the joint points, the three-dimensional spatial coordinates of the joint points can be input into the long short-term memory network, and the human skeleton feature information of the aerial workers can be extracted from the three-dimensional spatial coordinates of the joint points. The human skeleton feature information is used to judge the actions of the aerial workers and train the action recognition model. The human skeleton feature information can be the angle information of each joint of the human body.
[0055] Among them, the Long Short-Term Memory (LSTM) network can be a special type of recurrent neural network, which is designed to solve the gradient vanishing and gradient exploding problems encountered by traditional recurrent neural networks when processing sequence data. The gated recurrent unit (GRU), fully connected layer and soft max function in the LSTM network can be used to realize action classification and recognition. Figure 2 A schematic diagram of the structure of a GRU network provided in this embodiment is shown in FIG. Figure 2 As shown, the GRU network has a gate structure inside: update gate, reset gate, candidate hidden state and finally, the calculation formula of the GRU network model can be expressed as:
[0056]
[0057] Among them, z t represents the update gate, W z can be the weight matrix of the update gate, [h t-1 , x t] can be the concatenation of the previous hidden state and the current input; r t Represents the reset gate, W r It can be the weight matrix of the reset gate, σ represents the sigmoid function, which can adjust the data to a value in the range of 0 to 1; represents the candidate hidden state, * represents element-by-element multiplication, and tanh can be an activation function used to adjust the data to the range of -1 to 1; h t-1 represents the previous hidden state, h t Represents the current final hidden state.
[0058] The fully connected layer can be expressed as:
[0059]
[0060] Where W can be a weight matrix, x n can be the nth input vector of the fully connected layer, b0 can be the bias term, z j is the output of the fully connected layer, and f() is the activation function, which can be ReLU activation function, sigmoid activation function, tanh activation function or other nonlinear activation function. In the fully connected layer, neurons can perform linear transformation on the input vector through the weight matrix, and then perform nonlinear transformation through the nonlinear activation function to output an N-dimensional vector (where N is the number of preset action types).
[0061] Following the above description, the output of the fully connected layer can be used as the input of the soft max function. The soft max function is used to calculate the probability distribution of the output of the fully connected layer corresponding to these N actions, and the action with the largest probability is selected as the action recognition result. The soft max function can be expressed as:
[0062]
[0063] This embodiment provides a method for training a motion recognition model, including: obtaining sample images collected by a data acquisition device for high-altitude workers; extracting posture features of the high-altitude workers from the sample images through a posture estimation network, wherein the posture features include two-dimensional pixel coordinates of joints; determining three-dimensional spatial coordinates of joints based on the two-dimensional pixel coordinates of the joints; and training a motion recognition model based on the three-dimensional spatial coordinates of the joints to better adapt to the high-altitude working environment of the power grid, improve the efficiency and accuracy of motion recognition of high-altitude workers, and further realize the automation and intelligence of safety management.
[0064] Optionally, the pose estimation network is an OpenPose network, and the OpenPose network includes a convolutional neural sub-network, a partial affinity field sub-network, a confidence sub-network, a rescaling sub-network and an even matching sub-network;
[0065] The step of extracting the posture features of the aerial worker from the sample image through a posture estimation network includes:
[0066] a1) extracting visual information of different levels in the sample image through the convolutional neural sub-network;
[0067] Specifically, the sample image can be input into a convolutional neural network sub-network, and the convolutional neural network sub-network can be a VGG network (Visual Geometry Group Network), which is a classic deep learning convolutional neural network architecture. The sample image can be input into the VGG network for pre-training, and the visual information of different levels in the sample image can be obtained through the VGG network, and the visual information can include information such as edges, textures, human joints and shapes.
[0068] b1) inputting the visual information into a partial affinity field sub-network to obtain the joint points of the aerial worker and the connection relationship between the joint points;
[0069] It can be known that the different levels of visual information obtained by the VGG network can be input into the partial affinity field sub-network to obtain the joints of the aerial workers and the connection relationship between the joints. Among them, the Part Affinity Field (PAF) sub-network is the core of the OpenPose network, which can be used to determine the joints, the connection relationship between the joints, and the confidence of the connection relationship between the joints.
[0070] c1) Based on the joints and the connection relationships between the joints, the confidence sub-network is used to select the target joints;
[0071] In this embodiment, the confidence subnetwork may be a network that uses a confidence threshold to perform confidence screening. Specifically, the confidence threshold of the confidence subnetwork may be pre-set, and the confidence subnetwork may be used to screen the human joints and the connection relationship between the joints obtained by the partial affinity field subnetwork to obtain the target joints, wherein the target joints may be joints that meet the confidence requirements.
[0072] d1) Based on the target joint points, the posture features are determined according to a rescaling subnetwork and a pair matching subnetwork, wherein the rescaling subnetwork is used to perform scale transformation and coordinate conversion on the target joint points, and the pair matching subnetwork is used to connect the target joint points according to the connection relationship between the joint points.
[0073] Specifically, the rescaling subnetwork can be used to perform scale transformation and coordinate transformation on the target joint points, wherein the scale transformation can be to perform scale transformation on the target joint points according to the scaling ratio of the sample image, and the coordinate transformation can be to convert the coordinate scale of the target joint points into the coordinate scale of the sample image, thereby obtaining the coordinates of the target joint points in the sample image; the even matching subnetwork is used to connect the target joint points according to the connection relationship between the joint points.
[0074] Continuing with the above description, the coordinate information of the target joint points at the coordinate scale of the sample image and the connection relationship between the target joint points can be obtained through the rescaling subnetwork and the even matching subnetwork.
[0075] Figure 3 A schematic diagram of a process of obtaining posture features of a person working at heights using the OpenPose network provided in this embodiment is shown in FIG. Figure 3 As shown, the input image I is first pre-trained on the convolutional network VGG to generate a set of feature maps F; then F is input into the first stage Φ of the network Φ (1) , this stage predicts a set of PAFL (1) , for each subsequent stage i, the previous stage L (t-1) The PAF of is connected to F and refined to produce L (t) After N levels, we get the final PAF channel set L = L (N) ; Then, F and L are connected and fed into the network ρ to predict the joint point confidence map S; finally, the posture features of the aerial workers are output after rescaling and pair matching.
[0076] As an optional implementation, after obtaining the sample images collected by the data collection device for the aerial workers, the method further includes:
[0077] The sample image is denoised, and the posture category of the aerial work personnel in the sample image is labeled.
[0078] In this embodiment, the sample image can be denoised using a denoising algorithm, which can be a median filter algorithm, a neighborhood average method, or a low-pass filter method, etc. The posture category of the high-altitude worker in the sample image can also be marked, and the posture category of the high-altitude worker can be the posture action of the high-altitude worker, such as: slipping, falling, and / or leaning forward, backward, left or right by a large margin, etc.
[0079] Optionally, the action recognition model may be a long short-term memory network;
[0080] The step of training the action recognition model according to the three-dimensional spatial coordinates of the joint points comprises:
[0081] a2) inputting the three-dimensional spatial coordinates of the joint points into the current long short-term memory network, so as to extract the human skeleton feature information in the three-dimensional spatial coordinates of the joint points through the long short-term memory network, and adjusting the network parameters of the long short-term memory network according to the human skeleton feature information and the posture category of the sample image;
[0082] Specifically, the obtained three-dimensional spatial coordinates of the joint points are input into the current long short-term memory network, and the human skeleton feature information in the three-dimensional spatial coordinates of the joint points is extracted through the long short-term memory network. Figure 4 This is a schematic diagram of human skeleton feature information provided in this embodiment. Figure 4 As shown, θ1 represents the angle between the left upper arm and the upper torso, θ2 represents the angle between the right upper arm and the upper torso, θ3 represents the angle between the left elbow joint, θ4 represents the angle between the right elbow joint, θ5 represents the angle between the left upper limb and the upper torso, θ6 represents the angle between the right upper limb and the upper torso, θ7 represents the angle between the left knee, θ8 represents the angle between the right knee, θ9 represents the upper torso inclination angle (the angle between the torso and the z-axis), θ 10 Represents the inclination angle of the lower body (the angle between line segment ao and the z-axis. Where a is the midpoint of the line connecting the two heel joints, and o is the end point of the hip joint).
[0083] Specifically, after obtaining the human skeleton feature information, the network parameters of the long short-term memory network can be adjusted according to the human skeleton feature information and the posture category of the sample image.
[0084] b2) Repeat the operation of inputting the three-dimensional spatial coordinates of the joint points and adjusting the network parameters until the requirements are met, thereby obtaining a trained action recognition model.
[0085] Continuing with the above description, the process of inputting the three-dimensional spatial coordinates of the joint points into the current long short-term memory network can be repeatedly executed, and the network parameters of the current long short-term memory network can be continuously adjusted until the iterative process meets the requirements, thereby obtaining a trained motion recognition model, wherein the requirements can be conditions for stopping the iterations. Exemplarily, the requirements can include the number of iterations reaching the maximum number of iterations or the loss function of the motion recognition model reaching an expected value, etc.
[0086] Figure 5 A schematic diagram of an action recognition process provided in this embodiment, such as Figure 5 As shown, the image of the high-altitude worker is collected, and the image is preprocessed and annotated. The two-dimensional pixel coordinates of the joints of the human body are extracted through the OpenPose network, and the three-dimensional spatial coordinates of the joints are determined based on the two-dimensional pixel coordinates of the joints. The action recognition classification is performed based on the GRU network to train the model; and the trained action recognition model is used to identify and warn dangerous behaviors in high-altitude operations. This technical solution constructs a dangerous action behavior pre-control model for high-altitude workers in power grids through four aspects: image acquisition, data preprocessing and annotation, action recognition classification, and action evaluation and warning, which further safely protects the personal safety of on-site workers.
[0087] Embodiment 2
[0088] Figure 6 This is a flow chart of a motion recognition method provided in the second embodiment of the present disclosure. This embodiment is applicable to the case of recognizing motions. The method can be performed by a motion recognition device. The motion recognition device can be implemented in the form of hardware and / or software. The motion recognition device can be configured in an electronic device. Figure 6 As shown, the method includes:
[0089] S210, acquiring a target image acquired by a data acquisition device.
[0090] Specifically, a target image of a person working at high altitudes collected by a data collection device may be obtained, wherein the data collection device may be a 2D camera.
[0091] S220. Input the target image into a target action recognition model to process the target sample image through the action recognition model to obtain an action recognition result in the target sample image; wherein the target action recognition model is trained by the training method of the action recognition model described in any embodiment of the present disclosure.
[0092] In this embodiment, the target image can be input into a target action recognition model, and the target sample image can be processed by the action recognition model to obtain the action recognition result in the target sample image; wherein, the target action recognition model can be trained by the training method of the action recognition model described in any embodiment of the present disclosure.
[0093] It should be noted that after obtaining the action recognition result through the target action recognition model, a real-time warning can be made according to the action recognition result. Exemplarily, when the action recognition result of the target action recognition model is a fall, the data can be transmitted to the alarm device, the front-end security personnel and / or the back-end management system through the General Packet Radio Service (GPRS) technology to remind the high-altitude workers and security personnel of the power grid to avoid the occurrence of danger, thereby fully ensuring the safety of the high-altitude workers.
[0094] The present embodiment provides a method for action recognition, comprising: obtaining a target image collected by a data acquisition device; inputting the target image into a target action recognition model, so as to process the target sample image through the action recognition model and obtain an action recognition result in the target sample image; wherein the target action recognition model is trained by the action recognition model training method described in any embodiment of the present disclosure. The present embodiment obtains an action recognition result by inputting the target image into the target action recognition model, thereby realizing accurate prediction of the actions of personnel working at high altitudes in the power grid.
[0095] Embodiment 3
[0096] Figure 7 is a structural diagram of a training device for an action recognition model provided in Embodiment 3 of the present disclosure; Figure 7 As shown, the device includes: a sample image acquisition module 310, a posture feature acquisition module 320, a joint point three-dimensional space coordinate acquisition module 330, and a model training module 340.
[0097] The sample image acquisition module 310 is used to acquire sample images collected by the data acquisition device for the high-altitude workers;
[0098] A posture feature acquisition module 320 is used to extract the posture features of the aerial worker from the sample image through a posture estimation network, wherein the posture features include two-dimensional pixel coordinates of joint points;
[0099] A joint point three-dimensional space coordinate acquisition module 330, used to determine the joint point three-dimensional space coordinate according to the joint point two-dimensional pixel coordinate;
[0100] The model training module 340 is used to train the action recognition model according to the three-dimensional spatial coordinates of the joint points.
[0101] Embodiment 3 of the present disclosure provides a training device for a motion recognition model, which better adapts to the high-altitude working environment of power grids, improves the efficiency and accuracy of motion recognition of high-altitude workers, and further realizes the automation and intelligence of safety management.
[0102] Furthermore, the pose estimation network is an OpenPose network, and the OpenPose network includes a convolutional neural sub-network, a partial affinity field sub-network, a confidence sub-network, a rescaling sub-network, and an even matching sub-network;
[0103] The posture feature acquisition module 320 can also be used for:
[0104] Extracting visual information of different levels in the sample image through the convolutional neural sub-network;
[0105] Inputting the visual information into a partial affinity field sub-network to obtain the joint points of the aerial worker and the connection relationship between the joint points;
[0106] According to the joint points and the connection relationship between the joint points, the confidence sub-network is used to screen the target joint points;
[0107] Based on the target joint points, posture features are determined according to a rescaling subnetwork and an even matching subnetwork, wherein the rescaling subnetwork is used to perform scale transformation and coordinate conversion on the visual information, and the even matching subnetwork is used to connect the visual information according to the connection relationship between the joint points.
[0108] Furthermore, the device also includes:
[0109] The denoising and labeling module is used to denoise the sample image and label the posture category of the high-altitude worker in the sample image.
[0110] Furthermore, the action recognition model is a long short-term memory network;
[0111] The model training module 340 is further used for:
[0112] Inputting the three-dimensional spatial coordinates of the joint points into the current long short-term memory network, so as to extract the human skeleton feature information in the three-dimensional spatial coordinates of the joint points through the long short-term memory network, and adjusting the network parameters of the long short-term memory network according to the human skeleton feature information and the posture category of the sample image;
[0113] The operations of inputting the three-dimensional spatial coordinates of the joint points and adjusting the network parameters are repeatedly performed until the requirements are met, thereby obtaining a trained action recognition model.
[0114] The training device for the action recognition model provided in the embodiments of the present disclosure can execute the training method for the action recognition model provided in any embodiment of the embodiments of the present disclosure, and has the corresponding functional modules and beneficial effects of the execution method.
[0115] Embodiment 4
[0116] Figure 8 A schematic diagram of the structure of a motion recognition device provided in the fourth embodiment of the present disclosure; Figure 8 As shown, the device includes: a target image acquisition module 410 and a recognition module 420.
[0117] Wherein, the target image acquisition module 410 is used to acquire the target image acquired by the data acquisition device;
[0118] The recognition module 420 is used to input the target image into a target action recognition model, so as to process the target sample image through the action recognition model to obtain an action recognition result in the target sample image;
[0119] The target action recognition model is trained by the action recognition model training method described in any embodiment of the present disclosure.
[0120] Embodiment 4 of the present disclosure provides a motion recognition device, which improves the accuracy and efficiency of motion recognition.
[0121] The motion recognition device provided in the embodiments of the present disclosure can execute the motion recognition method provided in any embodiment of the present disclosure, and has the corresponding functional modules and beneficial effects of the execution method.
[0122] Embodiment 5
[0123] Fig. 9 A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the embodiments of the present disclosure described and / or claimed herein.
[0124] like Fig. 9As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0125] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0126] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microprocessors, etc. The processor 11 executes the various methods and processes described above, such as the training method of the action recognition model and the action recognition method.
[0127] In some embodiments, the training method of the action recognition model and the action recognition method can be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the training method of the action recognition model and the action recognition method described above can be executed. Alternatively, in other embodiments, the processor 11 can be configured to execute the training method of the action recognition model and the action recognition method by any other appropriate means (for example, by means of firmware).
[0128] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0129] The computer programs for implementing the methods of the embodiments of the present disclosure may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine as a stand-alone software package and partially on a remote machine, or entirely on a remote machine or server.
[0130] In the context of the disclosed embodiments, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, device, or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0131] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0132] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0133] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0134] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in the embodiments of the present disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions of the embodiments of the present disclosure can be achieved, and this document does not limit this.
[0135] The above specific implementations do not constitute a limitation on the protection scope of the embodiments of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the embodiments of the present disclosure shall be included in the protection scope of the embodiments of the present disclosure.
[0136] The embodiments of the present disclosure also provide a computer program product, including a computer program and / or instructions, which, when executed by a processor, implements the training method of the action recognition model and the action recognition method provided in any embodiment of the present application.
[0137] In the process of implementation, the computer program product can be written in one or more programming languages or a combination thereof to write computer program codes for performing the operation of the disclosed embodiments, the programming languages including object-oriented programming languages, such as Java, Smalltalk, C++, and also including conventional procedural programming languages, such as "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (e.g., using an Internet service provider to connect through the Internet).
[0138] Note that the above are only preferred embodiments of the embodiments of the present disclosure and the technical principles used. Those skilled in the art will understand that the embodiments of the present disclosure are not limited to the specific embodiments herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the protection scope of the embodiments of the present disclosure. Therefore, although the embodiments of the present disclosure are described in more detail through the above embodiments, the embodiments of the present disclosure are not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the embodiments of the present disclosure, and the scope of the embodiments of the present disclosure is determined by the scope of the attached claims.
Claims
1. A method for training an action recognition model, characterized in that: include: Obtain sample images collected by data acquisition equipment for personnel working at heights; Extracting posture features of the aerial worker from the sample image through a posture estimation network, wherein the posture features include two-dimensional pixel coordinates of joint points; Determine the three-dimensional spatial coordinates of the joint point according to the two-dimensional pixel coordinates of the joint point; The action recognition model is trained according to the three-dimensional spatial coordinates of the joint points.
2. The method according to claim 1, characterized in that The pose estimation network is an OpenPose network, which includes a convolutional neural sub-network, a partial affinity field sub-network, a confidence sub-network, a rescaling sub-network and an even matching sub-network; The step of extracting the posture features of the aerial worker from the sample image through a posture estimation network includes: Extracting visual information of different levels in the sample image through the convolutional neural sub-network; Inputting the visual information into a partial affinity field sub-network to obtain the joint points of the aerial worker and the connection relationship between the joint points; According to the joint points and the connection relationship between the joint points, the confidence sub-network is used to screen the target joint points; Based on the target joint points, posture features are determined according to a rescaling subnetwork and a pair matching subnetwork, wherein the rescaling subnetwork is used to perform scale transformation and coordinate conversion on the target joint points, and the pair matching subnetwork is used to connect the target joint points according to the connection relationship between the joint points.
3. The method according to claim 1, characterized in that: After obtaining the sample images collected by the data collection device for the high-altitude workers, the method further includes: The sample image is denoised, and the posture category of the aerial work personnel in the sample image is labeled.
4. The method according to claim 3, characterized in that The action recognition model is a long short-term memory network; The step of training the action recognition model according to the three-dimensional spatial coordinates of the joint points comprises: Inputting the three-dimensional spatial coordinates of the joint points into the current long short-term memory network, so as to extract the human skeleton feature information in the three-dimensional spatial coordinates of the joint points through the long short-term memory network, and adjusting the network parameters of the long short-term memory network according to the human skeleton feature information and the posture category of the sample image; The operations of inputting the three-dimensional spatial coordinates of the joint points and adjusting the network parameters are repeatedly performed until the requirements are met, thereby obtaining a trained action recognition model.
5. A method for motion recognition, characterized in that: include: Acquire a target image acquired by a data acquisition device; Inputting the target image into a target action recognition model, so as to process the target sample image through the action recognition model to obtain an action recognition result in the target sample image; Wherein, the target action recognition model is trained by the action recognition model training method described in any one of claims 1-4.
6. A training device for an action recognition model, characterized in that: include: A sample image acquisition module is used to acquire sample images collected by a data acquisition device for high-altitude workers; A posture feature acquisition module, used to extract the posture features of the aerial worker from the sample image through a posture estimation network, wherein the posture features include two-dimensional pixel coordinates of joint points; A joint point three-dimensional space coordinate acquisition module, used to determine the joint point three-dimensional space coordinates according to the joint point two-dimensional pixel coordinates; The model training module is used to train the action recognition model according to the three-dimensional spatial coordinates of the joint points.
7. A motion recognition device, characterized in that: include: A target image acquisition module is used to acquire a target image acquired by a data acquisition device; A recognition module, used for inputting the target image into a target action recognition model, so as to process the target sample image through the action recognition model and obtain an action recognition result in the target sample image; Wherein, the target action recognition model is trained by the action recognition model training method described in any one of claims 1-4.
8. An electronic device, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the training method of the action recognition model as described in any one of claims 1 to 4 or the action recognition method as described in claim 5.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, it implements the training method of the action recognition model as described in any one of claims 1 to 4 or the action recognition method as described in claim 5.
10. A computer program product, characterized in that The computer program product comprises a computer program, which, when executed by a processor, implements the training method for the action recognition model as described in any one of claims 1 to 4 or the action recognition method as described in claim 5.
Citation Information
Patent Citations
Online action detection using recurrent neural network
CN107273782A
Human motion posture recognition and evaluation method and system
CN111401270A
Human body action recognition method and device, equipment and storage medium
CN114093024A
Method for identifying postures and behaviors of substation operation and maintenance personnel and postures of tools
CN116129467A
Body pose recognition method, system, and apparatus, and storage medium
WO2021051579A1
Cited By
Multi-person motion quality evaluation based on contrast regression
CN119580348A
