Train driver gesture action recognition method
By using the AlphaPose algorithm to analyze the angle changes of the driver's upper limb movements, and generating trend charts for filtering, the problem of insufficient real-time and accuracy in the detection of train driver's gesture movements in the existing technology is solved, and more efficient movement recognition and Lower cost system design.
Patent Information
- Application Number
- CN202410680149.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-29
- Publication Date
- 2024-09-13
AI Technical Summary
The existing train driver gesture movement detection system has shortcomings in real-time performance and accuracy, especially in complex dynamic environments, which may lead to misjudgment, and the system complexity and cost are high.
The AlphaPose algorithm is used to capture the movements of the driver's upper limbs, classify and identify movements by calculating the angle change range of the shoulder and elbow, and generate trend charts for filtering to achieve real-time and accurate recognition of the driver's gestures.
It improves the accuracy and real-time performance of driver gesture and action recognition, simplifies data calculation, reduces system complexity and cost, and enhances detection reliability.
Smart Images

Figure CN118644891A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of computer graphics and image processing, and in particular to a method for recognizing gestures of a train driver. Background Art
[0002] The actions of train drivers are crucial to the safety and operating efficiency of the train system. They need to stay focused, patient and able to cope with various unforeseen situations. The correct behavior of the driver can ensure that the train arrives at the destination on time and ensure the travel experience and safety of passengers. Therefore, the driving action of the train driver is one of the key factors to ensure the safe operation of the train. Whether the driver's driving action is qualified and accurate will directly affect the safety of the train. Correct driving actions can reduce the occurrence of accidents and ensure the safety of passengers and the surrounding environment. Therefore, the driver's operations, including starting, stopping, accelerating, decelerating, turning, etc., should be accurate. Any operational errors may cause abnormal train operation or accidents.
[0003] In order to ensure that the driver's actions meet safety standards and ensure the safety of passengers and vehicles, train driver gesture detection is necessary and crucial. The current methods used include detection systems based on sensors, cameras or deep learning technology.
[0004] Traditional sensors and manual camera detection not only require a lot of time and manpower, but also have some disadvantages, such as dependence on environmental conditions: the camera or sensor is affected by factors such as light, shadow, and occlusion, which may lead to reduced detection accuracy; complexity, some methods may require complex data processing and algorithms, increasing the complexity and cost of the system.
[0005] Existing action detection algorithms include but are not limited to the following: 1. Human key point detection algorithms: These algorithms are designed to detect key points of the human body, such as body joints and body parts. Some popular algorithms include OpenPose, AlphaPose, etc.; 2. Deep learning-based action recognition algorithms: These algorithms use deep learning techniques, such as convolutional neural networks (CNN) or recurrent neural networks (RNN), to classify or recognize actions in video sequences. Some commonly used models include 3D CNN, LSTM (Long Short-Term Memory Network), GRU (Gated Recurrent Unit), etc.; 3. Behavior recognition and behavior analysis algorithms: These algorithms identify and classify specific behaviors by analyzing behavior patterns and action features in video sequences. Common technologies include optical flow analysis, action descriptor extraction, and the application of machine learning classifiers; 4. Optical flow analysis algorithms: These algorithms infer actions by analyzing the motion patterns of pixels in video sequences. Optical flow is a technology that describes the motion of pixels between consecutive frames and is often used in action detection and activity analysis; 5. Action recognition algorithms based on posture estimation: These algorithms use posture estimation techniques, such as human posture estimation or hand posture estimation, to infer actions. These algorithms usually combine methods of human key point detection and action classification; 6. Hybrid models: Some action detection algorithms combine multiple technologies and methods, such as combining deep learning models with traditional image processing techniques to improve detection accuracy and stability.
[0006] However, these methods still have certain problems and defects when applied to driver action detection; real-time: some systems may have a lag in processing speed and cannot recognize and respond to the driver's gestures in real time, thus affecting safety; accuracy: although technologies such as deep learning have made progress in gesture recognition, there is still a possibility of misjudgment, especially in complex dynamic environments, resulting in low accuracy in driver actions.
[0007] In summary, although there are currently a variety of methods for train driver gesture detection, there are still some challenges and room for improvement, which require further research and improvement. How to combine accurate algorithms with simpler and more effective data calculations to improve the accuracy, real-time and reliability of driver gesture recognition has become a current research hotspot. Summary of the invention
[0008] In view of this, an object of the present invention is to provide a method for recognizing gestures of a train driver, which can accurately recognize the gestures of the driver in real time during the driver's actual driving process.
[0009] To achieve the above object, the present invention adopts the following contents:
[0010] The present invention provides a method for identifying a train driver's gesture action, comprising the following steps:
[0011] S1. Obtaining video information of the driver's working scene in the cab;
[0012] S2. Capture the upper limb movements of the driver in the video based on the AlphaPose algorithm, mainly capturing the four key points of the driver's left shoulder, right shoulder, left elbow, and right elbow. The straight line between the left shoulder and the right shoulder is recorded as a, the straight line between the left shoulder and the left elbow is recorded as b, and the straight line between the right shoulder and the right elbow is recorded as c;
[0013] S3. Calculate the angle between the vector of a and the vector of b, denoted as α; calculate the angle between the vector of a and the vector of c, denoted as β;
[0014] S4, statistically classifying all the different professional actions of the driver, and calculating the angle variation range of each professional action, which is the threshold;
[0015] S5. Calculate the average of α values for all frames within one second Average the β calculations for all frames within one second
[0016] S6. Set all the seconds in the video A trend graph A is obtained by statistics, showing the number of seconds in the video. A trend graph B is obtained by statistics;
[0017] S7. Filter trend graph A and trend graph B according to a threshold value of a specific professional action to obtain a corresponding number of seconds when the driver performs the specific professional action in the video.
[0018] Preferably, the step S2: processes the acquired video information, and uses the symmetric space transformation network in the AlphaPose algorithm to extract high-quality driver target candidate frames from the inaccurate region frames.
[0019] Preferably, the step S2: utilizes parameterized posture non-maximum suppression in the AlphaPose algorithm to solve the problem of redundant postures, obtains the accurate upper limb posture of the driver, and extracts upper limb key point information.
[0020] Preferably, in step S2: after extracting the key point information of the driver's upper limbs, calculate the predicted score of each key point position, and obtain the specific coordinates of each key point by screening the maximum value among the preset scores. After all the key point position coordinates are recorded, the position coordinates of the four key points required in each frame of the video are screened out.
[0021] Preferably, in step S6, the horizontal axis of the trend graph A is the total number of seconds of the video, and the vertical axis is the number of seconds per second. The horizontal axis of trend chart B is the total number of seconds of the video, and the vertical axis is the number of seconds per second.
[0022] Compared with the prior art, the advantages of the present invention are: the present invention first uses the AlphaPose algorithm to detect key points of the cab video, and the detection accuracy and speed are better than other detection algorithms. Since the subsequent action detection requires the use of the coordinates of each key point, the accuracy of the coordinates is particularly important; since the angle of the driver's limbs will change when making specific gestures, different types of standard actions can be efficiently distinguished, so that different types of standard actions have their own thresholds, that is, angle change ranges, and it is very simple to modify the thresholds or add new gesture action thresholds later; the cab video can be predicted in real time, and the algorithm detection of key points and angle calculations are relatively small, and the application is faster and more convenient. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] The specific implementation modes of the present invention will be further described in detail below in conjunction with the accompanying drawings.
[0024] Figure 1 It is a corresponding implementation diagram of a method for identifying a train driver's gesture based on upper limb posture estimation according to an embodiment of the present invention;
[0025] Figure 2 is to count all the seconds in the video Statistically obtained trend graph A;
[0026] Figure 3 is to count all the seconds in the video Statistically obtained trend graph B;
[0027] Figure 4 is based on Figure 1 The overall graph is obtained by filtering trend graph A and trend graph B according to the threshold of the specific professional action performed. DETAILED DESCRIPTION
[0028] In order to explain the present invention more clearly, the present invention is further described below in conjunction with preferred embodiments. It should be understood by those skilled in the art that the following specific description is illustrative rather than restrictive, and should not be used to limit the scope of protection of the present invention.
[0029] Based on the train driver's action detection, we first need to study the connection and difference between different actions and how to identify and detect such actions. Among the existing action detection algorithms, the human key point detection algorithm has unique advantages for train driver action detection.
[0030] The key point detection algorithm of the human body has the following advantages: 1. Accurate positioning: The key point detection algorithm of the human body can accurately locate the key points of the driver's body, such as the head, hands, torso and other parts, so as to capture the driver's movements and postures more accurately; 2. Real-time: These algorithms can usually quickly identify and track the key points of the human body in the real-time video stream, so the driver's movements can be monitored in real time, and abnormal or dangerous behaviors can be discovered in time; 3. Strong adaptability: The key point detection algorithm of the human body can usually adapt to the changes in human posture in different scenes and environments, including changes in lighting, background interference, etc., so it has strong adaptability in train driver motion detection; 4. Lightweight model: Some key point detection algorithms of the human body are designed as lightweight models with low computational complexity and resource consumption, which are suitable for deployment on embedded systems or edge devices to achieve real-time motion monitoring; 5. Multi-tasking: Some key point detection algorithms of the human body can process multiple key point detections of the human body at the same time, so in the train driver motion detection, the driver and the interns around him can be monitored at the same time, thereby improving safety and service quality.
[0031] Based on the above advantages, the inventor uses the key point detection algorithm AlphaPose as the basic method for action detection. Some advantages of AlphaPose over OpenPose include: performance of multi-person pose estimation. AlphaPose performs better in multi-person pose estimation and can detect and track the key points of multiple people at the same time, while OpenPose may have positioning errors or key point confusion when dealing with multi-person scenes; accuracy and stability: AlphaPose has relatively high accuracy and stability in key point positioning, and can accurately capture the posture of the human body, especially in complex backgrounds or occlusions, and its performance is more reliable; speed and efficiency: AlphaPose has higher running speed and computing efficiency to a certain extent, especially when processing large-scale video streams or real-time applications, AlphaPose may be faster and more efficient than OpenPose; flexibility and customizability: AlphaPose provides more parameter configuration options and customizability, and users can adjust and optimize according to actual needs to meet the requirements of different scenarios and applications.
[0032] Based on the above analysis, the inventor designed a method for recognizing train driver gestures. The recognition process can be summarized as data loading, manual extraction frame detection, processing detection results, posture estimation, generating respective key points, posture processing module, processing and saving posture results.
[0033] Example:
[0034] This embodiment provides a method for recognizing a train driver's gesture, comprising the following steps:
[0035] S1: Obtain video information of the driver's working scene in the cab. The content of the video information includes the entire back area of the driver. In actual implementation, the required driver image can be obtained through the camera in the cab. The specific installation position of the camera can be reasonably set according to the specific space layout inside the cab, which will not be repeated here.
[0036] S2: Process the acquired video information and use the symmetric space transformation network in the AlphaPose algorithm to extract high-quality driver target candidate frames from the inaccurate region frames;
[0037] The parameterized posture non-maximum suppression in the AlphaPose algorithm is used to solve the problem of redundant postures, obtain the driver's accurate upper limb posture, and extract the upper limb key point information;
[0038] After extracting the key point information of the driver's upper limbs, calculate the predicted score of each key point position, and obtain the specific coordinates of each key point by screening the maximum value among the preset scores. After all the key point position coordinates are recorded, screen out the position coordinates of the four key points required in each frame of the video;
[0039] The four key points are the driver's left shoulder, right shoulder, left elbow, and right elbow. The straight line between the left shoulder and the right shoulder is denoted as a, the straight line between the left shoulder and the left elbow is denoted as b, and the straight line between the right shoulder and the right elbow is denoted as c. Figure 1 shown.
[0040] S3: Calculate the angle between the vector of a and the vector of b, denoted as α; calculate the angle between the vector of a and the vector of c, denoted as β;
[0041] Angle calculation can be regarded as the angle between two vectors. If the vectors are represented by m = (x1, y1) and n = (x2, y2), the formula for calculating the cosine value of the angle is:
[0042]
[0043] S4: Statistically classify all the different professional actions of the driver, and calculate the angle variation range of each professional action, which is the threshold.
[0044] S5: Average the alpha calculations for all frames within one second Average the β calculations for all frames within one second
[0045] Since the driver's movements in each frame of the video are very subtle, the range of change of the two angles is expanded from each frame to each second. That is, the average of the angles of all frames within one second represents the angle of this second. In this way, the angles of the left and right parts of the upper limbs in each second of the video are calculated and saved separately.
[0046] S6: All seconds in the video A trend graph A is obtained by statistics, such as Figure 2 As shown, all seconds in the video A trend graph B is obtained by statistics, such as Figure 3 As shown in the figure, the horizontal axis of trend graph A is the total number of seconds of video, and the vertical axis is the number of seconds per second. The horizontal axis of trend chart B is the total number of seconds of the video, and the vertical axis is the number of seconds per second.
[0047] S7: Filter trend graph A and trend graph B according to the threshold of the specific professional action to obtain the corresponding number of seconds when the driver performs the specific professional action in the video.
[0048] like Figure 4 As shown in the figure, it is the final filtered overall picture. After filtering, the left hand raising action (such as Figure 1 ) are: 31, 61, 90, 114, 139, 187, 194, 214, 245, 269, 351, 436, 445, 473, 505, 527, 596, which correspond to the 17 times when specific actions are actually performed in the video.
[0049] Since the driver needs to confirm the information seen and heard in front of him in real time, the gesture action will also be synchronized to the database in real time. The purpose of using the recognition method described in this application is to confirm whether the driver has made the corresponding gesture action at the corresponding time point and whether the action mark is standard, and then output the comparison result after comparing it with the database.
[0050] Obviously, the above embodiments of the present invention are merely examples for clearly illustrating the present invention, and are not limitations on the implementation methods of the present invention. For ordinary technicians in the relevant field, other different forms of changes or modifications can be made on the basis of the above description. It is impossible to list all the implementation methods here. All obvious changes or modifications derived from the technical solution of the present invention are still within the protection scope of the present invention.
Claims
1. A method for recognizing gestures of a train driver, characterized in that: The following steps are involved: S1. Obtaining video information of the driver's working scene in the cab; S2. Capture the upper limb movements of the driver in the video based on the AlphaPose algorithm, mainly capturing the four key points of the driver's left shoulder, right shoulder, left elbow, and right elbow. The straight line between the left shoulder and the right shoulder is recorded as a, the straight line between the left shoulder and the left elbow is recorded as b, and the straight line between the right shoulder and the right elbow is recorded as c; S3. Calculate the angle between the vector of a and the vector of b, denoted as α; calculate the angle between the vector of a and the vector of c, denoted as β; S4, statistically classifying all the different professional actions of the driver, and calculating the angle variation range of each professional action, which is the threshold; S5. Calculate the average of α values for all frames within one second Average the β calculations for all frames within one second S6. Set all the seconds in the video A trend graph A is obtained by statistics, showing the number of seconds in the video. A trend graph B is obtained by statistics; S7. Filter trend graph A and trend graph B according to a threshold value of a specific professional action to obtain a corresponding number of seconds when the driver in the video performs the specific professional action.
2. A train driver gesture recognition method according to claim 1, characterized in that: The step S2: processing the acquired video information, and using the symmetric space transformation network in the AlphaPose algorithm to extract high-quality driver target candidate frames from the inaccurate region frames.
3. A train driver gesture recognition method according to claim 2, characterized in that: The step S2: using the parameterized posture non-maximum suppression in the AlphaPose algorithm to solve the problem of redundant postures, obtain the accurate upper limb posture of the driver, and extract the upper limb key point information.
4. A train driver gesture recognition method according to claim 3, characterized in that: In step S2: after extracting the key point information of the driver's upper limbs, the predicted score of each key point position is calculated, and the specific coordinates of each key point are obtained by screening the maximum value among the preset scores. After all the key point position coordinates are recorded, the position coordinates of the four key points required in each frame of the video are screened out.
5. A train driver gesture recognition method according to claim 1, characterized in that: Step S6: The horizontal axis of the trend graph A is the total number of seconds of the video, and the vertical axis is the number of seconds per second. The horizontal axis of trend chart B is the total number of seconds of the video, and the vertical axis is the number of seconds per second.
Citation Information
Patent Citations
Refueling area service quality detection system based on gesture automatic detection
CN110490125A
Method for identifying and detecting mobile phone operation behavior of driver in combination with skeleton key points
CN115393829A
Cited By
Motion capture method for safety officer skill assessment
CN121436741A
A motion capture method for security guard skill examination
CN121436741B
