Human body recognition method and system based on digital law

Through the combination of SDD network and CNN network, the problem of low accuracy of human recognition algorithm under the influence of image background noise is solved, more efficient human action recognition is achieved, and the accuracy and stability of recognition are improved.

CN118711249AInactive Publication Date: 2024-09-27SHANGHAI HOSPITAL OF TRADITIONAL CHINESE MEDICINE
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202410811195.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-21
Publication Date
2024-09-27
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing human body recognition algorithms are easily affected by image background noise, resulting in low accuracy of human action recognition.

Method used

Methods based on SDD network and CNN network are used to reduce the impact of background noise and improve the accuracy of human action recognition through preprocessing of human action images, multi-scale action feature extraction, feature fusion, target recognition and action classification.

Benefits of technology

By detecting human body areas and focusing on areas of interest, the accuracy and stability of human movement recognition are improved, and the details and characteristics of human movement are more accurately captured.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118711249A
    Figure CN118711249A
Patent Text Reader

Abstract

The invention provides a human body recognition method and system based on a digital law, and relates to the technical field of image data processing. The method comprises the following steps: collecting human body action data of a user; preprocessing the human body action image; extracting a multi-scale action feature map of the human body action image through an SDD network; performing feature fusion on the multi-scale action feature map to obtain a fused feature map; according to the fused feature map, performing target identification on each frame of human body action image through an SDD network, and detecting a human body region in each frame of human body action image; taking the human body region as a region of interest, and reserving a fusion feature map of the region of interest; according to the fusion feature map of the region of interest, performing action classification on human body actions of the user through a CNN network, and determining action categories; and comparing the human body action data of the user with the standard action data under the corresponding action category, and determining the score of the human body action of the user.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of image data processing methods, and in particular to a human body recognition method and system based on digitalization. Background Art

[0002] By adopting human body recognition algorithm technology based on digital exercises, the main activities of people are structured, which can identify and monitor the real-time movements of learners in real time, compare the real-time movements with standard movements, and give learners timely feedback and guidance. Learners can immediately understand whether their movements are correct and make timely adjustments and improvements, thereby improving learning efficiency and quality.

[0003] With the rapid development of technologies such as pattern recognition, machine vision, and deep learning, as well as the urgent need for human recognition, more and more modern technologies are being applied to human recognition. The current mainstream human detection algorithms mainly include target detection algorithms such as the YOLO algorithm and the SDD (Scale-Depth-Direction) algorithm. However, the YOLO algorithm and the SDD algorithm are mostly used for target detection. They are often connected to a classification layer composed of a Softmax activation function after target detection, and the human motion is classified and recognized through the classification layer. The cluttered information in the image background may interfere with the target, resulting in inaccurate or misplaced positioning of the target, thereby affecting subsequent classification and recognition. Therefore, it is easily affected by the image background noise, and the accuracy of human motion recognition is low. Summary of the invention

[0004] In order to solve the technical problem that the prior art is easily affected by image background noise and has low accuracy in human motion recognition, the present invention provides a human body recognition method and system based on digital power method.

[0005] The technical solution provided by the embodiment of the present invention is as follows:

[0006] First aspect

[0007] An embodiment of the present invention provides a human body recognition method based on digital power method, comprising:

[0008] S1: Collecting human motion data of a user, wherein the human motion data includes multiple frames of human motion images;

[0009] S2: preprocessing the human action image;

[0010] S3: extracting a multi-scale motion feature map of the human motion image through an SDD network;

[0011] S4: Perform feature fusion on the multi-scale action feature map to obtain a fused feature map;

[0012] S5: According to the fused feature map, target recognition is performed on each frame of human action image through the SDD network to detect the human body area in each frame of human action image;

[0013] S6: taking the human body region as a region of interest, and cutting the fused feature map of the human body action image, and retaining the fused feature map of the region of interest;

[0014] S7: Classifying the user's human body motion through a CNN network according to the fused feature map of the region of interest, and determining the motion category;

[0015] S8: Compare the human body motion data of the user with the standard motion data under the corresponding motion category to determine the score of the human body motion of the user.

[0016] Second aspect

[0017] An embodiment of the present invention provides a human body recognition system based on digital power method, comprising:

[0018] processor;

[0019] A memory having computer-readable instructions stored therein, wherein when the computer-readable instructions are executed by the processor, the human body recognition method based on digital power method as described in the first aspect is implemented.

[0020] The third aspect

[0021] An embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the program is executed by a processor, the human body recognition method based on digital power method as described in the first aspect is implemented.

[0022] The beneficial effects brought about by the technical solution provided by the embodiment of the present invention include at least:

