TW201540258A - Fast image-based pulse detection method - Google Patents

Fast image-based pulse detection method Download PDF

Info

Publication number
TW201540258A
TW201540258A TW103115291A TW103115291A TW201540258A TW 201540258 A TW201540258 A TW 201540258A TW 103115291 A TW103115291 A TW 103115291A TW 103115291 A TW103115291 A TW 103115291A TW 201540258 A TW201540258 A TW 201540258A
Authority
TW
Taiwan
Prior art keywords
sets
waveform
pulse
image
face
Prior art date
Application number
TW103115291A
Other languages
Chinese (zh)
Other versions
TWI559899B (en
Inventor
Yu-Shan Wu
Guo-hua ZHU
Ting-Wei Li
Heng-Song Liu
Original Assignee
Chunghwa Telecom Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chunghwa Telecom Co Ltd filed Critical Chunghwa Telecom Co Ltd
Priority to TW103115291A priority Critical patent/TW201540258A/en
Publication of TW201540258A publication Critical patent/TW201540258A/en
Application granted granted Critical
Publication of TWI559899B publication Critical patent/TWI559899B/zh

Links

Landscapes

  • Measuring Pulse, Heart Rate, Blood Pressure Or Blood Flow (AREA)

Abstract

Disclosed herein is a fast image-based pulse detection method, which uses a camera to capture consecutive images of a human face for recognition of pulse signals, the method comprising: (1) using a camera to capture a human face image and perform the face detection; (2) obtaining several consecutive face images after a preset time, the averages of R, G, and B being calculated respectively for each face image, and three sets of color-time signal being obtained after the calculation is completed; (3) subjecting the three sets of color-time signal to a signal separation algorithm for producing three sets of noise-free time signal; (4) subjecting these three sets of noise-free time signal to an autocorrelation-based method for generating three sets of waveform; and (5) since a pulse value can be calculated using any one of these three sets of waveform, this invention proposing a calculation method to choose a correct waveform therefrom, so as to obtain a final pulse information.

Description

快速影像式脈搏偵測方法 Fast image pulse detection method

本發明係關於一種影像式脈搏偵測方法,利用攝影機拍攝連續人臉影像畫面以辨識出脈搏訊號,屬脈搏偵測之技術,特別為一種利用人臉影像,以進行脈搏偵測之技術。 The invention relates to an image pulse detection method, which uses a camera to capture a continuous face image to recognize a pulse signal, and belongs to the technology of pulse detection, and is particularly a technology for utilizing face image for pulse detection.

影像式脈搏偵測為近年來新興的技術,此技術的優勢在於利用市面上非常普遍的視訊攝影機即能進行脈搏偵測,且此技術為非接觸式,待測者臉部與感測器(攝影機)間不需直接接觸,不像傳統的接觸式手指型脈搏偵測器有衛生方面的顧慮。 Image-based pulse detection is an emerging technology in recent years. The advantage of this technology is that pulse detection can be performed using a video camera that is very popular on the market, and this technology is non-contact, the face and sensor of the subject ( There is no direct contact between the cameras, unlike the traditional contact finger pulse detectors which have health concerns.

當前的影像式脈搏偵測流程為:(1)攝影機拍攝人臉影像並進行人臉偵測;(2)經過一設定時間後獲取到連續數張的人臉影像,每張人臉影像皆計算R、G、B個別的平均值,計算完成後形成三組顏色時間訊號;(3)以一訊號分離演算法(J.-F.Cardoso,“High-order contrasts for independent component analysis,”Neural Comput.11(1),pp.157-192,1999.)對此三組顏色時間訊號進行處理,輸出產生三組不含雜訊的時間訊號;(4)在攝影機拍攝人臉的同時以手指型脈搏偵測器偵測脈搏,將產生的時間訊號當成參考,比對此參考之時間訊號與步驟三產生的三組時間訊號的相似度,發現第二 組時間訊號與手指型脈搏偵測器的時間訊號最相似;(4)利用傅立葉轉換方法對第二組不含雜訊的時間訊號計算兩波峰的間隔,此間隔即可對應到脈搏的頻率。此作法已接露於美國專利「Method and system for measurement of physiological parameters」(專利公告號:US20110251493 A1)。 The current image-based pulse detection process is: (1) the camera captures the face image and performs face detection; (2) after a set time, several consecutive face images are acquired, and each face image is calculated. The average values of R, G, and B are respectively formed into three sets of color time signals after completion of the calculation; (3) the separation algorithm by a signal (J.-F. Cardoso, "High-order contrasts for independent component analysis," Neural Comput .11(1), pp.157-192, 1999.) The three sets of color time signals are processed, and the output produces three sets of time signals without noise; (4) the finger type is taken while the camera is photographing the face. The pulse detector detects the pulse and uses the generated time signal as a reference, which is similar to the similarity between the time signal of the reference and the three sets of time signals generated in step 3. The group time signal is most similar to the time signal of the finger type pulse detector; (4) the interval between the two peaks is calculated for the second group of time signals without noise by using the Fourier transform method, and the interval corresponds to the frequency of the pulse. This practice is disclosed in the U.S. Patent "Method and system for measurement of physiological parameters" (Patent Publication No.: US20110251493 A1).

另外,如中國大陸專利「Method and system for contact-free heart rate measurement」(專利公開號:CN103040452 A)中,提到不只可利用臉部顏色變化判斷脈搏值,手部與腳部的顏色變化也能判斷脈搏,為此此專利有提出一個膚色偵測演算方法自動偵測手部與腳部的位置。此上述二篇專利皆使用傅立葉轉換將顏色時間訊號轉至頻率域後找出能量最高的頻率位置,再將此頻率換算成脈搏值。而傅立葉轉換的缺點在於量測解析度與分析時間成正比,要提高解析度必須透過增加分析時間來達成。舉例來說,若影像擷取頻率為30fps(frames per second),則分析時間必須長達18秒,脈搏偵測的解析度才能提高至1.76bpm(bits per minutc)。 In addition, as in the Chinese patent "Method and system for contact-free heart rate measurement" (Patent Publication No.: CN103040452 A), it is mentioned that the pulse value can be judged not only by the color change of the face, but also by the color change of the hand and the foot. To determine the pulse, the patent has proposed a skin color detection algorithm to automatically detect the position of the hand and the foot. Both of the above patents use Fourier transform to convert the color time signal to the frequency domain to find the highest energy frequency position, and then convert this frequency into a pulse value. The disadvantage of Fourier transform is that the measurement resolution is directly proportional to the analysis time. To improve the resolution, it must be achieved by increasing the analysis time. For example, if the image capture frequency is 30 fps (frames per second), the analysis time must be as long as 18 seconds, and the resolution of the pulse detection can be increased to 1.76 bpm (bits per minutc).

由此可見,上述習用方式仍有諸多缺失,實非一良善之設計者,而亟待加以改良。 It can be seen that there are still many shortcomings in the above-mentioned methods of use, which is not a good designer, but needs to be improved.

本案發明人鑑於上述習用方式所衍生的各項缺點,乃亟思加以改良創新,並經多年苦心孤詣潛心研究後,終於成功研發完成本件快速影像式脈搏偵測方法。 In view of the shortcomings derived from the above-mentioned conventional methods, the inventor of the present invention has improved and innovated, and after years of painstaking research, he finally succeeded in researching and developing the rapid image pulse detection method.

本發明之目的即在於提出以自相關為主的方法,直接在空間域分析,並配合超解析方法,以克服傅立葉轉換 量測解析度的問題,將分析時間大幅縮短,提高影像式脈搏偵測的實用性。 The object of the present invention is to propose a self-correlation-based method, directly in the spatial domain analysis, and cooperate with a super-analytic method to overcome the Fourier transform. The problem of measuring resolution greatly shortens the analysis time and improves the practicality of image-based pulse detection.

達成上述發明目的之一種快速影像式脈搏偵測方法,其步驟包含:步驟一、以攝影機拍攝人臉影像,並設定該攝影機擷取影像的頻率,再進行人臉偵測;步驟二、經過預先設定之影像擷取時間後,獲取到連續數張的該人臉影像,每張該人臉影像皆計算R、G、B個別的平均值,並於計算完成後,每張該人臉影像則形成三組顏色時間訊號;步驟三、以訊號分離演算法對此三組該顏色時間訊號進行處理,並輸出產生一新的三組顏色時間訊號資料;步驟四、對新的三組該顏色時間訊號資料,分別以自相關係數為主的方法,計算產生三組波形;以及步驟五、運用該三組波形,並選擇正確的波形,以計算出脈搏值。 A fast image pulse detection method for achieving the above object includes the steps of: taking a face image by a camera, setting a frequency of capturing the image of the camera, and performing face detection; and step 2: After the set image capturing time, a plurality of consecutive face images are obtained, and each of the face images calculates an average value of R, G, and B, and after the calculation is completed, each face image is Forming three sets of color time signals; step 3, processing the three sets of the color time signals by the signal separation algorithm, and outputting a new three sets of color time signal data; step four, for the new three sets of the color time The signal data is calculated by the autocorrelation coefficient method to generate three sets of waveforms; and in step five, the three sets of waveforms are used, and the correct waveform is selected to calculate the pulse value.

本發明所提供之快速影像式脈搏偵測方法,與其他習用技術相互比較時,更具備下列優點: The fast image pulse detection method provided by the invention has the following advantages when compared with other conventional technologies:

1.本發明與其他已揭露之影像式脈搏偵測方法不同點是:對於顏色時間訊號的處理是在空間域上進行,提出以自相關方法(auto correlation)配合超解析方法(super resolution)方法可將偵測時間大幅縮短。 1. The present invention differs from other disclosed image-based pulse detection methods in that the processing of the color time signal is performed in the spatial domain, and an auto-correlation method (super resolution) method is proposed. The detection time can be greatly shortened.

2.本發明提出以自相關方法配合超解析方法分別對三組顏色時間訊號做分析,計算產生三組波形,由於這三組波形分別都能計算出脈搏值,本發明提出一波形選擇(spectrum selection scheme)演算方法選出 正確的波形,以獲得最終的脈搏資訊。 2. The present invention proposes to analyze three sets of color time signals by using an auto-correlation method and a super-analytic method, and generate three sets of waveforms. Since the three sets of waveforms can respectively calculate the pulse values, the present invention proposes a waveform selection (spectrum). Selection scheme) The correct waveform to get the final pulse information.

3.人臉影像之顏色時間訊號並非常態穩定(stationary),若每次皆從顏色時間訊號的第一個樣本分析會導致結果錯誤,對此本發明有提出一樣本資料位移(data shift scheme)演算方法做修正。 3. The color time signal of the face image is very stable. If the first sample analysis from the color time signal causes an error every time, the present invention proposes the same data shift scheme. The calculation method is corrected.

S101~S105‧‧‧脈搏偵測方法架構流程 S101~S105‧‧‧ pulse detection method architecture flow

201‧‧‧去除雜訊的三組主成分時間訊號 201‧‧‧Three sets of principal component time signals for removing noise

202‧‧‧自相關方法分別對三組主成分訊號計算產生的三組自相關係數波形 202‧‧‧Three correlation coefficients of three sets of principal component signals calculated by the autocorrelation method

203‧‧‧模擬之高斯函數 203‧‧‧ Simulated Gaussian function

204‧‧‧模擬高斯波形向左移的情況 204‧‧‧Analysis of the simulated Gaussian waveform shifting to the left

205‧‧‧模擬高斯波形向右移的情況 205‧‧‧ Simulated Gaussian waveform shifting to the right

S300~S306‧‧‧脈搏偵測方法流程 S300~S306‧‧‧ pulse detection method flow

請參閱有關本發明之詳細說明及其附圖,將可進一步瞭解本發明之技術內容及其目的功效;有關附圖為:圖1為本發明快速影像式脈搏偵測方法架構流程圖;圖2為本發明之波形選擇演算方法說明圖;圖3為本發明快速影像式脈搏偵測方法流程圖。 The detailed description of the present invention and the accompanying drawings will be further understood. The technical content of the present invention and the purpose of the present invention will be further described. FIG. 1 is a flow chart of the fast image pulse detecting method of the present invention; FIG. The figure is a description of the waveform selection calculation method of the present invention; FIG. 3 is a flowchart of the fast image type pulse detection method of the present invention.

為了使本發明的目的、技術方案及優點更加清楚明白,下面結合附圖及實施例,對本發明進行進一步詳細說明。應當理解,此處所描述的具體實施例僅用以解釋本發明,但並不用於限定本發明。 The present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.

以下,結合附圖對本發明進一步說明:請參閱圖1,為本發明快速影像式脈搏偵測方法架構圖,首先,先以一攝影機拍攝擷取連續人臉影像S101,在此需設定攝影機擷取影像的頻率(frames per second,fps),例如可設定fps等於30;以一人臉偵測方法對每張影像偵測人臉區域,分別計算人臉區域R、G、B的顏色通道平均值S102,由於人臉偵測方法非本專利重點,因此直接採用Intel開放軟體OpenCV之人臉偵測功能,但為不可分割之過程;連續累積數張人臉影像(例如可設定累積4秒的影像)後,R、G、B 的平均值可分別形成三組時間訊號S103;以一訊號分離演算方法抽離R、G、B三組時間訊號的雜訊,輸出與原本訊號長度相同之三組主成分時間訊號S104,在此訊號分離演算方法採用joint diagonalization of eigenmatrices(JADE)。 The present invention will be further described with reference to the accompanying drawings. Please refer to FIG. 1 , which is a structural diagram of a fast image pulse detection method according to the present invention. First, a continuous camera image S101 is captured by a camera, where a camera capture is required. The frame per second (fps), for example, can set fps equal to 30; the face detection method is used to detect the face region of each image, and the color channel average value S102 of the face region R, G, B is calculated respectively. Since the face detection method is not the focus of this patent, the face detection function of the Intel open software OpenCV is directly used, but it is an inseparable process; several face images are continuously accumulated (for example, an image of 4 seconds can be set) After, R, G, B The average value can form three sets of time signals S103 respectively; the signal of three sets of time signals of R, G, and B is extracted by a signal separation calculation method, and three sets of main component time signals S104 having the same length as the original signal are outputted. The signal separation calculation method uses joint diagonalization of eigenmatrices (JADE).

以自相關(auto correlation)方法配合超解析(super resolution)方法(Y.Medan,E.Yair and D.Chazan,“Super Resolution Pitch Determination of Speech Signals,”IEEE Transactions On Signal Processing,vol.39,issue.1,pp.40-48,1991.)分別計算三組主成分時間訊號之自相關係數,輸出產生三組自相關係數波形S105,自相關方法的目的為找出主成分時間訊號中兩個波峰的整數樣本間隔數,詳細流程與數學符號定義如下:假設符號h[1:L]=(h 1,h 2,...,h L )代表一個樣本數量為L的離散時間訊號;對於任意樣本起始點i 0,定義符號x τ (i 0)與y τ (i 0)為兩段樣本數量皆為m的時間訊號,詳細公式為: Auto-correlation method with super resolution method (Y. Medan, E.Yair and D. Chazan, "Super Resolution Pitch Determination of Speech Signals," IEEE Transactions On Signal Processing, vol.39, issue .1, pp.40-48, 1991.) Calculate the autocorrelation coefficients of the three sets of principal component time signals respectively, and output three sets of autocorrelation coefficient waveforms S105. The purpose of the autocorrelation method is to find two of the principal component time signals. The integer sample interval of the peak, the detailed flow and mathematical symbols are defined as follows: Assume that the symbol h [1: L ]=( h 1 , h 2 ,..., h L ) represents a discrete time signal with a sample number L ; The starting point i 0 of any sample, defining the symbols x τ ( i 0 ) and y τ ( i 0 ) is a time signal in which the number of samples in both segments is m , and the detailed formula is:

換句話說,x τ (i 0)是一段擷取自h[1:L]的時間訊號且起始點為,而y τ (i 0)也是一段擷取自h[1:L]的時間訊號但起始點為,為了更簡潔符號表示,將x τ (i 0)寫成x τ =(x 1,x 2,...,x m ),將y τ (i 0)寫成y τ =(y 1,y 2,...,y m ),則此兩段時間訊號的自相關係數γ τ (x τ ,y τ )可由下列公式計算: In other words, x τ ( i 0 ) is a time signal taken from h [1: L ] and the starting point is And y τ ( i 0 ) is also a time signal taken from h [1: L ] but the starting point is For a more concise symbol representation, write x τ ( i 0 ) as x τ =( x 1 , x 2 ,..., x m ), and write y τ ( i 0 ) as y τ =( y 1 , y 2 ,..., y m ), then the autocorrelation coefficients γ τ ( x τ , y τ ) of the two time signals can be calculated by the following formula:

其中|x τ |和|y τ |分別為x τ y τ 的向量長度,(x τ ,y τ )則代表x τ y τ 兩個向量作內積運算。自相關係數 最高的位置τ即為時間訊號h[1:L]中兩個波峰的整數樣本間隔,數學式定義如下: Where | x τ | and | y τ | are the vector lengths of x τ and y τ , respectively, and ( x τ , y τ ) represents the inner product of the two vectors x τ and y τ . The position τ with the highest autocorrelation coefficient is the integer sample interval of the two peaks in the time signal h [1: L ], and the mathematical formula is defined as follows:

其中R min R max 分別代表τ的最小可能值與最大可能值,例如當假設人類脈搏每分鐘最高為200次,最低為38次,則此二值的計算公式如下: Where R min and R max represent the minimum possible value and the maximum possible value of τ , respectively. For example, when the human pulse is assumed to be up to 200 times per minute and the lowest is 38 times, the calculation formula of the binary value is as follows:

然而,在真實世界的情況下,訊號是連續的,而非離散的。參考文獻二中認為真實的波峰樣本間隔並非整數R 0,而是一浮點數R= R +α,此浮點數的計算方法即稱為超解析(super resolution)方法,透過此方法能克服脈搏偵測誤差值的問題。其中 R R的整數部分,αR的小數部分,且0≦α<1。α值的物理意義可由一個線性內插的公式來解釋,如下: However, in the real world, the signal is continuous, not discrete. Reference 2 considers that the true peak sample interval is not an integer R 0 , but a floating point number R = R + α . The calculation method of this floating point number is called super resolution method, which can be overcome by this method. The problem of pulse detection error values. Wherein R is the integer part of the R, R [alpha] is the fractional part, and 0 ≦ α <1. The physical meaning of the alpha value can be explained by a linearly interpolated formula, as follows:

若定義符號α α的最佳解,則α 可表示成: If the definition symbol α * is the best solution for α , then α * can be expressed as:

α 值計算的公式推導與理論證明在參考文獻二中都有說明,本發明中就不再贅述,公式如下: The formula derivation and theoretical proof of the calculation of α * value are described in Reference 2. It will not be repeated in the present invention. The formula is as follows:

S105的三組波形即為利用自相關方法分別對三組主成分時間訊號在區間[R min ,R max ]下計算產生。例如當fps=30,則公式(4)中的R min =9,R max =48。 The three sets of waveforms of S105 are calculated by using the autocorrelation method to respectively calculate the three sets of principal component time signals in the interval [ R min , R max ]. For example, when fps = 30, R min = 9 and R max = 48 in the formula (4).

S105的三組波形分別都能計算出脈搏,計算方式 為找出波形中最高的波峰對應的位置R 0,依公式(4)反推即可算出脈搏。至於要如何選擇正確的波形,本發明提出一波形選擇演算法。 The pulse waveform can be calculated for each of the three sets of waveforms of S105. The calculation method is to find the position R 0 corresponding to the highest peak in the waveform, and the pulse can be calculated by pushing back according to formula (4). As for how to select the correct waveform, the present invention proposes a waveform selection algorithm.

請參閱圖2波形選擇演算方法說明圖,首先,找幾位測試人員協助拍攝脈搏偵測測試影片,在拍攝影片的同時以一傳統手指型脈搏偵測器偵測脈搏做為參考答案;觀察每一段測試影片皆利用上述演算方法計算產生圖1中S105的三組波形,並與手指型脈搏偵測器的答案做對照;觀察後發現各測試影片的正確答案對應之波形都十分類似一個高斯函數(Gaussian Function),以圖1 S105的圖例來說為第二個波形。因此本發明提出以一個自動模擬產生之高斯函數分別與三個波形做旋積(Convolution),旋積分數最高的波形即為正確答案。圖2之201為去除雜訊的三組主成分時間訊號;圖2之202為以自相關方法分別對三組主成分訊號計算產生的三組自相關係數波形;圖2之203為模擬之高斯函數,例如可設定高斯平均值(mean)為(R max -R min )/2,變異數(deviation)為(R max -R min )/7;由於高斯波形的頂點(波峰)對應的位置即可換算脈搏值,因此高斯波形的波峰並非每次都出現在正中央,圖2之204即為模擬高斯波形向左移的情況,而圖2之205即為模擬高斯波形向右移的情況。本發明之波形選擇演算法能以數學式表示如下: Please refer to Figure 2 for the waveform selection calculation method. First, find a few testers to assist in the pulse detection test film. While shooting the film, use a traditional finger pulse detector to detect the pulse as a reference answer; observe each A test film uses the above calculation method to calculate the three sets of waveforms generated in S105 of Figure 1, and compares with the answer of the finger-type pulse detector; after observation, it is found that the correct answer corresponding to each test film is very similar to a Gaussian function. (Gaussian Function), which is the second waveform in the legend of Figure 1 S105. Therefore, the present invention proposes to perform a convolution with three waveforms by a Gaussian function generated by an automatic simulation, and the waveform with the highest number of rotations is the correct answer. Figure 201 is the three sets of principal component time signals for removing noise; 202 of Figure 2 is the three sets of autocorrelation coefficient waveforms calculated by the autocorrelation method for the three sets of principal component signals; Figure 203 is the simulated Gaussian The function, for example, can set the Gauss mean ( R max - R min )/2, and the deviation is ( R max - R min )/7; since the position corresponding to the vertex (peak) of the Gaussian waveform is The pulse value can be converted, so the peak of the Gaussian waveform does not appear in the center every time. The 204 in Fig. 2 is the case where the simulated Gaussian waveform shifts to the left, and the 205 in Fig. 2 is the case where the simulated Gaussian waveform shifts to the right. The waveform selection algorithm of the present invention can be expressed in mathematical form as follows:

其中G代表模擬之高斯函數,C k 代表第k個自相關係數波形,因此k是整數且1≦k≦3,z代表高斯函數的平均值,其範圍在[Z min ,Z max ],例如可設定Z min -(R max -R min )/4,Z max =(R max -R min )*3/4。因此符號(GC k )(z) 代表GC k 做旋積且G的平均值為zS 0即代表最後選擇的波形。 Where G represents the simulated Gaussian function, C k represents the kth autocorrelation coefficient waveform, so k is an integer and 1 ≦ k ≦ 3, z represents the average of the Gaussian function, and its range is [ Z min , Z max ], for example Z min -( R max - R min )/4, Z max =( R max - R min )*3/4 can be set. Thus the sign ( G * C k )( z ) represents the convolution of G with C k and the mean value of G is z . S 0 represents the last selected waveform.

另外,真實世界的時間訊號並非常態穩定(Stationary),若每次皆從時間訊號的第一個樣本分析可能會導致錯誤的結果,因此本發明提出一個樣本資料位移(data shift)演算法做修正,基本原理為藉由改變分析起始樣本後計算自相關係數,從中挑選自相關係數最高的起始樣本為答案,資料樣本位移演算方法與波形選擇演算方法合併使用之公式如下: In addition, the real-world time signal is very stable (Stationary). If the first sample analysis from the time signal may result in an erroneous result each time, the present invention proposes a sample data shift algorithm for correction. The basic principle is to calculate the autocorrelation coefficient by changing the initial sample, and select the starting sample with the highest autocorrelation coefficient as the answer. The formula for combining the data sample displacement calculus with the waveform selection calculus method is as follows:

其中代表第k個自相關係數波形,且資料分析起始樣本之位置為i 0L代表時間訊號的總長度,例如可設定fps=20,分析時間為4秒,則L=fps*分析時間(秒)=30*4=120,m為計算自相關係數時之時間訊號段長度,例如當設定m=R max =48,則i 0的範圍是0≦i 0<24。另外若不使用本發明之資料位移(data shift)演算方法,則i 0只有一個值,就是0,在此情況下分析時間為3.2秒。圖1 S101~S105是找出時間訊號中波峰整數樣本間隔R 0,並且已經選出正確的波形。此時採用超解析方法以內插法計算出浮點數α ,兩者相加後由公式(4)回推出正確的脈搏值,如此可解決傅立葉轉換方法受限於脈搏偵測解析度的問題(註:傅立葉轉換方法要提高脈搏偵測解析度必須增加樣本分析數量)。 among them Represents the kth autocorrelation coefficient waveform, and the position of the data analysis start sample is i 0 , L represents the total length of the time signal, for example, fps = 20 can be set, the analysis time is 4 seconds, then L = fps * analysis time ( sec) = 30 * 4 = 120, m is calculated from the length of time when the signal correlation, for example, when setting m = R max = 48, then i is 0 range 0i 0 <24. In addition, if the data shift calculation method of the present invention is not used, i 0 has only one value, which is 0, and in this case, the analysis time is 3.2 seconds. Figure 1 S101~S105 is to find the peak sample interval R 0 in the time signal, and the correct waveform has been selected. At this time, the super-analytic method is used to calculate the floating-point number α * by interpolation. After adding the two, the correct pulse value is derived by the formula (4), so that the problem that the Fourier transform method is limited by the pulse detection resolution can be solved. (Note: The Fourier transform method must increase the number of sample analyses to improve pulse detection resolution).

請參閱圖3所示,為本發明快速影像式脈搏偵測方法流程圖,其步驟如下:步驟一、S300攝影機擷取人臉影像串流;步驟二、S301以人臉偵測技術偵測準確的人臉位置; 步驟三、S302計算每張人臉影項RGB的平均值形成三組顏色時間訊號;步驟四、S303以訊號分離演算法抽離雜訊輸出三組主成分時間訊號;步驟五、S304以自相關方法配合資料位移演算方法計算輸出三組自相關係數波形;步驟六、S305以波形選擇演算法選擇正確的波形;以及步驟七、S306以超解析方法計算浮點波峰樣本間隔,換算成脈搏後輸出。 Please refer to FIG. 3 , which is a flowchart of a fast image pulse detection method according to the present invention. The steps are as follows: Step 1: S300 camera captures facial image stream; Step 2: S301 uses face detection technology to detect accurately Face position Step 3: S302 calculates the average value of each face shadow item RGB to form three sets of color time signals; in step 4, S303 separates the three sets of principal component time signals by the signal separation algorithm; step 5, S304 is autocorrelation The method is combined with the data displacement calculation method to calculate the output three sets of autocorrelation coefficient waveforms; in step 6, S305 selects the correct waveform by the waveform selection algorithm; and step VII, S306 calculates the floating-point peak sample interval by super-analytic method, and converts into pulse output. .

由上述步驟得知,受測者臉部面向攝影機,攝影機擷取人臉影像串流後;以人臉偵測技術偵測準確的人臉位置;計算每張影像人臉區域R、G、B個別的平均值,累積一定影像張數後形成三組顏色時間訊號;以訊號分離演算法抽離顏色時間訊號之雜訊後輸出三組主成分時間訊號;以自相關方法配合資料位移演算方法分別對三組主成分時間訊號做處理,計算輸出三組自相關係數波形;由於三組自相關係數波形分別都能計算脈搏,必須以波形選擇演算法選擇正確的波形。最後由超解析方法找出兩波峰之浮點數樣本間隔,此間隔可換算成脈搏輸出。 According to the above steps, the face of the subject faces the camera, and the camera captures the face image stream; the face detection technology detects the accurate face position; and calculates the face area R, G, B of each image. The individual averages form three sets of color time signals after accumulating a certain number of images; the three sets of principal component time signals are output after the signal separation algorithm extracts the color time signals; the autocorrelation method and the data displacement calculation method respectively The three sets of principal component time signals are processed to calculate and output three sets of autocorrelation coefficient waveforms; since the three sets of autocorrelation coefficient waveforms can respectively calculate the pulse, the waveform selection algorithm must be used to select the correct waveform. Finally, the super-analytic method is used to find the floating-point sample interval of two peaks, which can be converted into pulse output.

上列詳細說明乃針對本發明之一可行實施例進行具體說明,惟該實施例並非用以限制本發明之專利範圍,凡未脫離本發明技藝精神所為之等效實施或變更,均應包含於本案之專利範圍中。 The detailed description of the present invention is intended to be illustrative of a preferred embodiment of the invention, and is not intended to limit the scope of the invention. The patent scope of this case.

綜上所述,本案不僅於技術思想上確屬創新,並具備習用之傳統方法所不及之上述多項功效,已充分符合新穎性及進步性之法定發明專利要件,爰依法提出申請,懇請 貴局核准本件發明專利申請案,以勵發明,至感德便。 To sum up, this case is not only innovative in terms of technical thinking, but also has many of the above-mentioned functions that are not in the traditional methods of the past. It has fully complied with the statutory invention patent requirements of novelty and progressiveness, and applied for it according to law. You have approved this invention patent application, in order to invent invention, to the sense of virtue.

S101~S105‧‧‧脈搏偵測方法架構流程 S101~S105‧‧‧ pulse detection method architecture flow

Claims (7)

一種快速影像式脈搏偵測方法,係以攝影機拍攝連續人臉影像畫面以辨識出脈搏訊號,其步驟包括:步驟一、以攝影機拍攝人臉影像,並設定該攝影機擷取影像的頻率,再進行人臉偵測;步驟二、經過預先設定之影像擷取時間後,獲取到連續數張的該人臉影像,每張該人臉影像皆計算R、G、B個別的平均值,並於計算完成後,每張該人臉影像則形成三組顏色時間訊號;步驟三、以訊號分離演算法對此三組該顏色時間訊號進行處理,並輸出產生一新的三組顏色時間訊號資料;步驟四、對新的三組該顏色時間訊號資料,分別以自相關係數為主的方法,計算產生三組波形;以及步驟五、運用該三組波形,並選擇正確的波形,以計算出脈搏值。 A fast image pulse detection method is to capture a continuous facial image by a camera to recognize a pulse signal, and the steps include: Step 1: photographing a face image with a camera, and setting a frequency at which the camera captures the image, and then performing Face detection; Step 2: After a predetermined image capture time, a plurality of consecutive face images are acquired, and each of the face images calculates an average value of R, G, and B, and is calculated. After completion, each face image forms three sets of color time signals; in step 3, the three sets of the color time signals are processed by the signal separation algorithm, and a new three sets of color time signal data are generated; 4. For the new three sets of the color time signal data, the autocorrelation coefficient is used as the main method to calculate and generate three sets of waveforms; and step five, use the three sets of waveforms, and select the correct waveform to calculate the pulse value. . 如申請專利範圍第1項所述之快速影像式脈搏偵測方法,其中該人臉偵測,係指偵測人臉影像中之人臉區域位置。 The fast image pulse detection method according to claim 1, wherein the face detection refers to detecting a location of a face region in a face image. 如申請專利範圍第1項所述之快速影像式脈搏偵測方法,其中該波形,係指由該自相關係數所形成之波形,並且該波形之計算步驟包含:步驟一、以一資料位移演算方法對於經由該訊號分離演算法產生之新的三組顏色時間訊號中的每一組時間訊號計算複數組自相關係數該波形;步驟二、選擇具有該自相關係數最高的該波形;以及步驟三、該新的三組顏色時間訊號都經過相同的處理,輸 出仍是三組自相關係數波形。 The fast image pulse detection method according to claim 1, wherein the waveform refers to a waveform formed by the autocorrelation coefficient, and the calculating step of the waveform comprises: step one, calculating by a data displacement The method calculates a complex array autocorrelation coefficient for each set of time signals in the new three sets of color time signals generated by the signal separation algorithm; and second, selects the waveform having the highest autocorrelation coefficient; and step three The new three sets of color time signals are processed in the same way. There are still three sets of autocorrelation coefficient waveforms. 如申請專利範圍第1項所述之快速影像式脈搏偵測方法其中該選擇正確的波形,係為波形選擇演算方法。 For example, in the fast image pulse detection method described in claim 1, wherein the correct waveform is selected, the waveform selection calculation method is used. 如申請專利範圍第1項所述之快速影像式脈搏偵測方法,其中該計算出脈搏值,係以超解析演算方法計算出浮點數波峰樣本間隔後,再換算成脈搏,其步驟包含:步驟一、透過超解析演算方法對波形選擇模組選擇的自相關係數波形計算浮點數波峰樣本間隔;以及步驟二、換算成脈搏輸出。 The rapid image pulse detection method according to claim 1, wherein the calculating the pulse value is performed by calculating a floating point number peak sample interval by a super-resolution calculation method, and then converting the pulse into a pulse, wherein the steps include: Step 1: Calculate the floating-point peak sample interval of the autocorrelation coefficient waveform selected by the waveform selection module by using the super-resolution calculation method; and convert to the pulse output by the second step. 如申請專利範圍第3項所述之快速影像式脈搏偵測方法,其中該資料位移演算方法,係藉由每次位移一個樣本對該時間訊號進行該自相關係數計算達成。 The fast image pulse detection method according to claim 3, wherein the data displacement calculation method is performed by calculating the autocorrelation coefficient of the time signal by shifting one sample at a time. 如申請專利範圍第4項所述之快速影像式脈搏偵測方法,其中該波形選擇演算方法之步驟係包含:步驟一、模擬產生一高斯波形;步驟二、以左右位移分別對三組自相關係數波形進行旋積運算;以及步驟三、選擇旋積分數最高的波形。 For example, the fast image pulse detection method described in claim 4, wherein the step of the waveform selection calculation method comprises: step one: simulating a Gaussian waveform; and step two, respectively, respectively, three sets of autocorrelation The coefficient waveform is subjected to a convolution operation; and in step 3, the waveform having the highest number of rotations is selected.
TW103115291A 2014-04-29 2014-04-29 Fast image-based pulse detection method TW201540258A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW103115291A TW201540258A (en) 2014-04-29 2014-04-29 Fast image-based pulse detection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW103115291A TW201540258A (en) 2014-04-29 2014-04-29 Fast image-based pulse detection method

Publications (2)

Publication Number Publication Date
TW201540258A true TW201540258A (en) 2015-11-01
TWI559899B TWI559899B (en) 2016-12-01

Family

ID=55220232

Family Applications (1)

Application Number Title Priority Date Filing Date
TW103115291A TW201540258A (en) 2014-04-29 2014-04-29 Fast image-based pulse detection method

Country Status (1)

Country Link
TW (1) TW201540258A (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4853320B2 (en) * 2007-02-15 2012-01-11 ソニー株式会社 Image processing apparatus and image processing method
US20110251493A1 (en) * 2010-03-22 2011-10-13 Massachusetts Institute Of Technology Method and system for measurement of physiological parameters
TW201315438A (en) * 2011-10-14 2013-04-16 Ind Tech Res Inst Method of contact-free heart rate estimation and system thereof
WO2014028671A2 (en) * 2012-08-14 2014-02-20 Aliphcom Real-time physiological characteristic detection based on reflected components of light

Also Published As

Publication number Publication date
TWI559899B (en) 2016-12-01

Similar Documents

Publication Publication Date Title
Gideon et al. The way to my heart is through contrastive learning: Remote photoplethysmography from unlabelled video
CN109044322A (en) A kind of contactless heart rate variability measurement method
JP2016202892A (en) Method and system for noise cleaning of photoplethysmogram signals
JP6927322B2 (en) Pulse wave detector, pulse wave detection method, and program
CN110458235B (en) Motion posture similarity comparison method in video
WO2020191989A1 (en) Rope skipping counting method
CN110569760A (en) Living body detection method based on near-infrared and remote photoplethysmography
Hu et al. A novel spatial-temporal convolutional neural network for remote photoplethysmography
KR102468654B1 (en) Method of heart rate estimation based on corrected image and apparatus thereof
US8537212B2 (en) Recording apparatus and recording method thereof
Ren et al. Dual attention network for heart rate and respiratory rate estimation
Rouast et al. Remote photoplethysmography: Evaluation of contactless heart rate measurement in an information systems setting
CN105046209A (en) Non-contact heart rate measurement method based on canonical correlation analysis
Lomaliza et al. Combining photoplethysmography and ballistocardiography to address voluntary head movements in heart rate monitoring
JP7044171B2 (en) Pulse wave calculation device, pulse wave calculation method and pulse wave calculation program
Suresh et al. Computer-aided interpreter for hearing and speech impaired
Qin et al. Gesture recognition from depth images using motion and shape features
TW201540258A (en) Fast image-based pulse detection method
Ma et al. Cdcca-rppgformer: Transformer-like network based on 3d-cdc-st and eca for remote heart rate measurement
JP2021153611A (en) Blood pressure measuring device, portable terminal, and blood pressure measuring program
Angermann et al. Real-time polyp detection in colonoscopy videos: a preliminary study for adapting still frame-based methodology to video sequences analysis
JP7483206B2 (en) BLOOD PRESSURE MEASUREMENT DEVICE, MOBILE TERMINAL, AND BLOOD PRESSURE MEASUREMENT PROGRAM
TWI653027B (en) Algorithmic method for extracting human pulse rate from compressed video data of a human face
JP7514521B2 (en) HEART RATE MEASUREMENT SYSTEM, HEART RATE MEASUREMENT METHOD, AND HEART RATE MEASUREMENT PROGRAM
JP6585623B2 (en) Biological information measuring device, biological information measuring method, and biological information measuring program

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees