Sitemap
SmartIR Infrared Technologies

SmartIR Infrared Technologies

Face Recognition is a computer vision technique which enables a computer to predict the identity of a person from an image. The face is an important part of the human body and distinguishes individuals in large groups of people. Thus, it has become one of the most widely used and accepted biometric methods due to its universality and uniqueness. The field of facial recognition has attracted the attention of many scientists and therefore has become a standard benchmark in the field of human recognition.

A short demo of the facial recognition algorithm developed by SmartIR

Face Detection

Face Detection is a computer vision technique in which a computer program can detect the presence of human faces and also find their location in an image or a video stream. Isn’t it impressive that the mobile camera automatically detects your face every time you try to take a selfie? Well, all this wouldn’t have been possible without Face Detection algorithms. With every passing year, Face Detection algorithms are evolving to be faster and more robust.

Face detection answers the question, “Is there a face present in an image, and where is that face located inside the image?”. Face recognition goes a step further and answers the question, “Who’s face is that?”.

Facial Detection is a preceding step in the process of Facial Recognition.

Press enter or click to view image in full size

Face Recognition Methods

Face recognition is one of the most challenging applications of image analysis and pattern recognition. Face recognition methods perform well on the images that are collected with careful cooperation of the subjects. Whereas, the challenges of change in illumination, expression, pose make this problem harder. Age changes the facial texture and shape while occluded images left partial facial features for processing, thus making the problem of face recognition much harder.

Taking inspiration from the human visual system, Computer Vision researchers have tried to come up with different features to efficiently describe the uniqueness in each persons face. The simplest of features can be mean and variance of face pixel intensities, ratio of height:width of the face etc.

Facial Feature Extraction Using Statistical Heuristics

Press enter or click to view image in full size
Vikas Gupta, Satya Mallick, Face Recognition: An Introduction for Beginners

FisherFaces Recognizer
FisherFaces algorithm, instead of obtaining useful features that represent all the faces of all the persons, it removes valuable features that discriminate one person from the others. This features of one person do not dominate over the others, and you have the features that distinguish one person from the others.

Local Binary Patterns Histograms
We know that Eigenfaces and Fisherfaces are both affected by light and in real life; we cannot guarantee perfect light conditions. LBPH face recogniser is an improvement to overcome this drawback. The idea is not to find the local features of an image. LBPH algorithm tries to find the local structure of an image, and it does that by comparing each pixel with its neighbouring pixels.

Vikas Gupta, Satya Mallick, Face Recognition: An Introduction for Beginners

EigenFaces Face Recognizer
EigenFaces face recogniser views at all the training images of all the characters as a complex and try to deduce the components. These components are necessary and helpful (the parts that grab the most variance/change) and discard the rest of the images, This way it not only extracts the essential elements from the training data but also saves memory by rejecting the less critical segments.

For more information about the EigenFaces method, see this page.

With the advent of Deep Learning, these handcrafted features faded into the background, and researchers now task CNNs with finding the right features for them.

Modern Face Recognition with Deep Learning

We need to learn a high-dimensional feature space which is capable of distinguishing between faces of different persons. Once we have a trained model, we can use it to generate unique features for each face. Finally, we can compare features of new faces with that of known faces to identify the person.

In case we want to add a new person to the database of known faces, we simply generate the features and add it to the database. This process is called Enrollment.

Generate Face Representation or Encoding
Convolutional Neural Networks (CNNs) are very good feature extractors. They look at small parts of an image and use convolutions over many layers to generate reliable features to distinguish between visually different objects.

Press enter or click to view image in full size
Vikas Gupta, Satya Mallick, Face Recognition: An Introduction for Beginners

As seen from the above figure, for a new face image, we get a face embedding using the model. Next, we need to calculate the distance of this face embedding with all other face embeddings in the database. The predicted person will be the one whose embedding is closest to the embedding of the new face.

