A driver distraction warning system that overcomes the problem of myopic glasses and eye differences

By collecting and analyzing the driver's comprehensive line of sight data, and using machine learning models to predict the upper limit of line of sight pitch, the problem of misjudgment of distracted driving caused by differences in myopia and eye use is solved, and more accurate distracted driving warning and assistance are achieved. Driving measures improve driving safety.

CN118220166BActive Publication Date: 2024-08-23JUNJIE TECH (BEIJING) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410551460.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-07
Publication Date
2024-08-23
Estimated Expiration
2044-05-07

AI Technical Summary

Technical Problem

When the driver wears myopia glasses, the existing distracted driving warning system is affected by the refraction of light from the myopia lenses, causing the line of sight to be lowered, which in turn causes the distracted driving signal to be falsely triggered, reducing the accuracy of the warning, and different eye habits. It also affects the early warning effect.

Method used

The data acquisition module is used to collect the driver's comprehensive sight data, including head posture offset value, pupil center fluctuation value, light intensity concentration and lens refraction compensation value. The upper limit value of sight pitch is predicted through machine learning model training and a score is generated. Cardiac warning level, providing auxiliary driving instructions to assist the driver in safe driving.

Benefits of technology

By accurately predicting the upper limit of sight pitch, we can avoid misjudgments in distracted driving caused by myopia refraction, avoid errors caused by different eye habits, ensure accurate identification and timely warning of distracted driving systems, and improve driving safety.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118220166B
    Figure CN118220166B
Patent Text Reader

Abstract

The invention relates to the technical field of driving monitoring, and discloses a driver distraction warning system that overcomes the problem of myopic glasses and eye differences; the system comprises the steps of collecting real-time comprehensive sight line data, predicting a sight line pitch upper limit value, generating a pitch difference value based on the real-time sight line pitch upper limit value and the predicted sight line pitch upper limit value, and dividing a distraction warning level; based on the distraction warning level, generating an auxiliary driving instruction, and assisting the driver in safely driving the vehicle; compared with the prior art, the system can accurately predict the real-time sight line pitch upper limit value, judge whether the driver has a distracted driving phenomenon, effectively avoid the distracted driving misjudgment phenomenon caused by the refraction of the lens when the driver wears myopic glasses, and avoid the error caused by the sight line up and down preferences of different drivers during driving, and formulate targeted intelligent driving assistance measures when distracted driving occurs, so as to improve the safety of vehicle driving.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of driving monitoring, and more particularly to a driver distraction warning system that overcomes the problem of myopic glasses and eye differences. Background Art

[0002] Distracted driving refers to a phenomenon in which the driver's attention is directed to activities unrelated to normal driving, which leads to a decrease in the driver's driving ability. It is also the main cause of road traffic accidents, especially in the passenger and freight transportation industries. Once the driver is distracted while driving at high speed, it may lead to illegal behavior at the least and traffic accidents at the worst, causing serious personal and property losses. Therefore, in order to avoid the harm caused by distracted driving and improve driving safety, it is necessary to warn the driver of distracted driving.

[0003] The patent application with reference publication number CN109584507A discloses a driving behavior monitoring method, device, system, vehicle and storage medium, which determines whether the current driving state of the driver is an abnormal driving state by performing a detection operation on the collected video information in the vehicle, and performs a warning operation corresponding to the abnormal driving state when the current driving state is an abnormal driving state, so as to realize all-round monitoring of the two abnormal driving states of fatigue driving state and distracted driving state, and realizes targeted and efficient warning by performing the warning operation corresponding to the abnormal driving state, thereby reducing driving risks;

[0004] The prior art has the following deficiencies:

[0005] The existing distracted driving warning system is based on 2D camera recognition of facial position, which is then converted into head posture through 3D modeling. The eye line of sight is converted based on the head posture to monitor the driver's line of sight position. It can achieve a good warning effect when the driver is not wearing glasses. However, when the driver wears glasses, the monitored driver's line of sight position will be lower than the position without glasses due to the refraction of light from the glasses. In addition, due to the different personal eye habits of the driver, the driver's line of sight position will also overlap with the line of sight position during distracted driving, which can easily lead to the false triggering of distracted driving signals, reducing the accuracy of distracted driving warnings.

[0006] In view of this, the present invention proposes a driver distraction warning system that overcomes the problem of myopic glasses and eye differences to solve the above problems. Summary of the invention

[0007] In order to overcome the above-mentioned defects of the prior art and to achieve the above-mentioned purpose, the present invention provides the following technical solution: a driver distraction warning system that overcomes the problem of differences between myopic glasses and eyes, applied to a driver monitoring system, comprising:

[0008] A data collection module, used to collect driver's distracted driving data, the distracted driving data including comprehensive sight line data and sight line pitch upper limit value;

[0009] A model training module is used to train a machine learning model to predict the upper limit of the line of sight pitch based on distracted driving data;

[0010] The real-time warning module is used to collect real-time comprehensive sight line data, input it into the trained machine learning model to predict the upper limit of sight line pitch, and determine whether to issue a distraction warning prompt;

[0011] A level classification module, used to generate a pitch difference value based on the real-time line of sight pitch upper limit value and the predicted line of sight pitch upper limit value, and classify the distraction warning level;

[0012] The intelligent driving assistance module is used to generate assisted driving instructions based on the distraction warning level, and assist the driver to drive the vehicle safely based on the assisted driving instructions.

[0013] Furthermore, the comprehensive sight data includes the head posture deviation value, pupil center fluctuation value, light intensity concentration and lens refraction compensation value;

[0014] The method for obtaining the head posture offset value includes:

[0015] Taking a preset collection time as the standard, starting from the current moment, count back i preset collection time periods, and mark i data collection moments;

