A human body key point detection method, system and device based on cloud-edge-end collaboration

By deploying human body key point detection algorithms on edge devices, combined with cloud and edge computing, it solves the accuracy and efficiency problems of identifying and monitoring worker movements and postures in complex industrial environments in the existing technology, and realizes the monitoring of industrial workers. Real-time and accurate monitoring improves the efficiency and accuracy of industrial safety management.

CN118552986BActive Publication Date: 2024-10-25HANGZHOU DIANZI UNIV
View PDF 10 Cites 0 Cited by

Patent Information

Application Number
CN202411027900.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-30
Publication Date
2024-10-25
Estimated Expiration
2044-07-30

AI Technical Summary

Technical Problem

Existing human body key point detection technology is difficult to accurately identify and monitor workers' movements and postures in complex industrial environments, especially in chemical factory scenes with high safety requirements, high temperature and complex light conditions, and traditional system calculations Insufficient resources lead to inefficiencies and delays in data transfer.

Method used

Adopting a human body key point detection method based on cloud-edge-device collaboration, by deploying key point detection algorithms on edge devices, combined with modular integration of algorithms on device terminals, edge sides, and cloud centers, real-time identification and detection are performed, including video data collection, Format conversion, target detection and feature extraction, utilizing pre-built pose estimation models for key point prediction.

Benefits of technology

It achieves real-time and accurate monitoring of industrial workers, improves detection efficiency and accuracy, reduces data transmission delays, is suitable for industrial production and safety management fields, and improves the efficiency and level of industrial safety management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118552986B_ABST
    Figure CN118552986B_ABST
Patent Text Reader

Abstract

The present invention discloses a method, system and device for detecting key points of a human body based on cloud-edge-end collaboration. The method first collects original video data and stores it as local video data, and performs format conversion and preprocessing to obtain scene video data. Secondly, feature extraction is performed on the scene video data through a target detection model and a feature extraction model to obtain human feature data. Finally, key point prediction is performed on the human feature data through a pre-built posture estimation model to obtain human key point information and complete human key point detection. The present invention can effectively solve the problems existing in the prior art in the field of safety monitoring of industrial workers, has the advantages of high real-time performance, high precision and high efficiency, and can be widely used in the fields of industrial production and safety management.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of computer technology, and in particular, relates to a method, system and device for detecting key points of a human body based on cloud-edge-end collaboration. Background Art

[0002] With the rapid development of industrialization and informatization, production safety has become an important issue of concern to all industries. In many industrial production scenarios, especially in the chemical, construction, and electric power industries, the behavior recognition and safety control of operators are particularly important. Traditional production safety management methods often rely on manual inspections and manual data entry, which are inefficient and prone to omissions and misjudgments, and cannot meet the safety management needs of modern production environments. In this context, human key point detection technology has become one of the important tools for industrial safety monitoring.

[0003] However, existing human key point detection technology does not perform well in complex industrial environments, especially in scenes with high safety requirements, high temperature and complex lighting conditions such as chemical plants. The variability of workers' protective equipment, working environment and working movements will affect the accuracy of key point detection, resulting in the inability to accurately identify and monitor workers' actual movements and postures. In addition, the traditional human key point detection system not only takes a lot of time to input all algorithms and models into the computer, but also for some small factories, the installation and purchase of graphics cards, as well as the subsequent environmental configuration and program debugging are also not small problems. It is easy to have problems with insufficient computing resources and data transmission delays, making it impossible to discover and deal with safety hazards in a timely manner. Summary of the invention

[0004] The present invention aims to make full use of the advantages of edge computing technology through a human key point detection method, system and device based on cloud-edge-end collaboration, and to simplify hardware equipment by deploying key point detection algorithms on edge devices, so as to achieve real-time monitoring and analysis of the postures and movements of industrial workers. Moreover, based on the modular integration of algorithms on the device terminal side, edge side and central cloud side, it can accurately perform real-time recognition and detection, improve detection efficiency and detection accuracy, and has good universality for the application environment in the global scenario within the industry, so as to achieve real-time and accurate monitoring of industrial workers and improve the efficiency and level of industrial safety management.

[0005] A human key point detection method based on cloud-edge-end collaboration, comprising:

[0006] S1, collects original video data OriginData through the device end.

[0007] S2, storing the original video data OriginData as local video data LocalData, and performing format conversion and preprocessing on the local video data to obtain scene video data SceneData.

[0008] S3, on the edge side, extract features from the scene video data SceneData through a target detection model and a feature extraction model to obtain body feature data BodyFeatureData.

[0009] S4, on the cloud center side, through the pre-built posture estimation model, the key points of the human feature data BodyFeatureData are predicted to obtain the human key point information KeypointsData, and the human key point detection is completed.

[0010] In one embodiment, the format conversion and preprocessing of the local video data LocalData includes: noise removal, size adjustment and normalization.

[0011] The method for removing noise is median filtering, and the median filtering algorithm med formula is as follows:

[0012] g(x,y)=med{f(xm,yn),(m,n∈W)}

[0013] Among them, f(x, y) is the original image, g(x, y) is the image after filtering and denoising, W is the two-dimensional template, and m, n are the elements in W.

[0014] The sizing formula is as follows:

[0015]

[0016] Among them, W original is the original width of the image, H original is the initial height of the image, H target is the target height, W new It is a new height achieved.

[0017] In one embodiment, extracting features from the scene video data includes:

[0018] The target detection model (Cascade R-CNN) is used to detect the person in the scene video data to obtain the human bounding box information BoundingBox.

[0019] Through the feature extraction model (PCT-Backbone), feature extraction is performed within the human body boundary box to obtain human body feature data BodyFeatureData.

[0020] In one embodiment, the specific implementation process of the target detection model includes:

[0021] The image data in the scene video data is input into the backbone network to obtain a feature map. The backbone network is composed of ResNeXt101 (64x4d), and its main structure is mainly composed of an input layer, a convolution layer, a maximum pooling layer, a grouped convolution module layer, a global average pooling layer and a fully connected layer in sequence.

[0022] The feature map obtained by the skeleton network is input into the Feature Pyramid Network to obtain a multi-scale feature pyramid. The Feature Pyramid Network adjusts the number of channels by multiple 1x1 convolutional layers, then smoothes through a 3x3 convolutional layer, and finally constructs a multi-scale feature pyramid using upsampling and element addition operations.

[0023] The obtained multi-scale feature pyramid is input into the Region Proposal Network. First, a 3×3 convolution layer is used to extract features. Then, a classification layer and a regression layer are used to predict the object probability and bounding box coordinates of the anchor box respectively to obtain the bounding box information. The classification branch is used to predict targets and non-targets. The formula is as follows:

[0024] p=σ(W p *F)

[0025] The regression branch is used to predict the bounding box coordinates, and the formula is as follows:

[0026] t=W t *F

[0027] Among them, σ is the activation function, W p and W t are the weights of classification and regression tasks respectively, and F is the feature map;

[0028] Finally, the bounding box information is further fine-tuned through the Region of Interest Heads to obtain more accurate bounding box information. The Region of Interest Head is mainly composed of a Region of Interest Pooling (ROIPooling) layer for feature normalization, followed by multiple fully connected layers for classification and fine-tuning of the bounding box.

[0029] In one embodiment, the specific implementation process of the feature extraction model includes:

[0030] The image data in the scene video data is input into a patch embedding layer to obtain a feature matrix with increased dimension. The patch embedding layer is mainly composed of a convolution layer with a larger convolution kernel and a stride.

[0031] The feature matrix with increased dimension is sequentially input into multiple Swin Transformer layers, and each layer performs self-attention processing and MLP processing to obtain more complex feature data FeatureData1, where the self-attention mechanism in the local window can be expressed as:

[0032]

[0033] Among them, Q, K, and V are query, key, and value matrices respectively. k is the dimension of the key vector.

[0034] The obtained feature data FeatureData1 is input into the downsampling layer (Downsampling), the spatial resolution of the feature map is reduced, and the downsampled feature data FeatureData2 is obtained.

[0035] Finally, the obtained feature data FeatureData2 is input to the output layer (Output) for normalization processing to obtain the final human feature data BodyFeatureData, where the normalization formula is:

[0036]

[0037] Among them, Y is the input feature of the final layer, μ Y and σ Y are the mean and standard deviation of Y respectively.

[0038] In one embodiment, the pre-built posture estimation model includes:

[0039] The human body feature data BodyFeatureData finally outputted from the feature extraction model is inputted into a transition layer (Transition) to convert the dimension and feature space to obtain the dimensionally adjusted image features. The transition layer is mainly composed of a convolution layer, a normalization layer and a ReLU activation layer.

[0040] The obtained dimensionally adjusted image features are input into the classifier head (Classifier Head), and the image features are further extracted and processed through a series of convolutions to obtain high-level features for classification. The ClassifierHead layer includes multiple basic blocks (BasicBlock), each of which is composed of a convolution layer, a normalization layer and a ReLU activation layer in sequence.

[0041] The obtained high-level features for classification are sequentially input into the fully connected block (FCBlock) and the mixing layer (Mixer), and the features are further processed and refined to obtain refined features for classification prediction.

[0042] The obtained refined features for classification prediction are input into the classifier prediction layer (ClassifierPrediction) to perform category prediction to obtain the category label predicted by the model. The classifier prediction layer is mainly composed of a fully connected layer.

[0043] The obtained category label is input into the Tokenizer layer as a posture code to obtain the final human key point information KeypointsData. The Tokenizer layer is composed of an encoder (Encoder), a codebook (Codebook) and a decoder (Decoder) in sequence.

[0044] A human key point detection system based on cloud-edge-end collaboration, including: a device side, an edge side and a central cloud side.

[0045] The device side is used to collect original video data OriginData and send the original video data to the corresponding edge side.

[0046] The edge side is used to store the original video data OriginData as local video data LocalData, and perform format conversion and preprocessing on the local video data to obtain scene video data SceneData.

[0047] The edge side also extracts features from the scene video data SceneData through a target detection model and a feature extraction model to obtain body feature data BodyFeatureData, and sends the body feature data to the central cloud side.

[0048] The central cloud side is used to perform key point prediction on the human feature data sent by each edge side through a posture estimation model to obtain human key point information KeypointsData.

[0049] The central cloud side is also used to convert the scene video data SceneData into scene data TrainData for training, and perform reverse training on the deep learning model according to the scene data TrainData for training.

[0050] A human key point detection device based on cloud-edge-end collaboration, comprising:

[0051] The video acquisition module is used to collect the original video data OriginData through the device end;

[0052] The format conversion and preprocessing module is used to store the original video data OriginData as local video data LocalData through the edge side, and perform format conversion and preprocessing on the local video data to obtain scene video data SceneData.

[0053] The human target detection module is used to perform target detection on the scene video data SceneData through a human target detection model, and output human bounding box information BoundingBox.

[0054] The human body feature extraction module is used to extract features within the human body boundary box through a feature extraction model to obtain human body feature data BodyFeatureData.

[0055] The human body posture estimation module uses a pre-built posture estimation model to perform key point prediction on the human body feature data BodyFeatureData sent by each edge side to obtain the human body key point information KeypointsData.

[0056] The model training module is used to convert the scene video data SceneData into scene data TrainData for training, and reversely train the deep learning model according to the scene data TrainData for training.

[0057] Beneficial effects of the present invention:

[0058] The method, system and device of the present invention can effectively solve the problems existing in the prior art in the field of industrial worker safety monitoring, have the advantages of high real-time performance, high precision and high efficiency, can be widely used in the fields of industrial production and safety management, and have high practical value and promotion prospects. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0060] Figure 1 A flow chart of a method provided by an embodiment of the present invention;

[0061] Figure 2 A system flow chart provided for an embodiment of the present invention;

[0062] Figure 3 A system structure block diagram provided for an embodiment of the present invention;

[0063] Figure 4 A structural block diagram of a device provided in an embodiment of the present invention;

[0064] Figure 5 A schematic diagram of the structure of a computer device provided by an embodiment of the present invention;

[0065] Figure 6 A schematic diagram of the first stage accuracy provided by an embodiment of the present invention;

[0066] Figure 7 A schematic diagram of the second stage accuracy provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0067] The present invention is further described in detail below by specific implementation in conjunction with the accompanying drawings. Obviously, the described embodiments are only a part of embodiments of the present invention, rather than all embodiments. In the following embodiments, many detailed descriptions are for the purpose of enabling the present invention to be better understood. In some cases, some operations related to the present invention are not shown or described in the specification, in order to avoid the core part of the present invention from being overwhelmed by too much description, and for those skilled in the art, it is not necessary to describe these related operations in detail, and they can fully understand the related operations according to the description in the specification and the general technical knowledge in the art.

[0068] In addition, the features, operations or characteristics described in the specification can be combined in any appropriate manner to form various implementation methods. At the same time, the steps or actions in the method description can also be replaced or adjusted in order according to the ability of those skilled in the art. Therefore, the various orders in the specification and the drawings are only for the purpose of clearly describing a certain embodiment and are not meant to be a necessary order, unless otherwise specified that a certain order must be followed.

[0069] Computer vision is a technology that allows computers to "see" and understand the world by analyzing images or videos. This field combines multidisciplinary knowledge such as image processing, machine learning, and artificial intelligence, and performs tasks such as image classification, object recognition, and scene reconstruction by allowing computers to simulate the workings of the human visual system. With the rise of deep learning, especially the application of convolutional neural networks (CNNs), computer vision has made great progress in accuracy and efficiency, and can reach or exceed human performance in some areas. These technologies have been widely used in fields such as autonomous driving, facial recognition, medical image analysis, and security monitoring.

[0070] Embodiment 1:

[0071] Please refer to Figure 1 The embodiment of the present invention provides a human key point detection method based on cloud-edge-end collaboration, which is characterized by comprising:

[0072] Step 101: Collect original video data OriginData through the device side, and send the original video data to the corresponding edge side.

[0073] Specifically, in this embodiment, the device side uses a variety of high-definition network cameras as video acquisition devices. These devices support video recording with a resolution of 1080p and can capture video at a rate of 60 frames per second. The original video data OriginData in the current scene is collected by the camera, and the original video data is the image data of the factory workers when they are actually working. The camera can be set in different scenes of the factory according to the actual operation requirements, and the position and angle of the camera can be adjusted to facilitate the shooting of workers who need to identify and extract key point information. This embodiment also emphasizes the use of advanced image stabilization technology on the device side to reduce jitter during video capture and ensure the quality of the acquired image data. In addition, for different lighting conditions, the camera is also equipped with an automatic light adjustment function to ensure that high-quality video images can still be captured under changing ambient light. The application of these technologies significantly improves the availability of video data and lays a solid foundation for subsequent processing steps. Finally, the captured video data is directly transmitted from the device side to the edge side via an Ethernet cable, and high-speed Ethernet technology (such as 1Gbps or 10Gbps Ethernet) is used to ensure high speed and low latency of data transmission.

[0074] Step 102: The original video data OriginData is stored as local video data LocalData through the edge side, and the local video data is format converted and preprocessed to obtain scene video data SceneData.

[0075] The edge side corresponds to the device side one-to-one and is installed in different application scenarios of the factory according to actual operation requirements. The edge side stores the original video data OriginData sent by the device side as local video data LocalData, and performs format conversion and preprocessing on the local video data according to actual operation requirements. As an optional solution, format conversion includes: converting the video to a common format, such as MP4, AVI, etc., and preprocessing includes: noise removal, resizing and normalization. The noise removal method is median filtering. The median filtering algorithm med formula is as follows:

[0076] g(x,y)=med{f(xm,yn),(m,n∈W)}

[0077] Among them, f(x, y) is the original image, g(x, y) is the image after filtering and denoising, W is the two-dimensional template, and m, n are the elements in W.

[0078] The sizing formula is as follows:

[0079]

[0080] Among them, W original and H original is the initial size of the image, H target is the target height.

[0081] The normalization method is mean-variance normalization, and the formula of mean-variance normalization is as follows:

[0082]