The most common distance measure used for this comparison is the L2 distance, which is simply the euclidean distance between 2 points in an n-dimensional space.

In this example, we can see that the face embedding generated by the new face image is closer to the red points which belongs to Elon Musk. Thus, we can predict that the new face is also Elon.

Difficulties of Detecting/Recognizing a Face

Occlusion
Occlusion greatly affects the ability of any system to detect the face as only a part of the face is visible, and it is hard to say with confidence whether there is a face in the frame when only part of it is visible.

Press enter or click to view image in full size
Varun, What is Face Detection? — The Ultimate Guide for 2022

Illumination
Any change in the subject’s illumination conditions poses an issue for face detection as it is not necessary that the method is designed/trained to handle the variation in luminance.

Press enter or click to view image in full size
Varun, What is Face Detection? — The Ultimate Guide for 2022

Pose
The pose or orientation of a face in the image frame affects the performance of the Face detector as some methods can only detect frontal faces and fail when the face is sideways or turned slightly to one side.

Press enter or click to view image in full size
Varun, What is Face Detection? — The Ultimate Guide for 2022

Facial Expressions
Facial expressions should be taken care of when designing the features of a face or training a deep learning model, as the face is unlikely to always be neutral in the real world, and any change in the expressions of the face would mean the features of the face would change and the detection system might not consider it a real face.

Press enter or click to view image in full size
Varun, What is Face Detection? — The Ultimate Guide for 2022

Accessories/Makeup/Facial Hair
The accessories used, facial hair or modifications done on faces might also affect the performance of the Face Detection system if they are not taken into account while designing or training the Face Detector. Sunglasses, Face masks, Beards, Tattoos, and Dramatic makeup are a few examples.

Press enter or click to view image in full size
Varun, What is Face Detection? — The Ultimate Guide for 2022

Scale of Face
The scale of the face might change with respect to the image/video frame, and depending on the facial detection system, the face might be too small to be detected.

Press enter or click to view image in full size
Varun, What is Face Detection? — The Ultimate Guide for 2022

Face Verification vs Face Recognition

The idea behind face verification and face recognition is exactly the same, but their application areas are different.

Get SmartIR Infrared Technologies’s stories in your inbox

Join Medium for free to get updates from this writer.

Face Verification as the name suggests, tries to authenticate a person. For example, you can unlock your smartphone using your Face, but others can’t. It is a 1:1 comparison.

A Face Recognition system looks for the person in a database of known people and tries to predict who the person is. It is a one to many comparison. If the person is not present In the database, It means we have never seen this person before. So you may either add them to the database or are simply say that he/she is an unknown person.

Press enter or click to view image in full size

Liveness Detection

In application areas that require high security, there should also be a liveness detection system that works integrated with the face recognition system. When the liveness detection system is used, the face recognition algorithm can be prevented from being deceived by unreal face images (photos, videos, images shown on the big screen, 3d mask).

https://ipvm.com/reports/live-detect

Liveness Detection Methods

Local Binary Patterns
Local Binary Pattern (LBP) is an anti-spoofing technique of texture image analysis, thresholding image pixels according to their neighbors. An image is split into small patches. All pixels are taken from around the center pixel and subtracted. LBP is outdated and cannot be used against a large variety of attacks. But it does have merit when used in combination with other solutions.

Eye blink detection
Natural blinking can reveal the difference between live and fake faces. Humans blink an average of 15 to 30 times per minute. During a blink, the eyes remain shut for about 250 milliseconds. Modern cameras record videos with far smaller intervals between frames (50 milliseconds at 30 frames per second). Videos can be used to find frames showing the eyes shut. Those frames then can be counted. Implementation of eye blink detection can be based on face landmarks analysis and by calculating the area of the eye regions. Deep learning can also be applied for this task.

