Appendix A
The appendix shows the main data obtained in the driving tests.
TEST 1
The participant is a 23-year-old white female of Caucasian ethnicity with an 8-month-old driver’s licence. She drives almost every day and defines herself as a moderately active person. The night before the test, which started around 6 p.m., she had slept for about 5 h. His sleep habits are irregular, sleeping between 6 and 7 h a day. He reports no history of road accidents.
Table A1.
Compilation table of data from test 1.
Table A1.
Compilation table of data from test 1.
Test | Test 1 |
---|
Conditions | Level of drowsiness (assessed by the subject with the KSS index) | 6 (Some symptoms of drowsiness) on both occasions |
Brightness | Average: cloudy and raining |
Results | Face detection rate | 92.4% |
Detector | HOG | 96.13% |
Cascades of Haar | 3.87% |
Detection speed | Maximum | 3.77 fps |
Minimum | 2.13 fps |
Average | 3.49 fps |
Customised thresholds | MAR | 0.45 |
EAR | 0.23 |
PERCLOS score | Average | 19.94% |
Maximum | 33.33% |
Alarms activated | Yawn | 0 |
Drowsy | 7 |
Asleep | 2 |
Distracted | 10 |
Distracting glance | 1 |
Comments | There have been some sleepy and drowsy alarms that are consistent with the level of drowsiness on the KSS scale. |
In this test, a 92% face detection rate was achieved, of which 96.13% was achieved with the HOG detector, without having to resort to Haar Cascades to find the face in the image. The average frame rate was 3.49 fps. The thresholds customised by the initialisation routine are 0.45 for the MAR and 0.23 for the EAR, scores that are very well adapted to the test person. The maximum PERCLOS score reached in one minute was 33.33%, which triggered the drowsiness alarm. The PERCLOS score exceeded 20% in 7 of the 20 min of the test. The average, however, was 19.94%, which means that in other periods the driver was more attentive. In addition, there were ten distraction alarms, some related to movements to look to the sides of the vehicle, one gaze distraction alarm and no yawning.
There have been some false positives, usually at times when the driver’s head is turned very much to one side, and the detector is not able to recognise the face. However, false positives have been rare, so it is considered to be a fairly successful test.
The driver states that she wears contact lenses and that this causes excessive dryness of the eyes, which increases the amount of blinking and, therefore, the PERCLOS score, which triggers the drowsiness alarm when it exceeds 20%. In addition, despite a cloudy day, at times when the sun was out, the driver’s reflexes were squinting, which may also increase the PERCLOS score without necessarily meaning drowsiness.
TEST 2
The participant is a 58-year-old white woman of Caucasian ethnicity with a 37-year driving licence. The frequency of driving is daily, albeit for short distances and in towns. Frequent physical activity profile. The test started at around 18:30 p.m., having rested for 8 h the night before. Her sleep habits are fairly regular, sleeping around 8 h a day, although with episodes of wakefulness in the early hours of the morning. She reports no history of road accidents.
Table A2.
Compilation table of test 2 data.
Table A2.
Compilation table of test 2 data.
Test | Test 2 |
---|
Conditions | Level of drowsiness (assessed by the subject with the KSS index) | 5 (neither alert nor drowsy) and 6 (some symptoms of drowsiness) |
Brightness | Average: cloudy |
Results | Face detection rate | 96.36% |
Detector | HOG | 96.70% |
Cascades of Haar | 3.30% |
Detection speed | Maximum | 3.75 fps |
Minimum | 1.88 fps |
Average | 3.49 fps |
Customised thresholds | MAR | 0.32 |
EAR | 0.25 |
PERCLOS score | Average | 9.24% |
Maximum | 28.57% |
Alarms activated | Yawn | 1 |
Drowsy | 2 |
Asleep | 2 |
Distracted | 12 |
Distracting glance | 0 |
Comments | There were some sleepy and drowsy alarms, but mainly distractions. Face detection was accurate, with no false positives. |
In this test, a 96.36% face detection rate was achieved, so the detectors performed quite well. Of these, 96.7% were performed with the HOG detector. There were no false positives, so the results in terms of face detection are optimal. The average frame rate was 3.49 fps, the same as in the first test. The thresholds customised by the initialisation routine are 0.32 for the MAR and 0.25 for the EAR, scores that are also very well adapted to the test person. The average PERCLOS score was 9.24%, and the maximum one-minute PERCLOS score was 28.57%, which triggered the drowsiness alarm. The 20% PERCLOS was exceeded in only 2 of the 20 min of the test. There were also twelve distraction alarms, some of them related to sideways-looking movements, two sleepiness alarms, no gaze distraction and one yawning alarm.
TEST 3
The participant is a 58-year-old white male, Caucasian, with a 39-year driving licence. The frequency of driving is daily, with different types of journeys. He has a medium physical activity profile. The test started at around 19:30 p.m., having rested for 8 h the night before. His sleep habits are fairly regular, sleeping around 8 h a day. He reports no history of road accidents. The driver wears glasses.
Table A3.
Compilation table of test 3 data.
Table A3.
Compilation table of test 3 data.
Test | Test 3 |
---|
Conditions | Level of drowsiness (assessed by the subject with the KSS index) | 5 (neither alert nor drowsy) on both occasions |
Brightness | High: sunny |
Results | Face detection rate | 81.85% |
Detector | HOG | 36.37% |
Cascades of Haar | 63.63% |
Detection speed | Maximum | 3.72 fps |
Minimum | 1.77 fps |
Average | 2.64 fps |
Customised thresholds | MAR | 0.37 |
EAR | 0.2 |
PERCLOS score | Average | 14.98% |
Maximum | 35.24% |
Alarms activated | Yawn | 3 |
Drowsy | 1 |
Asleep | 2 |
Distracted | 6 |
Distracting glance | 1 |
Comments | There have been few alarms and some of them erroneous due to the high number of false positives. |
A face detection rate of 81.85% was achieved, of which only 36.37% was achieved with the HOG detector. This means that face detection was costly, and Haar Cascades had to be used in most cases, with a high number of false positives. The results are not very satisfactory with this particular subject. It is possible that these results are due to the distance adopted by the driver from the camera, with detection results worsening as the subject gets further away.
The average processing speed was 2.64 fps, which is lower than the previous ones because the difficulty of detecting a face leads to more processing time. The custom thresholds are 0.37 for the MAR and 0.2 for the EAR.
TEST 4
The participant is a 24-year-old white female of Caucasian ethnicity with Nordic features. She has had her driving licence for 1 year. She drives almost every day and defines herself as a sedentary rather than an active person. The night before the test, which started around 8 p.m., she had slept about 5 h and worked 8 h that day. His sleeping habits are regular, sleeping between 7 and 8 h a day. He reports no history of road accidents.
Table A4.
Compilation table of test 4 data.
Table A4.
Compilation table of test 4 data.
Test | Test 4 |
---|
Conditions | Level of drowsiness (assessed by the subject with the KSS index) | 6 (some symptoms of drowsiness) and 7 (drowsy, no effort to stay awake) |
Brightness | High |
Results | Face detection rate | 93.75% |
Detector | HOG | 98.13% |
Cascades of Haar | 1.87% |
Detection speed | Maximum | 3.79 fps |
Minimum | 2.12 fps |
Average | 3.5 fps |
Customised thresholds | MAR | 0.49 |
EAR | 0.17 |
PERCLOS score | Average | 12.53% |
Maximum | 28.10% |
Alarms activated | Yawn | 2 |
Drowsy | 1 |
Asleep | 2 |
Distracted | 3 |
Distracting glance | 0 |
Comments | Few alarms have been raised despite the driver’s self-assessment of some drowsiness. |
The detection rate is very positive, especially because it is accompanied by face detection with a HOG of almost 100%. In addition, there are no false positives. The thresholds of the EAR and MAR indicators are well-adjusted to the test subject. The PERCLOS is relatively low for what the driver has considered to be her drowsy state. As mentioned above, it is possible that the self-perception is altered and does not truly reflect the subject’s state, so the driver was probably more likely to be in state number 5 on the KSS scale, neither alert nor drowsy.
TEST 5
The participant is a 22-year-old white male of Caucasian ethnicity who has been driving for 4 years. He drives to work and university every day. His lifestyle is active, doing sports 4–5 days a week. The night before the test, he slept for 7 h and worked for 5 h that day. Just before the test, which started at around 5 p.m., he took a nap of just over half an hour. He reports no history of road accidents.
Table A5.
Compilation table of test 5 data.
Table A5.
Compilation table of test 5 data.
Test | Test 5 |
---|
Conditions | Level of drowsiness (assessed by the subject with the KSS index) | 4 (rather alert) and 5 (neither alert nor drowsy) |
Brightness | High: sunny |
Results | Face detection rate | 98.22% |
Detector | HOG | 94.70% |
Cascades of Haar | 5.30% |
Detection speed | Maximum | 3.76 fps |
Minimum | 2.00 fps |
Average | 3.47 fps |
Customised thresholds | MAR | 0.35 |
EAR | 0.28 |
PERCLOS score | Average | 8.39% |
Maximum | 11.43% |
Alarms activated | Yawn | 0 |
Drowsy | 1 |
Asleep | 0 |
Distracted | 3 |
Distracting glance | 1 |
Comments | There were hardly any alerts because the driver was in an average state of alertness, concentrating on driving. |
The face detection rate is very successful, exceeding 98%, of which about 95% occurred with HOG. Furthermore, no false positives occurred. Regarding the EAR and MAR thresholds, they have been adjusted to the test subject appropriately; they are 0.35 for MAR and 0.28 for EAR. The PERCLOS is in line with the driver’s self-perception during the test, with an average of 11.43% of the time with eyes closed.
In terms of frame rate, it averaged 3.47 fps, similar to the rest, with the exception of Test 3.
TEST 6
The participant is a 23-year-old white male of Caucasian ethnicity. He has had his driving licence for 3.5 years. He drives on a daily basis, much of it in monotonous environments such as the motorway to work, and defines himself as a sedentary rather than an active person. The night before the test, he had slept about 5 h and worked 8 h that day. His sleep habits are regular, sleeping between 5 and 6 h a day, so he suffers from accumulated fatigue. He reports no history of road accidents.
Table A6.
Compilation table of test data 6.
Table A6.
Compilation table of test data 6.
Test | Test 6 |
---|
Conditions | Level of drowsiness (assessed by the subject with the KSS index) | 8 (drowsy, some effort to stay awake) on both occasions |
Brightness | High: sunny |
Results | Face detection rate | 98.20% |
Detector | HOG | 95.12% |
Cascades of Haar | 4.88% |
Detection speed | Maximum | 3.77 fps |
Minimum | 2.11 fps |
Average | 3.49 fps |
Customised thresholds | MAR | 0.35 |
EAR | 0.18 |
PERCLOS score | Average | 14.19% |
Maximum | 29.05% |
Alarms activated | Yawn | 3 |
Drowsy | 4 |
Asleep | 2 |
Distracted | 3 |
Distracting glance | 1 |
Comments | Some sleepy and drowsy alarms occurred due to the drowsy state of the driver. There have also been 3 yawns which have been correctly detected. He was not very distracted, but showed signs of being tired. |
The participant in this test assessed himself at a high level of sleepiness, with a score of 8 out of 9, according to the KSS. The PERCLOS is in line with the driver’s self-perception during the test, with an average of 14.19% of the time with eyes closed and a maximum of 29.05% of the time with eyes closed. All alarms were therefore produced, mainly drowsiness, followed by distractions and yawning.
The face detection rate is also very successful, as in previous cases, exceeding 98%. Of these detections, more than 95% are with the HOG detector, with no false positives. Regarding the thresholds for EAR and MAR, they have been adjusted to the test subject appropriately; they are 0.35 for MAR and 0.18 for EAR.
The frame rate has been average, as in most of the other tests, averaging 3.49 fps.
TEST 7
The participant is a 53-year-old white male of Caucasian ethnicity who has 35 years of driving experience. He is a frequent driver and has an active lifestyle. On the day of the test, he worked 7.5 h and slept about 7 h. He has a stable sleep routine of 7 to 8 h of rest. He reports no history of road accidents.
Table A7.
Compilation table of test data 7.
Table A7.
Compilation table of test data 7.
Test | Test 7 |
---|
Conditions | Level of drowsiness (assessed by the subject with the KSS index) | 3 (alert) on both occasions |
Brightness | High: sunny |
Results | Face detection rate | 98.33% |
Detector | HOG | 98.70% |
Cascades of Haar | 1.30% |
Detection speed | Maximum | 3.76 fps |
Minimum | 1.99 fps |
Average | 3.52 fps |
Customised thresholds | MAR | 0.33 |
EAR | 0.22 |
PERCLOS score | Average | 11.10% |
Maximum | 19.05% |
Alarms activated | Yawn | 0 |
Drowsy | 0 |
Asleep | 0 |
Distracted | 3 |
Distracting glance | 2 |
Comments | There were hardly any alarms, only distractions when looking sideways for a certain period of time. |
In this test, the driver perceives himself as alert, which is consistent with the alarms produced during driving. Only a few distractions and one gaze distraction occurred. The average PERCLOS is above 11%, which is an average score that matches his condition.
The face detection rate is as in previous cases, exceeding 98%, of which more than 98% are with the HOG detector, with no false positives. The calculated thresholds for EAR and MAR are 0.22 and 0.33, respectively.
The average speed of the test has remained the same as the rest, averaging 3.52 fps.
TEST 8
The participant is a 57-year-old white male of Caucasian ethnicity. He has had his driving licence for more than 40 years. He is a daily driver, and his lifestyle is active, performing physical work frequently. On the day of the test, he worked 5 h and slept about 6 h. He suffers from alternative insomnia. He reports no history of road accidents.
Table A8.
Compilation table of test data 8.
Table A8.
Compilation table of test data 8.
Test | Test 8 |
---|
Conditions | Level of drowsiness (assessed by the subject with the KSS index) | 3 (alert) and 4 (rather alert) |
Brightness | High: sunny |
Results | Face detection rate | 98.43% |
Detector | HOG | 92.30% |
Cascades of Haar | 7.70% |
Detection speed | Maximum | 3.77 fps |
Minimum | 2.11 fps |
Average | 3.44 fps |
Customised thresholds | MAR | 0.30 |
EAR | 0.19 |
PERCLOS score | Average | 8.19% |
Maximum | 17.62% |
Alarms activated | Yawn | 0 |
Drowsy | 0 |
Asleep | 0 |
Distracted | 9 |
Distracting glance | 0 |
Comments | The driver has self-assessed as alert and the results are consistent. Only distraction alerts have occurred and some possibly due to observation at junctions. |
Similar to Test 7, the driver perceives himself as alert. PERCLOS is in line with the driver’s self-perception, with an average of 8.19% of the time with eyes closed and a maximum of 17.62% of the time. Only distraction alarms occurred, although there were 7.
The face detection rate is also above 98%, attributing more than 92% to the HOG detector. Regarding the EAR and MAR thresholds, they have been adjusted to the test subject appropriately, being 0.3 for the MAR and 0.19 for the EAR.
The frame rate has been regular, as in most of the other tests, with an average of 3.44 fps.
TEST 9
The participant is a 55-year-old white woman of Caucasian ethnicity. She has held a driving licence for 37 years. She is a regular daily driver and has an active lifestyle. On the day of the test, she did not work and slept about 7 h. She follows a steady sleep routine of 7–8 h of rest per night. She reports no history of road accidents.
Table A9.
Compilation table of test data 9.
Table A9.
Compilation table of test data 9.
Test | Test 9 |
---|
Conditions | Level of drowsiness (assessed by the subject with the KSS index) | 5 (neither alert nor drowsy) on both occasions |
Brightness | High: sunny |
Results | Face detection rate | 95.56% |
Detector | HOG | 84.35% |
Cascades of Haar | 15.65% |
Detection speed | Maximum | 3.79 fps |
Minimum | 1.88 fps |
Average | 3.33 fps |
Customised thresholds | MAR | 0.41 |
EAR | 0.22 |
PERCLOS score | Average | 12.76% |
Maximum | 19.76% |
Alarms activated | Yawn | 3 |
Drowsy | 0 |
Asleep | 1 |
Distracted | 4 |
Distracting glance | 3 |
Comments | There have been some alarms, some mistaken, such as a yawn, which has been mistaken for a smile. |
A 95.56% face detection rate was achieved, of which 84.35% was achieved with the HOG detector, less effective than in some of the previous tests. There were also some false positives. The average PERCLOS score was 12.76%, and the maximum score achieved in one minute was 19.76%. There were several alarms, including 4 for distraction and 3 for yawning.
The average frame rate was 3.33 fps, a slight decrease from previous tests, probably due to false positives. The thresholds customised by the initialisation routine are 0.31 for the MAR and 0.22 for the EAR, scores that are also very well adapted to the test person.
TEST 10
The participant is a 57-year-old white male of Caucasian ethnicity. He has had his driving licence for 38 years. He is a daily long-distance driver, driving a minimum of 100 km per day. His lifestyle is active, and on the day of the trial, he worked 10 h and slept about 6 h. He follows an unstable sleep routine, going to bed late and sleeping only a few hours and intermittently. He reports two traffic accidents, although they were caused by no fault of his own and were unrelated to driving fatigue.
Table A10.
Compilation table of data from test 10.
Table A10.
Compilation table of data from test 10.
Test | Test 10 |
---|
Conditions | Level of drowsiness (assessed by the subject with the KSS index) | 6 (some symptoms of drowsiness) on both occasions |
Brightness | High: sunny |
Results | Face detection rate | 95.07% |
Detector | HOG | 95.84% |
Cascades of Haar | 4.16% |
Detection speed | Maximum | 3.79 fps |
Minimum | 2 fps |
Average | 3.46 fps |
Customised thresholds | MAR | 0.30 |
EAR | 0.20 |
PERCLOS score | Average | 29.30% |
Maximum | 50.00% |
Alarms activated | Yawn | 0 |
Drowsy | 8 |
Asleep | 5 |
Distracted | 6 |
Distracting glance | 0 |
Comments | There have been quite a number of alarms, with drowsy being the most frequent, followed by distracted and asleep. |
In line with previous tests, a high detection rate has been achieved in this one, reaching 95.07% of facial detection, of which 95.84% is with the HOG detector. Regarding the PERCLOS, the maximum score is very high at 50%, and so is the average score at 29.3%, concluding that the subject is in a state of considerable fatigue during this test. However, in the subjective survey, this was only perceived with some symptoms of drowsiness. Reviewing his answers to the personal form, he is a person whose sleeping habits are irregular, which could cause him to be fatigued most of the time.
The average frame rate has been 3.46 fps. The thresholds customised by the initialisation routine are consistent with its physiognomy, being 0.302 for the MAR and 0.204 for the EAR.
TEST 11
The test subject is the same as in test 6. What changed in this trial was that it was conducted at night, at around 23:30 h.
Table A11.
Compilation table of test data 11.
Table A11.
Compilation table of test data 11.
Test | Test 11 |
---|
Conditions | Level of drowsiness (assessed by the subject with the KSS index) | 8 (drowsy, some effort to stay awake) on both occasions |
Brightness | Very low: at night |
Results | Face detection rate | 96.14% |
Detector | HOG | 99.67% |
Cascades of Haar | 0.33% |
Detection speed | Maximum | 3.76 fps |
Minimum | 2.28 fps |
Average | 3.54 fps |
Customised thresholds | MAR | 0.31 |
EAR | 0.21 |
PERCLOS score | Average | 13.61% |
Maximum | 31.90% |
Alarms activated | Yawn | 5 |
Drowsy | 3 |
Asleep | 3 |
Distracted | 9 |
Distracting glance | 0 |
Comments | All alarms except the gaze distraction alarm have been triggered. The driver is in a medium state of drowsiness. |
The special feature of this test is that it is the first one carried out in very low light conditions, at night. The infrared LED lamp has been active during the entire journey due to the intentional removal of the LDR.
It was a very successful test, achieving a detection rate of over 96%, of which almost 100% was with the HOG detector. The driver has been correctly monitored, producing different alarms that correspond to drowsiness, although perhaps not as excessive as the driver himself has self-assessed on the KSS scale. He had an average PERCLOS of 13.61% and a maximum of 31.90%.
The average processing speed is 3.54 fps, which means that it has remained the same as in the tests with high lighting conditions.
TEST 12
The driver in this test is the same as in test 4. However, in this case, the test was carried out at night under low-lighting conditions.
Table A12.
Compilation table of data from test 12.
Table A12.
Compilation table of data from test 12.
Test | Test 12 |
---|
Conditions | Level of drowsiness (assessed by the subject with the KSS index) | 7 (drowsy, no effort to stay awake) and 6 (some symptoms of drowsiness) |
Brightness | Very low: at night |
Results | Face detection rate | 96.55% |
Detector | HOG | 94.79% |
Cascades of Haar | 5.21% |
Detection speed | Maximum | 3.77 fps |
Minimum | 2.13 fps |
Average | 3.48 fps |
Customised thresholds | MAR | 0.47 |
EAR | 0.17 |
PERCLOS score | Average | 9.40% |
Maximum | 18.57% |
Alarms activated | Yawn | 2 |
Drowsy | 0 |
Asleep | 2 |
Distracted | 12 |
Distracting glance | 0 |
Comments | Mostly distracted driving alarms have occurred. The driver is relatively alert. |
This test was carried out at night, with very low lighting conditions. In the compilation table above, it can be seen how the algorithm performed well, achieving a face detection of 96.55%, with 94.79% using the HOG detector.
For the most part, there have been driver distraction alarms. There was also some yawning. The average PERCLOS was 9.4% and the maximum 18.57%, not indicating too much drowsiness with this parameter. However, the driver did self-assess herself as being somewhat drowsy, which suggests that when it is nighttime, there is a tendency to think of oneself as drowsy.
The average processing speed is 3.48 fps.
TEST 13
The driver is a 36-year-old white male of Caucasian ethnicity. His driving licence is 16 years old. He drives weekly. His lifestyle is active, and on the day of the test, he did not work and slept for about 6–7 h. He follows a stable sleep routine of about 6–7 h per night, although he sometimes has sleep interruptions. He reports no traffic accidents.
Table A13.
Compilation table of data from test 13.
Table A13.
Compilation table of data from test 13.
Test | Test 13 |
---|
Conditions | Level of drowsiness (assessed by the subject with the KSS index) | 4 (rather alert) on both occasions |
Brightness | High: sunny |
Results | Face detection rate | 99.56% |
Detector | HOG | 98.57% |
Cascades of Haar | 1.43% |
Detection speed | Maximum | 3.77 fps |
Minimum | 2.23 fps |
Average | 3.53 fps |
Customised thresholds | MAR | 0.31 |
EAR | 0.28 |
PERCLOS score | Average | 7.76% |
Maximum | 18.57% |
Alarms activated | Yawn | 1 |
Sleepy | 0 |
Asleep | 0 |
Distracted | 2 |
Distracting glance | 0 |
Comments | The driver has remained in an alert state, detecting only an occasional yawn and two distractions. |
In this test, a high detection rate of almost 100% was achieved almost exclusively with the HOG detector. With regard to PERCLOS, the maximum score is 18.57%, and the average score is 7.76%, so the driver is not drowsy and is in an alert state. His self-assessment seems to correspond to the results obtained.
The average frame rate has been 3.53 fps. The thresholds customised by the initialisation routine are consistent with its physiognomy, being 0.310 for the MAR and 0.278 for the EAR.