A method and system for monitoring driver abnormal behavior

By employing a layered detection process and a cloud-edge collaborative architecture, and utilizing improved Adaboost and YOLOv5s models for abnormal driver behavior monitoring, the system solves the detection challenges in complex environments, achieving efficient and real-time abnormal driver detection and system sustainability, thus adapting to specific scenario requirements.

CN123142189APending Publication Date: 2026-11-20HAINAN UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611181897.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-05
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

Existing technologies struggle to achieve robust, real-time, and sustainable detection of abnormal driver behavior in complex environments, especially in special driving scenarios such as construction machinery and freight vehicles. Their detection accuracy and speed are insufficient, models cannot adapt to new scenarios and behaviors, the system lacks continuous evolution capabilities, and it has poor adaptability to special scenarios.

Method used

A hierarchical detection process is adopted, combining an in-vehicle edge and cloud collaborative architecture. The improved Adaboost strong classifier and the improved linked attention module of the YOLOv5s model are used for rapid initial screening and fine detection. The model is optimized through cloud incremental learning to achieve real-time monitoring and continuous evolution of abnormal driver behavior.

Benefits of technology

It improves detection accuracy and real-time performance under harsh working conditions, achieves system sustainability and targeted capabilities, supports fleet-level safety management and risk warning, breaks through the limitations of static models, and improves detection efficiency and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123142189A_ABST
    Figure CN123142189A_ABST
Patent Text Reader

Abstract

The application discloses a driver abnormal behavior monitoring method and system. The method comprises the following steps: a vehicle-mounted edge terminal collects a driver face video stream in real time and carries out pretreatment, adopts an improved Adaboost strong classifier to carry out fast face initial screening and region extraction on the video frame, and outputs a face candidate region; the face candidate region is sent into a YOLOv5s distraction detection model embedded with an improved linkage attention module, and fine face verification and distraction behavior detection are carried out in parallel; face feature points are extracted for the face candidate region whose shielding probability meets a preset threshold, and a two-stage strategy of rule initial screening and model accurate judgment is adopted to determine the fatigue level of the driver; meanwhile, the anonymous detection result and difficult example picture data are encrypted and uploaded to the cloud; and the cloud constructs a difficult example sample library based on the difficult example picture to carry out incremental learning. The application significantly improves the real-time monitoring robustness, real-time performance and system sustainability of the driver fatigue and distraction behavior in a complex working condition cockpit.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of intelligent monitoring technology, and in particular to a method and system for monitoring abnormal driver behavior. Background Technology

[0002] With the deepening development of intelligent transportation and vehicle safety management, driver fatigue and distracted driving have become major threats to road safety. Although existing technologies have proposed various detection schemes based on computer vision, their practical deployment, especially in special driving scenarios such as construction machinery and freight vehicles, still faces severe challenges and struggles to meet the application requirements of high robustness, high real-time performance, and sustainable evolution.

[0003] 1. Insufficient efficiency of detection process in complex environments: Existing solutions mostly use a single deep neural network (such as the YOLO series) for end-to-end detection. In a cockpit with drastic changes in lighting, continuous turbulence, and cluttered backgrounds, such models need to perform intensive calculations on the entire image, making it difficult to balance the detection accuracy of small targets (such as mobile phones) with the overall inference speed. This results in poor system real-time performance or poor performance on resource-constrained edge devices.

[0004] 2. Static models, making it difficult to adapt to new scenarios and behaviors: Most systems have fixed models after deployment, making it impossible to optimize using difficult examples generated in actual operation (such as new mobile phones or special smoking postures). When scenarios or behaviors not fully covered by the training set appear, detection performance will drop significantly, and the system lacks the ability to continuously evolve.

[0005] 3. Weak targeting of special driving scenarios: The general solution does not fully consider the special characteristics of scenarios such as engineering vehicles, such as strong vehicle vibration causing image blurring, high noise in head posture signals, and the impact of dust in the cab on image quality, resulting in inaccurate calculation of fatigue judgment parameters (such as PERCLOS and head angle) and a high false alarm rate.