Deep learning features: Convolutional Neural Network
The development of convolutional neural networks (CNN) makes it natural to think of anti-spoofing as a binary classification problem. But there is no specific set of features the convolutional neural network would “see” and “understand.” The hope is that trained convolution kernels will detect what human eyes can’t see.

The network can work, but there’s a high risk of overfit on the dataset. Face anti-spoofing performance will be strong within a certain dataset, but the network won’t work in real conditions. A more viable solution is needed.

Comparing actions: Challenge-response
Under this face recognition approach, a user is required to take a special action called a challenge for liveness detection. The system ensures that required action was taken. Usually, a group of actions is required to make the model reliable. These actions can include smiles, expressions of emotions such as sadness, surprise or head movements. These interactions require significant time and are inconvenient for users.

Stable and reliable: 3D Camera
The most reliable anti-spoofing technique uses a 3D camera. Precise pixel depth information provides high accuracy against presentation attacks. The difference between a face and a flat shape is discernible. While 3D attacks still cause difficulties, stable performance makes this technology the most promising.

Each of these solutions is difficult to implement and takes time to develop. The most accurate result will be achieved through a combination of solutions.

Application Areas of Face Recognition System

  • Automobile security, only authorized persons can start the car.
  • Access to mobile applications without a password.
  • Checking staff entry and exit times.
  • Second authentication factor, to add extra security in any log-in process.
  • Access to previously contracted online services (login on online platforms, for example).
  • Access to buildings (offices, events, facilities of any kind …).
  • Payment method, both in physical and online stores.
  • Access to a locked device.
  • Check-in in tourist services (airports, hotels…).

What are the Benefits of Facial Recognition?

  • A fastest process: Facial recognition allows for fast and smooth remote identity verification.
  • User experience: Facial recognition systems offer a unique, smooth, and fast user experience, avoiding the need for time-consuming office visits or video conferences and wait times.
  • Contactless biometric verification: It is much more hygienic than systems such as fingerprint and palm reading.
  • Security: Like fingerprints or voice, each face is unique and has inimitable characteristics. Facial recognition systems, programs, or software compare through facial biometrics and facial recognition algorithms.
  • Compliance: Facial recognition through video identification is the only method recognised as a standard for remote identity verification for high-risk operations (opening bank accounts, signing contracts, etc.).

Conclusion

As technology and innovation progress linearly, more markets will begin to open for this technology.

Corporations and governments alike will continue to invest in these technologies. But there is still some uncertainty as to whether or not individuals will accept these technologies into their everyday life.

References

Amrit Kumar Agrawala, Yogendra Narain Singhb, “Evaluation of Face Recognition Methods in Unconstrained Environments”, International Conference on Computer, Communication and Convergence (ICCC 2015)

Sharif, Muhammad & Javed, Muhammad & Mohsin, Sajjad. (2012). Face Recognition Based on Facial Features. Research Journal of Applied Sciences, Engineering and Technology. 4.

MobiDev Q2 / 2022 Сompany Report

O. Kähm and N. Damer, “2D face liveness detection: An overview,” 2012 BIOSIG — Proceedings of the International Conference of Biometrics Special Interest Group (BIOSIG), 2012, pp. 1–12.

Seo J, Chung I-J. Face Liveness Detection Using Thermal Face-CNN with External Knowledge. Symmetry. 2019; 11(3):360. https://doi.org/10.3390/sym11030360

https://medium.com/analytics-vidhya/liveness-detection-in-face-verification-a30b890ef2c7

https://cs231n.github.io/transfer-learning/

https://learnopencv.com/face-recognition-an-introduction-for-beginners/

https://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.179.2182&rep=rep1&type=pdf

https://learnopencv.com/what-is-face-detection-the-ultimate-guide/#Difficulties/Challenges-of-Detecting-a-Face

https://sites.cs.ucsb.edu/~mturk/Papers/mturk-CVPR91.pdf

https://ipvm.com/reports/live-detect

Press enter or click to view image in full size

--

--