[0016] At i data collection moments, the driver’s head posture image is captured by a camera installed in the cab to obtain i head images;

[0017] Using computer vision technology, identify the location of the inner side of the left eye corner of the driver and the location of the inner side of the right eye corner in the head image, and record them as the first point and the second point respectively;

[0018] After connecting the i first points and the i second points, i horizontal dividing lines are formed, and the midpoints of the i horizontal dividing lines are marked as the center points of the head, thereby obtaining i center points of the head;

[0019] Draw horizontal standard lines and vertical standard lines through the midpoints of the four boundaries of the head image, and mark the intersection of the horizontal standard line and the vertical standard line as the standard center point;

[0020] Use a scale to measure the distances from i head center points to the standard center point in sequence, and obtain i sub-offset values;

[0021] Remove the maximum and minimum sub-offset values, accumulate the remaining i-2 sub-offset values ​​and calculate the average to obtain the head posture offset value;

[0022] The expression of the head posture offset value is:

[0023]

[0024] Where PY zt is the head posture offset value, PY za is the a-th child offset value.

[0025] Furthermore, the method for obtaining the pupil center fluctuation value includes:

[0026] At i data collection moments, the driver's eye images are captured by the camera deployed in the cab to obtain i eye images;

[0027] Identify the lower edge of the upper eyelid and the upper edge of the lower eyelid of one of the i eye images by computer vision technology, and record the area between the lower edge of the upper eyelid and the upper edge of the lower eyelid as the target area;

[0028] Mark the pixel values ​​of all pixels in the target area, and record the pixels whose pixel values ​​are greater than a preset pixel threshold as target pixels;

[0029] Randomly select a target pixel as the center of the circle, and draw p detection circles with a preset length as the radius;

[0030] The total number of pixels in the p detection circles and the number of target pixels in the p detection circles are counted respectively, and the number of target pixels in the p detection circles is compared with the total number of pixels in the p detection circles to obtain the proportion of the p target pixels;

[0031] The expression of the target pixel ratio is:

[0032]

[0033] In the formula, ZB xsp is the pth target pixel ratio, SL mbp is the number of target pixels in the pth detection circle, SL zlp is the total number of pixels in the pth detection circle;

[0034] The maximum value is selected from the m target pixel point proportion values ​​that are greater than the preset proportion threshold, and the detection circle corresponding to the maximum value of the target pixel point proportion value is recorded as the target circle;

[0035] In the i-eye captured images, the position of the target pixel point corresponding to the center position of the target circle is recorded as the pupil center point, and i pupil center points are obtained;

[0036] Mark n measuring points on the lower edge of the upper eyelid and the upper edge of the lower eyelid respectively, and measure the distance between two measuring points on the lower edge of the upper eyelid and the upper edge of the lower eyelid and on the same vertical line using a scale to obtain n distance values;

[0037] Connect the two measurement points corresponding to the maximum distance value to obtain a distance line, and mark the center of the distance line as a conventional center point;

[0038] The distances from i pupil center points to the regular center point are measured respectively to obtain i sub-fluctuation values, and the i sub-fluctuation values ​​are accumulated and averaged to obtain the pupil center fluctuation value;

[0039] The expression of pupil center fluctuation value is:

[0040]

[0041] In the formula, BD zt is the pupil center fluctuation value, BD zb is the b-th sub-fluctuation value.

[0042] Furthermore, the method for obtaining the light intensity concentration includes:

[0043] Capturing images of the driver's body position during driving by using a camera;

[0044] The area where the driver's head is located in the body position image is identified by computer vision technology and recorded as the head area;

[0045] The head area is shaded, and a preset length value is used as the side length, the head area is divided into s rectangular grids with equal areas, and the shaded area values ​​in the s rectangular grids are measured;

[0046] The rectangular grids whose shadow shading area values ​​are greater than the preset shading lower limit value are recorded as valid rectangular grids, w valid rectangular grids are obtained, and the areas of the valid rectangular grids are calculated according to the rectangular area calculation formula;

[0047] The light intensity sensor collects light intensity data of the head area at i data collection moments to obtain i light intensity values;

[0048] The i light intensity values ​​are accumulated and averaged, and compared with the accumulated value of the area of ​​w valid rectangular grids to obtain the light intensity concentration;

[0049] The expression of light intensity concentration is:

[0050]

[0051] In the formula, GZ jj is the light intensity concentration, GZ zc is the cth light intensity value, MJ gd is the area of ​​the dth valid rectangular grid.

[0052] Furthermore, the method for obtaining the lens refraction compensation value includes:

[0053] Taking the position of the camera as the starting point and the position of the myopic lens as the end point, the distance between the starting point and the end point is measured by a rangefinder to obtain a first distance value;

[0054] At i data collection moments, the eye movement angle between the starting point and the end point is measured by the eye tracking algorithm in the data collection module to obtain i tilt angles;

[0055] Based on the first distance value and i tilt angles, the distance from the camera to the myopic lens is calculated to obtain i second distance values;

[0056] The expression for the second distance value is:

[0057] JL d2i =JL d1 *cos(θ i );

[0058] In the formula, JL d2i is the i-th second distance value, JL d1 is the first distance value, θ i is the i-th tilt angle;

[0059] The refractive index of the myopia lens is input in advance, and when the driver's eye line and the myopia lens are in a horizontal state, the refractive angle of the lens is calculated by the refractive angle calculation formula;

[0060] Combining the lens refraction angle and i second distance values, the downward shift distance of the line of sight is calculated to obtain i sub-compensation values;

[0061] The expression of the sub-compensation value is:

[0062] BC zi =JL d2i *tan(90°-θ2);