[0023] In the present invention, firstly, each frame of human motion image is subjected to target recognition through the SDD network, and the region of interest containing the human body in each frame of human motion image is detected to reduce the influence of image background noise. Then, the user's human motion is classified through the CNN network according to the fusion feature map of the region of interest, so as to focus more on the region of interest related to the human motion, better capture the details and features of the human motion, and improve the accuracy of human motion recognition. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. 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 creative work.

[0025] Figure 1 A schematic diagram of a flow chart of a human body recognition method based on a digital technique provided by an embodiment of the present invention;

[0026] Figure 2 A schematic diagram of the structure of a human body recognition method based on digital power provided by an embodiment of the present invention;

[0027] Figure 3 A flow chart of a method for calculating a human body movement score provided by an embodiment of the present invention

[0028] Figure 4 A schematic structural diagram of a human body recognition system based on digital power method provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0029] The technical solution of the present invention is described below in conjunction with the accompanying drawings.

[0030] In the embodiments of the present invention, words such as "exemplarily" and "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "example" in the present invention should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of the word "example" is intended to present the concept in a specific way. In addition, in the embodiments of the present invention, the meaning expressed by "and / or" can be both, or it can be either of the two.

[0031] In the embodiments of the present invention, "image" and "picture" can sometimes be used interchangeably. It should be noted that when the difference between them is not emphasized, the meanings they intend to express are the same. "of", "corresponding, relevant" and "corresponding" can sometimes be used interchangeably. It should be noted that when the difference between them is not emphasized, the meanings they intend to express are the same.

[0032] In the embodiments of the present invention, sometimes a subscript such as W1 may be written as a non-subscript such as W1. When the difference is not emphasized, the meanings to be expressed are the same.

[0033] In order to make the technical problems, technical solutions and advantages to be solved by the present invention more clear, a detailed description will be given below with reference to the accompanying drawings and specific embodiments.

[0034] Reference Manual Attached Figure 1 , showing a flow chart of a human body recognition method based on digital power provided in an embodiment of the present invention.

[0035] The embodiment of the present invention provides a human body recognition method based on digital power method, which can be implemented by a human body recognition device based on digital power method, and the human body recognition device based on digital power method can be a terminal or a server. The processing flow of the human body recognition method based on digital power method can include the following steps:

[0036] S1: Collect user's body motion data.

[0037] The human motion data includes multiple frames of human motion images.

[0038] Specifically, the user's body motion data can be collected through a camera or a depth camera.

[0039] S2: Preprocessing of human action images.

[0040] In a possible implementation, S2 specifically includes: cropping, denoising filtering, and image enhancement of the human motion image.

[0041] Furthermore, cropping can remove unnecessary background or other interfering objects in the image, retaining key human body parts, which helps improve the efficiency and accuracy of subsequent processing. The cropped image is more compact and easier to be processed by the algorithm.

[0042] Furthermore, denoising filtering can remove noise and interference in the image, making the image clearer and easier to understand. This helps reduce the interference of noise in subsequent algorithms and improves the accuracy and stability of image processing.

[0043] Furthermore, image enhancement can enhance the visual effect of the image by adjusting parameters such as contrast and brightness of the image, making the image clearer and easier to analyze. The enhanced image has better visibility, which helps users to identify human body movements more accurately.

[0044] S3: Extracting multi-scale motion feature maps of human motion images through scale-depth directional SDD network.

[0045] Among them, the SDD (Scale-Depth-Direction) network is a deep learning network specially designed to extract multi-scale features of human action images. It combines information of different scales, depths, and directions to better capture complex human action features.

[0046] In a possible implementation, S3 specifically includes sub-steps S301 to S303:

[0047] S301: Using the small-scale detail information learned from the adjacent low-level feature layers in the SDD network as position-sensitive features, the position-sensitive features of each pixel in the human action image are synthesized into a position-sensitive feature map.

[0048] It should be noted that the low-level feature layers usually retain high-resolution spatial information and can capture details in the image, such as edges and textures. These details are very important for accurately locating key points in the action (such as hands, feet, etc.).

[0049] S302: Using the context information learned from the adjacent high-level feature layers in the SDD network as context features, the position sensitive features of each pixel in the human action image are synthesized into a context feature map.

[0050] It should be noted that the high-level feature layer can capture the global context information of the image, such as the overall posture and background of the action. This information is critical for understanding the semantics and environment of the action.

[0051] S303: Using the features related to category semantics learned by the target prediction layer in the SDD network as target semantic features, the target semantic features of each pixel in the human action image are synthesized into a target semantic feature map.

