A method for edge device-based recognition of pedestrians running red lights

Through global propagation graph convolution and distillation network technology, the problem of misjudgment in pedestrian red light detection in edge devices is solved, and high-accuracy and lightweight pedestrian gesture recognition is achieved, which is suitable for edge devices in complex environments.

CN113537136BActive Publication Date: 2024-09-27HEFEI UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110876540.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-30
Publication Date
2024-09-27
Estimated Expiration
2041-07-30

AI Technical Summary

Technical Problem

The existing technology has misjudgment problems in pedestrian red light detection for edge devices. Especially in complex environments, the global dissemination and lightweight processing capabilities of human joint information are insufficient, resulting in poor detection results.

Method used

Global propagation graph convolution is used to optimize joint space positions, and the distillation network is used to achieve model lightweighting, and a method for occluding pedestrian running red light gesture recognition is constructed, including red light running gesture spatial relationship learning, occlusion gesture map generation, spatial relationship propagation, and distillation learning method to train teachers and The student network finally realizes the status identification of red light running and non-red light running.

Benefits of technology

It improves the accuracy of pedestrian posture joint point detection and scene applicability, realizes efficient processing of lightweight networks, reduces misjudgments, and is suitable for environments with limited computing capabilities of edge devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113537136B
    Figure CN113537136B
Patent Text Reader

Abstract

The present invention discloses a method for edge device-oriented red light running gesture recognition of occluded pedestrians. The present invention realizes two tasks of pedestrian gesture joint point detection and red light running gesture recognition by acquiring a monitored pedestrian picture at a zebra crossing when a red light is on. The present invention realizes the spatial relationship propagation of occluded joint point features and corrects erroneous joint point positioning by learning to construct a gesture spatial relationship matrix. In view of the problem of limited computing power of edge devices, the present invention uses the idea of ​​distillation learning, distributes the design of teacher networks and student networks, and designs a student network loss function to obtain a lightweight student network for gesture joint point positioning. Finally, for the red light running gesture recognition task, a convolutional neural network is constructed to realize the red light running and non-red light running state recognition. The present invention has the advantages of strong scene applicability, high joint point positioning accuracy, lightweight network, fast processing speed, and easy transplantation, and can effectively realize the recognition of pedestrian red light running behavior.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of human posture joint point detection, and in particular to a method for edge device-oriented recognition of the posture of an obstructed pedestrian running a red light. Background Art

[0002] In order to ensure good traffic order and protect people's lives and property, it is necessary to supervise the behavior of pedestrians running red lights at intersections. With the development of deep learning and computer vision technology, intelligent traffic monitoring for edge devices is gradually attracting the attention of the industry.

[0003] Chinese patent application publication number CN 111274886 A "A method and system for analyzing pedestrian red light violations based on deep learning" proposes a method for analyzing pedestrian red light violations based on deep learning, which tracks and identifies facial information. When the tracker crosses the crosswalk under the red light state, it is considered that the pedestrian has violated the red light. However, the method of using only facial recognition is prone to misjudging the body advertisement or the person in the car as running a red light. Chinese patent application publication number CN109754602 A "A method and device for preventing misjudgment of pedestrian red light violations" proposes a method for detecting red light violations using pedestrian position, pedestrian image and human feature information. However, the human feature information is obtained through radar echo signals. At traffic intersections with more complex environments, the information obtained by this method will be lost, resulting in misjudgment. Chinese patent application publication number CN 103366565A "A Kinect-based pedestrian red light running detection method and system" proposes a Kinect-based pedestrian red light running detection method. The method introduces human joint information and performs red light running detection by identifying the movement state of the human body, but the method does not introduce graph convolution to achieve posture detection.

