Underground coal mine driver abnormal behavior detection method based on IAT and YOLOv8-Pose

By applying IAT underground in coal mines and improving the detection method of YOLOv8-Pose, the problem of missed driver behavior detection in low-illumination environments has been solved, and the abnormal behavior of drivers in coal mines can be accurately identified and alarmed, improving safety.

CN118587688APending Publication Date: 2024-09-03TIANDI CHANGZHOU AUTOMATION +1

Patent Information

Application Number
CN202410753880.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-12
Publication Date
2024-09-03

AI Technical Summary

Technical Problem

Existing driver behavior abnormality detection technology is prone to missed detection in the low illumination and low visibility environment of coal mines, making it difficult to effectively identify and provide early warning.

Method used

Using a detection method based on IAT and improved YOLOv8-Pose, through adaptive lighting image enhancement algorithm and dynamic feature fusion attention mechanism, it improves image quality and improves the robustness of human body key point detection, extending to 22 key point detection. Analyze facial, head posture, and upper body movements to determine abnormal behavior.

Benefits of technology

It improves the accuracy and real-time performance of driver key point detection in low-illumination environments, and can effectively identify and alarm abnormal behaviors, such as smoking, talking on the phone, taking hands off the steering wheel, etc., improving the safety of underground mobile applications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118587688A
    Figure CN118587688A
Patent Text Reader

Abstract

The invention relates to the field of coal mine underground intelligent auxiliary transportation, in particular to a coal mine underground driver abnormal behavior detection method based on IAT and YOLOv8-Pose, and the method comprises the steps: collecting image information in the driving process of a driver, and carrying out the classification and enhancement processing of an image; the key points of the human body are detected through an improved YOLOv8-Pose model; the abnormal behavior of the driver is judged by analyzing face key points, head postures and upper limb actions in the human body key points, and alarm output is performed; wherein the improved YOLOv8-Pose model comprises an input end, a backbone network Backbone, a Neck module and an output end head, and a module dynamic feature fusion attention mechanism DFFA for dynamically fusing shallow features and deep features is arranged in the Neck module. According to the invention, an adaptive illumination image enhancement preprocessing algorithm is constructed based on Resnet + IAT, a DFFA module is used in a neck Neck structure on the basis of YOLOv8-Pose human body key point detection, image human body target edge features are enhanced, and the human body key point detection capability in an underground low-illumination complex environment is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of intelligent assisted transportation in coal mines, and in particular to a method for detecting abnormal behavior of drivers in coal mines based on IAT and YOLOv8-Pose. Background Art

[0002] my country is a large country in coal production and mining. Auxiliary transportation is an important part of the daily operation of coal mine production. Auxiliary transportation vehicle drivers play a vital role. They are responsible for driving various transportation equipment to ensure the smooth transportation of raw materials such as coal. In order to ensure the safety of drivers and improve the efficiency of coal mine production, it is particularly important to conduct real-time and accurate detection and early warning of abnormal behaviors of auxiliary transportation vehicle drivers, so as to effectively avoid accidents.

[0003] With the rapid development of artificial intelligence and computer vision technology, abnormal driver behavior detection has become a hot research field. The top-down method first identifies all human contours and then estimates the single person's posture. Common algorithms include HRNet, CPN, CPM, etc. The bottom-up method is the opposite of the top-down method. It first detects the key points of the human body, extracts the features of the key points, and predicts the candidate key points. Then the candidate key points are grouped. Common algorithms include OpenPose, Hourglass and HigherHRNet. The YOLO-Pose series can realize the functions of target detection and human key point posture estimation. It does not need to use independent target detection algorithms and separate human posture estimation networks to locate key points. It omits the post-processing steps and multiple forward propagation processes of key points. It has more advantages in terms of accuracy and speed, and achieves higher accuracy and real-time performance in ground / visible light scenes.