[0006] 4. Isolated system architecture and untapped data value: Most existing systems are "standalone" versions, with isolated detection data. They cannot perform fleet-level driving safety situation analysis, nor can they train more powerful models through data aggregation, thus forming "data silos" and a capability ceiling.

[0007] Therefore, there is an urgent need for an innovative detection method and system architecture that can not only improve real-time detection accuracy under harsh working conditions through process optimization, but also enable continuous model evolution through cloud-edge collaboration, and can be specifically adapted to the driving monitoring needs of special vehicles, thereby truly realizing a closed loop and improvement of safety management capabilities. Summary of the Invention

[0008] To address the aforementioned technical issues, this invention proposes a method and system for monitoring abnormal driver behavior. Through process layering optimization, computational load distribution, and continuous model evolution, it significantly improves the robustness, real-time performance, and system sustainability of detection in harsh conditions such as the cockpit of special vehicles.

[0009] To achieve the above objectives, the technical solution of the present invention is as follows:

[0010] A method for monitoring abnormal driver behavior includes the following steps:

[0011] The vehicle-mounted edge device acquires real-time video streams of the driver's face and performs preprocessing. An improved Adaboost strong classifier is used to quickly screen faces and extract regions from the preprocessed video frames, outputting one or more candidate face regions. These candidate face regions are then fed into a YOLOv5s distraction detection model embedded with an improved linked attention module. The YOLOv5s distraction detection model has two parallel task heads. Task head one performs fine-grained face verification and occlusion state judgment, outputting accurate face bounding boxes and occlusion probabilities. Task head two performs distraction behavior detection, outputting target category and location bounding boxes. Facial feature points are extracted from candidate face regions whose occlusion probabilities meet a preset threshold. The instantaneous values ​​or short-term statistical values ​​of eye aspect ratio (EAR), mouth aspect ratio (MAR), eyelid closure ratio (PERCLOS) per unit time, and head posture are calculated. A two-stage strategy of rule-based initial screening and model-based fine judgment is used to determine the driver's fatigue level, triggering local audio-visual warnings based on the fatigue level. Simultaneously, anonymized detection results and encrypted difficult case image data are uploaded to the cloud.

[0012] The cloud is responsible for aggregating the uploaded data from several vehicle edge devices, building a difficult example sample library based on difficult example images, incrementally learning the YOLOv5s distraction detection model, and periodically sending the optimized model parameters to each vehicle edge device for updates.

[0013] Preferably, the preprocessing includes electronic image stabilization, grayscale conversion, Gaussian filtering for noise reduction, size normalization, and illumination equalization using the CLAHE algorithm.

[0014] Preferably, the training process of the improved AdaBoost strong classifier includes:

[0015] Construct a training set, in which positive samples include standard face samples, samples with masks, sunglasses, and partially occluded hands, and negative samples are non-face samples;

[0016] The Adaboost algorithm is used for iterative training. In each round of training, higher weights are assigned to the features of unoccluded samples to select the optimal weak classifier.

[0017] The weights of the best weak classifiers in each round are weighted and combined to obtain the improved Adaboost strong classifier.

[0018] Preferably, the improved linked attention module is inserted after the SPPF layer of the YOLOv5s neck network. It dynamically fuses channel attention weights and spatial attention weights through a learnable linkage factor α. The specific fusion formula is: Output = Input ⊗ [ (1-α) * Channel_Att + α * Spatial_Att ], where Channel_Att is the channel attention map, Spatial_Att is the spatial attention map, and ⊗ is element-wise multiplication.

[0019] Preferably, facial feature points are extracted from candidate face regions whose occlusion probability meets a preset threshold. Instantaneous or short-term statistical values ​​of eye aspect ratio (EAR), mouth aspect ratio (MAR), eyelid closure percentage (PERCLOS) per unit time, and head posture are calculated. A two-stage strategy of rule-based initial screening and model-based fine-tuning is used to determine the driver's fatigue level, including:

[0020] The Dlib library is used to extract facial feature points in the candidate face region. Based on the facial feature points, the eye aspect ratio EAR, mouth aspect ratio MAR, eyelid closure ratio PERCLOS per unit time, and instantaneous or short-term statistical values ​​of head posture are calculated.