[0004] Since human joints have fixed spatial connections and can be used to build graph models using joint points, graph neural networks have gradually been applied to the field of posture detection. Ke Sun et al. extracted high-quality features in Deep High-Resolution Representation Learning for Human Pose Estimation. These features have richer contextual information and can help construct human posture. Zhe Cao et al. proposed to establish a vector field between key points in OpenPose: Realtime Multi-Person 2D Pose Estimation using Part Affinity Fields, assemble key points using the direction of limbs, and obtain human posture. Xuecheng Nie et al. in Posepartition networks for multi-person pose estimation inferred human posture by segmenting each person's graph. Jian Wang et al. proposed a two-stage framework based on graphs in Two Stage Human Pose Estimation with GraphPose Refinement, using a localization subnet and a graph pose refinement module to obtain more detailed joint point information, and then using local propagation to optimize the spatial position of joint points.

[0005] However, the above methods do not consider the lightweight problem required for edge devices in applications and the global propagation of human joint information. Therefore, we propose a method for edge device-oriented red light gesture recognition of occluded pedestrians. This method uses global propagation graph convolution to optimize the joint space position to achieve occluded pedestrian detection, and proposes a distillation network to achieve the lightweight problem of the model in applications. Summary of the invention

[0006] The purpose of the present invention is to remedy the defects of the prior art and provide a method for edge device-oriented recognition of the posture of pedestrians running red lights.

[0007] The present invention is achieved through the following technical solutions:

[0008] A method for edge device-based recognition of pedestrian red light running gestures, which captures pedestrian images when the red light is on and detects red light running behavior, specifically includes the following steps:

[0009] Step 1: Obtain a learned spatial relationship matrix by learning the spatial relationship of the red light running posture;

[0010] Step 2: Generate an occlusion posture graph based on the input pedestrian image;

[0011] Step 3: Based on the generated occlusion posture graph, the spatial relationship of the red light running posture is propagated;

[0012] Step 4: Use the distillation learning method to perform high-resolution teacher network training to obtain the teacher network parameter model;

[0013] Step 5: Use distillation learning method to train the student network and obtain the student network parameter model;

[0014] Step 6: Conduct red light running behavior detection network training;

[0015] Step 7: Detect the red light running posture of the blocked pedestrian to realize the red light running and non-red light running status recognition.

[0016] The spatial relationship matrix obtained by learning the spatial relationship of the red light running posture described in step 1 specifically includes the following steps:

[0017] Step 1-1, input the red light running training set, the training set image size is W x H, and obtain the 16 joint point positions of each human body in the training set image;

[0018] Step 1-2: For each of the 16 joint positions of the human body, a relative spatial relationship matrix is ​​constructed with a matrix size of 2W x2H;

[0019] Step 1-2-1, calculate the vector between every two joint positions;

[0020] Step 1-2-2: Count the vectors between the joint positions and construct the node relationship matrix D ij .

[0021] Step 1-3: Normalize and convolve the relative spatial relationship matrix to obtain the spatial relationship matrix P after convolution learning. ij ,

[0022]

[0023] The method for generating an occlusion posture graph described in step 2 comprises the following steps:

[0024] Step 2-1: Use the HRNet network to detect the input image and obtain the heat map of each human joint point;

[0025] Step 2-2, according to the heat map obtained in step 2-1, obtain the joint point position and its corresponding score;

[0026] Step 2-3, set a threshold according to the joint point score, consider low-scoring nodes as occluded nodes, and high-scoring nodes as visible nodes, and obtain an occluded node set and a visible node set;

[0027] Step 2-4: The heat map of each joint point is regarded as a node feature. The node feature size is W x H x 64, where 64 is the number of channels of a joint point heat map.

[0028] The method for propagating the spatial relationship of the red light running posture described in step 3 comprises the following steps:

[0029] Step 3-1, obtain node propagation characteristics:

[0030] Step 3-1-1, normalize the node features obtained in step 2-4 to obtain normalized node features;

[0031] Step 3-1-2, perform full connection processing on the node features to obtain the node propagation feature vi;

[0032] Step 3-2, obtain edge features:

[0033] Step 3-2-1, subtract the end node feature from the start node feature obtained in step 2-4 to obtain the edge feature;

[0034] Step 3-2-2, normalize the edge features to obtain normalized edge features;

