即時人臉偵測在非接觸式心跳量測的應用研究
Real-Time Face Detection with Remote Heart Rate Measurement
摘要
人臉是一個在現實生活中出現最頻繁的物件之一,非常多具有相當潛力的應用例如人臉辨識也已經成為當今非常熱門的話題。然而,這些應用都會回到一個源頭:人臉偵測。若是沒有一個快速而且準確的人臉偵測系統,這些藉由人臉的應用也會變得有非常多的限制。
如今已經有相當多研究於人臉偵測的論文,大部分透過深度學習模型的方法也已經可以得到頂尖水平之準確度,但整體模型的運算卻不是來的非常有效率。本論文會根據當今非常純熟的臉部偵測系統,MTCNN[1],作為大致上整體的深度學習模型。更多的模型簡化,複雜的算式簡化以及權重的量化也會被應用在此臉部偵測模型來達到一個更具有效率的計算。最終我們的人臉偵測系統在晶心科技提供之嵌入式平台會比原先的快上將近106倍,整體的模型也小了3.6倍,而在FPPI為0.01時的準確度為0.8259,也優於現有技術(0.8188)。做為一個可即時偵測且節省能源的臉部偵測系統,此深度學習模型非常適合應用在智慧之物聯網裝置上。
此外根據MTCNN,我們提供了一個更加深入的應用:非接觸式相機心跳量測。心跳是一個極能表示人體身理狀態的信號,但當今的技術需要透過身體接觸才能得知受測者之心跳為何,受測者必須握著金屬電極,透過獲得ECG信號才可量測心跳,使得許多藉由心跳的應用被限制住。因此藉由MTCNN以及當今相機量測心跳演算法[2],我們提供了一個更準確的心跳量測系統。此外為了測試此系統之表現,我們也收集了許多資料來驗證。在我們收集的資料庫上,利用我們所引入的方法,最終心跳預測的誤差為5.73 bpm,也優於未引入此方法的誤差(17.70 bpm)。
如今已經有相當多研究於人臉偵測的論文,大部分透過深度學習模型的方法也已經可以得到頂尖水平之準確度,但整體模型的運算卻不是來的非常有效率。本論文會根據當今非常純熟的臉部偵測系統,MTCNN[1],作為大致上整體的深度學習模型。更多的模型簡化,複雜的算式簡化以及權重的量化也會被應用在此臉部偵測模型來達到一個更具有效率的計算。最終我們的人臉偵測系統在晶心科技提供之嵌入式平台會比原先的快上將近106倍,整體的模型也小了3.6倍,而在FPPI為0.01時的準確度為0.8259,也優於現有技術(0.8188)。做為一個可即時偵測且節省能源的臉部偵測系統,此深度學習模型非常適合應用在智慧之物聯網裝置上。
此外根據MTCNN,我們提供了一個更加深入的應用:非接觸式相機心跳量測。心跳是一個極能表示人體身理狀態的信號,但當今的技術需要透過身體接觸才能得知受測者之心跳為何,受測者必須握著金屬電極,透過獲得ECG信號才可量測心跳,使得許多藉由心跳的應用被限制住。因此藉由MTCNN以及當今相機量測心跳演算法[2],我們提供了一個更準確的心跳量測系統。此外為了測試此系統之表現,我們也收集了許多資料來驗證。在我們收集的資料庫上,利用我們所引入的方法,最終心跳預測的誤差為5.73 bpm,也優於未引入此方法的誤差(17.70 bpm)。
Face is one of the most frequently appearing objects in realistic world. Many applications with great potentialities such as face ID are now becoming more popular topics. However, those applications based on face region still need to obtain the face position in the image or video first, making face detection become a common issue. With a fast and accurate face detection model, the limitation in some moreover applications will not be too much.
Several studies have shown a good performance with deep learning models but the overall inference are not quite effective. In this thesis, we refer to MTCNN [1] as our basic face detection model. In order to gain more speedup, several methods such as model simplification, complicated equation approximation and weight quantization have been applied to the original MTCNN. Finally, to achieve real-time face detection with competitive energy-efficiency, our face detection model can be 106 times faster and model size 3.6 times smaller comparing to the original MTCNN running on Andes Technology RISC-V embedding system, and accuracy on FDDB [3] dataset can still reach 0.8259 at FPPI 0.01 which also outperforms the state of the art (0.8188), making our proposal very suitable for Intelligent IoT devices.
Furthermore, based on MTCNN, a deeper application: remote heart rate measurement via camera facial video with this face detection system has also been proposed. Heart rate is an important indicator which can show the physiological state of a subject. However the traditional heart rate measurement method requires body contact, subject needs to hold the electrodes to obtain the ECG signal, making more limitations to some deeper applications. Hence, based on MTCNN and the remote heart rate extraction method from [2], we propose a more accurate heart rate measurement system from camera facial video. Also we have collected a dataset to test our system performance. Total heart rate error can be reduced to 5.73 bpm, which is also better than the original method (17.70 bpm) on our testing dataset.
Several studies have shown a good performance with deep learning models but the overall inference are not quite effective. In this thesis, we refer to MTCNN [1] as our basic face detection model. In order to gain more speedup, several methods such as model simplification, complicated equation approximation and weight quantization have been applied to the original MTCNN. Finally, to achieve real-time face detection with competitive energy-efficiency, our face detection model can be 106 times faster and model size 3.6 times smaller comparing to the original MTCNN running on Andes Technology RISC-V embedding system, and accuracy on FDDB [3] dataset can still reach 0.8259 at FPPI 0.01 which also outperforms the state of the art (0.8188), making our proposal very suitable for Intelligent IoT devices.
Furthermore, based on MTCNN, a deeper application: remote heart rate measurement via camera facial video with this face detection system has also been proposed. Heart rate is an important indicator which can show the physiological state of a subject. However the traditional heart rate measurement method requires body contact, subject needs to hold the electrodes to obtain the ECG signal, making more limitations to some deeper applications. Hence, based on MTCNN and the remote heart rate extraction method from [2], we propose a more accurate heart rate measurement system from camera facial video. Also we have collected a dataset to test our system performance. Total heart rate error can be reduced to 5.73 bpm, which is also better than the original method (17.70 bpm) on our testing dataset.