TWI635852B - Signal processing method for plural sensors detecting pulse in a palm - Google Patents

Signal processing method for plural sensors detecting pulse in a palm Download PDF

Info

Publication number
TWI635852B
TWI635852B TW106119367A TW106119367A TWI635852B TW I635852 B TWI635852 B TW I635852B TW 106119367 A TW106119367 A TW 106119367A TW 106119367 A TW106119367 A TW 106119367A TW I635852 B TWI635852 B TW I635852B
Authority
TW
Taiwan
Prior art keywords
signal
slope
value
sampling point
peak
Prior art date
Application number
TW106119367A
Other languages
Chinese (zh)
Other versions
TW201902415A (en
Inventor
林淵翔
陳偉豪
林姝廷
Original Assignee
國立臺灣科技大學
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 國立臺灣科技大學 filed Critical 國立臺灣科技大學
Priority to TW106119367A priority Critical patent/TWI635852B/en
Application granted granted Critical
Publication of TWI635852B publication Critical patent/TWI635852B/en
Publication of TW201902415A publication Critical patent/TW201902415A/en

Links

Abstract

一種應用於多感測器偵測手掌脈搏的訊號處理方法,包括:設置複數感測器於滑鼠的背殼上方;利用這些感測器來感測手掌不同部位的脈搏變化而各自產生一感測訊號;利用一微處理器執行一演算法將這些感測訊號處理為一混合波形,並且依據混合波形來計算使用者之一心率值。上述的演算法是對每一感測訊號進行波峰偵測。若感測訊號被偵測到一波峰,則調高其權重;否則調低其權重。再依據調整後的權重,對這些感測訊號進行加權平均計算,以得到混合波形。本發明的方法能有效提升偵測到心率的機率,並能有效穩定訊號的品質,減少心率值計算的錯誤率。 A signal processing method for detecting a pulse of a palm of a multi-sensor includes: setting a complex sensor above the back shell of the mouse; using these sensors to sense pulse changes in different parts of the palm to generate a sense The test signal is implemented by a microprocessor executing an algorithm to process the sensing signals into a mixed waveform, and calculating a heart rate value of the user based on the mixed waveform. The above algorithm performs peak detection for each sensing signal. If the sensing signal is detected as a peak, increase its weight; otherwise, lower its weight. Then, based on the adjusted weights, weighted average calculations are performed on the sensing signals to obtain a mixed waveform. The method of the invention can effectively improve the probability of detecting the heart rate, and can effectively stabilize the quality of the signal and reduce the error rate of the heart rate value calculation.

Description

應用於多感測器偵測手掌脈搏的訊號處理方法 Signal processing method applied to multi-sensor detecting palm pulse

本發明與一種偵測脈搏的訊號的處理方法有關,特別是與一種以多感測器偵測手掌脈搏的光體積變化描述訊號處理方法有關。 The invention relates to a method for processing a signal for detecting a pulse, in particular to a method for processing a light volume change description signal for detecting a pulse of a palm with a multi-sensor.

傳統上,醫界評估心臟功能的方法是藉由心電圖(Electrocardiogram;ECG)測得使用者的心率或是心臟活動狀態。也有使用心率變異度(Heart Rate Variability,HRV)以推測使用者的心理壓力變化。但隨著全球人口高齡化,未來居家用的保健醫療器材需要更簡易的操作方式,且儀器的體積也需要更輕巧方便。因此光體積變化描述訊號(Photoplethysmography signal,下文簡稱為PPG訊號)已被應用於手環、手錶等穿戴式裝置中,用以取代傳統的心電圖量測方法。PPG訊號能取得動脈與血流量的資訊,具有非侵入式、容易操作與無耗材等特性,可取代心電圖之不足,並適合未來遠距醫療監測與居家護理,實現對心血管疾病的早期診斷和預防。 Traditionally, the medical community's method of assessing cardiac function is to measure the user's heart rate or cardiac activity status by electrocardiogram (ECG). Heart Rate Variability (HRV) is also used to estimate changes in the user's psychological stress. However, with the aging of the global population, health care medical equipment that is home to the future needs a simpler operation mode, and the size of the instrument needs to be lighter and more convenient. Therefore, the photoplethysmography signal (hereinafter referred to as PPG signal) has been applied to wearable devices such as wristbands and watches to replace the traditional electrocardiography measurement method. The PPG signal provides information on arteries and blood flow. It is non-invasive, easy to operate, and has no consumables. It can replace the shortage of ECG and is suitable for future telemedicine monitoring and home care to achieve early diagnosis of cardiovascular disease. prevention.

習知利用PPG訊號來取得心率值的過程大致可分為三階段:一、PPG訊號的量測;二、PPG訊號的優化(去除雜訊,取得計算心率值的依據);三、利用心率演算法根據優化後的PPG訊號計算出心率值(擷取波峰及/或波 谷)。 The process of using the PPG signal to obtain the heart rate value can be roughly divided into three stages: 1. Measurement of the PPG signal; 2. Optimization of the PPG signal (removing the noise, obtaining the basis for calculating the heart rate value); 3. Using the heart rate calculation The method calculates the heart rate value based on the optimized PPG signal (takes peaks and/or waves) Valley).

在PPG訊號的量測方面,大多數的穿戴式裝置是使用單一顆含有發光二極體(light emitting diode,LED)或光電二極體(photodiode)的感測器,例如:將單一感測器置於有線滑鼠的左側邊量測手指的脈波與血管收縮變化,量測時受測者必須調整手部的姿勢使手指接觸感測器位置以進行量測。此外,亦有文獻使用多感測器進行PPG訊號的量測,例如:以三種不同波長的四通道感測器進行PPG訊號的量測;或是以兩個陣列式感測器置於手環上,用以量測手腕不同位置的PPG訊號。 In the measurement of PPG signals, most wearable devices use a single sensor that contains a light emitting diode (LED) or a photodiode, such as a single sensor. The pulse wave and vasoconstriction of the finger are measured on the left side of the wired mouse. When measuring, the subject must adjust the posture of the hand so that the finger touches the sensor position for measurement. In addition, there are also literatures that use multi-sensors to measure PPG signals, such as: measuring PPG signals with four different wavelengths of four-channel sensors; or placing two array sensors on the bracelet. Above, used to measure the PPG signal at different positions of the wrist.

以感測器取得的PPG訊號一般會再經過雜訊處理使訊號優化,才能做為後續計算心率值的依據。例如:以三軸加速度計的整合設計來降低移動雜訊的影響;或是使用粒子濾波(particle filter)的方法來消除移動雜訊。此外,有些文獻是以特定的演算法在多通道的訊號中選出訊號品質較好的數個通道作為後續計算的依據。 The PPG signal obtained by the sensor will generally be processed by the noise to optimize the signal, which can be used as the basis for the subsequent calculation of the heart rate value. For example, the integrated design of the three-axis accelerometer to reduce the impact of moving noise; or the use of particle filter to eliminate mobile noise. In addition, some documents use a specific algorithm to select several channels with better signal quality in the multi-channel signal as the basis for subsequent calculation.

為了配合不同偵測及優化方法所取得的PPG訊號來計算心率值,不同的文獻也各自提出其適合的心率演算法。例如:以一RPD(robust peak detection)演算法來擷取PPG訊號的波峰與波谷以計算心率值。 In order to calculate the heart rate value in accordance with the PPG signals obtained by different detection and optimization methods, different literatures also propose their suitable heart rate algorithms. For example, an RPD (robust peak detection) algorithm is used to capture the peaks and troughs of the PPG signal to calculate the heart rate value.

綜上所述,單一通道的PPG訊號品質較為不穩定且量測部位受限。對於多通道的PPG訊號,習知技術是從多個不同通道的訊號中選擇一或數個通道做為後續計算心率值的依據。然而,同一通道的訊號在不同時間點的訊號品質可能落差甚大,將會造成選擇上的困難。有鑑於此,多通道PPG訊號的處理方法仍有改善空間。 In summary, the quality of the single channel PPG signal is relatively unstable and the measurement location is limited. For multi-channel PPG signals, the conventional technique selects one or several channels from a plurality of different channel signals as a basis for subsequent calculation of heart rate values. However, the signal quality of the same channel at different points in time may vary greatly, which will cause difficulties in selection. In view of this, there is still room for improvement in the processing method of multi-channel PPG signals.

本發明之一目的在於提供一種應用於多感測器偵測手掌脈搏的訊號處理方法,其能有效提升偵測到心率的機率,並能有效穩定訊號的品質,減少心率值計算的錯誤率。 An object of the present invention is to provide a signal processing method for detecting a pulse of a palm of a multi-sensor, which can effectively improve the probability of detecting a heart rate, and can effectively stabilize the quality of the signal and reduce the error rate of the heart rate calculation.

為了達到上述目的,本發明提供一種應用於多感測器偵測手掌脈搏的訊號處理方法,包括:設置複數感測器於一滑鼠的背殼上方,以供一使用者以一手掌覆蓋這些感測器;利用這些感測器來感測手掌不同部位的脈搏變化而各自產生一感測訊號;利用一微處理器執行一演算法將這些感測訊號處理為一混合波形,依據混合波形來計算使用者之一心率值;以及微處理器將混合波形及心率值輸出至一顯示介面。上述的演算法包括:對每一感測訊號設定一權重,並進行一波峰偵測流程;若感測訊號被偵測到一波峰,則調高其權重;若感測訊號未被偵測到一波峰,則調低其權重;以及依據每一感測訊號的調整後權重,對這些感測訊號進行加權平均計算,以得到混合波形。 In order to achieve the above object, the present invention provides a signal processing method for detecting a pulse of a palm of a multi-sensor, comprising: setting a plurality of sensors above a back shell of a mouse for a user to cover the palms with a palm a sensor; using these sensors to sense pulse changes in different parts of the palm to generate a sensing signal; using a microprocessor to perform an algorithm to process the sensing signals into a mixed waveform, according to the mixed waveform Calculating one of the user's heart rate values; and the microprocessor outputs the mixed waveform and heart rate values to a display interface. The above algorithm includes: setting a weight for each sensing signal and performing a peak detecting process; if the sensing signal is detected to a peak, increasing its weight; if the sensing signal is not detected In the case of a peak, the weight is lowered; and the weighted average calculation of the sensing signals is performed according to the adjusted weight of each sensing signal to obtain a mixed waveform.

在一實施例中,波峰偵測流程包括一動態閾值設定方法,以供判斷感測訊號之一取樣點與其前一波峰的時間差是否合理,其步驟包括:根據取樣點的前兩波峰之間的時間差,決定一時間上限及一時間下限;以及若取樣點與其前一波峰的時間差落入時間上限及時間下限之間,則利用微處理器計算取樣點的一斜率值。 In an embodiment, the peak detection process includes a dynamic threshold setting method for determining whether the time difference between one of the sampling points of the sensing signal and the previous peak is reasonable, and the steps include: according to the first two peaks of the sampling point The time difference determines an upper time limit and a lower time limit; and if the time difference between the sampling point and the previous peak falls between the upper time limit and the lower time limit, the microprocessor calculates a slope value of the sampling point.

前述的動態閾值設定方法還包括:提供一斜率閾值及一旗標;比較斜率值與斜率閾值的大小;若斜率值大於斜率閾值,則將旗標設定為真;以及在旗標為真時,判斷斜率值為負或等於零;在旗標為真時,若斜率值為負或等於零,則紀錄一波峰位置,並將緩衝儲存器中的一最大斜率值乘以一 斜率判斷常數,以計算一新的斜率閾值。 The foregoing dynamic threshold setting method further includes: providing a slope threshold and a flag; comparing the slope value with a slope threshold; if the slope value is greater than the slope threshold, setting the flag to true; and when the flag is true, Determine whether the slope value is negative or equal to zero; if the slope value is negative or equal to zero when the flag is true, record a peak position and multiply a maximum slope value in the buffer memory by one. The slope is judged constant to calculate a new slope threshold.

在一實施例中,每一感測訊號的調整後權重最小值為1,且其最大值為20。 In an embodiment, the adjusted weight of each sensed signal has a minimum value of 1, and its maximum value is 20.

經由上述的方法將不同的PPG通道的感測訊號先混合處理來形成計算心率值所用的波形,所得到的混合波形其穩定度高於個別的PPG通道的感測訊號,再藉由動態設定的斜率閾值來進行波峰偵測,以提升心率值的準確度。 The sensing signals of different PPG channels are first mixed and processed by the above method to form a waveform for calculating the heart rate value, and the obtained mixed waveform has higher stability than the sensing signals of the individual PPG channels, and is dynamically set. The slope threshold is used for peak detection to improve the accuracy of the heart rate value.

10‧‧‧滑鼠 10‧‧‧ Mouse

12‧‧‧滑鼠的背殼 12‧‧‧The back shell of the mouse

100‧‧‧訊號處理系統 100‧‧‧Signal Processing System

110a,110b,110c及110d‧‧‧PPG感測器 110a, 110b, 110c and 110d‧‧‧PPG sensors

120‧‧‧類比電路 120‧‧‧ analog circuit

130‧‧‧微處理器 130‧‧‧Microprocessor

140‧‧‧無線傳輸模組 140‧‧‧Wireless Transmission Module

SA1,SA2,SA3,SA4‧‧‧(類比)感測訊號 S A1 , S A2 , S A3 , S A4 ‧ ‧ (analog) sensing signals

122a,122b,122c,122d‧‧‧隨耦器 122a, 122b, 122c, 122d‧‧‧ with follower

124a,124b,124c,124d‧‧‧帶通濾波器 124a, 124b, 124c, 124d‧‧‧ bandpass filter

126‧‧‧可程式增益放大器 126‧‧‧Programmable Gain Amplifier

130‧‧‧微處理器 130‧‧‧Microprocessor

140,240‧‧‧無線傳輸模組 140,240‧‧‧Wireless transmission module

S1,S2,S3,S4‧‧‧(數位)感測訊號 S1, S2, S3, S4‧‧‧ (digital) sensing signals

Wf‧‧‧混合波形 W f ‧‧‧ mixed waveform

HR‧‧‧心率值 H R ‧‧‧ heart rate

200‧‧‧顯示介面 200‧‧‧Display interface

S310~S350‧‧‧訊號處理流程的步驟 S310~S350‧‧‧ Signal processing steps

S332~S336‧‧‧演算法步驟 S332~S336‧‧‧ algorithm steps

S3321~S3330‧‧‧波峰偵測流程的步驟 Steps of the S3321~S3330‧‧‧ wave detection process

X n‧‧‧取樣點 X n ‧‧ ‧ sampling point

S n-1‧‧‧取樣點之前一波形中所偵測到的最大斜率值 S n-1 ‧‧‧ Maximum slope value detected in a waveform before the sampling point

P n-1,P n-2‧‧‧波峰 P n-1 , P n-2 ‧‧‧Crest

PPI n-1 ‧‧‧兩波峰之間的時間差 PPI n-1 ‧‧‧ time difference between two peaks

PPI n ‧‧‧取樣點與其前一波峰之間的時間差 Time difference between the PPI n ‧‧ ‧ sampling point and its previous peak

圖1A是本發明之一實施例的訊號處理系統架構示意圖。 FIG. 1A is a schematic structural diagram of a signal processing system according to an embodiment of the present invention.

圖1B是將多感測器設置於滑鼠背殼的示意圖。 FIG. 1B is a schematic view showing a multi-sensor disposed on a back shell of a mouse.

圖2是本發明之一實施例的訊號處理流程示意圖。 2 is a schematic diagram of a signal processing flow according to an embodiment of the present invention.

圖3是本發明之一實施例的波峰偵測流程示意圖。 3 is a schematic diagram of a peak detection process according to an embodiment of the present invention.

圖4為本發明之一實施例的動態閾值設定方法示意圖。 FIG. 4 is a schematic diagram of a dynamic threshold setting method according to an embodiment of the present invention.

圖5為本發明之一實施例中各取樣點的權重分配情形。 Figure 5 is a diagram showing the weight assignment of each sampling point in an embodiment of the present invention.

圖6為一受試者手握本發明之一實施例的滑鼠快速水平移動時的各種感測訊號波形比較結果。 6 is a comparison result of various sensing signal waveforms when a mouse is manually moved horizontally by an embodiment of the present invention.

圖7為一受試者手握本發明之一實施例的滑鼠瀏覽及點擊動作時的各種感測訊號波形比較結果。 FIG. 7 is a comparison result of various sensing signal waveforms when a subject holds a mouse browsing and clicking action according to an embodiment of the present invention.

有關本發明之前述及其他技術內容、特點與功效,在以下配合參考圖式之一較佳實施例的詳細說明中,將可清楚的呈現。以下實施例中所提 到的方向用語,例如:上、下、左、右、前或後等,僅是用於參照隨附圖式的方向。因此,該等方向用語僅是用於說明並非是用於限制本發明。 The above and other technical contents, features and advantages of the present invention will be apparent from the following detailed description of the preferred embodiments. As mentioned in the following examples Directions to the direction, such as: up, down, left, right, front or back, etc., are only used to refer to the direction of the accompanying drawings. Therefore, the directional terms are used for illustration only and are not intended to limit the invention.

圖1A是本發明之一實施例的訊號處理系統架構示意圖,其適合執行本發明之應用於多感測器偵測手掌脈搏的訊號處理方法。訊號處理系統100設置於一滑鼠10上,並包括多顆PPG感測器110a,110b,110c及110d、一類比電路120、一微處理器130及一無線傳輸模組140。 FIG. 1A is a schematic diagram showing the architecture of a signal processing system according to an embodiment of the present invention, which is suitable for performing the signal processing method of the present invention for detecting a pulse of a palm of a multi-sensor. The signal processing system 100 is disposed on a mouse 10 and includes a plurality of PPG sensors 110a, 110b, 110c and 110d, an analog circuit 120, a microprocessor 130 and a wireless transmission module 140.