[0083] Among them, x is the initial value, μ is the sample mean, and σ is the standard deviation of the sample. When storing video data, these videos will be labeled and indexed to support fast retrieval and access.

[0084] Step 103: Through the target detection model and feature extraction model deployed on the edge side, feature extraction is performed on the scene video data SceneData to obtain body feature data BodyFeatureData, and the body feature data is sent to the central cloud side.

[0085] The neural network model deployed on the edge side includes a target detection model and a feature extraction model. The step 103 specifically includes: performing target detection on the person in the scene video data SceneData through the target detection model deployed on the edge side to obtain human body bounding box information BoundingBox.

[0086] By using a feature extraction model deployed on the edge side, feature extraction is performed within the human body boundary box to obtain human body feature data BodyFeatureData.

[0087] Specifically, the target detection model deployed on the edge side includes:

[0088] The original image data in the scene video data is input into the backbone network to obtain a feature map.

[0089] The obtained feature map is input into the Feature Pyramid Network to obtain a multi-scale feature pyramid. The specific formula is as follows:

[0090] P l =U(P l+1 )+F l

[0091] Among them, P l is the output feature map of the lth layer, F l It is the feature map directly obtained from the corresponding layer of the skeleton network, and U represents the upsampling operation.

[0092] The obtained multi-scale feature pyramid is input into the region proposal network (Region Proposal Network), and the bounding box information is obtained by using classification and regression, wherein the classification branch is used to predict the target and non-target, and the formula is as follows:

[0093] p=σ(W p *F)

[0094] The regression branch is used to predict the bounding box coordinates, and the formula is as follows:

[0095] t=W t *F

[0096] Among them, σ is the activation function, W p and W t are the weights of classification and regression tasks respectively, and F is the feature map.

[0097] Finally, the bounding box information is further fine-tuned through the Region of Interest Heads to obtain more accurate bounding box information.

[0098] The specific model structure of the target detection model deployed on the edge side includes:

[0099] The Backbone Network is composed of ResNeXt101 (64x4d). 101 represents the network depth of 101 layers, and 64x4d means that there are 64 groups in each building block, and the width of each group is 4 dimensions. The main task of the backbone network is to extract rich feature representations from the input image.

[0100] The Feature Pyramid Network is a network structure for multi-scale object detection. It constructs a pyramid from top to bottom. Each layer reduces the number of channels through 1x1 convolution, and then obtains spatial information through 3x3 convolution to merge high-level features and low-level features from different scales.

[0101] A Region Proposal Network usually consists of a small convolutional network followed by two parallel fully connected layers, one for bounding box regression and one for object and non-object classification.

[0102] The Region of Interest Heads (ROI Heads) usually consists of multiple stages, each of which includes a region of interest pooling (ROIPooling) layer and one or more fully connected layers for classification and bounding box regression, which gradually refines the bounding box of the target and improves the accuracy of detection.

[0103] Specifically, the feature extraction model deployed on the edge side includes:

[0104] The original image data in the scene video data is input into the Patch Embedding layer to obtain a feature matrix with increased dimension;

[0105] The feature matrix with increased dimension is sequentially input into multiple Swin Transformer layers, and each layer performs self-attention processing and MLP processing to obtain more complex feature data FeatureData1, where the self-attention mechanism in the local window can be expressed as:

[0106]

[0107] Among them, Q, K, and V are query, key, and value matrices respectively. k is the dimension of the key vector;

[0108] Input the obtained feature data FeatureData1 to a downsampling layer to reduce the spatial resolution of the feature map, and obtain the downsampled feature data FeatureData2;

[0109] Finally, the obtained feature data FeatureData2 is input to the output layer Output layer for normalization processing to obtain the final human feature data BodyFeatureData, wherein the normalization processing formula is:

[0110]

[0111] Among them, Y is the input feature of the final layer, μ Y and σ Y are the mean and standard deviation of Y respectively.

[0112] The specific model structure of the feature extraction model deployed on the edge side includes:

[0113] The Patch Embedding layer usually consists of a convolutional layer with a large convolution kernel and stride, which is used to divide the input image into multiple small patches and linearly project these small patches into a high-dimensional feature space.

[0114] The Swin Transformer layer is the core of the model and contains multiple Swin Transformer Blocks. The Swin Transformer Blocks specifically include:

[0115] LayerNorm layer normalization is used to normalize input features;

[0116] Window Attention is a self-attention mechanism that only calculates within a local window to improve computational efficiency;

[0117] The MLP consists of two linear layers and one activation layer, using the GELU activation function;

[0118] The entire Swin Transformer layer consists of multiple repeated Swin Transformer Blocks.

[0119] Downsampling, using a linear layer or a simple reordering operation, merges adjacent patches to reduce the spatial dimension of the feature map and increase the number of channels.

[0120] The final Output layer usually includes a normalization layer (such as LayerNorm) to ensure that the output features have an appropriate scale and provide stable input for downstream tasks.

[0121] It is worth noting that both the target detection model and the feature extraction model are trained and converted into deployment formats. Finally, through the edge side, these body feature data BodyFeatureData are encoded into structured data and sent to the central cloud side through a secure transmission protocol (such as TLS) for further analysis and understanding.

[0122] Step 104: On the central cloud side, a pre-built posture estimation model is used to perform key point prediction on the human feature data BodyFeatureData sent by each edge side to obtain human key point information KeypointsData.

[0123] On the central cloud side, the human body feature data BodyFeatureData obtained in step 103 is input into the posture estimation model to obtain human body key point information KeypointsData. Specifically, the pre-built posture estimation model includes:

[0124] The human body feature data BodyFeatureData finally outputted from the feature extraction model is inputted into the Transition layer, and the dimension and feature space are converted to obtain the image features after dimension adjustment.

[0125] The obtained dimensionally adjusted image features are input into the Classifier Head layer, and the image features are further extracted and processed through a series of convolutions to obtain high-level features for classification, where the convolution formula is:

[0126] F out =f(W2*f(W1*Y+b1)+b2)

[0127] Among them, F out is the high-level feature of the output, Y is the dimensionally adjusted image feature of the input, * represents the convolution operation, f is the activation function, W1, W2 and b1, b2 are the weights and bias of the convolution layer respectively.

[0128] The obtained high-level features for classification are sequentially input into the fully connected FCBlock layer and the mixed Mixer layer to further process and refine the features to obtain refined features for classification prediction.

[0129] The obtained refined features for classification prediction are input into the classifier prediction ClassifierPrediction layer to perform category prediction to obtain the category label predicted by the model, wherein the formula for category prediction is:

[0130] p=softmax(W pred F in +bpred )

[0131] Among them, W pred is the weight of the prediction layer, b pred is the weight, F in is the refined feature of the input, and p is the final category probability distribution.

[0132] The obtained category label is input into the Tokenizer layer as the posture code to obtain the final human body key point information KeypointsData.

[0133] The specific model structure of the pre-built posture estimation model includes:

[0134] The Transition layer includes a 1x1 convolution kernel for feature channel conversion, a batch normalization layer for standardization, and a ReLU activation layer for nonlinear activation.

[0135] The Classifier Head layer consists of multiple BasicBlocks, each of which includes two convolutional layers, and each convolutional layer is usually followed by a batch normalization layer and a ReLU activation layer.

[0136] The FCBlock layer mainly includes a fully connected layer, which directly flattens the multi-dimensional input and connects it to the output node;

[0137] The Mixer layer consists of a self-attention layer and a feedforward network layer. The self-attention mechanism allows the model to dynamically allocate attention between different parts of the feature. The feedforward network is a fully connected layer for further processing the output of the self-attention.

[0138] The Classifier Prediction layer uses a fully connected layer to map the feature vector processed by the Mixer layer to the probability distribution of the predicted category.

[0139] The Tokenizer layer includes the encoder layer, the codebook layer and the decoder layer: the Encoder layer consists of a Dropout layer, multiple MixerLayer layers and a LayerNorm layer. Its main function is to extract and transform the input joint point coordinates and features; the Codebook layer consists of an embedding vector layer and an EMA layer. Its main function is to encode the features into discrete vector representations and update the weights of the codebook through the EMA mechanism. The features generated by the Encoder layer will be matched and retrieved with the vectors in the Codebook layer to obtain discrete feature representations; the Decoder layer includes a Linear layer, multiple MixerLayer layers, and a LayerNorm layer. Its main function is to decode the features retrieved from the codebook and restore the original joint point coordinates.

[0140] Similarly, the posture estimation model is also a trained model converted into a deployment format. The obtained human key point information needs to be further processed and saved to facilitate subsequent action recognition, behavior analysis or some data-driven decision-making through the human key point information.

[0141] The embodiment of the present invention not only realizes efficient and accurate human key point detection through the human body key point detection method based on cloud-edge-end collaboration, but also realizes real-time monitoring of the posture and movement of factory workers through the effective combination of cloud-edge-end, and reduces data transmission delay and improves the response speed of the system through rapid data processing and analysis on edge devices, further improving the efficiency and accuracy of industrial safety monitoring. In short, the embodiment of the present invention demonstrates the great potential of using advanced technology to ensure industrial production safety, which is of great significance to improving the safety and efficiency of industrial production.

[0142] Embodiment 2:

[0143] Please refer to Figure 2 Another method for detecting key points of a human body based on cloud-edge-device collaboration provided by an embodiment of the present invention is characterized by comprising:

[0144] Step 201 : collect original video data OriginData through the device side, and send the original video data to the corresponding edge side.

[0145] Specifically, the device side uses a variety of video acquisition devices that support 1080p resolution and 60 frames per second. These cameras are used to capture image data of factory workers during actual work. The captured video data is directly transmitted to the edge side via 1Gbps or 10Gbps Ethernet to ensure transmission speed and low latency. These technologies significantly improve the availability of video data and provide a solid foundation for subsequent processing.

[0146] Step 202: Store the original video data OriginData as local video data LocalData through the edge side, perform format conversion and preprocessing on the local video data to obtain scene video data SceneData, and send the scene video data SceneData to the central cloud side.

[0147] The edge side corresponds to the device side one by one and is installed in different application scenarios of the factory according to actual operation requirements. The edge side stores the original video data OriginData sent by the device side as local video data LocalData, and performs format conversion and preprocessing on the local video data according to actual operation requirements. As an optional solution, format conversion includes: converting the video to a common format such as MP4, AVI, etc., and preprocessing includes: removing noise, resizing, and normalization.

[0148] The scene video data is then subjected to feature extraction through a target detection model and a feature extraction model to obtain human feature data, which is then sent to the central cloud side.

[0149] Step 203, through the central cloud side, the human feature data sent by each edge side is used to predict key points through the posture estimation model to obtain human key point information. Training images are extracted from the scene video data SceneData, and a series of data processing steps are performed on these images, including but not limited to data labeling, data screening, data cleaning, data enhancement and data set division, to obtain scene data TrainData for training.