[0004] However, the underground tunnels are dim and unevenly lit, and there is interference from external light sources such as mining lamps and car lights. In addition, the driver's monitoring camera is installed on the four sides of the cab, which is mostly two-way perspective glass. The interference of light and the complex background of the cab can easily cause target loss and false detection of key points. Secondly, the driver's flexible and changeable body movements not only increase the difference and complexity of the distribution between the joints, but also cause the loss of feature information of some joints due to the self-occlusion of the joints. Mining vehicles are special engineering vehicles, and the installation position of the cab is limited. The occlusion of components such as operating levers and steering wheels will lose the feature information of some joints of the human body in the picture, destroy the correlation between the joints, and increase the difference of each joint in the picture distribution. Due to the special environment of the underground, it faces the challenges of multiple factors such as multi-scale, occlusion, and low illumination in the detection of driver's facial and limb key points. The existing driver behavior abnormality detection technology is prone to missed detection. Therefore, studying the robust recognition of driver's facial and limb key points in complex environments such as low illumination underground is an urgent problem to be solved. Summary of the invention

[0005] The technical problem to be solved by the present invention is that the existing driver behavior abnormality detection technology is prone to missed detection in the special environment of low illumination and low visibility in mines.

[0006] To this end, the present invention provides a method.

[0007] The technical solution adopted by the present invention to solve the technical problem is:

[0008] A method for detecting abnormal behavior of drivers in coal mines based on IAT and YOLOv8-Pose, comprising the following steps:

[0009] Step 1: Collect image information of the driver during driving, and classify and enhance the image;

[0010] Step 2: Use the improved YOLOv8-Pose model to detect key points of the human body;

[0011] Step 3: By analyzing the facial key points, head posture, and upper limb movements of the human body, the driver's abnormal behavior is judged and an alarm is output;

[0012] Among them, the improved YOLOv8-Pose model includes an input end, a backbone network Backbone, a Neck module and an output end head. The Neck module is provided with a module dynamic feature fusion attention mechanism DFFA for dynamically fusing shallow features and deep features.

[0013] Furthermore, in step one, an image enhancement algorithm based on IAT and adaptive illumination is used for image preprocessing, and the algorithm includes a driver image classification module and an image enhancement module.

[0014] Furthermore, in step 2, in the improved YOLOv8-Pose model, a C2f module is used in the Backbone, a PAN structure is used in the Neck part, and the output end head includes a human target detection Box and key points.

[0015] Furthermore, in the improved YOLOv8-Pose model, first, the i-th input feature NIi and the i-th output feature NOi of Neck are subjected to Concat and a convolution Conv to obtain the offset Offset of the deformable convolution, and then Offset and NIi are used as inputs of the deformable convolution DCnv to obtain N1i. The deformable convolution uses the offset Offset to dynamically adjust the input feature to align with NOi, and then N1i and NOi are concatenated and CBS (Conv+Batch Norm+SiLU) is used to obtain N2i. The CBAM attention mechanism is used for N2i to obtain the final output DOi.

[0016] Furthermore, in step three, facial key point analysis includes detection and judgment of the aspect ratio of eyes and mouth, and an alarm is triggered when the aspect ratio of eyes or mouth exceeds a threshold and lasts for a period of time.

[0017] Furthermore, in step three, head posture estimation converts the two-dimensional position coordinates into three-dimensional coordinates, and obtains the head posture angle through a facial image. In three-dimensional space, the rotation of the object can be represented by three Euler angles: pitch (rotation around the X-axis), yaw (rotation around the Y-axis) and roll (rotation around the Z-axis) are calculated respectively.

[0018] Furthermore, in step three, the analysis of upper limb movements determines whether abnormal behaviors such as smoking, making phone calls, and taking both hands off the steering wheel occur by analyzing the relative positions of upper limb key points and facial key points.

[0019] Furthermore, the circumscribed rectangle of the upper, lower, left and right edge points of the mouth is taken as the mouth ROI area. When the key point of the left or right middle finger is within the mouth ROI area and the duration exceeds the time threshold t, it is judged that smoking behavior exists, triggering the smoking driver abnormal behavior alarm.

[0020] Furthermore, a rectangular ROI area of ​​the ear is constructed with the ear key point as the center. When the key point of the left or right middle finger is within the ear ROI area and the duration exceeds the time threshold t, it is judged that there is a phone call behavior, and an abnormal behavior alarm for the driver making a phone call is triggered.