[0052] It should be noted that the target prediction layer usually learns high-level semantic features related to categories, which can help distinguish different types of targets and further distinguish human body areas from background areas.

[0053] In the present invention, through this multi-scale, multi-depth, and multi-directional feature extraction method, the SDD network can more accurately capture the complex features in human motion images and improve the accuracy of human region recognition.

[0054] S4: Perform feature fusion on the multi-scale action feature map to obtain a fused feature map.

[0055] In a possible implementation, S4 specifically includes: taking the target semantic feature map as the leading factor, performing feature fusion on the position sensitive feature map, the context feature map, and the target semantic feature map:

[0056] F(x,y)=λ1f1(x,y)+λ2f2(x,y)+λ3f3(x,y)

[0057] Among them, F represents the fused feature map, (x, y) represents the coordinate point, f1 represents the position sensitive feature map, λ1 represents the fusion coefficient of the position sensitive feature map, f2 represents the context feature map, λ2 represents the fusion coefficient of the context feature map, f3 represents the target semantic feature map, and λ3 represents the fusion coefficient of the target semantic feature map.

[0058] The fusion coefficient of the position-sensitive feature map, the fusion coefficient of the context feature map, and the fusion coefficient of the target semantic feature map satisfy:

[0059]

[0060] It should be noted that the target semantic feature map is directly related to the action category. By setting the fusion coefficient of the target semantic feature map to the highest, the classification accuracy can be improved. Although the target semantic feature map is dominant, by giving the position-sensitive feature map and the context feature map an appropriate fusion coefficient, it can also ensure that the detail information and context information are effectively utilized to form a more balanced feature map.

[0061] In the present invention, by performing feature fusion on multi-scale action feature maps, the advantages of comprehensive utilization of position-sensitive information, contextual information and target semantic information are ensured. Through reasonable weight distribution, efficient and accurate human region recognition is achieved, which not only improves the accuracy and robustness of the model, but also has good flexibility and stability, and is suitable for a variety of complex human region recognition tasks.

[0062] S5: According to the fused feature map, the SDD network is used to perform target recognition on each frame of the human action image, and the human body area in each frame of the human action image is detected.

[0063] In the present invention, the dominant position of the target semantic feature map in the fusion feature map ensures that the SDD network can focus on the semantic information related to the action category, while containing local detail information and integrating global context information, so that when the SDD network recognizes the human body, it can not only recognize the local features, but also understand the overall action and posture, thereby improving the recognition accuracy.

[0064] In a possible implementation, the training method of the SDD network is specifically as follows:

[0065] Construct the loss function of the SDD network:

[0066] L1=μ1L CIOU +μ2L cls +μ3L conf

[0067] Among them, L1 represents the loss function of the SDD network, L CIOU represents the bounding box loss function, μ1 represents the weight of the bounding box loss function, and L cls represents the cross entropy loss function, μ2 represents the weight of the cross entropy loss function, L conf represents the confidence loss function, and μ3 represents the weight of the confidence loss function.

[0068] In the present invention, by constructing a comprehensive loss function including bounding box loss, classification loss and confidence loss, and reasonably setting their respective weights, the SDD network can comprehensively optimize different target recognition tasks during the training process.

[0069] Among them, the bounding box loss function L CIOU Specifically:

[0070]

[0071] d 2 =ρ 2 (b,b gt )

[0072]

[0073] Among them, IOU represents the intersection-over-union ratio of the predicted box and the true box, d represents the Euclidean distance between the center points of the predicted box and the true box, c represents the diagonal length of the minimum closure between the true box and the predicted box, α represents the trade-off parameter, v represents the consistency parameter, ρ() represents the center point Euclidean distance calculation function, b represents the predicted box, b gt represents the real box, w gt Indicates the width of the real box, h gt represents the height of the real box, w represents the width of the predicted box, and h represents the height of the predicted box;

[0074] Among them, the cross entropy loss function L cls Specifically:

[0075]

[0076] Where m represents the number of samples, i = 1, 2, ..., m, s represents the number of categories, j = 1, 2, ..., S, p ij Indicates the classification of the i-th sample belonging to the j-th category. When the i-th sample belongs to the j-th category, p ij =1, otherwise, p ij =0,q ij Indicates the predicted probability that the i-th sample belongs to the j-th category;

[0077] Among them, the confidence loss function L conf Specifically:

[0078]

[0079] Among them, q ij represents the predicted probability that the i-th sample belongs to the j-th category, β represents the hyperparameter for balancing the number of positive and negative samples, and γ represents the hyperparameter for balancing the prediction accuracy of positive and negative samples;