[0021] Using a preset relaxed threshold rule, fatigue is initially assessed based on the instantaneous or short-term statistical values ​​of eye aspect ratio (EAR), mouth aspect ratio (MAR), eyelid closure ratio (PERCLOS) per unit time, and head posture, and the preliminary assessment results are obtained.

[0022] If the preset lenient threshold rule is not triggered, the instantaneous values ​​or short-term statistical values ​​of the eye aspect ratio (EAR), mouth aspect ratio (MAR), eyelid closure ratio (PERCLOS) per unit time, and head posture are input into the pre-trained multi-dimensional temporal fatigue analysis model for secondary judgment, and the graded results are output. The graded results include normal, distracted, mild fatigue, and severe fatigue.

[0023] Preferably, the multi-dimensional time-series fatigue analysis model employs a gradient boosting decision tree.

[0024] Based on the above, this invention also discloses a driver abnormal behavior monitoring system based on hierarchical detection and cloud-edge collaboration, comprising: an on-board edge computing unit deployed at the vehicle edge and a cloud analysis platform deployed in the cloud, wherein,

[0025] The vehicle-mounted edge computing unit includes:

[0026] The image acquisition and preprocessing module is used to acquire and preprocess the driver's facial video stream in real time;

[0027] The fast initial screening module is used to perform fast initial face screening and region extraction on preprocessed video frames using an improved Adaboost strong classifier, and output one or more candidate face regions.

[0028] The fine parallel detection module is used to feed the face candidate region into the YOLOv5s distraction detection model with an embedded improved linked attention module. The YOLOv5s distraction detection model has two parallel task heads. Task head one performs fine face verification and occlusion state judgment, and outputs accurate face bounding boxes and occlusion probabilities. Task head two performs distraction behavior detection and outputs target category and location bounding boxes.

[0029] The temporal fusion judgment module is used to extract facial feature points from candidate face regions whose occlusion probability meets a preset threshold using the Dlib library. Based on a sliding time window, it calculates the temporal statistical features of eye aspect ratio EAR, mouth aspect ratio MAR, and eyelid closure ratio PERCLOS per unit time. Combined with the filtered and smoothed head posture angle, it determines the driver's fatigue level through a multi-feature fusion decision model and triggers local audio-visual warnings based on the fatigue level.

[0030] The local early warning and communication module is used to perform local early warning and encrypt and upload anonymized detection results and difficult case image data to the cloud.

[0031] The cloud-based analytics platform includes:

[0032] The data aggregation and storage module is used to receive and store data from multiple vehicle edge devices;

[0033] The driving behavior analysis dashboard module is used to perform multi-dimensional statistical analysis of fatigue and distraction behavior at the fleet level.

[0034] The incremental learning and model management module is used to build a difficult example sample library based on difficult example images, perform incremental learning on the YOLOv5s distraction detection model, and periodically send the optimized model parameters to each vehicle edge device for updates.

[0035] Based on the above technical solution, the beneficial effects of the present invention are:

[0036] 1) Improved Detection Efficiency and Accuracy: Abandoning the end-to-end detection model, it pioneers a three-level hierarchical detection process: "rapid initial screening (Adaboost) → refined parallel recognition (improved YOLOv5s) → temporal fusion judgment". This process utilizes a lightweight model to quickly eliminate non-interested regions, concentrating limited computing power on in-depth analysis of suspicious regions, thereby achieving both high recall and high processing frame rate on edge devices, resolving the contradiction between accuracy and speed;

[0037] 2) Innovative Cloud-Edge Collaborative Evolvable System Architecture: A two-layer architecture of "real-time edge detection + cloud-based analysis and evolution" has been constructed. The edge is responsible for low-latency perception and response; the cloud utilizes data from multiple edge nodes to perform centralized incremental learning and distribution of the detection model, enabling the system to continuously learn from practical applications and adapt to new scenarios and new abnormal behaviors, breaking the limitations of static models;