[0021] Furthermore, a rectangular ROI area of ​​the steering wheel is set. When the key points of the left hand or the right middle finger are not within the steering wheel ROI area and the duration exceeds the time threshold t, it is judged that there is a behavior of both hands leaving the steering wheel, triggering an abnormal behavior alarm of the driver with both hands leaving the steering wheel.

[0022] The beneficial effect of the present invention is that, for the low-light application environment in mines, this application adopts an adaptive lighting image enhancement preprocessing algorithm based on Resnet+IAT, intelligently adjusts image enhancement or exposure correction, improves the quality of images collected under complex lighting conditions underground, and better adapts to underground vehicle application scenarios.

[0023] In the process of driver status recognition, based on the YOLOv8-Pose human key point detection, it is expanded to 22 key point detection of the human body. In order to adapt to low-light scenes, the DFFA module is used in the neck structure to integrate shallow and deep features, enhance the edge features of the human target in the image, and improve the key point detection capability of the human body in the complex low-light environment underground. According to the key points of the human body, the facial, eye and mouth states, head posture and sight tracking, body movements, etc. are analyzed to determine whether the driver has abnormal driving behaviors such as yawning, closing eyes, playing with mobile phones, smoking, and inattention, and output alarm information in time. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] The present invention is further described below in conjunction with the accompanying drawings and embodiments.

[0025] Figure 1 It is a flow chart of the abnormal behavior detection method of coal mine drivers based on IAT and YOLOv8-Pose in the present invention.

[0026] Figure 2 It is a flow chart of the image enhancement algorithm in the present invention.

[0027] Figure 3 It is a structural diagram of the IAT algorithm network in the present invention.

[0028] Figure 4 It is a schematic diagram of the overall structure of the PEM module in the present invention.

[0029] Figure 5 It is a schematic diagram of the distribution of 22 key points of the human body in the present invention.

[0030] Figure 6 It is a structural diagram of the overall network of the improved YOL0v8-Pose model in the present invention.

[0031] Figure 7 It is a schematic diagram of the structure of the DFFA module in the present invention.

[0032] Figure 8 Schematic diagram of the head posture angle in the present invention.

[0033] Fig. 9 It is a schematic diagram of sight line tracking in the present invention. DETAILED DESCRIPTION

[0034] The present invention will now be described in further detail with reference to the accompanying drawings. These drawings are simplified schematic diagrams, which only illustrate the basic structure of the present invention in a schematic manner, and therefore only show the components related to the present invention.

[0035] In the description of the present invention, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", "clockwise", "counterclockwise", "axial", "radial", "circumferential" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention. In addition, features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present invention, unless otherwise specified, "multiple" means two or more.

[0036] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0037] A method for detecting abnormal behavior of drivers in coal mines based on IAT and YOLOv8-Pose, characterized by comprising the following steps:

[0038] Step 1: Image data acquisition

[0039] The camera is installed in front of the driver's seat of the explosion-proof rubber-tyred trackless vehicle to fully collect the original RGB image data of the driver while driving in the coal mine.

[0040] Step 2: Image preprocessing

[0041] The image enhancement algorithm based on IAT adaptive illumination is used for image preprocessing. The algorithm is divided into a driver image classification module and an image enhancement module. The algorithm structure and process are as follows: Figure 2 shown.

[0042] S2.1 Image Classification

[0043] Based on the previously collected coal mine underground driver image dataset, an image classification dataset with three categories of normal, overexposed, and too dark was constructed. The underground driver image classification model was trained based on the ResNet50 classification network. After marking the classification results for the input images, they were output to the subsequent IAT image enhancement algorithm for on-demand processing.

[0044] S2.2 Image Enhancement

[0045] The IAT lightweight image processing algorithm is introduced and trained to obtain a model for image enhancement tasks. It processes images that are classified as overexposed or too dark to improve image quality. The overall structure of the IAT algorithm model is as follows: Figure 3 As shown, the PEM module in the IAT algorithm is as follows Figure 4 shown.

[0046] The IAT algorithm model includes two key branches, namely the local branch and the global branch. The main task of the local branch is to correct the local illumination effect in the image. Each local branch consists of three PEM (Pixel-wise Enhancement Module) modules. In order to ensure lightweight design and input arbitrary resolution, a Transformer structure composed of deep separable convolution DWConv (depth-wise convolution) is used here. The global branch is responsible for predicting the color matrix and gamma value of the global information of the image using the crossattention mechanism. The randomly initialized Q (query) is input into the module, and it works together with the K (key) and V (value) generated by the image itself. Finally, ten parameters are output, representing a 3x3 color matrix and a 1-dimensional gamma value. Through such a dynamic query learning strategy, as the iteration round is updated, the network can adaptively adjust the color matrix and gamma value of the global information of the image. The color matrix and gamma value are adjusted for each image to complete the enhancement task. The input image will complete the dark light enhancement and exposure correction tasks together through the local branch and the global branch respectively.

[0047] Step 3: Detect key points of the human body. Load the improved YOLOv8-Pose model to detect 22 key points of the human body.

[0048] S3.1 Dataset construction

[0049] The analysis of abnormal driver behavior is mainly based on the analysis needs of facial and upper limb key points. Based on the data collected in the early stage, the present invention uses the lightweight graphic annotation software Labelme to annotate the key points of the driver's posture. The annotation format adopts the COCO format, and a total of 22 human key points are annotated, namely: left eye, right eye, upper and lower left and right edge points of the mouth contour, nose tip, nose bridge, left ear, right ear, left shoulder, right shoulder, left elbow, right elbow, left middle finger, right middle finger. Each keypoint in the label represents a key point coordinate, which is represented by an array of length 3 (x, y, v), where: x and y represent the coordinate values ​​of the key point; v represents an identifier, with values ​​of 0, 1 and 2. When v=0, it means that there is no such key point in the image; when v=1, it means that the key point exists but is blocked; when v=2, it means that the key point exists and is visible in the image. Each image needs to select the driver's body and annotate the 22 key points corresponding to the individual. The distribution of human key points is as follows: Figure 5 shown.

[0050] S3.2YOLOv8-Pose human key point detection network improvement

[0051] As a new type of joint detection method without heatmaps, YOLO-Pose combines the advantages of top-down and bottom-up human pose estimation algorithms, so that each detected bounding box has a pose associated with it, without the need for additional steps to combine key points into a skeleton, eliminating the post-processing operations of the bottom-up method. Therefore, YOLO-Pose can complete the positioning and pose estimation of all people with only one forward pass. In addition, YOLO-Pose also introduces the OKS loss function, which can be trained end-to-end and optimizes the OKS metric. Currently, YOLOv8-Pose is the latest target detection algorithm in the YOLO series, which has faster detection speed and simple network structure.

[0052] YOLOv8-Pose is a deep convolutional network based on YOLOv8. It adds the estimation of the key points of human posture while detecting the target. Its main components are the input, the backbone network Backbone, the Neck module and the output head. The C2f module is used in the Backbone to fuse and propagate features at different levels, so that the network can achieve better feature expression and improve the detection performance and convergence speed of the YOL0 v8-Pose model. The Neck part uses the PAN structure to enhance the network's ability to fuse features of objects of different scales. It is used to fuse features at different levels and propagate feature information to improve the model detection performance. The output head includes the human target detection Box and key points.

[0053] The YOL0v8-Pose initial model is a 17-key point prediction model based on human posture recognition, which is mainly for the key points of the human torso and limbs. The facial key points are not paid much attention. The analysis of driver abnormal behavior is mainly based on the facial and upper limb key points. The position and number of detection key points are different. At the same time, in order to improve the detection capability of the model in special working conditions such as low illumination in coal mines, the YOL0v8-Pose model needs to be improved.

[0054] First, the number of Keypoints in the head module at the output end of the YOL0v8-Pose model network is changed to 22; secondly, in low-light scenes underground, the human body is easily missed due to blur and occlusion. Shallow detail feature information is crucial to help the model roughly locate the position of the object, and helps to find those targets that are not easy to detect. Therefore, a module that dynamically fuses shallow features and deep features, the dynamic feature fusion attention mechanism DFFA (dynamic feature fusion attention), is added to the Neck structure. By fusing the feature information between the outputs of different convolutional layers, the extraction of feature information is strengthened, and the network's ability to express target features is enhanced. The overall network structure of the improved YOL0v8-Pose model is shown below: Figure 6 shown.

[0055] The DFFA module can fuse the information of related regions between features and complement each other to improve the target detection performance of the model. Its structure is as follows: Figure 7 As shown. First, use Concat and a convolution Conv on the i-th input feature NIi (Neck Inputi) and the i-th output feature NOi (Neck Outputi) of Neck to obtain the offset Offset of the deformable convolution. Specifically, first, Concat splicing is performed on NIi and NOi in the channel dimension to fuse the information of multiple feature maps together to obtain richer contextual information; then, the connected feature map is input into a Conv convolution layer for convolution calculation to obtain the offset feature map Offset. The value of each position on the Offset feature map represents the offset of the position at the corresponding position on the original feature map.

[0056] Then, Offset and NIi are used as the input of the deformable convolution DConv to obtain N1i. The deformable convolution uses the offset Offset to dynamically adjust the input features to align with NOi. Then, the two feature maps N1i and NOi are concatenated in the channel dimension. After concatenation, CBS (Conv+Batch Norm+SiLU) is used to obtain N2i. The CBAM attention mechanism is used on N2i to obtain the final output DOi (DFFA Output).

[0057] The above-mentioned human key point detection data and the improved YOLOv8-Pose human key point detection network are used for training to obtain the final model for detecting 22 key points of the human body for abnormal driver behavior detection.

[0058] Step 4: Analysis of driver abnormal behavior

[0059] By analyzing the facial key points, head posture, and upper limb movements of the 22 key points of the human body, the system can judge the driver's abnormal behaviors such as closing eyes, yawning, inattention, smoking, and making phone calls, and output an alarm.

[0060] S4.1 Facial key point analysis

[0061] Define the coordinates of the highest point on the upper edge of the eye as (x1, y1), the coordinates of the lowest point on the lower edge of the eye as (x3, y3), the coordinates of the left edge of the eye as (x2, y2), and the coordinates of the right edge of the eye as (x4, y4), and calculate the height of the upper and lower edge points of the eye Width of left and right edges of eyes By judging whether the aspect ratio of the human eyes r=d1 / d2 exceeds the preset ratio, if any aspect ratio r of the left or right eye is less than the preset threshold and lasts for a preset time greater than the time threshold t, it is judged as closed eyes, triggering the eye-closing alarm for abnormal driving behavior; the mouth state judgment of abnormal yawning behavior detection is consistent with that of the eyes.

[0062] S4.2 Head pose estimation

[0063] Head posture analysis first performs head posture estimation calculation. Head posture estimation is to obtain the posture angle of the head through a facial image. In 3D space, the rotation of an object can be represented by three Euler angles: pitch (rotation around the X-axis), yaw (rotation around the Y-axis) and roll (rotation around the Z-axis), which are pitch angle, yaw angle and roll angle respectively. The schematic diagram is shown in the figure below. Figure 8 shown.

[0064] Use a 3D universal head rigid body model, that is, build a head model in the world coordinate system. The coordinates of each point of the model in the world coordinate system are fixed. By detecting the 12 facial key points of the eyes, mouth, ears, and nose, find the corresponding world coordinate system in the 3D model. For example, if the coordinates of the nose tip in 2D are (x, y), the 3D coordinates of the nose tip position in the model can be (U, V, W), thus forming a point pair. Use these key points to calculate the camera intrinsic parameters f x 、f y 、c x 、c y , solve the corresponding rotation matrix R and translation matrix T. After obtaining the rotation matrix R, the Euler angle of the head posture can be calculated. The Euler angle provides a very intuitive way to describe the rotation. It uses three separate angles to decompose a rotation into three rotations around different axes: pitch, yaw, and roll.

[0065]

[0066] Among them, ψ represents the pitch angle around the X-axis; φ represents the yaw angle around the Y-axis; γ represents the roll angle around the Z-axis.

[0067] S4.3 Eye tracking

[0068] Select the upper edge point of the eye p1 (x1, y1) as the starting point of eye tracking, and use the Euler angle estimated by the head posture to calculate the end point of eye tracking p2 (x2, y2). Assuming that the distance between p1 and p2 is d, the calculation formula is as follows:

[0069] x2=x1-d×sin(yaw)cos(pitch)

[0070] y2=y1-d×sin(pitch)

[0071] Construct a coordinate system with the line of sight starting point coordinate p1 as the origin, such as Fig. 9 As shown, when the driver looks forward, theoretically p1 and p2 coincide, and y2=0 at this time. If the absolute value of the Y-axis coordinate value y2 of the end point p2 of the driver's line of sight while driving the vehicle is greater than the preset threshold and the duration is greater than the time threshold t, it is determined that the driver is inattentive and a corresponding type of abnormal driver behavior alarm is triggered.

[0072] S4.4 Upper limb movement analysis

[0073] By analyzing the relative positions of upper limb key points and facial key points, it is possible to determine whether abnormal behaviors such as smoking, making phone calls, or taking both hands off the steering wheel have occurred.

[0074] S4.4.1 Smoking detection: The circumscribed rectangle of the upper, lower, left and right edge points of the mouth is used as the mouth ROI area. When the key point of the left or right middle finger is within the mouth ROI area and the duration exceeds the time threshold t, it is judged that smoking behavior exists and the abnormal behavior alarm of the smoking driver is triggered.

[0075] S4.4.2 Phone call detection: Construct a rectangular ROI area of ​​the ear with the ear key point as the center. When the key point of the left or right middle finger is within the ear ROI area and the duration exceeds the time threshold t, it is judged that a phone call behavior exists, triggering an abnormal behavior alarm for the driver making a phone call.

[0076] S4.4.3 Both hands are off the steering wheel: Since the camera is fixed in the cab, the steering wheel rectangular ROI area can be set in advance in the camera image. When the key points of the left hand or the right middle finger are not within the steering wheel ROI area and the duration exceeds the time threshold t, it is judged that both hands are off the steering wheel, triggering an abnormal behavior alarm for the driver with both hands off the steering wheel.

[0077] To sum up, for the low-light application environment in mines, this application uses an adaptive lighting image enhancement preprocessing algorithm based on Resnet+IAT to intelligently adjust image enhancement or exposure correction, improve the quality of captured images under complex lighting conditions underground, and better adapt to underground vehicle application scenarios.

[0078] In the process of driver status recognition, based on the YOLOv8-Pose human key point detection, it is expanded to 22 key point detection of the human body. In order to adapt to low-light scenes, the DFFA module is used in the neck structure to integrate shallow and deep features, enhance the edge features of the human target in the image, and improve the key point detection capability of the human body in the complex low-light environment underground. According to the key points of the human body, the facial, eye and mouth states, head posture and sight tracking, body movements, etc. are analyzed to determine whether the driver has abnormal driving behaviors such as yawning, closing eyes, playing with mobile phones, smoking, and inattention, and output alarm information in time.

[0079] Based on the above ideal embodiments of the present invention, the relevant staff can make various changes and modifications without departing from the technical concept of the present invention through the above description. The technical scope of the present invention is not limited to the contents of the specification, but must be determined according to the scope of the claims.

Claims

1. A method for detecting abnormal behavior of drivers in coal mines based on IAT and YOLOv8-Pose, characterized in that: The following steps are included: Step 1: Collect image information of the driver during driving, and classify and enhance the image; Step 2: Use the improved YOLOv8-Pose model to detect key points of the human body; Step 3: By analyzing the facial key points, head posture, and upper limb movements of the human body key points, the driver's abnormal behavior is judged and an alarm is output; Among them, the improved YOLOv8-Pose model includes an input end, a backbone network Backbone, a Neck module and an output end head. The Neck module is provided with a module dynamic feature fusion attention mechanism DFFA for dynamically fusing shallow features and deep features.

2. The method for detecting abnormal behavior of drivers in coal mines based on IAT and YOLOv8-Pose according to claim 1, characterized in that: In step one, an image enhancement algorithm based on IAT adaptive illumination is used for image preprocessing. The algorithm includes a ResNet image classification module and an image enhancement module. The image enhancement module uses an IAT lightweight image processing algorithm, and a PEM module is provided in the IAT lightweight image processing algorithm.