[0063] In the formula, BC zi is the i-th sub-compensation value, θ2 is the refraction angle of the lens;

[0064] The i sub-compensation values ​​are accumulated and averaged to obtain the lens refraction compensation value;

[0065] The expression of the lens refraction compensation value is:

[0066]

[0067] In the formula, BC zs is the lens refraction compensation value, BC ze is the e-th sub-compensation value.

[0068] Furthermore, the training method of the machine learning model for predicting the upper limit of the line of sight pitch includes:

[0069] The comprehensive line of sight data is converted into a corresponding set of feature vectors, the feature vectors are used as the input of the machine learning model, and the line of sight pitch upper limit value corresponding to each set of comprehensive line of sight data is used as the output of the machine learning model. The line of sight pitch upper limit value is used as the prediction target, and minimizing the sum of prediction errors of all training data is used as the training target. The machine learning model is trained until the sum of prediction errors converges and the training is stopped.

[0070] Furthermore, the method for determining whether to issue a distraction warning prompt includes:

[0071] Collect the real-time line of sight pitch upper limit FY ss ;

[0072] Set the real-time line of sight pitch upper limit FY ss The predicted line of sight elevation upper limit FY yc Compare;

[0073] When FY ss Greater than or equal to FY yc When the user is distracted, a warning prompt will be issued;

[0074] When FY ss Less than FY yc When the user is distracted, it is determined that no distraction warning prompt will be issued.

[0075] Furthermore, the distraction warning level includes a first distraction level and a second distraction level;

[0076] The methods for dividing the primary distraction level and the secondary distraction level include:

[0077] Set the real-time line of sight pitch upper limit FY ss The predicted line of sight elevation upper limit FY yc Make a difference and obtain the pitch difference;

[0078] The expression of pitch difference is:

[0079] FY cz =FY ss -FY yc ;

[0080] In the formula, FY cz is the pitch difference;

[0081] The pitch difference FY cz The pitch difference threshold FY yz Compare;

[0082] When FY cz Less than FY yz When the distraction level is 1, it is divided into the first level;

[0083] When FY cz Greater than or equal to FY yz It is divided into the second level of distraction.

[0084] Furthermore, the assisted driving instructions include soft intelligent driving instructions and hard intelligent driving instructions;

[0085] The generation method of the flexible intelligent driving instruction and the hard intelligent driving instruction includes:

[0086] When the distraction warning level is level 1, a flexible intelligent driving instruction is generated;

[0087] When the distraction warning level is level 2, a hard intelligent driving instruction is generated.

[0088] Furthermore, the method for assisting a driver in safely driving a vehicle includes:

[0089] When a flexible intelligent driving instruction is generated, the driving computer controls the vehicle alarm to start, and the vehicle alarm continues to flash and buzz;

[0090] When a hard intelligent driving instruction is generated, the on-board computer controls the vehicle alarm to start, and the on-board alarm continues to flash and buzzer. At the same time, the on-board computer controls the vehicle engine to reduce the operating power.

[0091] The technical effects and advantages of the driver distraction warning system of the present invention that overcomes the problem of differences between myopic glasses and eyes are as follows:

[0092] The present invention collects the driver's comprehensive sight line data and the sight line pitch upper limit value, trains a machine learning model for predicting the sight line pitch upper limit value, collects real-time comprehensive sight line data, inputs it into the trained machine learning model to predict the sight line pitch upper limit value, and determines whether to issue a distraction warning prompt, generates a pitch difference based on the real-time sight line pitch upper limit value and the predicted sight line pitch upper limit value, and divides the distraction warning level, generates an assisted driving instruction based on the distraction warning level, and assists the driver in driving the vehicle safely; compared with the prior art, by collecting comprehensive sight line data and combining with the machine learning model, it can accurately predict The real-time upper limit of the line of sight pitch is measured, and according to the size of the predicted upper limit of the line of sight pitch, whether the driver is distracted while driving the vehicle can be accurately judged, thereby effectively avoiding the distracted driving misjudgment caused by the refraction of the lenses when the driver wears myopia glasses, and can also avoid the errors caused by the up and down preferences of different drivers during driving, ensuring that the driver's distracted driving system can accurately and timely identify the driver's distracted driving phenomenon, and formulate targeted intelligent driving assistance measures when distracted driving occurs, so as to avoid traffic accidents and improve vehicle driving safety. BRIEF DESCRIPTION OF THE DRAWINGS

[0093] Figure 1 A schematic diagram of a driver distraction warning system for overcoming the problem of differences between myopic glasses and eyes provided in Example 1 of the present invention;

[0094] Figure 2 A flowchart of a driver distraction warning method for overcoming the problem of differences between myopic glasses and eyes provided in Example 2 of the present invention. DETAILED DESCRIPTION

[0095] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0096] Example 1: Please refer to Figure 1 As shown, the driver distraction warning system described in this embodiment overcomes the problem of myopic glasses and eye differences, and is applied to a driver monitoring system, including:

[0097] A data collection module, used to collect driver's distracted driving data, the distracted driving data including comprehensive sight line data and sight line pitch upper limit value;

[0098] Comprehensive sight data refers to a series of diversified data generated by the driver during driving that can change the driving sight state and affect the distraction warning judgment result, so as to collect diversified data on the driver's distracted driving during driving and serve as the data basis for subsequent distraction warning judgment;

[0099] Comprehensive sight data includes head posture deviation value, pupil center fluctuation value, light intensity concentration and lens refraction compensation value;

[0100] The head posture offset value refers to the deviation between the real-time position of the driver's head center point and the standard center point position during driving. When the head posture offset value is larger, it means that the difference between the driver's head posture and the standard posture during driving is larger, and the change range of the line of sight pitch upper limit value is larger;

