Psychology and Math: A Real-Life Example (from Smart Robots)

Can a smart car understand if a driver has fallen asleep? Can a smart manufacturing machine detect when a manufacturing worker is not feeling well and is at risk of injury? This blog post explores how smart computers can interpret facial expressions and emotions using the principles of psychology and math.

Psychology and Math for Creating Smart Systems

Example of a Smart System

Both psychology and math might seem like they belong to different worlds, but they come together in surprising ways. For example, have you ever heard of a drowsy driver detection system? This clever system keeps an eye on the driver’s behavior and warns if they’re falling asleep. Here’s a brief to give you an idea of how it works.

How Psychology and Math Come into Play

Many of these systems use special cameras that analyze a driver’s face to monitor their behavior. This involves the mathematical analysis of facial expressions, eye movements, and other subtle cues that psychologists link with states of alertness or drowsiness.

The math part is actually quite elementary. Imagine looking in the mirror with a neutral face. Now, try this:

  1. Raise your brows.
  2. Open your eyes wide.
  3. Open your mouth.

Your face probably looks surprised, right?

Collage of four teenagers with surprised faces.

Each facial muscle movement has its own mathematical code, and combinations of these codes are used to teach computers to recognize facial expressions. In our example, if a camera detects a person simultaneously raising brows, opening eyes wide, and opening the mouth, the computer can interpret the mathematical code “1, 2, 3” as “the person is surprised.” This system is called FACS, or Facial Action Coding System, one of the world’s most widely recognized systems for analyzing facial expressions. It’s used in various fields, from lie detector tests to creating realistic video game characters and even in collaborative robots. You can read more about it on Wikipedia.

Conclusion

This was a simple example of how the analysis of human facial movements can be translated into mathematical codes. Psychology and mathematics also meet for creating algorithms that help cameras understand when a person raises their brows or opens their eyes wide. Stay tuned for another blog post in the future, where we’ll dive deeper into this fascinating topic!

Video version

The video version of this blog post explains everything in further detail, featuring actual codes used in FACS and animations on real human faces. Check out the preview of this video below or subscribe to get access to all our full videos.

Want to receive a notification when we publish new article?
Like this article?
Read more from our blog:

What Real-Life Math Topic Interests You?

Interested in seeing how a specific math topic is applied in the real world?

Let us know your preferred topic, and we’ll create a blog post and video showcasing its practical applications.

If you’d like, you can also let us know which real-world domain you’d like us to explore!