如圖1B,PPG感測器110a,110b,110c及110d設置於滑鼠10的背殼12上表面的不同位置。當一使用者以其手掌覆蓋滑鼠10的背殼12時,這些PPG感測器110a,110b,110c及110d可以檢測使用者手掌血管因為脈搏產生的變化,而各自產生一類比感測訊號SA1,SA2,SA3,SA4。類比電路120設置於滑鼠10內部,包括多個隨耦器122a,122b,122c及122d、多個帶通濾波器124a,124b,124c及124d與一可程式增益放大器(Programmable Gain Amplifier,PGA)126。每一PPG感測器110a(或110b,110c,110d)的類比感測訊號SA1(或SA2,SA3,SA4)經過隨耦器122a(或122b,122c,122d)及帶通濾波器124a(或124b,124c,124d)處理後輸入可程式增益放大器126。可程式增益放大器126以多工的方式將帶通濾波器124a,124b,124c及124d傳來的所有類比感測訊號SA1,SA2,SA3,SA4的增益放大,再經過一類比至數位轉換器128將增益放大後的類比感測訊號SA1,SA2,SA3,SA4轉換成數位感測訊號S1,S2,S3,S4,再傳至微處理器130執行如圖2所示的訊號處理流程,藉此進行波形混合處理。 As shown in FIG. 1B, the PPG sensors 110a, 110b, 110c, and 110d are disposed at different positions on the upper surface of the back shell 12 of the mouse 10. When a user covers the back shell 12 of the mouse 10 with his palm, the PPG sensors 110a, 110b, 110c, and 110d can detect a change in the pulse of the user's palm blood vessels, and each generates an analog sensing signal S. A1 , S A2 , S A3 , S A4 . The analog circuit 120 is disposed inside the mouse 10 and includes a plurality of followers 122a, 122b, 122c and 122d, a plurality of band pass filters 124a, 124b, 124c and 124d and a Programmable Gain Amplifier (PGA). 126. The analog sensing signal S A1 (or S A2 , S A3 , S A4 ) of each PPG sensor 110a (or 110b, 110c, 110d) passes through the follower 122a (or 122b, 122c, 122d) and band pass filtering The processor 124a (or 124b, 124c, 124d) is processed and input to the programmable gain amplifier 126. The programmable gain amplifier 126 amplifies the gains of all analog sensing signals S A1 , S A2 , S A3 , S A4 from the band pass filters 124a , 124b , 124c and 124d in a multiplexed manner, and then through a analogy to The digital converter 128 converts the gain-amplified analog sensing signals S A1 , S A2 , S A3 , S A4 into digital sensing signals S1 , S2 , S3 , S4 , and then transmits them to the microprocessor 130 to perform the operation as shown in FIG. 2 . The signal processing flow is shown, thereby performing waveform mixing processing.

微處理器130及無線傳輸模組140亦設置於滑鼠10內部。微處理器130將這些數位感測訊號S1,S2,S3,S4進行波形混合處理而得到一混合波形Wf,並且據此混合波形Wf計算心率值HR。混合波形Wf及心率值HR藉由無線 傳輸模組140及240傳至一顯示介面200而顯示出相關的畫面。實務上,在微處理器130與可程式增益放大器126之間可以用一串列週邊介面(Serial Peripheral Interface,SPI)來連接;在微處理器130與多個PPG感測器110a,110b,110c及110d之間可以用一積體電路匯流排(Inter-Integrated Circuit,I2C)來連接。 The microprocessor 130 and the wireless transmission module 140 are also disposed inside the mouse 10. The microprocessor 130 performs waveform mixing processing on the digital sensing signals S1, S2, S3, and S4 to obtain a mixed waveform W f , and calculates the heart rate value H R based on the mixed waveform W f . The mixed waveform W f and the heart rate value H R are transmitted to a display interface 200 by the wireless transmission modules 140 and 240 to display an associated picture. In practice, a serial Peripheral Interface (SPI) can be connected between the microprocessor 130 and the programmable gain amplifier 126; the microprocessor 130 and the plurality of PPG sensors 110a, 110b, 110c An integrated circuit (I 2 C) can be connected between 110d and 110d.

圖2為微處理器130中的訊號處理流程示意圖。微處理器130接收來自類比至數位轉換器128處理後的數位感測訊號S1,S2,S3,S4(步驟S310),再對這些數位感測訊號S1,S2,S3,S4進行數位濾波(步驟S320)。接著,微處理器130執行一演算法(步驟S330)將數位濾波後的數位感測訊號S1,S2,S3,S4處理為一穩定且品質好的混合波形Wf。根據此混合波形Wf計算出一心率值HR(步驟S340),再以顯示介面200顯示混合波形Wf及心率值HR(步驟S350)。 2 is a schematic diagram of a signal processing flow in the microprocessor 130. The microprocessor 130 receives the digital sensing signals S1, S2, S3, and S4 processed from the analog-to-digital converter 128 (step S310), and performs digital filtering on the digital sensing signals S1, S2, S3, and S4 (steps). S320). Next, the microprocessor 130 executes an algorithm (step S330) to process the digitally filtered digital sensing signals S1, S2, S3, S4 into a stable and good quality mixed waveform Wf . A heart rate value H R is calculated based on the mixed waveform W f (step S340), and the mixed waveform W f and the heart rate value H R are displayed on the display interface 200 (step S350).