[0101] The method for obtaining the head posture offset value includes:

[0102] Taking a preset collection time as the standard, starting from the current moment, and pushing back i preset collection time periods, i data collection moments are marked; the preset collection time period is used to represent the time span between two adjacent data collection moments, ensuring that the time span between two adjacent data collection moments remains consistent and that there is no inconsistency between the data before and after; the preset collection time period is obtained by collecting a large number of time spans between two adjacent data collection moments in history and selecting the maximum value;

[0103] At i data collection moments, the driver’s head posture image is captured by a camera installed in the cab to obtain i head images;

[0104] Using computer vision technology, identify the location of the inner side of the left eye corner of the driver and the location of the inner side of the right eye corner in the head image, and record them as the first point and the second point respectively;

[0105] After connecting i first points and i second points, i horizontal dividing lines are formed, and the midpoints of the i horizontal dividing lines are marked as the head center points, thereby obtaining i head center points; the marked head center points are used as reference points for head posture comparison, and a large area of ​​head posture can be reduced to a small point, which not only facilitates data collection and analysis, but also reduces the burden of data processing;

[0106] Draw horizontal standard lines and vertical standard lines through the midpoints of the four boundaries of the head image, and mark the intersection of the horizontal standard line and the vertical standard line as the standard center point;

[0107] Use a scale to measure the distances from i head center points to the standard center point in sequence, and obtain i sub-offset values;

[0108] Remove the maximum and minimum sub-offset values, accumulate the remaining i-2 sub-offset values ​​and calculate the average to obtain the head posture offset value;

[0109] The expression of the head posture offset value is:

[0110]

[0111] Where PY zt is the head posture offset value, PY za is the a-th sub-offset value;

[0112] The pupil center fluctuation value refers to the distance between the actual position of the driver's pupil and the normal position in the image. When the pupil center fluctuation value is larger, it means that the distance between the driver's pupil and the normal position is larger, and the change range of the line of sight pitch upper limit value is larger at this time;

[0113] Methods for obtaining pupil center fluctuation values ​​include:

[0114] At i data collection moments, the driver's eye images are captured by the camera deployed in the cab to obtain i eye images;

[0115] Identify the lower edge of the upper eyelid and the upper edge of the lower eyelid of one of the i eye images by computer vision technology, and record the area between the lower edge of the upper eyelid and the upper edge of the lower eyelid as the target area;

[0116] Mark the pixel values ​​of all pixels in the target area, and record the pixel values ​​greater than the preset pixel threshold as the target pixel points; the target pixel points refer to the pixel points corresponding to the pupil area in the driver's eyes. Since the color of the pupil is relatively dark, the pixel values ​​of the pixel points in the pupil area will be different from the pixel values ​​of the pixel points in the white of the eye area, so the target pixel points can be used to accurately represent the position of the pupil;

[0117] A target pixel point is randomly selected as the center of the circle, and p detection circles are drawn with a preset length as the radius. The preset length is used to limit the radius of the detection circle, ensuring that the detection circle with the preset length as the radius can enclose a sufficient number of target pixels. The preset length is obtained by measuring the maximum span of the area where the target pixel point is located and then optimizing the coefficient.

[0118] The total number of pixels in the p detection circles and the number of target pixels in the p detection circles are counted respectively, and the number of target pixels in the p detection circles is compared with the total number of pixels in the p detection circles to obtain the proportion of the p target pixels;

[0119] The expression of the target pixel ratio is:

[0120]

[0121] In the formula, ZB xsp is the pth target pixel ratio, SL mbp is the number of target pixels in the pth detection circle, SL zlp is the total number of pixels in the pth detection circle;

[0122] The maximum value is selected from the m target pixel ratio values ​​that are greater than the preset ratio threshold, and the detection circle corresponding to the maximum value of the target pixel ratio is recorded as the target circle; the preset ratio threshold is used to limit the minimum value of the target pixel ratio value in the target circle, ensuring that there are sufficient target pixels in the target circle;

[0123] In the i-eye captured images, the position of the target pixel point corresponding to the center position of the target circle is recorded as the pupil center point, and i pupil center points are obtained;

[0124] Mark n measuring points on the lower edge of the upper eyelid and the upper edge of the lower eyelid respectively, and measure the distance between two measuring points on the lower edge of the upper eyelid and the upper edge of the lower eyelid and on the same vertical line using a scale to obtain n distance values;

[0125] Connect the two measurement points corresponding to the maximum distance value to obtain a distance line, and mark the center of the distance line as a conventional center point;

[0126] The distances from i pupil center points to the regular center point are measured respectively to obtain i sub-fluctuation values, and the i sub-fluctuation values ​​are accumulated and averaged to obtain the pupil center fluctuation value;

[0127] The expression of pupil center fluctuation value is:

[0128]

[0129] In the formula, BD zt is the pupil center fluctuation value, BD zb is the b-th sub-fluctuation value;

[0130] Light intensity concentration refers to the concentration of light intensity in the cab per unit time when the driver is driving the vehicle. The greater the light intensity concentration, the denser the light concentration in the cab, the greater the impact of light intensity changes on the upper limit of the line of sight pitch, and the greater the change in the upper limit of the line of sight pitch;

[0131] Methods for obtaining light intensity concentration include:

[0132] Capturing images of the driver's body position during driving by using a camera;

[0133] The area where the driver's head is located in the body position image is identified by computer vision technology and recorded as the head area;