[0150] After the central cloud receives the scene video data SceneData, it first extracts key frames from the video as training images, and then performs data labeling on the extracted images to mark the locations of key points of the human body. This step usually requires a lot of manual labeling work, and semi-automatic tools can also be used to improve efficiency. The labeled data is then screened and cleaned to remove noise data and erroneous labels to ensure data quality, and then data enhancement is performed, such as rotation, scaling, cropping, color conversion, etc., to increase data diversity and improve the generalization ability of the model. Finally, the processed data is divided into training set, validation set, and test set.

[0151] Step 204, through the central cloud side, according to the scene data TrainData for training, the feature extraction model and the posture estimation model are combined into an overall model for training.

[0152] Using the deep learning framework (PyTorch), the feature extraction model and the posture estimation model are combined into an overall model, and the processed training data is input into the model for training.

[0153] Step 205, in the first stage, the Encoder layer and the Codebook layer in the Tokenizer layer in the posture estimation model are trained to establish a mapping relationship between human body key point information and posture coding.

[0154] The Tokenizer layer includes the Encoder layer, the Codebook layer and the Decoder layer. The Encoder layer consists of a Dropout layer, multiple MixerLayer layers and a LayerNorm layer. Its main function is to extract and transform the input joint point coordinates and features. The Codebook layer consists of an embedding vector layer and an EMA layer. Its main function is to encode the features into discrete vector representations and update the weights of the codebook through the EMA mechanism. The features generated by the Encoder layer will be matched and retrieved with the vectors in the Codebook layer to obtain discrete feature representations. Training the Encoder layer and the Codebook layer of the Tokenizer layer ensures that the model can effectively establish a mapping relationship between the key point information of the human body and the posture encoding.

[0155] Step 206, the second stage, keeping the Tokenizer layer unchanged, training the overall model to obtain an initial model, during the training process, the total loss function is defined by combining the regression loss of the key point position and the classification loss of the key point visibility, using the AdamW optimizer to update the parameters, and using the cosine annealing strategy to adjust the learning rate. The AdamW optimizer includes weight update and weight decay, wherein the weight update formula is:

[0156] m t =β1m t-1 +(1-β1)g t

[0157]

[0158] Among them, m t and v t are estimates of the first and second order moments, g t is the gradient at time t, β1 and β2 are the decay rates, η is the learning rate, and ε is a small constant.

[0159] The formula for weight decay is:

[0160] θ t+1 =θ t+1 -ηλθ t

[0161] Among them, λ is the weight decay coefficient.

[0162] The formula for the cosine annealing learning rate adjustment strategy is:

[0163]

[0164] Among them, η t is the learning rate of the current step t, η min is the minimum value of the learning rate, η max is the maximum value of the learning rate, T cur is the current cycle number, and T is the number of training steps contained in a complete cycle.

[0165] Step 207: Test the initial model using the test set to determine whether the test result meets the preset expected result.

[0166] Use the test set in the scenario data TrainData to comprehensively evaluate the initial model, calculate indicators such as accuracy and recall, and comprehensively evaluate the model performance. Determine whether the model has achieved the preset expected results, such as whether the accuracy exceeds a certain threshold, whether the recall rate meets the standard, etc.

[0167] Step 208: If yes, decompose the initial model into a feature extraction model and a posture estimation model, and deploy them on the edge side and the central cloud side respectively.

[0168] If not, repeat the above steps 201 to 207 until the test result meets the preset expected result.

[0169] In the first stage of training, a total of 150 rounds of training were performed, with evaluation performed every 5 rounds. The evaluation indicator was mAP. Training and testing were performed on a self-made industrial dataset. The trend of the accuracy during model training is shown in the figure below: Figure 6 shown.

[0170] from Figure 6 As can be seen from the results, the model in the first stage can achieve a very high accuracy after sufficient training cycles, with the best accuracy in all rounds being 99.36%, indicating that in the first stage, the model can accurately convert the key point information of the human body into the posture encoding.

[0171] Keep the Tokenizer layer trained in the first stage unchanged and carry out the second stage training. A total of 300 rounds of training are carried out, in which every 5 rounds are evaluated in turn. The evaluation indicator is mAP. Training and testing are carried out on a self-made industrial dataset. The trend of the accuracy rate during model training is as follows: Figure 7 shown.

[0172] from Figure 7It can be seen from the results that the model in the first stage can achieve a high accuracy after sufficient training cycles, with the best accuracy in all rounds being 93.45%, indicating that in the second stage, the model has high recognition accuracy and practicality and can effectively recognize the posture of the human body in complex industrial environments.

[0173] The experimental results of the two phases show that the model achieved a high accuracy on the industrial dataset. This high accuracy indicates that the model can effectively identify and analyze the postures of workers in industrial environments, which has important practical significance for preventing accidents.

[0174] Embodiment three:

[0175] Please refer to Figure 3 An embodiment of the present invention provides a human key point detection system based on cloud-edge-end collaboration, which includes a device side 301, an edge side 302, and a central cloud side 303.

[0176] The device side 301 is used to collect the original video data OriginData and send the original video data to the corresponding edge side. The device side 301 is an image acquisition device. As an optional solution, the image acquisition device is a camera. The device side 301 is installed in different application scenarios of the factory according to actual operation requirements to achieve real-time detection of workers and extraction of key points of the human body.