圖3至圖5更詳細地說明本發明的演算法(步驟S330)。將四顆感測器110a,110b,110c及110d通道所收集到的數位感測訊號S1,S2,S3,S4依照訊號品質分配不同的權重,品質最好的訊號將得到最大的權重。加權平均演算法(步驟S330)的步驟包括:在同一時間區間內,對這些數位感測訊號S1,S2,S3,S4分別進行一波峰偵測流程(步驟S332);若數位感測訊號S1,S2,S3或S4被偵測到一波峰,則調高該數位感測訊號的權重;若數位感測訊號S1,S2,S3或S4未被偵測到一波峰,則調低該數位感測訊號的權重(步驟S334);以及依據每一數位感測訊號S1,S2,S3及S4的調整後權重,對這些數位感測訊號S1,S2,S3或S4進行加權平均計算後得到混合波形Wf(步驟S336)。此演算法能放大四個通道的感測訊號中品質最佳、次佳的訊號比重,降低訊號品質較差的訊號比重,所得到的混合波形比單一感測器的訊號波形以及四個感測訊號權重相等時的混合波形穩定,依據本發明的方法得到的混合波形來計算心率值,可以得到更穩 定且準確的計算結果。 Figures 3 through 5 illustrate the algorithm of the present invention in more detail (step S330). The digital sensing signals S1, S2, S3, and S4 collected by the four sensors 110a, 110b, 110c, and 110d are assigned different weights according to the signal quality, and the best quality signals will receive the maximum weight. The step of the weighted average algorithm (step S330) includes: performing a peak detection process on the digital sensing signals S1, S2, S3, and S4 in the same time interval (step S332); if the digital sensing signal S1, If S2, S3 or S4 is detected as a peak, the weight of the digital sensing signal is increased; if the digital sensing signal S1, S2, S3 or S4 is not detected as a peak, then the digital sensing is lowered. The weight of the signal (step S334); and the weighted average calculation of the digital sensing signals S1, S2, S3 or S4 according to the adjusted weights of each of the digital sensing signals S1, S2, S3 and S4 to obtain a mixed waveform W f (step S336). This algorithm can amplify the best and second-best signal weight of the four channels of sensing signals, and reduce the signal weight of the signal with poor signal quality. The resulting mixed waveform is smaller than the signal waveform of a single sensor and four sensing signals. When the mixed waveforms with equal weights are stable, the mixed waveform obtained by the method of the present invention calculates the heart rate value, and a more stable and accurate calculation result can be obtained.

圖3更詳細地說明本發明之一實施例的波峰偵測流程(步驟S332)。微處理器130是利用此波峰偵測流程來判斷每一個數位感測訊號S1,S2,S3,S4的品質。首先,將一欲量測的目標波形進行微分處理得到斜率值(步驟S3321)。利用此斜率值以及一動態閾值設定方法(adaptive thresholding)進行波峰偵測。當波峰偵測開始時,先提供一旗標(Flag),預設值為偽(False)。一開始判斷此旗標的預設值是否為真(True)(步驟S3322)。若旗標的預設值不為真,則比較該斜率值與一斜率閾值的大小(步驟S3323)。若該斜率值大於該斜率閾值,將旗標更新為真(步驟S3324),繼續判斷下一筆資料(步驟S3330)。若步驟S3322已判斷旗標為真,則再判斷斜率值是否為負或等於零(步驟S3326)。若該斜率值大於零,則將該斜率值儲存於一緩衝儲存器(Buffer)(步驟S3325)。若旗標設定為真(True)且斜率值為負或等於零,代表斜率值由大於斜率閾值的狀態轉變為零或負,代表偵測到一波峰,此時將旗標改成偽(False)並紀錄波峰位置(步驟S3327)。接著,根據儲存於緩衝儲存器中的一最大斜率值來計算出一新的斜率閾值(步驟S3328)。最後,清除緩衝區(步驟S3329)並重新進行波峰偵測,繼續判斷下一筆資料(步驟S3330)。 Figure 3 illustrates the peak detection process of one embodiment of the present invention in more detail (step S332). The microprocessor 130 uses this peak detection process to determine the quality of each of the digital sensing signals S1, S2, S3, S4. First, a target waveform to be measured is subjected to differential processing to obtain a slope value (step S3321). Peak detection is performed using this slope value and a dynamic thresholding method. When the peak detection starts, a flag is provided first, and the default value is false (False). It is first judged whether or not the preset value of this flag is true (step S3322). If the preset value of the flag is not true, the slope value is compared with the magnitude of a slope threshold (step S3323). If the slope value is greater than the slope threshold, the flag is updated to true (step S3324), and the next data is continuously determined (step S3330). If it is determined in step S3322 that the flag is true, it is judged whether the slope value is negative or equal to zero (step S3326). If the slope value is greater than zero, the slope value is stored in a buffer (step S3325). If the flag is set to true (True) and the slope value is negative or equal to zero, it means that the slope value is changed to zero or negative by the state greater than the slope threshold, indicating that a peak is detected, and the flag is changed to false (False). And the peak position is recorded (step S3327). Next, a new slope threshold is calculated based on a maximum slope value stored in the buffer memory (step S3328). Finally, the buffer is cleared (step S3329) and the peak detection is resumed, and the next data is continuously judged (step S3330).

在圖3所示的波峰偵測流程中,當斜率值由大於斜率閾值的狀態轉變為零或負,代表在該目標波形中的一取樣點可能偵測到一新的波峰,若該取樣點與前一波峰的時間差在一合理時間範圍內時,則此新的波峰被確認。為了達成本實施例的波峰偵測,需先決定一時間閾值,並設定一斜率閾值。為此,本發明提供一種動態設定此時間閾值及斜率閾值的方法。 In the peak detection process shown in FIG. 3, when the slope value is changed to zero or negative by a state larger than the slope threshold, it means that a sampling point in the target waveform may detect a new peak, if the sampling point This new peak is confirmed when the time difference from the previous peak is within a reasonable time range. In order to achieve the peak detection of the embodiment, it is necessary to first determine a time threshold and set a slope threshold. To this end, the present invention provides a method of dynamically setting this time threshold and slope threshold.

圖4為時間閾值及斜率閾值的動態設定方法示意圖。示意圖的橫 軸是時間,緃軸是波形的振幅(單位:Volt)。時間閾值包含一時間上限及一時間下限,其決定方法以下式(1)及(2)表示:PPI L =PPI n-1×(C L ) (1) FIG. 4 is a schematic diagram of a dynamic setting method of a time threshold and a slope threshold. The horizontal axis of the diagram is time, and the 緃 axis is the amplitude of the waveform (unit: Volt). The time threshold includes an upper time limit and a lower time limit, and the determining method is expressed by the following formulas (1) and (2): PPI L = PPI n -1 × ( C L ) (1)

PPI H =PPI n-1×(C H ) (2) PPI H = PPI n -1 ×( C H ) (2)

式(1)及(2)中,PPI n-1 為取樣點X n的前兩波峰P n-1P n-2之間的時間差,C L (%)與C H (%)分別為用以調整時間上限PPI H 及一時間下限PPI L 的常數(C H >C L )。 In equations (1) and (2), PPI n-1 is the time difference between the first two peaks P n-1 and P n-2 of the sampling point X n , and C L (%) and C H (%) are respectively A constant ( C H > C L ) for adjusting the upper time limit PPI H and a lower time limit PPI L .