[0134] The head area is shaded, and the preset length value is used as the side length, the head area is divided into s rectangular grids of equal area, and the shaded area values ​​in the s rectangular grids are measured; the shaded area can clearly distinguish the head area from other body areas, thereby highlighting the importance of the head area, and is also convenient for subsequent data collection, calculation and analysis processing; the preset length value is a numerical basis for limiting the side length of the minimum rectangular grid, so that the area of ​​the rectangular grid drawn by the preset length value is easy to measure, and at the same time, it also ensures that the number of rectangular grids is reasonable, and there will be no phenomenon of too many or too few rectangular grids;

[0135] The rectangular grids whose shadow coloring area value is greater than the preset coloring lower limit value are recorded as valid rectangular grids, w valid rectangular grids are obtained, and the area of ​​the valid rectangular grid is calculated according to the rectangular area calculation formula; the preset coloring lower limit value is used to limit the shadow coloring area value of the valid rectangular grid, which can effectively screen out the valid rectangular grids and the invalid rectangular grids; the preset coloring lower limit value is obtained by collecting the minimum values ​​of the shadow coloring area values ​​corresponding to a large number of valid rectangular grids in history, and then optimizing the coefficients;

[0136] The light intensity sensor collects light intensity data of the head area at i data collection moments to obtain i light intensity values;

[0137] The i light intensity values ​​are accumulated and averaged, and compared with the accumulated value of the area of ​​w valid rectangular grids to obtain the light intensity concentration;

[0138] The expression of light intensity concentration is:

[0139]

[0140] In the formula, GZ jj is the light intensity concentration, GZ zC is the cth light intensity value, MJ gd is the area of ​​the dth valid rectangular grid;

[0141] The lens refraction compensation value refers to the extent to which the driver's line of sight deviates downward due to the influence of the lens' refractive index when wearing myopia glasses. The larger the lens refraction compensation value, the greater the downward deviation of the line of sight due to the influence of the lens' refractive index, and the greater the change in the upper limit of the line of sight pitch.

[0142] The method for obtaining the lens refraction compensation value includes:

[0143] Taking the position of the camera as the starting point and the position of the myopic lens as the end point, the distance between the starting point and the end point is measured by a rangefinder to obtain a first distance value;

[0144] At i data collection moments, the eye movement angle between the starting point and the end point is measured by the eye tracking algorithm in the data collection module to obtain i tilt angles;

[0145] Based on the first distance value and i tilt angles, the distance from the camera to the myopic lens is calculated to obtain i second distance values;

[0146] The expression for the second distance value is:

[0147] JL d2i =JL d1 *cos(θ i );

[0148] In the formula, JL d2i is the i-th second distance value, JL d1 is the first distance value, θ i is the i-th tilt angle;

[0149] The refractive index of the myopia lens is input in advance, and when the driver's eye line and the myopia lens are in a horizontal state, the refractive angle of the lens is calculated by the refractive angle calculation formula;

[0150] Combining the lens refraction angle and i second distance values, the downward shift distance of the line of sight is calculated to obtain i sub-compensation values;

[0151] The expression of the sub-compensation value is:

[0152] BC zi =JL d2i *tan(90°-θ2);

[0153] In the formula, BC zi is the i-th sub-compensation value, θ2 is the refraction angle of the lens;

[0154] The i sub-compensation values ​​are accumulated and averaged to obtain the lens refraction compensation value;

[0155] The expression of the lens refraction compensation value is:

[0156]

[0157] In the formula, BC zs is the lens refraction compensation value, BC ze is the e-th sub-compensation value;

[0158] The upper limit of the line of sight pitch refers to the distance from the upper edge of the iris to the lower edge of the upper eyelid in the driver's eyes. When the upper limit of the line of sight pitch is smaller, it means that the driver's line of sight upward is larger, and the probability of distracted driving by the driver is lower, and the driver is less likely to drive distracted. The upper limit of the line of sight pitch is obtained by tracking and identifying the position of the upper edge of the iris through the eye tracking algorithm in the acquisition module, and then measuring the distance from the upper edge of the iris to the lower edge of the upper eyelid through a scale.

[0159] A model training module is used to train a machine learning model to predict the upper limit of the line of sight pitch based on distracted driving data;

[0160] The training method of the machine learning model for predicting the upper limit of the line of sight pitch includes:

[0161] Convert the comprehensive sight line data into a corresponding set of feature vectors;

[0162] The feature vector is used as the input of the machine learning model, and the upper limit value of the line of sight pitch corresponding to each set of comprehensive line of sight data is used as the output of the machine learning model. The upper limit value of the line of sight pitch is used as the prediction target, and the sum of the prediction errors of all training data is minimized as the training target. The machine learning model is trained until the sum of the prediction errors reaches convergence and the training is stopped.

[0163] Exemplarily, the machine learning model is any one of a CNN neural network model or AlexNet;

[0164] The calculation formula for the prediction error is:

[0165] zk=(ak-wk) 2 ;

[0166] Where zk is the prediction error, k is the group number of the feature vector; ak is the predicted state value corresponding to the kth group of feature vectors, and wk is the actual state value corresponding to the kth group of training data;

[0167] In the machine learning model, the feature vector is the comprehensive line of sight data, and the state value is the upper limit of the line of sight pitch;

[0168] Other model parameters of the machine learning model, such as target loss value, optimization algorithm, ratio of training set, test set, validation set, and optimization of loss function, are obtained through actual engineering implementation and continuous experimental tuning.

[0169] The real-time warning module is used to collect real-time comprehensive sight line data, input it into the trained machine learning model to predict the upper limit of sight line pitch, and determine whether to issue a distraction warning prompt;