[0080] With the goal of minimizing the loss function of the SDD network, the network parameters of the SDD network are optimized by the gradient descent method.

[0081]

[0082] Among them, θ i+1 represents the model parameters at the i+1th iteration, θ i represents the model parameters at the i-th iteration, η i represents the adaptive learning rate at the i-th iteration, Represents the loss function L1 on the model parameter θ i The gradient of i Represents the adaptive learning rate at the i-th iteration.

[0083] In the present invention, by dynamically adjusting the learning rate and introducing the momentum term, the gradient descent optimization method with the goal of minimizing the loss function can significantly improve the training efficiency, stability and overall performance of the SDD network. This method combines the advantages of fast convergence, stable optimization and smooth training path, making the model more efficient and reliable when processing complex tasks and diverse data.

[0084] The adaptive learning rate is calculated as:

[0085]

[0086] Among them, η i represents the adaptive learning rate at the i-th iteration, η0 represents the initial learning rate, represents the gradient at the kth iteration, k = 1, 2, …, i, and μ represents the hyperparameter.

[0087] In the present invention, the adaptive learning rate is adjusted according to the accumulated sum of squared gradients. When the gradient is large, the learning rate decreases, and vice versa. This allows the learning rate to adapt to the gradient changes of each iteration step, and the optimization process is more stable. In the early stage of training, the gradient is small, the adaptive learning rate is relatively large, the model parameters can be updated quickly, and the convergence process is accelerated. As the training proceeds, the accumulated sum of squared gradients increases, the adaptive learning rate decreases, and the parameter update step size becomes smaller, which helps to fine-tune the parameters and approach the optimal solution.

[0088] S6: The human body region is taken as the region of interest, and the fused feature map of the human action image is cut to retain the fused feature map of the region of interest.

[0089] In the present invention, by retaining only the feature map of the region of interest (ROI, i.e., the human body region), it is possible to focus on the most important part and avoid interference of the background and other irrelevant regions in the feature extraction process, thereby improving the accuracy of feature extraction.

[0090] S7: Based on the fused feature map of the region of interest, the user's human motion is classified through the CNN network to determine the action category.

[0091] Among them, Convolutional Neural Network (CNN) is a deep learning model that is particularly suitable for processing and analyzing image and video data. They extract and learn the spatial features of data through a hierarchical structure, thus performing well in visual tasks.

[0092] In a possible implementation, S7 specifically includes sub-steps S701 to S705:

[0093] S701: Use the convolutional layer in the CNN network to extract the features of the fused feature map:

[0094]

[0095] in, represents the output of the current convolutional layer, represents the output of the previous convolutional layer, Represents the convolution kernel weight of the current convolution layer, Represents the bias term of the current convolutional layer, M represents the selected input feature map, σ() represents the activation function, l represents the layer number, and i represents the feature map number.

[0096] S702: Use the pooling layer in the CNN network to reduce the dimension of the extracted features:

[0097]

[0098] Among them, down represents the downsampling function, represents the output of the current pooling layer, Represents the output of the previous pooling layer.

[0099] S703: Use the fully connected layer in the CNN network to summarize the features and obtain the hidden state.

[0100] S704: Using the classification layer in the CNN network, calculate the probability value of each action category:

[0101] P t =Softmax(W δh h t +b δ )

[0102] P t =[P 1t …,P it ,…,P nt ]

[0103] Among them, P t represents the probability value of each action category at time t, Softmax() represents the Softmax activation function, and h t represents the hidden state at time t, W δh represents the weight between the fully connected layer and the classification layer, b δ represents the bias between the fully connected layer and the classification layer, P it It represents the probability value of belonging to the i-th action category at time t, i = 1, 2, …, n, and n represents the total number of action categories.

[0104] S705: In the output layer, the action category with the largest probability value is used as the action category of the user's human body action.

[0105] In the present invention, by retaining the region of interest, the CNN network can capture the details of human movements more meticulously and improve the accuracy of movement recognition.

[0106] In a possible implementation, the training method of the CNN network is specifically as follows:

[0107] Construct the loss function of the CNN network:

[0108] L2=L mse

[0109] Among them, L2 represents the loss function of the CNN network, L mse represents the squared error loss function.

[0110] Among them, the squared error loss function L mse Specifically:

[0111]

[0112] Among them, L2 represents the loss function of the CNN network, yi represents the classification label of the i-th sample, represents the classification result of the i-th sample, and N represents the total number of samples.

[0113] With the goal of minimizing the loss function of the CNN network, the network parameters of the CNN network are optimized through the particle swarm optimization algorithm.

[0114] Among them, Particle Swarm Optimization (PSO) is a global optimization algorithm based on swarm intelligence, which simulates the group behavior of bird flocks or fish schools, and finds the optimal solution to the problem through information sharing among individuals in the group.

[0115] Specifically, the inverse of the loss function of the CNN network is used as the fitness function of the particle swarm optimization algorithm.

[0116] Initialize the population, which contains multiple particles, each particle represents a feasible CNN network parameter.

[0117] Calculate the fitness of each particle.

[0118] Determine the individual optimal position and the global optimal position.

[0119]

[0120] in, represents the velocity of the ith particle at the t+1th iteration, represents the velocity of the ith particle at the tth iteration, ω represents the inertia weight factor, c1 represents the individual learning factor, c2 represents the global learning factor, r1 and r2 both represent random numbers between 0 and 1, represents the individual optimal position of the i-th particle at the t-th iteration, represents the global optimal position of the i-th particle at the t-th iteration, represents the position of the i-th particle at the t-th iteration, represents the position of the i-th particle at the t+1th iteration.

[0121] Recalculate the fitness of each particle.

[0122] When the fitness of the current particle is better than the individual optimal solution of the particle itself, the individual optimal solution of the particle itself is updated. When the fitness of the current particle is worse than the individual optimal solution of the particle itself, the individual optimal solution of the particle itself is updated with a certain replacement probability. When the fitness of the current particle is better than the global optimal solution, the global optimal solution is updated.

[0123] Among them, the replacement probability is specifically:

[0124]

[0125] Among them, P represents the replacement probability, e represents the natural constant, F() represents the fitness function, C t represents the temperature at the tth iteration.

[0126] In the present invention, when the fitness of the current particle is worse than its own individual optimal solution, the individual optimal solution is updated with a certain replacement probability, which is equivalent to introducing a "temperature" mechanism, similar to the simulated annealing algorithm. This mechanism allows particles to jump out of the local optimal solution in some cases, thereby helping to find the global optimal solution.

[0127] Among them, the temperature is updated according to the following formula:

[0128] T i+1=εT i

[0129] Where ε represents the temperature drop coefficient, T i+1 represents the temperature at the i+1th iteration, T i represents the temperature at the i-th iteration.

[0130] The specific temperature reduction coefficient is:

[0131]

[0132] Among them, A1 represents the cooling oscillation factor of the first half cycle, B1 represents the cooling floating factor of the first half cycle, A2 represents the cooling oscillation factor of the second half cycle, and B2 represents the cooling floating factor of the second half cycle.

[0133] In the present invention, the temperature reduction coefficient introduces a combination of a sine function and an exponential function, which brings about periodic oscillations, so that the temperature rises and falls slightly during the decline process. This mechanism helps to prevent the optimization process from converging to a local optimal solution too early and maintain a certain exploration capability. At the same time, the temperature reduction coefficient is dynamically adjusted according to the number of iterations and periodic changes, and can adapt to the search needs at different stages. In the early stage, higher temperatures and larger oscillation amplitudes are conducive to global search; in the later stage, lower temperatures and smaller oscillation amplitudes are conducive to local search.

[0134] S7: Arrange the particles in descending order according to their fitness at their individual optimal positions;

[0135] In the present invention, the global search capability of PSO and the accurate error measurement of square error loss can be fully utilized to improve the performance and generalization ability of the model. This method not only improves the efficiency and robustness of the optimization process, but also reduces the dependence on gradient information, and is suitable for complex model training tasks.

[0136] S8: Compare the human body motion data of the user with the standard motion data under the corresponding motion category to determine the score of the human body motion of the user.

[0137] Reference Manual Attached Figure 2 , shows a structural schematic diagram of a human body recognition method based on digital power provided by an embodiment of the present invention, which is used to implement the corresponding functions of the above method flow.

[0138] Reference Manual Attached Figure 3 , showing a flow chart of a method for calculating a human motion score provided by the present invention.

[0139] In a possible implementation, S8 specifically includes sub-steps S801 to S806:

[0140] S801: Based on the fusion feature map of the human body area in each frame, the human body motion data is clustered by frame using the K nearest neighbor algorithm.

[0141] Specifically, the Euclidean distance between the fused feature maps of the human body area of ​​the two frames is calculated, and the other frames are arranged in descending order according to the distance from the current frame. The top K other frames are selected as the K nearest neighbors of the current frame, and the probability of the K nearest neighbors belonging to each category is counted, and the category with the highest probability is taken as the category to which the current storage block belongs.