[0038] 3) Targeted optimization for construction machinery scenarios: From hardware selection and preprocessing algorithms (such as anti-shake) to model training data (including samples of bumps, dust, and complex lighting), the entire solution has been optimized across the entire chain for the harsh working conditions of special cabs such as construction machinery and freight vehicles, which significantly improves the practicality and reliability in this specific scenario.

[0039] 4) Achieve a closed loop of safety management: Not only can it complete real-time alarms for individual vehicles, but it can also realize fleet-level safety management, risk warning and driver behavior analysis through the cloud platform, providing decision support for operators and realizing a closed loop from "perception" to "analysis" to "management". Attached Figure Description

[0040] Figure 1 This is a schematic diagram of a method for monitoring abnormal driver behavior in one embodiment;

[0041] Figure 2 This is a distribution map of 68 facial feature points from the Dlib library in one embodiment;

[0042] Figure 3 This is a flowchart of the Adaboost algorithm training process in one embodiment;

[0043] Figure 4 A YOLOv5 model diagram in one embodiment;

[0044] Figure 5 This is a schematic diagram of the structure of an improved linked attention module in one embodiment. Detailed Implementation

[0045] The technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.

[0046] like Figure 1 As shown, this embodiment provides a method for monitoring abnormal driver behavior, including the following steps:

[0047] Step S1: The vehicle edge device acquires and preprocesses the driver's facial video stream in real time. An improved Adaboost strong classifier is used to quickly screen faces and extract regions from the preprocessed video frames, outputting one or more candidate face regions. The candidate face regions are then fed into a YOLOv5s distraction detection model embedded with an improved linked attention module. The YOLOv5s distraction detection model has two parallel task heads. Task head one performs fine face verification and occlusion state judgment, outputting accurate face bounding boxes and occlusion probabilities. Task head two performs distraction behavior detection, outputting target category and location bounding boxes. Facial feature points are extracted from candidate face regions whose occlusion probabilities meet a preset threshold. The eye aspect ratio (EAR), mouth aspect ratio (MAR), eyelid closure ratio (PERCLOS) per unit time, and instantaneous or short-term statistical values ​​of head posture are calculated. A two-stage strategy of rule-based initial screening and model-based fine judgment is used to determine the driver's fatigue level, triggering a local audio-visual warning based on the fatigue level. Simultaneously, the anonymized detection results and difficult example image data are encrypted and uploaded to the cloud.

[0048] In this embodiment, a wide-angle camera mounted on an in-vehicle ruggedized edge computing device (such as an industrial-grade Jetson device) is used to capture video of the driver's face. In addition to routine preprocessing operations (grayscale conversion, Gaussian filtering for noise reduction, and size normalization), electronic image stabilization based on multi-frame estimation is added to counteract high-frequency vibrations during vehicle operation; and an adaptive illumination equalization algorithm is employed to cope with drastic changes in indoor and outdoor lighting conditions.

[0049] Level 1 Detection: Rapid Initial Face Screening and Region Extraction Based on Improved Adaboost

[0050] In this embodiment, an improved Adaboost classifier that integrates Haar-like (representing contour) and LBP (representing texture) features and is trained for occlusion adaptation is used to quickly scan the preprocessed full-frame image and output one or more face candidate regions instead of precise bounding boxes. This design greatly improves the scanning speed.

[0051] For the improved training process of the AdaBoost strong classifier, see [link / reference]. Figure 3 ,include:

[0052] 1) Construct a training set, in which positive samples include standard face samples, samples with masks, sunglasses, and partially occluded hands, and negative samples are non-face samples;

[0053] 2) Iterative training is performed using the Adaboost algorithm. In each round of training, higher weights are assigned to the features of unoccluded samples to select the optimal weak classifier.

[0054] 3) The weights of the best weak classifiers in each round are weighted and combined to obtain the improved Adaboost strong classifier.

[0055] Level 2 Detection: Fine-grained detection and parallel recognition based on improved YOLOv5s:

[0056] In this embodiment, the initial face candidate regions are "refined" to complete face verification and distraction behavior detection in one go.

[0057] Each candidate region image is scaled to a fixed size (416x416) and fed into a lightweight, improved YOLOv5s network. See [link to relevant documentation]. Figure 4 , Figure 5 Network Improvement: An improved linked attention module is inserted after the SPPF layer in the YOLOv5s neck network, with the SPPF layer located at the beginning of the neck network. This improved linked attention module dynamically fuses channel attention weights and spatial attention weights through a learnable factor α. The specific fusion formula is as follows:

[0058] Output = Input ⊗ [ (1-α) * Channel_Att + α * Spatial_Att ]

[0059] Channel_Att is the channel attention map, Spatial_Att is the spatial attention map, and ⊗ represents element-wise multiplication, which allows it to better focus on small distracting objects (such as the edge of a mobile phone) and key facial features.

[0060] Parallel task design: The network outputs two parallel task heads. Task head one performs fine-grained face verification and occlusion state judgment, outputting accurate face bounding boxes and occlusion probabilities. Task head two performs distraction behavior detection, outputting target category and location bounding boxes. This design avoids the overhead of running two networks separately.

[0061] After model inference, the parsed output is:

[0062] From the analysis of the first task, "Face / Occlusion": if the confidence score is >0.7, it is determined to be a valid face and the exact bounding box is recorded; at the same time, the occlusion score is read, and if it is >0.6, the face is marked as "partially occluded".

[0063] Analysis of Task Head 2, "Distracted Behavior Head": For categories such as "cell phone", "cigarette", and "water cup", if the confidence level is >0.5, record the category and its position box in the original image.

[0064] Third-level judgment: A two-stage strategy of initial rule screening and model fine-tuning.

[0065] In this embodiment, the verified faces are continuously analyzed in terms of state, and a time dimension is introduced to improve the scientific nature of the judgment.

[0066] 1) Extract 68 facial feature points within the precise face bounding box using Dlib. Calculate the following within a sliding time window (e.g., 3 minutes): eye aspect ratio (EAR), mouth aspect ratio (MAR), eyelid closure percentage (PERCLOS) per unit time, and smoothed values ​​of head pose (head pitch / yaw angle) (using Kalman filtering to remove jitter noise) and their frequency of change.

[0067] Calculate the EAR (Eye Aspect Ratio): Take the left eye point set (37-42) and the right eye point set (43-48), see [reference]. Figure 2 . formula:

[0068] in, These correspond to points 37 to 42 or 43 to 48, respectively. The average EAR value for the left and right eyes is taken as the EAR value for that frame.

[0069] Calculate MAR (Mouth Aspect Ratio): Select key points of the outer contour from the mouth point set (49-68). Use the distance between the corners of the mouth as the denominator and the distance between the upper and lower lips as the numerator.

[0070] Calculate head attitude angles (pitch, yaw, roll): Using several points from the 68-point scale (such as the tip of the nose, chin, and corners of the eyes) and a standard 3D face model in the world coordinate system, solve for the rotation vector using Perspective-n-Point (PnP) and then convert it to Euler angles. This yields the pitch, yaw, and roll for that frame.

[0071] Calculate the following values ​​within a sliding time window (e.g., 3 minutes): the mean of EAR / MAR and the number of consecutive frames below / above the threshold, PERCLOS value, smoothed values ​​of head pitch / yaw angle (using Kalman filtering to remove jitter noise), and their frequency of change.

[0072] 2) Using a preset relaxed threshold rule, fatigue is initially assessed based on the eye aspect ratio (EAR), mouth aspect ratio (MAR), eyelid closure ratio (PERCLOS) per unit time, and instantaneous or short-term statistical values ​​of head posture, and the initial assessment results are obtained.

[0073] In this embodiment, a lenient threshold rule is set (but it is not limited to this and can be adjusted according to the actual situation):

[0074] Rule A (Normal): PERCLOS < 5% and EAR mean > 0.25 and no consecutive eye-closed frames for more than 10 frames → directly output "Normal".

[0075] Rule B (Severe Fatigue): PERCLOS > 40% or maximum consecutive frames with eyes closed > 60 frames (approximately 2 seconds) or multiple (> 5 times) yawns (high MAR) → directly output "Severe Fatigue".

[0076] If any of the above hard rules are met, the level is output directly, the judgment of the current window ends, and the model is not entered.

[0077] If no rule is matched, the feature vector of that window is sent to the next stage (the fuzzy zone).

[0078] 3) If the preset lenient threshold rule is not triggered, the eye aspect ratio EAR, mouth aspect ratio MAR, eyelid closure ratio PERCLOS per unit time, and instantaneous or short-term statistical values ​​of head posture are input into the pre-trained multi-dimensional temporal fatigue analysis model for secondary judgment, and the graded results are output. The graded results include normal, distracted, mild fatigue, and severe fatigue.

[0079] In this embodiment, the multi-dimensional temporal fatigue analysis model employs a pre-trained lightweight gradient boosting decision tree (GBDT) model, inputting normalized features into the pre-trained GBDT. This model aims for multi-class classification (4 levels) and outputs the probability of each level. The level with the highest probability is selected as the final decision.

[0080] In this embodiment, local audio-visual warnings (such as voice prompts and dashboard icon flashing) are triggered based on the fatigue level; at the same time, the anonymized detection results (behavior type, level, timestamp, environmental feature code) and difficult case image data (such as high-confidence false detection and missed detection samples) are encrypted and uploaded to the cloud.

[0081] For example, if "severe fatigue" is detected or "mobile phone use" is detected, a level two alarm (continuous alarm sound + red screen flash) is triggered; if "mild fatigue" is detected or "drinking water" is detected, a level one alarm (single alert sound) is triggered. Simultaneously, the judgment result of this frame, the data from each sensor, and if the confidence level for distraction behavior detection is between 0.3 and 0.7 (fuzzy and difficult examples), the corresponding area image is packaged together and uploaded to a designated cloud interface via a 4G / 5G network with encryption.

[0082] Step S2: The cloud is responsible for aggregating the uploaded data from several vehicle edge devices, building a difficult example sample library based on difficult example images, incrementally learning the YOLOv5s distraction detection model, and periodically sending the optimized model parameters to each vehicle edge device for updates.

[0083] In this embodiment, the cloud automatically reviews the uploaded difficult example images (such as deduplication and clustering), and stores the images confirmed as valid difficult examples and their annotations (initially provided by the edge terminal, and the cloud can semi-automatically correct them) into the "incremental learning sample library".

[0084] Incremental learning tasks are launched weekly: based on the pre-trained backbone network, the "distraction behavior detection head" of the YOLOv5s distraction detection model is fine-tuned using all the data in the "incremental learning sample library" while keeping the "face verification head" unchanged.

[0085] After training is complete, the generated new weight file and version information are published to the "model repository," and an update notification is pushed to all online vehicle edge devices with lower versions. The vehicle edge devices download and load the new model during idle periods, completing the capability upgrade and collectively enhancing the entire fleet's detection capabilities when facing new types of distracting objects.

[0086] It should be understood that although the steps in the flowchart above are shown sequentially as indicated by the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowchart above may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the sub-steps or stages of other steps.

[0087] Based on the same inventive concept, this application also provides a system for implementing the above-described method for monitoring abnormal driver behavior. The solution provided by this system is similar to the solution described in the above method, and therefore will not be repeated here.

[0088] In one embodiment, a driver abnormal behavior monitoring system is also provided, comprising: an on-board edge computing unit deployed at the vehicle edge and a cloud analytics platform deployed in the cloud, wherein...

[0089] The vehicle-mounted edge computing unit includes:

[0090] The image acquisition and preprocessing module is used to acquire and preprocess the driver's facial video stream in real time;

[0091] The fast initial screening module is used to perform fast initial face screening and region extraction on preprocessed video frames using an improved Adaboost strong classifier, and output one or more candidate face regions.

[0092] The fine parallel detection module is used to feed the face candidate region into the YOLOv5s distraction detection model with an embedded improved linked attention module. The YOLOv5s distraction detection model has two parallel task heads. Task head one performs fine face verification and occlusion state judgment, and outputs accurate face bounding boxes and occlusion probabilities. Task head two performs distraction behavior detection and outputs target category and location bounding boxes.

[0093] The temporal fusion judgment module is used to extract facial feature points from candidate face regions whose occlusion probability meets a preset threshold using the Dlib library. Based on a sliding time window, it calculates the temporal statistical features of eye aspect ratio EAR, mouth aspect ratio MAR, and eyelid closure ratio PERCLOS per unit time. Combined with the filtered and smoothed head posture angle, it determines the driver's fatigue level through a multi-feature fusion decision model and triggers local audio-visual warnings based on the fatigue level.

[0094] The local early warning and communication module is used to perform local early warning and encrypt and upload anonymized detection results and difficult case image data to the cloud.

[0095] The cloud-based analytics platform includes:

[0096] The data aggregation and storage module is used to receive and store data from multiple vehicle edge devices;

[0097] The driving behavior analysis dashboard module is used to perform multi-dimensional statistical analysis of fatigue and distraction behavior at the fleet level.

[0098] The incremental learning and model management module is used to build a difficult example sample library based on difficult example images, perform incremental learning on the YOLOv5s distraction detection model, and periodically send the optimized model parameters to each vehicle edge device for updates.

[0099] In the above embodiments, each module of the driver abnormal behavior monitoring system can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device in hardware form, or stored in the memory of the computer device in software form, so that the processor can call and execute the operations corresponding to each module.

[0100] The embodiments in this specification are described in a progressive manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on its differences from other embodiments. In particular, the system embodiments are basically similar to the method embodiments, so the description is relatively simple; relevant parts can be referred to the descriptions in the method embodiments.

[0101] The above are merely preferred embodiments of the present application and are not intended to limit the embodiments of the present application. For those skilled in the art, the embodiments of the present application can have various modifications and variations. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the embodiments of the present application should be included within the protection scope of the embodiments of the present application.

Claims

1. A method for monitoring abnormal driver behavior, characterized in that, Includes the following steps: The vehicle-mounted edge device acquires real-time video streams of the driver's face and performs preprocessing. An improved Adaboost strong classifier is used to quickly screen faces and extract regions from the preprocessed video frames, outputting one or more candidate face regions. These candidate face regions are then fed into a YOLOv5s distraction detection model embedded with an improved linked attention module. The YOLOv5s distraction detection model has two parallel task heads. Task head one performs fine-grained face verification and occlusion state judgment, outputting accurate face bounding boxes and occlusion probabilities. Task head two performs distraction behavior detection, outputting target category and location bounding boxes. Facial feature points are extracted from candidate face regions whose occlusion probabilities meet a preset threshold. The instantaneous values ​​or short-term statistical values ​​of eye aspect ratio (EAR), mouth aspect ratio (MAR), eyelid closure ratio (PERCLOS) per unit time, and head posture are calculated. A two-stage strategy of rule-based initial screening and model-based fine judgment is used to determine the driver's fatigue level, triggering local audio-visual warnings based on the fatigue level. Simultaneously, anonymized detection results and encrypted difficult case image data are uploaded to the cloud. The cloud is responsible for aggregating the uploaded data from several vehicle edge devices, building a difficult example sample library based on difficult example images, incrementally learning the YOLOv5s distraction detection model, and periodically sending the optimized model parameters to each vehicle edge device for updates.

2. The method for monitoring abnormal driver behavior according to claim 1, characterized in that, The preprocessing includes electronic image stabilization, grayscale conversion, Gaussian filtering for noise reduction, size normalization, and illumination equalization using the CLAHE algorithm.

3. The method for monitoring abnormal driver behavior according to claim 1, characterized in that, The training process of the improved Adaboost strong classifier includes: A training set is constructed, in which positive samples include standard face samples, samples with masks, sunglasses, and partially occluded hands, and negative samples are non-face samples. The Adaboost algorithm is used for iterative training. In each round of training, higher weights are assigned to the features of unoccluded samples to select the optimal weak classifier. The weights of the best weak classifiers in each round are weighted and combined to obtain the improved Adaboost strong classifier.