[0177] The edge side 302 is used to store the original video data OriginData captured by the device side 301 as local video data LocalData, and perform format conversion and preprocessing on the local video data to obtain scene video data SceneData and send it to the central cloud side. Among them, the edge side 302 and the device side 301 correspond one to one, and they are installed in different application scenarios of the factory according to actual operation requirements.

[0178] The edge side 302 has a dedicated hardware system for extracting features from the scene video data SceneData, obtaining body feature data BodyFeatureData, and sending the body feature data to the central cloud side. Regarding the edge side hardware, it should be selected to support the needs of deep learning computing, which may be a processor including a GPU or a dedicated AI processor. Such hardware acceleration can ensure real-time processing of video data while maintaining high-precision feature extraction capabilities.

[0179] The central cloud side 303 is used to receive the human feature data BodyFeatureData sent by the edge side 302 in different scenarios, and then perform key point prediction to obtain human key point information KeypointsData for subsequent action recognition, behavior analysis or some data-driven decisions.

[0180] The central cloud side 303 is also used to convert the scene video data SceneData into scene data TrainData for training, and train the deep learning model according to the scene data TrainData for training.

[0181] The device side 301 and the edge side 302 are communicatively connected, and the edge side 302 and the central cloud side 303 are communicatively connected.

[0182] The system of the embodiment of the present invention collects original video data OriginData through the device side, and sends the original video data to the corresponding edge side; the edge side stores the original video data OriginData as local video data LocalData, performs format conversion and preprocessing, obtains scene video data SceneData and sends it to the central cloud side, the edge side also extracts features from the scene video data to obtain human feature data BodyFeatureData, and sends the human feature data to the central cloud side; the central cloud side performs key point prediction on the human feature data BodyFeatureData sent by each edge side to obtain human key point information KeypointsData, the central cloud side also converts the scene video data SceneData into scene data TrainData for training, and trains the deep learning model according to the scene data TrainData for training.

[0183] The integration of algorithm modules based on the device side, edge side and central cloud side can not only realize real-time monitoring of the posture and movements of factory workers, but also perform rapid data processing and analysis on edge devices, reduce data transmission delays, improve the system's response speed, and further enhance the efficiency and accuracy of industrial safety monitoring.

[0184] Figure 3 The human key point detection system based on cloud-edge-end collaboration shown is also applicable to Figure 1 The human body key point detection method based on cloud-edge-end collaboration will not be elaborated here.

[0185] Embodiment 4:

[0186] The embodiment of the present invention provides a human key point detection device based on cloud-edge-end collaboration, such as Figure 4 As shown, it includes:

[0187] Video acquisition module 401, format conversion and preprocessing module 402, human target detection module 403, human feature extraction module 404, human posture estimation module 405, model training module 406.

[0188] Among them, the video acquisition module 401 is used to acquire the original video data OriginData; the format conversion and preprocessing module 402 is used to store the original video data OriginData as local video data LocalData, and perform format conversion and preprocessing on the local video data; the human target detection module 403 performs target detection on the human video data through the human target detection model deployed on the edge side and trained, and obtains the human bounding box information BoundingBox; the human feature extraction module 404 performs feature extraction in the human bounding box through the human feature extraction model deployed on the edge side and trained, and obtains the human feature data BodyFeatureData; the human posture estimation module 405 performs key point prediction on the human feature data sent by each edge side through the human posture estimation model deployed on the edge side and trained, and obtains the human key point information KeypointsData; the model training module 406 is used to convert the scene video data SceneData into scene data TrainData for training, and train the deep learning model according to the scene data TrainData for training.

[0189] The human body key point detection device based on cloud-edge-end collaboration of this embodiment can accurately detect the human body key points of factory workers in real time, which is convenient for subsequent action recognition, behavior analysis or some data-driven decision-making through human body key point information. This can realize remote monitoring and safety risk warning of the work site, and improve the scientificity and intelligence level of safety production management.

[0190] Embodiment five:

[0191] An embodiment of the present invention provides a computer device, such as Figure 5 As shown, it includes a memory 501 and a processor 502, the memory 501 stores information including program instructions, and the processor 502 is used to read and execute the machine executable instructions stored in the memory to implement the method embodiment shown above. As an embodiment, the memory 501 can be any electronic, magnetic, optical or other physical storage device, which can contain or store information, such as executable instructions, data, etc. For example, the memory can be: a volatile memory, a non-volatile memory or a similar storage medium. Specifically, the memory can be a RAM (Radom Access Memory, random access memory), a flash memory, a storage drive (such as a hard disk drive), a solid state drive, any type of storage disk (such as an optical disk, a DVD, etc.), or a similar storage medium, or a combination thereof.

[0192] The above specific examples are used to illustrate the present invention, which is only used to help understand the present invention and is not intended to limit the present invention. For those skilled in the art, according to the concept of the present invention, some simple deductions, modifications or substitutions can be made.

Claims

