Nowadays, machine learning provides different ways for automated techniques for advanced IT tasks such as real-time and fast face detection in mobile devices. It could be used to help to monitor patient’s health status in real-time for online or offline monitoring basis. However, these techniques often have some technical problems regarding the fast changing in lighting conditions and/or fast movement during the processing. This topic is to build a trained AI model for face detection in mobile devices and provide a better way of auto-detection of perfect lighting condition to ensure smooth and better detection results regarding the surrounding environment of the user. The full design of the software together with the workflow starting from the state of the art, requirement specification, design, to the implementation and testing should be well-defined.