[0170] By collecting real-time comprehensive sight line data and inputting the real-time comprehensive sight line data into the machine learning model, the real-time sight line pitch upper limit value can be predicted, and the real-time sight line pitch upper limit value can be compared with the predicted sight line pitch upper limit value, so as to compare the driver's sight line pitch data to determine whether the driver's sight line pitch upper limit has changed, and serve as the basis for determining whether the driver has distracted driving and as the basis for issuing early warning prompts;

[0171] The methods for determining whether to issue a distraction warning prompt include:

[0172] Collect the real-time line of sight pitch upper limit FY ss ;

[0173] Set the real-time line of sight pitch upper limit FY ss The predicted line of sight elevation upper limit FY yc Compare;

[0174] When FY ss Greater than or equal to FY yc When , it indicates that the real-time sight pitch upper limit value is greater than or equal to the predicted sight pitch upper limit value, and the driver is in a distracted driving state at this time, and a distraction warning prompt is issued;

[0175] When FY ss Less than FY yc When , it means that the real-time sight pitch upper limit value is less than the predicted sight pitch upper limit value. At this time, the driver is not in a distracted driving state, and it is determined that no distraction warning prompt will be issued;

[0176] A level classification module, used to generate a pitch difference value based on the real-time line of sight pitch upper limit value and the predicted line of sight pitch upper limit value, and classify the distraction warning level;

[0177] When a distraction warning prompt is issued, it means that the real-time sight pitch upper limit value is greater than or equal to the predicted sight pitch upper limit value. At this time, the driver will be distracted. In order to evaluate the severity of distracted driving, it is necessary to compare the real-time sight pitch upper limit value with the predicted sight pitch upper limit value, and judge the severity of distracted driving based on the actual comparison result. In order to distinguish the severity of distracted driving, it is necessary to use the distraction warning level to divide the severity, and then accurately divide the different severity of distracted driving;

[0178] The distraction warning levels include level 1 distraction and level 2 distraction. Level 1 distraction corresponds to a low level of distracted driving severity, while level 2 distraction corresponds to a high level of distracted driving severity.

[0179] The methods for dividing the primary distraction level and the secondary distraction level include:

[0180] Set the real-time line of sight pitch upper limit FY ss The predicted line of sight elevation upper limit FY yc Make a difference and obtain the pitch difference;

[0181] The expression of pitch difference is:

[0182] FY cz =FY ss -FY yc ;

[0183] In the formula, FY cz is the pitch difference;

[0184] The pitch difference FY cz The pitch difference threshold FY yz Compare;

[0185] When FY cz Less than FY yz When , it means that the pitch difference is less than the preset pitch difference threshold value. At this time, the severity of distracted driving is low, and it is classified as the first distraction level;

[0186] When FY cz Greater than or equal to FY yz When , it means that the pitch difference is greater than or equal to the preset pitch difference threshold value. At this time, the severity of distracted driving is high, and it is classified as the second distraction level;

[0187] Intelligent driving assistance module, which is used to generate assisted driving instructions based on the distraction warning level, and assist the driver to drive the vehicle safely based on the assisted driving instructions;

[0188] Assisted driving instructions are instructions formulated at different distraction warning levels to help the driver drive safely, ensuring that the driver can drive the vehicle safely;

[0189] Assisted driving instructions include soft intelligent driving instructions and hard intelligent driving instructions; soft intelligent driving instructions refer to providing intelligent assisted driving assistance to drivers in a soft and non-mandatory manner, helping drivers with a low degree of distracted driving to quickly and promptly return to a safe driving state, while hard intelligent driving instructions refer to providing intelligent assisted driving assistance to drivers in a blunt and mandatory manner, helping drivers with a high degree of distracted driving to take timely and correct measures to avoid safety accidents and improve driving safety;

[0190] The generation method of the flexible intelligent driving instruction and the hard intelligent driving instruction includes:

[0191] When the distraction warning level is level 1, the driver needs to be provided with flexible assisted driving assistance, and a flexible intelligent driving instruction is generated;

[0192] When the distraction warning level is level 2, the driver needs to be provided with hard assisted driving assistance, and a hard intelligent driving instruction is generated;

[0193] After the flexible intelligent driving instruction or the hard intelligent driving instruction is generated, the flexible intelligent driving instruction or the hard intelligent driving instruction needs to be specifically applied to the driver when driving the vehicle, so as to assist the driver to drive the vehicle safely and avoid traffic accidents caused by distracted driving;

[0194] Methods to assist drivers in safely operating their vehicles include:

[0195] When a flexible intelligent driving instruction is generated, the driver monitoring system sends flexible intelligent assistance information to the driving computer. At this time, the driving computer controls the vehicle alarm to start. The vehicle alarm continues to flash and beep to remind the driver to drive the vehicle safely.

[0196] When a hard intelligent driving instruction is generated, the driver monitoring system sends hard intelligent assistance information to the on-board computer. At this time, the on-board computer controls the on-board alarm to start, and the on-board alarm continues to flash and buzzer alarm. At the same time, the on-board computer controls the vehicle engine to reduce operating power and reduce the vehicle's driving speed to assist the driver in driving the vehicle safely.

[0197] In this embodiment, by collecting the driver's comprehensive line of sight data and line of sight pitch upper limit value, training a machine learning model that predicts the line of sight pitch upper limit value, collecting real-time comprehensive line of sight data, inputting it into the trained machine learning model to predict the line of sight pitch upper limit value, and judging whether to issue a distraction warning prompt, based on the real-time line of sight pitch upper limit value and the predicted line of sight pitch upper limit value, generating a pitch difference, and dividing the distraction warning level, based on the distraction warning level, generating an assisted driving instruction, and assisting the driver to drive the vehicle safely; compared with the prior art, by collecting comprehensive line of sight data and combining it with a machine learning model, it is possible to accurately It can predict the real-time upper limit of the pitch of the line of sight, and accurately judge whether the driver is distracted while driving the vehicle based on the size of the predicted upper limit of the pitch of the line of sight. This can effectively avoid the distracted driving misjudgment caused by the refraction of the lenses when the driver wears myopia glasses, and can also avoid the errors caused by the up and down preferences of different drivers during driving. It ensures that the driver's distracted driving system can accurately and timely identify the driver's distracted driving phenomenon, and formulate targeted intelligent driving assistance measures when distracted driving occurs, so as to avoid traffic accidents and improve vehicle driving safety.