[0035] Step 3-2-3: Perform full connection processing on the normalized edge features to obtain the edge features e after linear transformation ij ;

[0036] Step 3-2-4: Add edge feature e ij As the convolution kernel, the spatial relationship matrix P obtained in steps 1-3 is ij , perform convolution in For the convolution operation, edge propagation features are obtained;

[0037] Step 3-3: propagate the node feature v obtained in step 3-1-2 i Sum the edge propagation features obtained in step 3-2-4 to obtain the fusion feature v j ;

[0038]

[0039] in is the bias parameter in the fusion model;

[0040] Step 3-4: Perform RELU transformation on the fused features to obtain the node features after activation response.

[0041] The distillation learning method described in step 4 is used to perform high-resolution teacher network training to obtain a teacher network parameter model, which specifically includes the following steps:

[0042] Step 4-1, input a high-resolution scene graph, the resolution of the high-resolution scene graph is 2W x 2H;

[0043] Step 4-2: Perform red light running posture spatial relationship learning to obtain a high-resolution spatial relationship matrix;

[0044] Step 4-3, generate an occlusion posture graph, obtain the node features of each joint point, and regard the node features as the initial node features;

[0045] Step 4-4, input the spatial relationship matrix obtained in step 4-2 and the initial node features obtained in step 4-3, perform spatial relationship propagation, and obtain the node features after activation response, which are regarded as the node features after spatial fusion in the first stage;

[0046] Step 4-5: Repeat the spatial relationship propagation three times, a total of four spatial relationship propagations, and convert the node features after spatial fusion in the first stage into the node features after spatial fusion in the fourth stage;

[0047] Step 4-6: Based on the node features after spatial fusion in the fourth stage and the real node position response map marked in the training set, the loss is calculated using the mean square error formula;

[0048] Step 4-7: Use the loss function of step 4-6 to train the teacher network and obtain the teacher network model parameters;

[0049] Step 4-8: Use the teacher network model parameters to predict the training image and obtain the node supervision label of the teacher network;

[0050] Step 4-9, according to the node supervision labels of the teacher network, the supervision relationship between the node pairs is calculated to obtain the supervision signal between the node pairs of the teacher network;

[0051]

[0052] Where x and y are the horizontal and vertical coordinates of the actual node position. are the horizontal and vertical coordinates of the positions of node i and node j predicted by the teacher network.

[0053] The distillation learning method is used to train the student network in step 5 to obtain the student network parameter model, which specifically includes the following steps:

[0054] Step 5-1, input a low-resolution scene graph, the resolution of the low-resolution scene graph is W x H;

[0055] Step 5-2: Perform red light running posture spatial relationship learning to obtain a low-resolution spatial relationship matrix;

[0056] Step 5-3, generate an occlusion posture graph, obtain the node features of each joint point, and regard the node features as the initial node features;

[0057] Step 5-4: Input the spatial relationship matrix obtained in step 5-2 and the initial node features obtained in step 5-3, perform spatial relationship propagation, and obtain the node features after activation response, which are regarded as the node features after spatial fusion in the first stage;

[0058] Step 5-5, based on the node features after spatial fusion in the first stage, the loss is calculated with the real node position response map marked in the training set, and the loss is calculated as the mean square error;

[0059] Step 5-6: Calculate the relationship between node pairs according to the node characteristics of the student network, and obtain the node signals between the node pairs of the student network;

[0060]

[0061] Where x and y are the horizontal and vertical coordinates of the actual node position. are the horizontal and vertical coordinates of the positions of node i and node j predicted by the student network;

[0062] Step 5-7: Node marking between node pairs of the student network The supervision signal of the node pair in the teacher network obtained in steps 4-9 Calculate the loss, the loss function is the mean square error formula;

[0063]

[0064] Step 5-8, sum the loss function obtained in step 5-5 and the loss function obtained in step 5-7 to obtain the total loss function of the student network;

[0065] L Loss =L mse +L skd

[0066] Where L mse is the mean square error loss term of the node position obtained in step 5-5, L skd is the mean square error loss term of the node pair obtained in steps 5-7.