斜率閾值是將儲存於緩衝儲存器中的該最大斜率值乘以一斜率判斷常數,其決定方法以下式(3)表示:T n =S n-1×(C T ) (3) The slope threshold is obtained by multiplying the maximum slope value stored in the buffer memory by a slope determination constant, and the determination method is expressed by the following formula (3): T n = S n -1 × ( C T ) (3)

式(3)中,T n為第n個斜率閾值,S n-1為前一波形中(即n-1)偵測到的最大斜率值,C T(%)為斜率判斷常數。 In equation (3), T n is the nth slope threshold, S n-1 is the maximum slope value detected in the previous waveform (ie, n-1), and C T (%) is the slope judgment constant.

如此,微處理器130根據一取樣點X n的前兩波峰P n-1P n-2之間的時間差PPI n-1 ,決定時間上限PPI H 及時間下限PPI L ;若取樣點X n與其前一波峰P n-1的時間差PPI n 落入時間上限PPI H 及時間下限PPI L 之間,則進行圖3的波峰偵測流程以計算該取樣點X n的一斜率值。 Thus, the microprocessor 130 in accordance with a sampling point in the first two peaks X n P n-1 and P n-2 time difference between PPI n-1, to determine the time limit and time limit PPI H PPI L; if the sampling point X n When the time difference PPI n from the previous peak P n-1 falls between the upper time limit PPI H and the lower time limit PPI L , the peak detecting process of FIG. 3 is performed to calculate a slope value of the sampling point X n .

如步驟S334,微處理器130再依照先前波峰偵測所判斷出的訊號品質來調整每一個數位感測訊號S1,S2,S3,S4的權重。對於有偵測到波峰的訊號,增加其權重W[n];對於未偵測到波峰的訊號,降低其權重W[n]。具體的權重調整方法以下式(4)表示,其中α為任意常數: In step S334, the microprocessor 130 adjusts the weight of each of the digital sensing signals S1, S2, S3, and S4 according to the signal quality determined by the previous peak detection. For the signal with detected peak, increase its weight W[n]; for the signal without detecting the peak, reduce its weight W[n]. The specific weight adjustment method is expressed by the following formula (4), where α is an arbitrary constant:

圖5顯示各取樣點n的權重W[n]分配情形。此一實施例中,各感測器通道的感測訊號S1,S2,S3,S4初始權重皆為1,α設為2。在第1取樣點(n=1)偵測到第一感測訊號S1有波峰,因此將其權重增加為3。在第2取樣點(n=2)偵測到第一感測訊號S1有第二個波峰,因此再將訊號S1權重增加為5;同時偵測到第二感測訊號S2有波峰,因此再將第二感測訊號S2權重增加為3。在第3取樣點(n=3)偵測到第一感測訊號S1有第三個波峰,因此再將第一感測訊號S1權重增加為7;但此時第二感測訊號S2未偵測到波峰,因此將第二感測訊號S2權重降低為1。在每個取樣點n,各感測訊號S1~S4權重依此類推。 Fig. 5 shows the distribution of the weight W[n] of each sampling point n . In this embodiment, the sensing signals S1, S2, S3, and S4 of each sensor channel have an initial weight of 1, and α is set to 2. At the first sampling point (n=1), the first sensing signal S1 is detected to have a peak, so the weight is increased to 3. When the second sampling point (n=2) detects that the first sensing signal S1 has a second peak, the weight of the signal S1 is further increased to 5; and the second sensing signal S2 is detected to have a peak, so The weight of the second sensing signal S2 is increased to 3. At the third sampling point (n=3), the first sensing signal S1 has a third peak, so the weight of the first sensing signal S1 is increased to 7; but the second sensing signal S2 is not detected. The peak is detected, so the weight of the second sensing signal S2 is reduced to one. At each sampling point n , the weights of the sensing signals S1~S4 are analogous.

如步驟S336,最後以本發明之演算法的計算公式(5)來求得混合波形,公式(5)如下: In step S336, the mixed waveform is finally obtained by the calculation formula (5) of the algorithm of the present invention, and the formula (5) is as follows:

其中,W i [n]為第i個通道各取樣點n分配的權重,此權重會受到前一個取樣點n-1的訊號品質影響;乘以此取樣點n的訊號S i [n]即為依照訊號品質調整的訊號大小,當訊號品質愈好,得到的權重愈大,以確保訊號品質的穩定;最後得到的S mix [n]即為各取樣點n經過本發明之演算法的輸出結果。 Where W i [n] is the weight assigned to each sampling point n of the i- th channel, and this weight is affected by the signal quality of the previous sampling point n-1 ; multiplied by the signal S i [n] of the sampling point n In order to adjust the signal quality according to the signal quality, the better the signal quality, the greater the weight obtained to ensure the stability of the signal quality; the resulting S mix [n] is the output of each sample point n through the algorithm of the present invention. result.

圖6為一受試者手握設有圖1A的訊號處理系統100的滑鼠10快速水平移動時,將各個通道(PPG Channel 1~Channel 4)訊號的波形、經過算術平均演算法(Avg.)及本發明的加權平均演算法(Weighted Avg.)所獲得混合訊號波形Wf的波峰與心電圖訊號(Reference ECG)波形的R波相比較的結果。這些波形的緃軸標示ADC value為經過類比至數位轉換後的值。由波峰數量及相鄰兩波峰之間的時間間隔來比較,可以看出經由加權平均演算法得到的混合波形 Wf的波峰與心電圖訊號波形的R波數量吻合的程度最高。相較於各個單一通道的訊號及算術平均演算所得的混合訊號,經過加權平均演算法所得到的混合波形具有更高的訊號穩定度。藉由動態設定的時間閾值與斜率閾值來協助波峰偵測,可提升心率值計算的準確度。 FIG. 6 is a graph showing the waveform of each channel (PPG Channel 1~Channel 4) signal after a rapid horizontal movement of the mouse 10 provided with the signal processing system 100 of FIG. 1A, through an arithmetic average algorithm (Avg. ) algorithm and the weighted average (weighted Avg.) according to the present invention, the result of the mixing signal waveform peak W f electrocardiogram signal (Reference ECG) compared to R wave is obtained. The x-axis of these waveforms indicates that the ADC value is an analog-to-digital converted value. Compares the time interval between two adjacent peaks and the number of peaks, the highest level can be seen that the number of R-wave peaks of the electrocardiogram signal waveform obtained by the weighted average algorithm hybrid waveform W f of the anastomosis. The mixed waveform obtained by the weighted average algorithm has higher signal stability than the mixed signal of each single channel and the arithmetic average calculation. Assisting peak detection by dynamically setting the time threshold and slope threshold improves the accuracy of heart rate calculations.