[0198] Example 2: Please refer to Figure 2As shown, the part not described in detail in this embodiment is described in the description of embodiment 1, and a driver distraction warning method that overcomes the problem of difference between myopic glasses and eyes is provided, which is applied to a driver monitoring system, and is implemented based on a driver distraction warning system that overcomes the problem of difference between myopic glasses and eyes, including:

[0199] S1: Collect the driver's distracted driving data, which includes comprehensive sight line data and sight line pitch upper limit value;

[0200] S2: Based on distracted driving data, a machine learning model is trained to predict the upper limit of the line of sight pitch.

[0201] S3: Collect real-time comprehensive sight line data, input it into the trained machine learning model to predict the upper limit of sight line pitch, and determine whether to issue a distraction warning prompt; if a distraction warning prompt is issued, execute S4-S5; if no distraction warning prompt is issued, repeat S3;

[0202] S4: generating a pitch difference based on the real-time sight pitch upper limit value and the predicted sight pitch upper limit value, and dividing the distraction warning level;

[0203] S5: Generate assisted driving instructions based on the distraction warning level, and assist the driver to drive the vehicle safely based on the assisted driving instructions.

[0204] The above description is only a specific implementation mode of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.

Claims

1. A driver distraction warning system that overcomes the problem of myopia glasses and eye differences, applied to a driver monitoring system, characterized in that: include: A data collection module, used to collect driver's distracted driving data, the distracted driving data including comprehensive sight line data and sight line pitch upper limit value; Comprehensive sight data includes head posture deviation value, pupil center fluctuation value, light intensity concentration and lens refraction compensation value; The method for obtaining the head posture offset value includes: Taking a preset collection time as the standard, starting from the current moment, count back i preset collection time periods, and mark i data collection moments; At i data collection moments, the driver’s head posture image is captured by a camera installed in the cab to obtain i head images; Using computer vision technology, identify the location of the inner side of the left eye corner of the driver and the location of the inner side of the right eye corner in the head image, and record them as the first point and the second point respectively; After connecting the i first points and the i second points, i horizontal dividing lines are formed, and the midpoints of the i horizontal dividing lines are marked as the center points of the head, thereby obtaining i center points of the head; Draw horizontal standard lines and vertical standard lines through the midpoints of the four boundaries of the head image, and mark the intersection of the horizontal standard line and the vertical standard line as the standard center point; Use a scale to measure the distances from i head center points to the standard center point in sequence, and obtain i sub-offset values; Remove the maximum and minimum sub-offset values, accumulate the remaining i-2 sub-offset values ​​and calculate the average to obtain the head posture offset value; The expression of the head posture offset value is: Where PY zt is the head posture offset value, PY za is the a-th sub-offset value; Methods for obtaining pupil center fluctuation values ​​include: At i data collection moments, the driver's eye images are captured by the camera deployed in the cab to obtain i eye images; Identify the lower edge of the upper eyelid and the upper edge of the lower eyelid of one of the i eye images by computer vision technology, and record the area between the lower edge of the upper eyelid and the upper edge of the lower eyelid as the target area; Mark the pixel values ​​of all pixels in the target area, and record the pixels whose pixel values ​​are greater than a preset pixel threshold as target pixels; Randomly select a target pixel as the center of the circle, and draw p detection circles with a preset length as the radius; The total number of pixels in the p detection circles and the number of target pixels in the p detection circles are counted respectively, and the number of target pixels in the p detection circles is compared with the total number of pixels in the p detection circles to obtain the proportion of the p target pixels; The expression of the target pixel ratio is: In the formula, ZB xsp is the pth target pixel ratio, SL mbp is the number of target pixels in the pth detection circle, SL zlp is the total number of pixels in the pth detection circle; The maximum value is selected from the m target pixel point proportion values ​​that are greater than the preset proportion threshold, and the detection circle corresponding to the maximum value of the target pixel point proportion value is recorded as the target circle; In the i-eye captured images, the position of the target pixel point corresponding to the center position of the target circle is recorded as the pupil center point, and i pupil center points are obtained; Mark n measuring points on the lower edge of the upper eyelid and the upper edge of the lower eyelid respectively, and measure the distance between two measuring points on the lower edge of the upper eyelid and the upper edge of the lower eyelid and on the same vertical line using a scale to obtain n distance values; Connect the two measurement points corresponding to the maximum distance value to obtain a distance line, and mark the center of the distance line as a conventional center point; The distances from i pupil center points to the regular center point are measured respectively to obtain i sub-fluctuation values, and the i sub-fluctuation values ​​are accumulated and averaged to obtain the pupil center fluctuation value; The expression of pupil center fluctuation value is: In the formula, BD zt is the pupil center fluctuation value, BD zb is the b-th sub-fluctuation value; Methods for obtaining light intensity concentration include: Capturing images of the driver's body position during driving by using a camera; The area where the driver's head is located in the body position image is identified by computer vision technology and recorded as the head area; The head area is shaded, and a preset length value is used as the side length, the head area is divided into s rectangular grids with equal areas, and the shaded area values ​​in the s rectangular grids are measured; The rectangular grids whose shadow shading area values ​​are greater than the preset shading lower limit value are recorded as valid rectangular grids, w valid rectangular grids are obtained, and the areas of the valid rectangular grids are calculated according to the rectangular area calculation formula; The light intensity sensor collects light intensity data of the head area at i data collection moments to obtain i light intensity values; The i light intensity values ​​are accumulated and averaged, and compared with the accumulated value of the area of ​​w valid rectangular grids to obtain the light intensity concentration; The expression of light intensity concentration is: In the formula, GZ jj is the light intensity concentration, GZ zc is the cth light intensity value, MJ gd is the area of ​​the dth valid rectangular grid; The method for obtaining the lens refraction compensation value includes: Taking the position of the camera as the starting point and the position of the myopic lens as the end point, the distance between the starting point and the end point is measured by a rangefinder to obtain a first distance value; At i data collection moments, the eye movement angle between the starting point and the end point is measured by the eye tracking algorithm in the data collection module to obtain i tilt angles; Based on the first distance value and i tilt angles, the distance from the camera to the myopic lens is calculated to obtain i second distance values; The expression for the second distance value is: JL d2i =JL d1 *cos(θ i ); In the formula, JL d2i is the i-th second distance value, JL d1 is the first distance value, θ i is the i-th tilt angle; The refractive index of the myopia lens is input in advance, and when the driver's eye line and the myopia lens are in a horizontal state, the refractive angle of the lens is calculated by the refractive angle calculation formula; Combining the lens refraction angle and i second distance values, the downward shift distance of the line of sight is calculated to obtain i sub-compensation values; The expression of the sub-compensation value is: <h2 style=";text-align:left;direction:ltr">BC<h2 style=";text-align:left;direction:ltr"> zi <h2 style=";text-align:left;direction:ltr"> (JL)<h2 style=";text-align:left;direction:ltr"> d2i <h2 style=";text-align:left;direction:ltr"> *tan(90°-θ2); In the formula, BC zi is the i-th sub-compensation value, θ2 is the refraction angle of the lens; The i sub-compensation values ​​are accumulated and averaged to obtain the lens refraction compensation value; The expression of the lens refraction compensation value is: In the formula, BC zs is the lens refraction compensation value, BC ze is the e-th sub-compensation value; A model training module is used to train a machine learning model to predict the upper limit of the line of sight pitch based on distracted driving data; The real-time warning module is used to collect real-time comprehensive sight line data, input it into the trained machine learning model to predict the upper limit of sight line pitch, and determine whether to issue a distraction warning prompt; A level classification module, used to generate a pitch difference value based on the real-time line of sight pitch upper limit value and the predicted line of sight pitch upper limit value, and classify the distraction warning level; The intelligent driving assistance module is used to generate assisted driving instructions based on the distraction warning level, and assist the driver to drive the vehicle safely based on the assisted driving instructions.