[0067] Step 5-9: According to the total loss function of the student network, train the student network to obtain the student network model parameters.

[0068] The red light running behavior detection network training method described in step 6 specifically includes the following steps:

[0069] Step 6-1: Use the student network model to locate the input pedestrian image and obtain the joint point position;

[0070] Step 6-2, obtain node features through red light running posture spatial relationship learning, perform maximum pooling, and obtain the features of the pooled nodes, whose size is W x H;

[0071] Step 6-3, concatenate the pooled node features of the 16 nodes to obtain a posture feature matrix with a size of W xH x16;

[0072] Step 6-4: Input the posture feature matrix into the Resnet posture recognition network to perform red light running posture recognition and obtain a predicted mark, the mark range is red light running and non-red light running;

[0073] Step 6-5: Calculate the loss of the predicted label obtained in step 6-3 and the label of the training set to obtain a loss function, in the form of a two-norm loss;

[0074] Step 6-6: According to the total loss function of the red light running behavior detection network, the red light running behavior detection network is trained to obtain the red light running behavior detection network model parameters.

[0075] The method for detecting the posture of a pedestrian running a red light by blocking a pedestrian described in step 7 specifically comprises the following steps:

[0076] Step 7-1: Input the captured pedestrian image and use the student network to obtain the joint point position;

[0077] Step 7-2, obtain node features through red light running posture spatial relationship learning, perform maximum pooling, and obtain the features of the pooled nodes, whose size is W x H;

[0078] Step 7-3, concatenate the pooled node features of the 16 nodes to obtain a posture feature matrix with a size of W xH x16;

[0079] Step 7-4, input the posture feature matrix into the red light running behavior detection network, perform detection, and obtain the red light running recognition result;

[0080] Step 7-5: Mark the posture of the person who runs the red light, and the system warns and visualizes the pedestrian who runs the red light.

[0081] The advantages of the present invention are as follows: the present invention realizes two tasks: pedestrian posture joint point detection and red light running posture recognition by acquiring the monitored pedestrian picture at the zebra crossing when the red light is on; for the occlusion problem encountered by the posture joint points, the present invention realizes the spatial relationship propagation of the occluded joint point features by learning to construct the posture space relationship matrix, and corrects the wrong joint point positioning; facing the problem of limited computing power of edge devices, the present invention uses the distillation learning idea, distributes the design of the teacher network and the student network, and designs the student network loss function to obtain a lightweight student network for posture joint point positioning. Finally, for the red light running posture recognition task, a convolutional neural network is constructed to realize the state recognition of red light running and non-red light running; the present invention has the advantages of strong scene applicability, high joint point positioning accuracy, lightweight network, fast processing speed, easy transplantation, etc., and can effectively realize the recognition of pedestrian red light running behavior. BRIEF DESCRIPTION OF THE DRAWINGS

[0082] Figure 1 Flowchart of the red light running gesture recognition for occluded pedestrians on edge devices;

[0083] Figure 2 Red light running posture spatial relationship learning diagram ( Figure 2 (a) is the training set and joint point location map; Figure 2 (b) is the vector diagram between the joint positions; Figure 2 (c) is the spatial relationship matrix after convolution learning);

[0084] Figure 3 Spatial relationship propagation and occluded pedestrian red light running posture joint point detection diagram ( Figure 3 (a) is the location diagram of the positioning joint points; Figure 3 (b) is to construct the skeleton space relationship diagram; Figure 3 (c) is the spatial relationship propagation diagram; Figure 3 (d) To update the spatial relationship and perform red light running posture detection diagram);

[0085] Figure 4 Spatial relational communication network diagram;

[0086] Figure 5 Diagram of teacher and student networks in distillation learning;

[0087] Figure 6 Red light running behavior recognition network diagram. DETAILED DESCRIPTION

[0088] like Figure 1 As shown, a method for edge device-oriented recognition of pedestrian red light running gestures is provided. When the red light is on, a pedestrian image is captured to detect the red light running behavior. Specifically, the method includes the following steps:

[0089] Step 1: Learning the spatial relationship of red light running posture:

[0090] Step 1-1 Input the red light running training set, the training set image size is W x H, and obtain the 16 joint point positions of each human body in the training set image, such as Figure 2 (a)

[0091] Step 1-2: For each of the 16 joint positions of the human body, construct a relative spatial relationship matrix with a matrix size of 2W x2H:

[0092] Step 1-2-1 calculates the vector between the positions of every two joint points, such as Figure 2 (b)

[0093] Step 1-2-2 counts the vectors between the joint points and constructs the node relationship matrix D ij .

[0094] Steps 1-3 perform normalization and convolution processing on the relative spatial relationship matrix to obtain the spatial relationship matrix P after convolution learning. ij ,like Figure 2 As shown in (c), the convolution kernel is 7x7.

[0095]

[0096] Step 2: Occlusion posture graph generation:

[0097] Step 2-1 Use the HRNet (CVPR2019, Deep High-Resolution Representation Learning for Human Pose Estimation) network to detect the input image and obtain the heat map of each human joint point, such as Figure 3 (a)

[0098] Step 2-2: Obtain the joint point positions and their corresponding scores based on the heat map obtained in step 2-1;

[0099] Step 2-3 sets a threshold according to the joint point score, considers low-scoring nodes as occluded nodes, and high-scoring nodes as visible nodes, and obtains an occluded node set and a visible node set;

[0100] Steps 2-4 regard the heatmap of each joint point as a node feature, and the node feature size is W x H x 64, where 64 is the number of channels of a joint point heatmap.

[0101] Step 3: Propagation of spatial relations of red light running postures:

[0102] Step 3-1 Obtain node propagation characteristics:

[0103] Step 3-1-1 normalizes the node features obtained in step 2-4 to obtain normalized node features;

[0104] Step 3-1-2 performs full connection processing on the node features to obtain the node propagation feature vi.

[0105] Step 3-2 Obtain edge features:

[0106] Step 3-2-1: Subtract the end node feature from the start node feature obtained in step 2-4 to obtain the edge feature, such as Figure 3 (b);

[0107] Step 3-2-2 normalizes the edge features to obtain normalized edge features;

[0108] Step 3-2-3: Perform full connection processing on the normalized edge features to obtain the edge features e after linear transformation. ij .

[0109] Step 3-2-4: Add edge feature e ij As the convolution kernel, the spatial relationship matrix P obtained in steps 1-3 is ij , perform convolution in It is a convolution operation to obtain edge propagation features.

[0110] Step 3-3 propagates the node feature v obtained in step 3-1-2 i Sum the edge propagation features obtained in step 3-2-4 to obtain the fusion feature v j ,like Figure 4 ;

[0111]

[0112] in is the bias parameter in the fusion model.

[0113] Step 3-4 performs RELU transformation on the fused features to obtain the node features after activation response.

[0114] Step 4: High-resolution teacher network training in distillation learning:

[0115] Step 4-1 inputs a high-resolution scene graph, the resolution of the high-resolution scene graph is 2W x 2H;

[0116] Step 4-2: Through step 1, spatial relationship learning is performed to obtain a spatial relationship matrix at high resolution;

[0117] Step 4-3 generates an occlusion posture graph through step 2, obtains the node features of each joint point, and regards the node features as the initial node features;

[0118] Step 4-4 inputs the spatial relationship matrix obtained in step 4-2 and the initial node features obtained in step 4-3, performs spatial relationship propagation in step 3, and obtains the node features after activation response, which are regarded as the node features after spatial fusion in the first stage;

[0119] Step 4-5 repeats step 3 spatial relationship propagation three times, a total of four spatial relationship propagations, converting the node features after spatial fusion in the first stage into the node features after spatial fusion in the fourth stage, such as Figure 3 (c);

[0120] Step 4-6 performs loss calculation based on the node features after spatial fusion in the fourth stage and the real node position response map marked in the training set. The loss calculation is the mean square error formula;