[0142] Among them, those skilled in the art can set the size of the number of nearest neighbors K according to actual conditions, and the present invention does not limit it.

[0143] S802: Taking each cluster center as a representative action of each cluster.

[0144] Optionally, for each cluster, the sum of distances from each frame to other frames in the cluster is calculated, and the frame with the smallest sum of distances is selected as the cluster center.

[0145] S803: Count the number of times each representative action appears in the human body action data.

[0146] Optionally, the number of samples contained in the cluster is used as the number of times each representative action appears in the human motion data. The number of samples whose distance from the cluster center is less than a preset distance can also be used as the number of times each representative action appears in the human motion data. Those skilled in the art can set the size of the preset distance according to actual conditions, and the present invention does not limit it.

[0147] S804: constructing an action score histogram using the cumulative frequency of each representative action as an entry of the histogram.

[0148] S805: Calculate the Buffett distance between the motion integral histogram of the user's human motion data and the motion integral histogram of the standard motion data.

[0149] Optionally, the human body motion score of the user is calculated according to the Buffett distance as follows:

[0150]

[0151] Among them, D B represents the Bahri distance, A u Represents the action score histogram of the user's human action data, A s The action integral histogram represents the standard action data, ln represents the logarithmic function with the natural constant e as the base, a u (k) represents the cumulative frequency corresponding to the kth entry in the action score histogram of the user's human action data, a s(k) represents the cumulative frequency corresponding to the kth entry in the action score histogram of the standard action data, and K represents the total number of entries, which also represents the total number of clustering categories.

[0152] It should be noted that using the Buffett distance to calculate the similarity between action integral histograms can provide an accurate, stable and robust similarity measure.

[0153] S806: Calculate the user's human motion score according to the Buffett distance between the motion score histogram of the human motion data and the histogram of the standard motion data.

[0154] Optionally, the human action score is calculated as follows:

[0155] S = 100 × [1-Tanh (D B )]

[0156] Where S represents the score and Tanh represents the hyperbolic tangent function, which is used to map the Bachmann distance to a value of [0,1].

[0157] It should be noted that the higher the score S, the closer the user's action data is to the standard action data, and the lower the score, the greater the gap. Such intuitive results are convenient for users to conduct self-evaluation and improvement.

[0158] In the present invention, the standard degree of human body movements is scored, and learners can be given feedback and guidance in time. Learners can immediately understand whether their movements are correct and make adjustments and improvements in time, thereby improving learning efficiency and quality.

[0159] The beneficial effects brought about by the technical solution provided by the embodiment of the invention include at least:

[0160] In the present invention, firstly, each frame of human motion image is subjected to target recognition through the SDD network, and the region of interest containing the human body in each frame of human motion image is detected to reduce the influence of image background noise. Then, the user's human motion is classified through the CNN network according to the fusion feature map of the region of interest, so as to focus more on the region of interest related to the human motion, better capture the details and features of the human motion, and improve the accuracy of human motion recognition.

[0161] Reference Manual Attached Figure 4 , showing a structural schematic diagram of a human body recognition system based on digital power method provided by the present invention.

[0162] The present invention further provides a human body recognition system 20 based on digital power method, which is applied to the human body recognition method based on digital power method, and comprises:

[0163] Processor 201.

[0164] The memory 202 stores computer-readable instructions. When the computer-readable instructions are executed by the processor 201, the human body recognition method based on digital power method in the method embodiment is implemented.

[0165] The human body recognition system 20 based on digital power provided by the present invention can execute the above-mentioned human body recognition method based on digital power and achieve the same or similar technical effects. To avoid repetition, the present invention will not elaborate on them.

[0166] The beneficial effects brought about by the technical solution provided by the embodiment of the present invention include at least:

[0167] In the present invention, firstly, each frame of human motion image is subjected to target recognition through the SDD network, and the region of interest containing the human body in each frame of human motion image is detected to reduce the influence of image background noise. Then, the user's human motion is classified through the CNN network according to the fusion feature map of the region of interest, so as to focus more on the region of interest related to the human motion, better capture the details and features of the human motion, and improve the accuracy of human motion recognition.