2. A driver distraction warning system for overcoming the problem of differences between myopic glasses and eyes according to claim 1, characterized in that: The training method of the machine learning model for predicting the upper limit of the line of sight pitch includes: The comprehensive line of sight data is converted into a corresponding set of feature vectors, the feature vectors are used as the input of the machine learning model, and the line of sight pitch upper limit value corresponding to each set of comprehensive line of sight data is used as the output of the machine learning model. The line of sight pitch upper limit value is used as the prediction target, and minimizing the sum of prediction errors of all training data is used as the training target. The machine learning model is trained until the sum of prediction errors converges and the training is stopped.

3. A driver distraction warning system for overcoming the problem of myopic glasses and eye differences according to claim 2, characterized in that: The method for determining whether to issue a distraction warning prompt includes: Collect the real-time line of sight pitch upper limit FY ss ; Set the real-time line of sight pitch upper limit FY ss The predicted line of sight elevation upper limit FY yc Compare; When FY ss Greater than or equal to FY yc When the user is distracted, a warning prompt will be issued; When FY ss Less than FY yc When the user is distracted, it is determined that no distraction warning prompt will be issued.

4. A driver distraction warning system for overcoming the problem of myopic glasses and eye differences according to claim 3, characterized in that: The distraction warning level includes a first distraction level and a second distraction level; The methods for dividing the primary distraction level and the secondary distraction level include: Set the real-time line of sight pitch upper limit FY ss The predicted line of sight elevation upper limit FY yc Make a difference and obtain the pitch difference; The expression of pitch difference is: MY cz =MY ss -MY yc ; In the formula, FY cz is the pitch difference; The pitch difference FY cz The pitch difference threshold FY yz Compare; When FY cz Less than FY yz When the distraction level is 1, it is divided into the first level; When FY cz Greater than or equal to FY yz It is divided into the second level of distraction.

5. A driver distraction warning system for overcoming the problem of myopic glasses and eye use differences according to claim 4, characterized in that: The auxiliary driving instructions include flexible intelligent driving instructions and hard intelligent driving instructions; The generation method of the flexible intelligent driving instruction and the hard intelligent driving instruction includes: When the distraction warning level is level 1, a flexible intelligent driving instruction is generated; When the distraction warning level is level 2, a hard intelligent driving instruction is generated.

6. A driver distraction warning system for overcoming the problem of differences between myopic glasses and eyes according to claim 5, characterized in that: The method for assisting a driver in safely driving a vehicle comprises: When a flexible intelligent driving instruction is generated, the driving computer controls the vehicle alarm to start, and the vehicle alarm continues to flash and buzz; When a hard intelligent driving instruction is generated, the on-board computer controls the vehicle alarm to start, and the on-board alarm continues to flash and buzzer. At the same time, the on-board computer controls the vehicle engine to reduce the operating power.