A ‘sleep detector’ in your car

A ‘sleep detector’ in your car

ROMA – WHEN you are driving, the app is linked to a camera that is “looking” carefully at your face, especially your eyes.
If you get drowsy, when driving, the app literally wakes you up.
It raises an alarm.

There is more to its kindness.
After waking you up, it sends you information about the nearest garage, hotel or guest house.
It says: “You are just five kilometres away from a resting place.”

If you didn’t know, this is an application of Artificial Intelligence (AI).
Welcome to the world of the Fourth Industrial Revolution as the National University of Lesotho (NUL) takes the lead.
The app is called Driver Drowsiness (Sleepiness) Detector.

This app is developed by two NUL students, Boitumelo Ntilane and Thabo Khabele.
The specialists are supervised by Napo Mosola and Molete Sekese.
What motivated these guys?

They have realised something quite troubling.
In the fast-paced hustles of modern life, many people are tired.
But the same tired people often find that they have to drive.
When you are on the wheel, alertness is key.

“However, too many accidents have been caused by people who sleep behind the wheel,” Ntilane said.
Well, the police will arrest you for being drunk when you drive.
But they cannot arrest you for being drowsy.

Yet you are just as dangerous (if not more) when you are drowsy as when you are drunk.
Their app seeks to address that dilemma.
So this is how the app works.

Smart cameras are placed in-front of you—the driver.
Anyone who has seen smart modern cameras knows that they can be very small, so small that you won’t even notice them.
The cameras face the driver.

Although they see the whole face, they take a particular focus on the driver’s eyes.
The app has been “trained” to identify the eyes on your face.
Yes, it won’t confuse your nose or your mouth for your eye — it knows exactly what your eyes are and how they look like.

But humans have different faces and eyes. That is true.
However, how do you know that a face is a human face even though humans have different faces?
It is because behind those differences, there are startling similarities.
We are all humans after all.

The app focuses on those similarities.
“We trained the app to identify all kinds of human eyes, even the Chinese-Japanese-Korean eyes, which have some unique features,” Ntilane said.
“We used more than 2 000 faces of people of all races to train our app.”
So when you start a car, the app opens and the camera starts looking at you — the driver — and it does so every second of your driving period.

It is looking specifically for how long you close your eyes.
But humans are always blinking, in which case they close eyes temporarily.
So closing your eyes because you are blinking is the least of the app’s worries.

The problem comes when your eyes close for an extended period.
That extended period could be four seconds.
Then the app realises that something is wrong.
You are getting drowsy.

You are falling into sleep.
At that moment, an alarm rings, “wake up!”
How do they achieve this feat?

It’s a bit complicated but we will endeavour to explain.
Your eyes can be characterised by something they call aspect ratio.
Aspect ratio is often described as a proportional relationship between the width and height of an object.
While an eye’s width remains constant, its height varies with blinking.

When our eyes open, the aspect ratio is around 0.31. When they close, the aspect ratio approaches zero.
So the app is constantly looking at the eye and computing its aspect ratio. If the ratio is around 0.31, all is fine. If the ratio is approaching zero, the question becomes, for how long?
If it approaches zero for a moment, then the app dismisses that as blinking.

However, if it approaches zero for some time, say four seconds, then, again, someone is getting drowsy and the alarm is triggered.
That is the first way to identify a drowsy driver. The second way is to watch the speed of blinking. If the eye were to blink too fast, say three times per second, that is a sign of dozing off. Then the alarm is triggered to alert you.
Now your questions.

What if it is dark in the car?
“We are going to experiment with cameras that can “see” in darkness,” Ntilane answered.
Yes, such cameras exist.

Another question — can the camera see through eye spectacles?
Yes and No. Yes for transparent eye glasses, no for dark eye glasses.
Welcome to the world of the fourth industrial revolution.

Own Correspondent

Previous Fresh row over RCL elective conference
Next A shining beacon of hope

Warning: count(): Parameter must be an array or an object that implements Countable in /home/thepostc/public_html/wp-content/themes/trendyblog-theme/includes/single/post-tags-categories.php on line 7

About author

You might also like

Local News

The nurses fighting on the frontlines

PUBLIC health systems are driven by nurses. Yet, they have little authority. Why do nurses have such little decision-making power in countries where they drive the healthcare system? They have

Local News

‘Maseribane quizzed over Lipolelo murder

MASERU-POLICE have quizzed Chief Thesele ‘Maseribane of the Basotho National Party (BNP) over the death of Lipolelo Thabane, as law enforcement agents widen the net in their quest to nail

Local News

Lesotho to weed out ghost workers

MASERU – THE government will in April resume a comprehensive audit of all civil servants in a bid to weed out ghost workers. The audit is expected to end in