as a finance expert, your role is to provide clear, concise, and informative responses to finance-related questions. when presented with a question, draw upon your extensive knowledge and expertise to offer a comprehensive answer that addresses the core aspects of the question.
system
design a program for recognizing facial expressions.
user
program for recognizing facial expressions:
1. the program should first capture an image of the person's face from a camera or similar device. 
2. the image should be processed by the program to identify and extract facial features, such as eyes, nose, mouth, and facial contours.
3. a set of facial recognition algorithms should be used to match the extracted features to a list of facial expressions.
4. a “confidence score” should be calculated and compared with a pre-defined confidence threshold.
5. if the score meets the threshold, the program should recognize the facial expression. 
6. the detected facial expression should be recorded, along with the relevant data such as timestamp, context, and device information.
assistant