[0121] Step 4-7 uses the loss function of step 4-6 to train the teacher network and obtain the teacher network model parameters;

[0122] Steps 4-8 use the teacher network model parameters to predict the training images and obtain the node supervision labels of the teacher network, such as Figure 3 (d);

[0123] Step 4-9 calculates the supervision relationship between node pairs according to the node supervision labels of the teacher network, and obtains the supervision signal between the node pairs of the teacher network.

[0124]

[0125] Where x and y are the horizontal and vertical coordinates of the actual node position. are the horizontal and vertical coordinates of the positions of node i and node j predicted by the teacher network.

[0126] Step 5: Student network training in distillation learning:

[0127] Step 5-1 inputs a low-resolution scene graph, where the resolution of the low-resolution scene graph is W x H;

[0128] Step 5-2: Through step 1, spatial relationship learning is performed to obtain a spatial relationship matrix at a low resolution;

[0129] Step 5-3 generates an occlusion posture graph through step 2, obtains the node feature of each joint point, and regards the node feature as the initial node feature;

[0130] Step 5-4 inputs the spatial relationship matrix obtained in step 5-2 and the initial node features obtained in step 5-3, performs spatial relationship propagation in step 3, and obtains the node features after activation response, which are regarded as the node features after spatial fusion in the first stage;

[0131] Step 5-5 calculates the loss based on the node features after spatial fusion in the first stage and the real node position response map marked in the training set. The loss is calculated as the mean square error;

[0132] Step 5-6: Calculate the relationship between node pairs according to the node characteristics of the student network to obtain the node signals between the node pairs of the student network;

[0133]

[0134] Where x and y are the horizontal and vertical coordinates of the actual node position. are the horizontal and vertical coordinates of the positions of node i and node j predicted by the student network

[0135] Step 5-7: Label the nodes between the node pairs of the student network The supervision signal of the node pair in the teacher network obtained in steps 4-9 Calculate the loss, the loss function is the mean square error formula;

[0136]

[0137] Step 5-8 sums the loss function obtained in step 5-5 with the loss function obtained in step 5-7 to obtain the total loss function of the student network, such as Figure 5 ;

[0138] L Loss =L mse +L skd

[0139] Where L mse is the mean square error loss term of the node position obtained in step 5-5, L skd is the mean square error loss term of the node pair obtained in steps 5-7.

[0140] Steps 5-9 train the student network according to the total loss function of the student network to obtain the student network model parameters.

[0141] Step 6: Red light running behavior posture recognition network training:

[0142] Step 6-1: Use the student network model to locate the input image and obtain the joint point position;

[0143] Step 6-2: The node features are learned through step 2, and the maximum pooling is performed to obtain the features of the pooled nodes, whose size is W x H;

[0144] Step 6-3 concatenates the pooled node features of the 16 nodes to obtain a posture feature matrix with a size of W xH x 16

[0145] Step 6-4: Input the posture feature matrix into the Resnet posture recognition network to perform red light running posture recognition and obtain the predicted mark, the mark range is red light running and non-red light running;

[0146] Step 6-5 calculates the loss of the predicted label obtained in step 6-3 and the label of the training set to obtain the loss function. The loss function is in the form of a two-norm loss.

[0147] Step 6-6 trains the red light running behavior detection network according to the total loss function of the red light running behavior detection network to obtain the red light running behavior detection network model parameters.

[0148] Step 7: Block pedestrian red light running gesture recognition:

[0149] Step 7-1 Input the captured image and use the student network to obtain the joint point position;

[0150] Step 7-2: The node features are learned through step 2, and the maximum pooling is performed to obtain the features of the pooled nodes, whose size is W x H;

[0151] Step 7-3 concatenates the pooled node features of the 16 nodes to obtain a posture feature matrix with a size of W xH x 16

[0152] Step 7-4 inputs the posture feature matrix into the red light running behavior detection network for detection to obtain the red light running recognition result, such as Figure 6 ;

[0153] Step 7-5 marks the posture of the person who runs the red light, and the system warns and visualizes the pedestrian who runs the red light.