4. The method for monitoring abnormal driver behavior according to claim 1, characterized in that, The improved linked attention module is inserted after the SPPF layer of the YOLOv5s neck network. It dynamically fuses channel attention weights and spatial attention weights through a learnable linkage factor α. The specific fusion formula is: Output = Input ⊗ [ (1-α) *Channel_Att + α * Spatial_Att ], where Channel_Att is the channel attention map, Spatial_Att is the spatial attention map, and ⊗ is the element-wise multiplication.

5. The method for monitoring abnormal driver behavior according to claim 1, characterized in that, Facial feature points are extracted from candidate face regions whose occlusion probability meets a preset threshold. Instantaneous or short-term statistical values ​​of eye aspect ratio (EAR), mouth aspect ratio (MAR), eyelid closure percentage (PERCLOS) per unit time, and head posture are calculated. A two-stage strategy of rule-based initial screening and model-based fine-tuning is used to determine the driver's fatigue level, including: The Dlib library is used to extract facial feature points in the candidate face region. Based on the facial feature points, the eye aspect ratio EAR, mouth aspect ratio MAR, eyelid closure ratio PERCLOS per unit time, and instantaneous or short-term statistical values ​​of head posture are calculated. Using a preset relaxed threshold rule, fatigue is initially assessed based on the instantaneous or short-term statistical values ​​of eye aspect ratio (EAR), mouth aspect ratio (MAR), eyelid closure ratio (PERCLOS) per unit time, and head posture, and the preliminary assessment results are obtained. If the preset lenient threshold rule is not triggered, the instantaneous values ​​or short-term statistical values ​​of the eye aspect ratio (EAR), mouth aspect ratio (MAR), eyelid closure ratio (PERCLOS) per unit time, and head posture are input into the pre-trained multi-dimensional temporal fatigue analysis model for secondary judgment, and the graded results are output. The graded results include normal, distracted, mild fatigue, and severe fatigue.

6. The method for monitoring abnormal driver behavior according to claim 5, characterized in that, The multi-dimensional time-series fatigue analysis model employs a gradient boosting decision tree.

7. A driver abnormal behavior monitoring system based on hierarchical detection and cloud-edge collaboration, characterized in that, include: The vehicle edge computing unit deployed at the vehicle edge and the cloud analytics platform deployed in the cloud, among which, The vehicle-mounted edge computing unit includes: The image acquisition and preprocessing module is used to acquire and preprocess the driver's facial video stream in real time; The fast initial screening module is used to perform fast initial face screening and region extraction on preprocessed video frames using an improved Adaboost strong classifier, and output one or more candidate face regions. The fine parallel detection module is used to feed the face candidate region into the YOLOv5s distraction detection model with an embedded improved linked attention module. The YOLOv5s distraction detection model has two parallel task heads. Task head one performs fine face verification and occlusion state judgment, and outputs accurate face bounding boxes and occlusion probabilities. Task head two performs distraction behavior detection and outputs target category and location bounding boxes. The temporal fusion judgment module is used to extract facial feature points from candidate face regions whose occlusion probability meets a preset threshold using the Dlib library. Based on a sliding time window, it calculates the temporal statistical features of eye aspect ratio EAR, mouth aspect ratio MAR, and eyelid closure ratio PERCLOS per unit time. Combined with the filtered and smoothed head posture angle, it determines the driver's fatigue level through a multi-feature fusion decision model and triggers local audio-visual warnings based on the fatigue level. The local early warning and communication module is used to perform local early warning and encrypt and upload anonymized detection results and difficult case image data to the cloud. The cloud-based analytics platform includes: The data aggregation and storage module is used to receive and store data from multiple vehicle edge devices; The driving behavior analysis dashboard module is used to perform multi-dimensional statistical analysis of fatigue and distraction behavior at the fleet level. The incremental learning and model management module is used to build a difficult example sample library based on difficult example images, perform incremental learning on the YOLOv5s distraction detection model, and periodically send the optimized model parameters to each vehicle edge device for updates.