1. A human key point detection method based on cloud-edge-device collaboration, characterized in that: The steps include: S1, collects raw video data through the device end; S2, storing the original video data as local video data, and performing format conversion and preprocessing on the local video data to obtain scene video data; S3, on the edge side, extract features from scene video data through the target detection model and feature extraction model to obtain human feature data. The specific implementation process is as follows: S3.1, using the target detection model, perform target detection on the person in the scene video data to obtain human body bounding box information, and the implementation process is as follows: The image data in the scene video data is input into the skeleton network composed of ResNeXt101 to obtain the feature map; Inputting the feature map obtained by the skeleton network into the feature pyramid network to obtain a multi-scale feature pyramid, wherein the feature pyramid network is composed of multiple convolutional layers; The obtained multi-scale feature pyramid is input into the region proposal network, and features are extracted through a convolutional layer. Then, a classification layer and a regression layer are used to predict the object probability and bounding box coordinates of the anchor box respectively to obtain the bounding box information. Among them, the classification branch is used to predict targets and non-targets. The formula is as follows: p=σ(W p *F) The regression branch is used to predict the bounding box coordinates, and the formula is as follows: t=W t *F Among them, σ is the activation function, W p and W t are the weights of classification and regression tasks respectively, and F is the feature map; Finally, the bounding box information is fine-tuned by a region of interest network head, wherein the region of interest network head is composed of a region of interest pooling ROIPooling layer and a fully connected layer; S3.2, using a feature extraction model, extract features within the human body boundary box to obtain human body feature data. The specific implementation process is as follows: Input the image data in the scene video data into the Patch Embedding layer to obtain a feature matrix with increased dimension, wherein the Patch Embedding layer is composed of a convolutional layer; The feature matrix with increased dimension is sequentially input into multiple Swin Transformer layers, and each layer is subjected to self-attention processing and MLP processing to obtain feature data FeatureData1; The obtained feature data FeatureData1 is input into the downsampling layer to reduce the spatial resolution of the feature map, and the downsampled feature data FeatureData2 is obtained; Finally, the obtained feature data FeatureData2 is input into the output layer for normalization processing to obtain the human body feature data BodyFeatureData; S4, on the cloud center side, through the pre-built posture estimation model, the key points of the human feature data are predicted, the key point information of the human body is obtained, and the key point detection of the human body is completed. The specific implementation process is as follows: Inputting the human feature data BodyFeatureData outputted from the feature extraction model into the transition layer Transition to convert the dimension and feature space to obtain the image features after dimension adjustment, wherein the Transition layer is composed of a convolution layer, a normalization layer and a ReLU activation layer in sequence; The obtained dimensionally adjusted image features are input into the Classifier Head layer, and the image features are extracted and processed through convolution operations to obtain features for classification. The Classifier Head layer is composed of multiple basic blocks BasicBlock, each of which includes a convolution layer, a normalization layer, and a ReLU activation layer in sequence; The obtained features for classification are sequentially input into the fully connected block and the mixed Mixer layer to process and refine the features to obtain refined features for classification prediction; The obtained refined features are input into the classifier prediction layer to perform category prediction to obtain the category label predicted by the model, wherein the classifier prediction layer is composed of a fully connected layer; The obtained category label is input into the Tokenizer layer as the posture code to obtain the key point information of the human body. The Tokenizer layer is composed of an encoder, a code book and a decoder in sequence.

2. The human body key point detection method based on cloud-edge-end collaboration according to claim 1 is characterized in that: The format conversion and preprocessing of the local video data includes: removing noise, resizing and normalizing; The method for removing noise is median filtering, and the median filtering algorithm med formula is as follows: g(x,y)=med{f(xm,yn),(m,n∈W)} Where f(x, y) is the original image, g(x, y) is the image after filtering and denoising, W is the two-dimensional template, and m, n are the elements in W; The sizing formula is as follows: Among them, W original is the original width of the image, H original is the initial height of the image, H target is the target height, W new It is a new height achieved.

3. A human key point detection system based on cloud-edge-end collaboration, used to implement the human key point detection method described in any one of claims 1 to 2, characterized in that: Including device side, edge side and central cloud side; The device side is used to collect original video data and send it to the corresponding edge side; The edge side stores the original video data as local video data, performs format conversion and preprocessing on the local video data to obtain scene video data, then extracts features from the scene video data through a target detection model and a feature extraction model to obtain human feature data, and sends the data to the central cloud side; The central cloud side is used to perform key point prediction on the human feature data sent by each edge side through a posture estimation model to obtain human key point information.

4. The human key point detection system based on cloud-edge-end collaboration according to claim 3 is characterized in that: The central cloud side is also used to convert the scene video data into training scene data and perform reverse training based on the scene data.

5. A human key point detection device based on cloud-edge-end collaboration, used to implement the human key point detection method described in any one of claims 1 to 4, characterized in that: It includes video acquisition module, format conversion and preprocessing module, human target detection module, human feature extraction module, human posture estimation module and model training module; Video acquisition module, used to collect raw video data through the device end; A format conversion and preprocessing module, used to store the original video data as local video data, and perform format conversion and preprocessing on the local video data to obtain scene video data; A human target detection module is used to perform target detection on scene video data through a human target detection model and output human bounding box information; A human feature extraction module is used to extract features within a human body boundary box through a feature extraction model to obtain human feature data; The human body posture estimation module predicts the key points of each human body feature data through the pre-built posture estimation model to obtain the key point information of the human body; The model training module is used to convert the scene video data into scene data for training and perform reverse training based on the scene data for training.

Citation Information

Patent Citations

  • Security and protection video monitoring system based on cloud edge cooperative computing and implementation method thereof

    CN111698470A

  • Feedback type target detection method based on feature pyramid network

    CN111797846A

  • High-place operation safety intelligent risk assessment method based on cloud side end platform

    CN116863373A

  • Centrifugal pump operation intelligent detection method based on cloud side end architecture

    CN118097769A

  • Electric power operation illegal behavior detection method and system based on machine vision

    CN118298513A