圖7為一受試者手握設有圖1A的訊號處理系統100的滑鼠10做瀏覽及點擊動作時,將各個通道(PPG Channel 1~Channel 4)訊號的波形、經過平均演算法(Avg.)及加權平均演算法(Weighted Avg.)所獲得混合訊號波形Wf的波峰與心電圖訊號(Reference ECG)波形的R波相比較的結果。最下方為滑鼠點擊紀錄圖。由PPG Channel 1依序至PPG Channel 4的訊號,發現瀏覽或點擊的動作會造成訊號不穩定,而經由加權平均演算法混和的波形卻能有效穩定訊號的品質,因而可減少波峰偵測的錯誤率。 7 is a waveform of the signals of each channel (PPG Channel 1~Channel 4) after a mouse is held by the mouse 10 with the signal processing system 100 of FIG. 1A, and the average algorithm (Avg) .) and the results of the weighted average algorithm (Weighted Avg.) obtained by comparing the peak of the mixed signal waveform W f with the R wave of the ECG waveform. At the bottom is the mouse click record. The signal from PPG Channel 1 to PPG Channel 4 finds that the browsing or clicking action will cause the signal to be unstable, and the waveform mixed by the weighted average algorithm can effectively stabilize the signal quality, thus reducing the peak detection error. rate.

本發明的方法能有效提升偵測到心率的機率,並可得到相較於單一通道的訊號品質更穩定的混合波形,能提高訊號的可用性與可靠性,從而降低使用滑鼠工作時產生的移動雜訊的影響,故可提升心率值計算的準確率。 The method of the invention can effectively improve the probability of detecting the heart rate, and can obtain a mixed waveform which is more stable than the signal quality of a single channel, can improve the usability and reliability of the signal, thereby reducing the movement generated when the mouse is used. The influence of noise can improve the accuracy of heart rate calculation.

惟以上所述者,僅為本發明之較佳實施例而已,當不能以此限定本發明實施之範圍,即大凡依本發明申請專利範圍及發明說明內容所作之簡單的等效變化與修飾,皆仍屬本發明專利涵蓋之範圍內。另外本發明的任一實施例或申請專利範圍不須達成本發明所揭露之全部目的或優點或特點。此外,摘要部分和標題僅是用來輔助專利文件搜尋之用,並非用來限制本發明之權利範圍。 The above is only the preferred embodiment of the present invention, and the scope of the invention is not limited thereto, that is, the simple equivalent changes and modifications made by the scope of the invention and the description of the invention are All remain within the scope of the invention patent. In addition, any of the objects or advantages or features of the present invention are not required to be achieved by any embodiment or application of the invention. In addition, the abstract sections and headings are only used to assist in the search of patent documents and are not intended to limit the scope of the invention.

Claims (5)

一種應用於多感測器偵測手掌脈搏的訊號處理方法,包括:設置複數感測器於一滑鼠的背殼上方,以供一使用者以一手掌覆蓋該等感測器;利用該等感測器來感測該手掌不同部位的脈搏變化而各自產生一感測訊號;提供一波峰偵測流程,在複數取樣點對每一該感測訊號分別進行波峰偵測,其中該等取樣點包括一當前取樣點與其前一取樣點;利用一微處理器執行一演算法,其中該演算法包括:若該感測訊號在該當前取樣點被偵測到一波峰,則將其在該前一取樣點所設定的權重加上一數值,以得到一新權重;若該感測訊號在該當前取樣點未被偵測到一波峰,則將其在該前一取樣點所設定的權重減去該數值,以得到該新權重;以及依據每一該感測訊號的該新權重,對該等感測訊號進行加權平均計算,以將該等感測訊號處理為一混合波形;依據該混合波形來計算該使用者之一心率值;以及微處理器將該混合波形及該心率值輸出至一顯示介面。 A signal processing method for detecting a pulse of a palm of a multi-sensor comprises: setting a plurality of sensors above a back shell of a mouse for a user to cover the sensors with a palm; using the same The sensor senses pulse changes in different parts of the palm to generate a sensing signal; providing a peak detecting process for performing peak detection on each of the sensing signals at a plurality of sampling points, wherein the sampling points are respectively Include a current sampling point and a previous sampling point; performing an algorithm using a microprocessor, wherein the algorithm includes: if the sensing signal is detected at the current sampling point, a peak is present The weight set by a sampling point is added by a value to obtain a new weight; if the sensing signal is not detected at the current sampling point, the weight set by the previous sampling point is reduced. Determining the value to obtain the new weight; and performing a weighted average calculation on the sensing signals according to the new weight of each of the sensing signals to process the sensing signals into a mixed waveform; Waveform The one user calculates heart rate value; and a microprocessor and an output waveform of the mixing of the heart rate to a display interface. 如申請專利範圍第1項所述的應用於多感測器偵測手掌脈搏的訊號處理方法,其中該波峰偵測流程包括一動態閾值設定方法,以供判斷該感測訊號之該當前取樣點與其前一波峰的時間差是否合理,其步驟包括: 根據該當前取樣點的前兩波峰之間的時間差,決定一時間上限及一時間下限;以及若該當前取樣點與其前一波峰的時間差落入該時間上限及該時間下限之間,則利用該微處理器計算該當前取樣點的一斜率值。 The signal processing method for multi-sensor detecting palm pulse according to claim 1, wherein the peak detecting process includes a dynamic threshold setting method for determining the current sampling point of the sensing signal. Whether the time difference from the previous peak is reasonable, the steps include: Determining an upper time limit and a lower time limit according to a time difference between the first two peaks of the current sampling point; and if the time difference between the current sampling point and the previous peak falls between the upper limit of the time and the lower limit of the time, the The microprocessor calculates a slope value for the current sample point. 如申請專利範圍第2項所述的應用於多感測器偵測手掌脈搏的訊號處理方法,其中該動態閾值設定方法還包括:提供一斜率閾值及一旗標;比較該斜率值與該斜率閾值的大小;若該斜率值大於該斜率閾值,則將該旗標設定為真;在該旗標為真時,判斷該斜率值為負或等於零;以及在該旗標為真時,若該斜率值為負或等於零,則紀錄一波峰位置,並將該緩衝儲存器中的一最大斜率值用於計算一新的斜率閾值。 The signal processing method for multi-sensor detecting palm pulse according to claim 2, wherein the dynamic threshold setting method further comprises: providing a slope threshold and a flag; comparing the slope value with the slope The size of the threshold; if the slope value is greater than the slope threshold, the flag is set to true; when the flag is true, the slope value is determined to be negative or equal to zero; and when the flag is true, if the flag is true If the slope value is negative or equal to zero, a peak position is recorded and a maximum slope value in the buffer memory is used to calculate a new slope threshold. 如申請專利範圍第3項所述的應用於多感測器偵測手掌脈搏的訊號處理方法,其中計算該新的斜率閾值的步驟包括:將該緩衝儲存器中的該最大斜率值乘以一斜率判斷常數。 The signal processing method for multi-sensor detecting palm pulse according to claim 3, wherein the step of calculating the new slope threshold comprises: multiplying the maximum slope value in the buffer memory by one The slope is judged constant. 如申請專利範圍第4項所述的應用於多感測器偵測手掌脈搏的訊號處理方法,其中每一該感測訊號的該新權重之最小值為1,且其最大值為20。 The signal processing method for multi-sensor detecting palm pulse according to claim 4, wherein the new weight of each of the sensing signals has a minimum value of 1, and a maximum value of 20.
TW106119367A 2017-06-09 2017-06-09 Signal processing method for plural sensors detecting pulse in a palm TWI635852B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW106119367A TWI635852B (en) 2017-06-09 2017-06-09 Signal processing method for plural sensors detecting pulse in a palm

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW106119367A TWI635852B (en) 2017-06-09 2017-06-09 Signal processing method for plural sensors detecting pulse in a palm