[0168] It should be understood that the processor in the embodiment of the present invention may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0169] It should also be understood that the memory in the embodiments of the present invention may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of random access memory (RAM) are available, such as static RAM (SRAM), dynamic random access memory (DRAM), synchronous DRAM (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link DRAM (SLDRAM), and direct rambus RAM (DR RAM).

[0170] The above embodiments can be implemented in whole or in part by software, hardware (such as circuits), firmware or any other combination. When implemented by software, the above embodiments can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions or computer programs. When the computer instructions or computer programs are loaded or executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center by wired (such as infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that contains one or more available media sets. The available medium can be a magnetic medium (for example, a floppy disk, a hard disk, a tape), an optical medium (for example, a DVD), or a semiconductor medium. The semiconductor medium can be a solid-state hard disk.

[0171] It should be understood that the term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. A and B can be singular or plural. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship, but it may also indicate an "and / or" relationship. Please refer to the context for specific understanding.

[0172] In the present invention, "at least one" means one or more, and "more than one" means two or more. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can be represented by: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple.

[0173] It should be understood that in various embodiments of the present invention, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.

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

[0175] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described equipment, devices and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0176] In the several embodiments provided by the present invention, it should be understood that the disclosed devices, apparatuses and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0177] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0178] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0179] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0180] An embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein when the program is executed by a processor, the human body recognition method based on digital power method as described in the method embodiment is implemented.

[0181] A computer-readable storage medium provided by the present invention can implement the steps and effects of the human body recognition method based on digital power method in the above method embodiment. To avoid repetition, the present invention will not go into details.

[0182] The beneficial effects brought about by the technical solution provided by the embodiment of the present invention include at least:

[0183] In the present invention, the path planning task information of multiple robots is obtained, and the path planning task information includes environmental constraints and timing constraints. Path planning, control, task requirements and environmental factors are integrated into the path planning task information for overall consideration, and a multi-robot path planning model is constructed. Through the multi-robot path planning model, the action path and angular velocity of each robot are calculated in real time, which can ensure the dynamic feasibility of the planned path and can accurately handle complex planning tasks involving timing constraints.

[0184] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

[0185] There are a few points to note:

[0186] (1) The drawings of the embodiments of the present invention only relate to the structures related to the embodiments of the present invention, and other structures may refer to the general design.

[0187] (2) For the sake of clarity, in the drawings used to describe the embodiments of the present invention, the thickness of the layers or regions is exaggerated or reduced, that is, these drawings are not drawn according to the actual scale. It is understood that when an element such as a layer, film, region or substrate is referred to as being "on" or "under" another element, the element may be "directly" "on" or "under" the other element or there may be intermediate elements.

[0188] (3) In the absence of conflict, the embodiments of the present invention and the features therein may be combined with each other to obtain new embodiments.

[0189] The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. The protection scope of the present invention shall be based on the protection scope of the claims.

Claims

1. A human body recognition method based on digital power. It is characterized in that include: S1: Collecting human motion data of a user, wherein the human motion data includes multiple frames of human motion images; S2: preprocessing the human action image; S3: extracting a multi-scale action feature map of the human action image through a scale-depth direction SDD network; S4: Perform feature fusion on the multi-scale action feature map to obtain a fused feature map; S5: According to the fused feature map, target recognition is performed on each frame of human action image through the SDD network to detect the human body area in each frame of human action image; S6: taking the human body region as a region of interest, and cutting the fused feature map of the human body action image, and retaining the fused feature map of the region of interest; S7: Classifying the user's human body motion through a CNN network according to the fused feature map of the region of interest, and determining the motion category; S8: Compare the human body motion data of the user with the standard motion data under the corresponding motion category to determine the score of the human body motion of the user.

2. The human body recognition method based on digital power method according to claim 1, It is characterized in that The S3 specifically includes: S301: using the small-scale detail information learned by the adjacent low-level feature layer in the SDD network as position-sensitive features, the position-sensitive features of each pixel in the human action image are synthesized into a position-sensitive feature map; S302: Using the context information learned by the adjacent high-level feature layers in the SDD network as context features, the position sensitive features of each pixel in the human action image are synthesized into a context feature map; S303: Using the features related to category semantics learned by the target prediction layer in the SDD network as target semantic features, the target semantic features of each pixel in the human action image are synthesized into a target semantic feature map.

3. The human body recognition method based on digital power method according to claim 2, It is characterized in that The S4 is specifically: Taking the target semantic feature map as the main factor, feature fusion is performed on the position sensitive feature map, the context feature map and the target semantic feature map: F(x,y)=λ 1 f 1 (x,y)+λ 2 f 2 (x,y)+λ 3 f 3 (x,y) Among them, F represents the fusion feature map, (x, y) represents the coordinate point, and f 1 represents the position sensitive feature map, λ 1 represents the fusion coefficient of the position-sensitive feature map, f 2 represents the context feature map, λ 2 represents the fusion coefficient of the context feature map, f 3 represents the target semantic feature map, λ 3 Represents the fusion coefficient of the target semantic feature map; The fusion coefficient of the position sensitive feature map, the fusion coefficient of the context feature map, and the fusion coefficient of the target semantic feature map satisfy:

4. The human body recognition method based on digital power method according to claim 1, It is characterized in that The method for training the SDD network is specifically as follows: Construct the loss function of the SDD network: L 1 =μ 1 L CIOU +m 2 L cls +m 3 L conf Among them, L 1 represents the loss function of the SDD network, L CIOU represents the bounding box loss function, μ 1 represents the weight of the bounding box loss function, L cls represents the cross entropy loss function, μ 2 represents the weight of the cross entropy loss function, L conf represents the confidence loss function, μ 3 Represents the weight of the confidence loss function; With the goal of minimizing the loss function of the SDD network, the network parameters of the SDD network are optimized by the gradient descent method.

5. The human body recognition method based on digital power method according to claim 1, It is characterized in that The S7 specifically includes: S701: Using the convolutional layer in the CNN network, extract the features of the fused feature map: in, represents the output of the current convolutional layer, represents the output of the previous convolutional layer, W i l Represents the convolution kernel weight of the current convolution layer, represents the bias term of the current convolutional layer, M represents the selected input feature map, σ() represents the activation function, l represents the layer number, and i represents the feature map number; S702: Use the pooling layer in the CNN network to reduce the dimension of the extracted features: Among them, down represents the downsampling function, represents the output of the current pooling layer, Represents the output of the previous pooling layer; S703: Use the fully connected layer in the CNN network to summarize the features and obtain the hidden state; S704: Using the classification layer in the CNN network, calculate the probability value of each action category: P t =Softmax(W δh h t +b δ ) P t =[P 1t ,…,P it ,…,P nt ] Among them, P t represents the probability value of each action category at time t, Softmax() represents the Softmax activation function, and h t represents the hidden state at time t, W δk represents the weight between the fully connected layer and the classification layer, b δ represents the bias between the fully connected layer and the classification layer, P it represents the probability value of belonging to the i-th action category at time t, i = 1, 2, ..., n, n represents the total number of action categories; S705: In the output layer, the action category with the largest probability value is used as the action category of the user's human body action.

6. The human body recognition method based on digital power method according to claim 1, It is characterized in that The method for training the CNN network is specifically as follows: Construct the loss function of the CNN network: L 2 =L mse With the goal of minimizing the loss function of the CNN network, the network parameters of the CNN network are optimized through the particle swarm optimization algorithm.

7. The human body recognition method based on digital power method according to claim 1, It is characterized in that The S8 specifically includes: S801: Based on the fusion feature map of the human body region of each frame, the human body motion data is clustered by frame through the K nearest neighbor algorithm; S802: taking each cluster center as a representative action of each cluster; S803: Counting the number of times each representative action appears in the human body action data; S804: constructing an action score histogram using the cumulative frequency of each representative action as an entry of the histogram; S805: Calculating the Buffett distance between the motion integral histogram of the user's human motion data and the motion integral histogram of the standard motion data; S806: Calculate the user's human motion score according to the Buffett distance between the motion score histogram of the human motion data and the histogram of the standard motion data.

8. The human body recognition method based on digital power method according to claim 7, It is characterized in that The calculation method of the Bach distance is specifically as follows: Among them, D B represents the Bahri distance, A u represents the action integral histogram of the user's human motion data, As represents the action integral histogram of the standard motion data, 1n represents the logarithmic function with the natural constant e as the base, a u (k) represents the cumulative frequency corresponding to the kth entry in the action score histogram of the user's human action data, a s (k) represents the cumulative frequency corresponding to the kth entry in the action score histogram of the standard action data, and K represents the total number of entries, which also represents the total number of clustering categories.

9. The human body recognition method based on digital power method according to claim 7, It is characterized in that The method of calculating the user's human action score based on the Buffett distance is specifically as follows: S=100×[1-Tanh(D B )] Wherein, S represents the score, and Tanh represents the hyperbolic tangent function, which is used to map the Buffett distance to a value of [0, 1].

10. A human body recognition system based on digital techniques, It is characterized in that include: processor; A memory having computer-readable instructions stored thereon, wherein when the computer-readable instructions are executed by the processor, the human body recognition method based on digital power method as claimed in any one of claims 1 to 9 is implemented.

Citation Information

Cited By

  • F5G all-optical substation real-time monitoring method and system fused with neural network, and medium

    CN119763038A

  • Human body target quality grade judgment method and system, storage medium and program product

    CN121147972A

  • Human body target quality grade determination method and system, storage medium and program product

    CN121147972B