Claims

1. A method for edge device-based recognition of pedestrian red light running gestures, characterized in that: When the red light is on, capture the pedestrian image and detect the red light running behavior, which includes the following steps: Step 1: Obtain a learned spatial relationship matrix by learning the spatial relationship of the red light running posture; Step 2: Generate an occlusion posture graph based on the input pedestrian image; Step 3: Based on the generated occlusion posture graph, the spatial relationship of the red light running posture is propagated; Step 4: Use the distillation learning method to perform high-resolution teacher network training to obtain the teacher network parameter model; Step 5: Use distillation learning method to train the student network and obtain the student network parameter model; Step 6: Conduct red light running behavior detection network training; Step 7: Detect the red light running posture of the blocked pedestrian to realize the red light running and non-red light running status recognition; The spatial relationship matrix obtained by learning the spatial relationship of the red light running posture described in step 1 specifically includes the following steps: Step 1-1, input the red light running training set, the training set image size is WxH, and obtain the 16 joint point positions of each human body in the training set image; Step 1-2: For each of the 16 joint positions of the human body, a relative spatial relationship matrix is ​​constructed with a matrix size of 2W x 2H. Step 1-2-1, calculate the vector between every two joint positions; Step 1-2-2: Count the vectors between the joint positions and construct the node relationship matrix D ij; Step 1-3: Normalize and convolve the relative spatial relationship matrix to obtain the spatial relationship matrix P after convolution learning. ij , The method for generating an occlusion posture graph described in step 2 comprises the following steps: Step 2-1: Use the HRNet network to detect the input image and obtain the heat map of each human joint point; Step 2-2, according to the heat map obtained in step 2-1, obtain the joint point position and its corresponding score; Step 2-3, set a threshold according to the joint point score, consider low-scoring nodes as occluded nodes, and high-scoring nodes as visible nodes, and obtain an occluded node set and a visible node set; Step 2-4: The heat map of each joint point is regarded as a node feature. The node feature size is W x H x 64, where 64 is the number of channels of a joint point heat map. The method for propagating the spatial relationship of the red light running posture described in step 3 comprises the following steps: Step 3-1, obtain node propagation characteristics: Step 3-1-1, normalize the node features obtained in step 2-4 to obtain normalized node features; Step 3-1-2, perform full connection processing on the node features to obtain the node propagation feature vi; Step 3-2, obtain edge features: Step 3-2-1, subtract the end node feature from the start node feature obtained in step 2-4 to obtain the edge feature; Step 3-2-2, normalize the edge features to obtain normalized edge features; Step 3-2-3: Perform full connection processing on the normalized edge features to obtain the edge features e after linear transformation ij ; Step 3-2-4: Add edge feature e ij As the convolution kernel, the spatial relationship matrix P obtained in steps 1-3 is ij , perform convolution Where ⊙ is the convolution operation to obtain edge propagation features; Step 3-3: propagate the node feature v obtained in step 3-1-2 i Sum the edge propagation features obtained in step 3-2-4 to obtain the fusion feature v j ; in is the bias parameter in the fusion model; Step 3-4: Perform RELU transformation on the fused features to obtain the node features after activation response; The distillation learning method described in step 4 is used to perform high-resolution teacher network training to obtain a teacher network parameter model, which specifically includes the following steps: Step 4-1, input a high-resolution scene graph, the resolution of the high-resolution scene graph is 2W x 2H; Step 4-2: Perform red light running posture spatial relationship learning to obtain a high-resolution spatial relationship matrix; Step 4-3, generate an occlusion posture graph, obtain the node features of each joint point, and regard the node features as the initial node features; Step 4-4, input the spatial relationship matrix obtained in step 4-2 and the initial node features obtained in step 4-3, perform spatial relationship propagation, and obtain the node features after activation response, which are regarded as the node features after spatial fusion in the first stage; Step 4-5: Repeat the spatial relationship propagation three times, a total of four spatial relationship propagations, and convert the node features after spatial fusion in the first stage into the node features after spatial fusion in the fourth stage; Step 4-6: Based on the node features after spatial fusion in the fourth stage and the real node position response map marked in the training set, the loss is calculated using the mean square error formula; Step 4-7: Use the loss function of step 4-6 to train the teacher network and obtain the teacher network model parameters; Step 4-8: Use the teacher network model parameters to predict the training image and obtain the node supervision label of the teacher network; Step 4-9, according to the node supervision labels of the teacher network, the supervision relationship between the node pairs is calculated to obtain the supervision signal between the node pairs of the teacher network; Where x and y are the horizontal and vertical coordinates of the actual node position. are the horizontal and vertical coordinates of the positions of node i and node j predicted by the teacher network; The distillation learning method is used to train the student network in step 5 to obtain the student network parameter model, which specifically includes the following steps: Step 5-1, input a low-resolution scene graph, the resolution of the low-resolution scene graph is W x H; Step 5-2: Perform red light running posture spatial relationship learning to obtain a low-resolution spatial relationship matrix; Step 5-3, generate an occlusion posture graph, obtain the node features of each joint point, and regard the node features as the initial node features; Step 5-4: Input the spatial relationship matrix obtained in step 5-2 and the initial node features obtained in step 5-3, perform spatial relationship propagation, and obtain the node features after activation response, which are regarded as the node features after spatial fusion in the first stage; Step 5-5, based on the node features after spatial fusion in the first stage, the loss is calculated with the real node position response map marked in the training set, and the loss is calculated as the mean square error; Step 5-6: Calculate the relationship between node pairs according to the node characteristics of the student network, and obtain the node signals between the node pairs of the student network; Where x and y are the horizontal and vertical coordinates of the actual node position. are the horizontal and vertical coordinates of the positions of node i and node j predicted by the student network; Step 5-7: Node marking between node pairs of the student network The supervision signal of the node pair in the teacher network obtained in steps 4-9 Calculate the loss, the loss function is the mean square error formula; Step 5-8, sum the loss function obtained in step 5-5 and the loss function obtained in step 5-7 to obtain the total loss function of the student network; L Loss =L mse +L skd Where L mse is the mean square error loss term of the node position obtained in step 5-5, L skd is the mean square error loss term of the node pair obtained in steps 5-7; Step 5-9: According to the total loss function of the student network, train the student network to obtain the student network model parameters; The red light running behavior detection network training method described in step 6 specifically includes the following steps: Step 6-1: Use the student network model to locate the input pedestrian image and obtain the joint point position; Step 6-2, obtain node features through red light running posture spatial relationship learning, perform maximum pooling, and obtain the features of the pooled nodes, whose size is W x H; Step 6-3, concatenate the pooled node features of the 16 nodes to obtain a posture feature matrix with a size of W x Hx16; Step 6-4: Input the posture feature matrix into the Resnet posture recognition network to perform red light running posture recognition and obtain a predicted mark, the mark range is red light running and non-red light running; Step 6-5: Calculate the loss of the predicted label obtained in step 6-3 and the label of the training set to obtain a loss function, in the form of a two-norm loss; Step 6-6: According to the total loss function of the red light running behavior detection network, the red light running behavior detection network is trained to obtain the red light running behavior detection network model parameters.

2. The method for edge device-oriented red light running gesture recognition of blocked pedestrians according to claim 1, characterized in that: The method for detecting the posture of a pedestrian running a red light by blocking a pedestrian described in step 7 specifically comprises the following steps: Step 7-1: Input the captured pedestrian image and use the student network to obtain the joint point position; Step 7-2, obtain node features through red light running posture spatial relationship learning, perform maximum pooling, and obtain the features of the pooled nodes, whose size is W x H; Step 7-3, concatenate the pooled node features of the 16 nodes to obtain a posture feature matrix with a size of W x Hx16; Step 7-4, input the posture feature matrix into the red light running behavior detection network, perform detection, and obtain the red light running recognition result; Step 7-5: Mark the posture of the person who runs the red light, and the system warns and visualizes the pedestrian who runs the red light.