Publications (2)

Publication Number Publication Date
TWI635852B true TWI635852B (en) 2018-09-21
TW201902415A TW201902415A (en) 2019-01-16

Family

ID=64452921

Family Applications (1)

Application Number Title Priority Date Filing Date
TW106119367A TWI635852B (en) 2017-06-09 2017-06-09 Signal processing method for plural sensors detecting pulse in a palm

Country Status (1)

Country Link
TW (1) TWI635852B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI687203B (en) * 2019-09-03 2020-03-11 緯創資通股份有限公司 Adaptive vital-sign detection method and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWM371925U (en) * 2009-05-22 2010-01-01 Astek Technology Ltd Mouse capable of measuring blood oxygen saturation
CN103690156A (en) * 2013-11-22 2014-04-02 东软熙康健康科技有限公司 Heart rate acquiring method and electrocardiosignal processing method
CN104173043A (en) * 2014-09-04 2014-12-03 东莞理工学院 Electrocardiogram (ECG) data analysis method suitable for mobile platform
CN104207761A (en) * 2013-06-03 2014-12-17 飞比特公司 Heart rate data collection

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWM371925U (en) * 2009-05-22 2010-01-01 Astek Technology Ltd Mouse capable of measuring blood oxygen saturation
CN104207761A (en) * 2013-06-03 2014-12-17 飞比特公司 Heart rate data collection
CN103690156A (en) * 2013-11-22 2014-04-02 东软熙康健康科技有限公司 Heart rate acquiring method and electrocardiosignal processing method
CN104173043A (en) * 2014-09-04 2014-12-03 东莞理工学院 Electrocardiogram (ECG) data analysis method suitable for mobile platform

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI687203B (en) * 2019-09-03 2020-03-11 緯創資通股份有限公司 Adaptive vital-sign detection method and system

Also Published As

Publication number Publication date
TW201902415A (en) 2019-01-16

Similar Documents

Publication Publication Date Title
KR101041033B1 (en) Scale-shaped apparatus for diagonizing health status and method thereof
JP6516846B2 (en) Device and method for sleep monitoring
EP3334337B1 (en) Monitoring of sleep phenomena
US8292819B2 (en) Sleep analysis system and method for analyzing sleep thereof
US20150057506A1 (en) Arrayed electrodes in a wearable device for determining physiological characteristics
JP2009011585A (en) Apparatus and method for pulse wave processing
TWI667011B (en) Heart rate detection method and heart rate detection device
WO2018102486A1 (en) Photoplethysmographic wearable blood pressure monitoring system and methods
US10524676B2 (en) Apparatus and method for determining a health parameter of a subject
JP2014171660A (en) Atrial fibrillation analyzation equipment, atrial fibrillation analysis system, atrial fibrillation analysis method and program
JP6766710B2 (en) Blood pressure measuring device, method and program
CN115500800A (en) Wearable physiological parameter detection system
Kaisti et al. Wearable pressure sensor array for health monitoring
KR20160107390A (en) Apparatus for measuring bio-signal
US6616608B2 (en) Periodic-physical-information measuring apparatus
JP2008237533A (en) Pulse wave measuring apparatus
TWI635852B (en) Signal processing method for plural sensors detecting pulse in a palm
JP2014042547A (en) Atrial fibrillation determination device, and atrial fibrillation determination method and program
CN104274165B (en) Determination device and determination method
KR20160027463A (en) Noncontact heart rate monitoring system based on accelerometer attached on a chair and thereof method
JP2011200558A (en) Biological information acquiring apparatus
Hurnanen et al. Heartbeat detection using multidimensional cardiac motion signals and dynamic balancing
KR102276614B1 (en) Method and apparatus for measuring biosignal in a non-contact manner and clothes using the same
WO2020090763A1 (en) Processing device, system, processing method, and program
KR101817274B1 (en) Apparatus for multi-sensor based wearable energy expenditure measurement device and method thereof