3. The method for detecting abnormal behavior of drivers in coal mines based on IAT and YOLOv8-Pose according to claim 1, characterized in that: In step 2, in the improved YOLOv8-Pose model, the C2f module is used in the Backbone, the Neck part uses the PAN structure, and the output head includes the human target detection Box and key points.

4. The method for detecting abnormal behavior of drivers in coal mines based on IAT and YOLOv8-Pose according to claim 1, characterized in that: In the improved YOLOv8-Pose model, first, Concat and a convolution Conv are used for the i-th input feature NIi and the i-th output feature NOi of Neck to obtain the offset Offset of the deformable convolution, and then Offset and NIi are used as the input of the deformable convolution DCnv to obtain N1i. The deformable convolution uses the offset Offset to dynamically adjust the input feature to align with NOi, and then N1i and NOi are concatenated and CBS (Conv+Batch Norm+SiLU) is used to obtain N2i. The CBAM attention mechanism is used for N2i to obtain the final output DOi.

5. The method for detecting abnormal behavior of drivers in coal mines based on IAT and YOLOv8-Pose according to claim 1, characterized in that: In step three, facial key point analysis includes detection and judgment of the aspect ratio of eyes and mouth. When the aspect ratio of eyes or mouth exceeds a threshold and lasts for a period of time, an alarm is triggered.

6. The method for detecting abnormal behavior of drivers in coal mines based on IAT and YOLOv8-Pose according to claim 1, characterized in that: In step three, head posture estimation converts the two-dimensional position coordinates into three-dimensional coordinates, and obtains the head posture angle through a facial image. In three-dimensional space, the rotation of an object can be represented by three Euler angles: pitch (rotation around the X-axis), yaw (rotation around the Y-axis) and roll (rotation around the Z-axis).

7. The method for detecting abnormal behavior of drivers in coal mines based on IAT and YOLOv8-Pose according to claim 1, characterized in that: In step three, the analysis of upper limb movements determines whether abnormal behaviors such as smoking, making phone calls, or taking both hands off the steering wheel occur by analyzing the relative positions of upper limb key points and facial key points.

8. The method for detecting abnormal behavior of drivers in underground coal mines based on IAT and YOLOv8-Pose according to claim 7, characterized in that: The circumscribed rectangle of the upper, lower, left and right edge points of the mouth is taken as the mouth ROI area. When the key point of the left or right middle finger is within the mouth ROI area and the duration exceeds the time threshold t, it is judged that smoking behavior exists, triggering the abnormal behavior alarm of the smoking driver.

9. The method for detecting abnormal behavior of drivers in coal mines based on IAT and YOLOv8-Pose according to claim 7, characterized in that: A rectangular ROI area of ​​the ear is constructed with the key point of the ear as the center. When the key point of the left or right middle finger is within the ear ROI area and the duration exceeds the time threshold t, it is judged that there is a phone call behavior, triggering an abnormal behavior alarm for the driver making a phone call.

10. The method for detecting abnormal behavior of drivers in coal mines based on IAT and YOLOv8-Pose according to claim 7, characterized in that: A rectangular ROI area is set for the steering wheel. When the key points of the left or right middle finger are not within the steering wheel ROI area and the duration exceeds the time threshold t, it is judged that both hands are off the steering wheel, and an abnormal behavior alarm for the driver with both hands off the steering wheel is triggered.

Citation Information

Patent Citations

  • Driver state monitoring method based on convolutional neural network

    CN110837815A

  • Fatigue driving detection method based on deep learning and facial features

    CN115393830A

  • Vehicle dangerous driving reminding method, vehicle and storage medium

    CN116215551A

  • Driving safety detection method based on cloud edge collaboration

    CN116229429A

Cited By

  • Method and system for detecting falling risk of edge hole of major project

    CN120279492A

  • A method and system for detecting falling risks at the edge opening of a major project

    CN120279492B

  • Method for detecting court trial overexerted behaviors of parties based on court geometric constraint field

    CN122574937A