Pulse detection device, pulse detection method and program
The pulse detection device accurately measures pulse rates from captured images by blocking, compensating for brightness, and using autocorrelation to overcome sensor-based burdens and movement interference.
Patent Information
- Application Number
- JP2022570993
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2020-12-25
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2040-12-25
AI Technical Summary
Conventional pulse detection methods require users to wear sensors, imposing a burden and are inaccurate due to body movements affecting pulse rate measurement, especially in image-based detection.
A pulse detection device that processes captured images by dividing them into blocks, excluding unsuitable pixels, compensating for brightness changes, and using autocorrelation to detect pulse fluctuations accurately.
Enables high-accuracy pulse detection from captured images without sensors, effectively filtering noise and body movements to measure instantaneous pulse rates.
Smart Images

Figure 0007544862000009 
Figure 0007544862000010 
Figure 0007544862000003
Abstract
Description
[Technical field]
[0001] The present invention relates to pulse detection technology. [Background technology]
[0002] Some home game machines are equipped with cameras that can capture images of users playing games, detect the user's facial expressions from the captured images, and understand the user's mental state while playing the game, which can be reflected in the development of the game. In addition, in order to detect the degree of tension of a user while playing a game, a sensor that detects a pulse is attached to the user, and the pulse measurement results output by the sensor are input to the game machine and reflected in the game.
[0003] Patent Document 1 describes a method for measuring vital signs from changes over time in density of a captured image of a subject. [Prior art documents] [Patent documents]
[0004] [Patent Document 1] JP 2005-218507 A Summary of the Invention [Problem to be solved by the invention]
[0005] The problem was that having the user wear a sensor to detect the pulse placed a burden on the user, and that the conventional pulse detection method using captured images had the problem that it was difficult to detect small fluctuations in the pulse and that it was difficult to measure the pulse accurately because it was affected by bodily movements such as breathing.
[0006] The present invention has been made in view of the above problems, and has a general purpose to provide a pulse detection technique that can detect a user's pulse with high accuracy from a captured image. [Means for solving the problem]
[0007] In order to solve the above problems, a pulse detection device of one embodiment of the present invention includes a memory unit that stores a predetermined number of frames of captured images of an area including a user's skin, a pixel value acquisition unit that divides the captured images into a plurality of blocks and acquires pixel values of each block, a pixel exclusion unit that narrows down target pixels in each block by excluding pixels whose green values, when the colors of the pixels in each block are expressed in RGB, are below a predetermined threshold value, and a pulse detection unit that detects the pulse from changes over time in the target pixel values of each block. Another embodiment of the present invention is also a pulse detection device, which includes a storage unit that stores a predetermined number of frames of captured images of an area including a user's skin, a pixel value acquisition unit that divides the captured images into a plurality of blocks and acquires pixel values of each block, a brightness change compensation unit that compensates for brightness changes by dividing an average value of green values by an average value of red or blue values when the colors of pixels in each block are expressed in RGB, and a pulse detection unit that detects the pulse from a temporal change in the pixel values of each block after brightness change compensation.
[0008] Yet another aspect of the present invention is a pulse detection method, which includes a pixel value acquisition step of dividing a predetermined number of frames of an image of an area including a user's skin into a plurality of blocks and acquiring pixel values of each block, a pixel exclusion step of excluding pixels whose green values in RGB representation of the colors of the pixels of each block are equal to or less than a predetermined threshold value to narrow down the target pixels of each block, and a pulse detection step of detecting the pulse from a temporal change in the target pixel values of each block.
[0009] Any combination of the above components, and any transformation of the present invention into a method, device, system, computer program, data structure, recording medium, etc., are also effective as aspects of the present invention. Effect of the Invention
[0010] According to the present invention, the pulse rate of a user can be detected with high accuracy from a captured image. [Brief description of the drawings]
[0011] [Figure 1] 1 is a configuration diagram of a pulse rate detection device according to a first embodiment. [Diagram 2] 2 is a diagram illustrating a data structure of a signal used in the pulse detection device of FIG. 1. [Diagram 3] 4 is a flowchart illustrating a pulse wave detection procedure performed by the pulse detection device of FIG. [Figure 4] FIG. 4(a) shows an autocorrelation graph of the detected pulse wave, and FIG. 4(b) is an enlarged view of the vicinity 200 of the peak of the autocorrelation graph of FIG. 4(a). [Diagram 5] FIG. 11 is a configuration diagram of a pulse rate detection device according to a second embodiment. [Figure 6] FIG. 6(a) shows a detected pulse wave and its autocorrelation graph, and FIG. 6(b) shows a reference pulse wave and its autocorrelation graph. [Figure 7] FIG. 7(a) shows the detected pulse wave, and FIG. 7(b) shows the amplitude reliability. [Figure 8] FIG. 11 is a configuration diagram of a pulse rate detection device according to a third embodiment. [Figure 9] 9(a) to 9(d) are diagrams for explaining a plurality of areas set in a captured image. [Figure 10] 10(a) and 10(b) are diagrams showing changes over time in pulse rate and reliability detected in each area. [Figure 11] FIG. 13 is a configuration diagram of a pulse rate detection device according to a fourth embodiment. [Figure 12] 12A to 12C are diagrams for explaining pixel removal by the pixel removal unit in FIG. 11. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0012] (First embodiment) 1 is a configuration diagram of a pulse detection device 100 according to a first embodiment. The pulse detection device 100 includes an imaging section 10, a frame storage section 20, a pixel value acquisition section 30, a time-series pixel array acquisition section 40, a pulse data array acquisition section 50, a pulse detection section 60, and an autocorrelation graph storage section 70.
[0013] The imaging section 10 captures an image of a body part where the skin is exposed, such as the user's face, and stores the image in the frame storage section 20. The frame storage section 20 stores a predetermined number of frames of captured images.
[0014] Facial skin has many capillaries, making it suitable for imaging pulse rates. Besides the face, the palms of the hands and soles of the feet also have less melanin, making it easier to image capillaries. When you pulse, the capillaries also pulsate. When the capillaries in the skin are imaged, the reflected light changes due to the pulsation of the capillaries, so the pulse rate can be detected from the change in pixel values over time in the captured image.
[0015] The pixel value acquisition unit 30 divides the captured image stored in the frame storage unit 20 into a plurality of blocks and acquires the pixel values of each block. The area suitable for pulse wave detection is a part of the face where the skin is exposed and there is little movement. For example, the face area of the captured image is divided into blocks such as the forehead, right cheek, left cheek, and nose, and the pixel values of each block are acquired. The number of pixels in each block may be different.
[0016] It is preferable that the pixel value acquiring section 30 acquires, as the pixel value, the green value when the color of the pixel in each block is expressed in RGB.
[0017] The skin has a dermis beneath the epidermis, and if the epidermis is transparent and thin, visible light can penetrate into the dermis and image capillaries. The penetrating power of visible light depends on the wavelength, and the longer the wavelength, the deeper it penetrates into the skin. Red light has the longest wavelength and penetrates deep into the skin, but if the light penetrates too deep, it will image things other than capillaries. Blue light has the shortest wavelength and does not penetrate deep into the skin, so it is not suitable for imaging capillaries. Green light penetrates into the dermis beneath the epidermis and is easily absorbed by red blood cells, making it suitable for imaging capillaries.
[0018] The pixel value acquisition unit 30 acquires spatially smoothed pixel values by adding up a predetermined number of pixel values in each block. All pixel values in a block may be added up, or some pixel values in a block may be added up. In the case of 8-bit pixels, the pulse wave signal detected from one pixel is so small that there is only a change in the least significant bit, so The pulse wave signal can be amplified by adding up the pixel values in a block, which also acts as a spatial low-pass filter (LPF) that spatially smoothes the pixel values in the block.
[0019] The time-series pixel array acquisition unit 40 acquires a time-series pixel array in which the pixel values of each block acquired by the pixel value acquisition unit 30 are arranged for a predetermined number of frames. For example, when the frame rate of a video is 30 frames / second, a time-series pixel array is generated in which 30 pixel values for one second, i.e., 30 frames, are arranged in chronological order for each block.
[0020] The time-series pixel array acquisition unit 40 may acquire a time-series pixel array that is smoothed in time by applying a low-pass filter to the time-series pixel array. The image sensor used for imaging generally has noise in the detection value. Applying a low-pass filter to the time-series pixel array acts as a temporal low-pass filter that removes noise in the time direction of the detection value of the sensor.
[0021] The pulse data sequence acquisition unit 50 calculates the average value of each element of the time series pixel sequence as a direct current (DC) component, extracts the central element of the time series pixel sequence as an alternating current (AC) component, and subtracts the DC component from the AC component to acquire the pulse component. Subtracting the DC component from the AC component of the time series pixel sequence has the effect of applying a high pass filter (HPF) to the time series pixel sequence.
[0022] The pulse data sequence acquisition unit 50 acquires pulse components for each frame, and acquires a pulse data sequence in which pulse components for a predetermined period are arranged. The predetermined period is set to a time equivalent to at least two periods of a standard pulse (e.g., 2.5 seconds). By using a short pulse wave signal of about two periods, it becomes possible to detect an instantaneous pulse. If a long-term pulse wave signal is used, the pulse will be averaged, making it impossible to capture instantaneous changes in the pulse.
[0023] The pulse data sequence acquisition unit 50 may acquire a pulse data sequence that is smoothed in time by applying a low-pass filter to the pulse data sequence. The pulse wave signal obtained here may have amplitude fluctuations in the time direction due to the calculation method of the AC component. Applying a low-pass filter to the pulse data sequence acts as a temporal low-pass filter that removes fluctuations in the amplitude of the pulse wave in the time direction.
[0024] Here, it is preferable that the filter strength of the low-pass filter applied to the time-series pixel array is stronger than that of the low-pass filter applied to the pulse data array, because the temporal noise contained in the raw data detected by the image sensor is relatively large, whereas the distortion of the waveform of the pulse wave signal due to amplitude fluctuation is not so large in comparison.
[0025] Pulse detection unit 60 finds the autocorrelation of the pulse data sequence and stores the autocorrelation graph in autocorrelation graph storage unit 70. Pulse detection unit 60 detects the point at which the autocorrelation graph of the pulse wave signal reaches the second maximum, obtains the time on the horizontal axis of the second maximum point as the period of the pulse wave signal, and obtains its reciprocal as the frequency of the pulse wave signal. Pulse detection unit 60 outputs the frequency of the pulse wave signal detected by autocorrelation as the pulse rate.
[0026] FIG. 2 is a diagram for explaining the data structure of signals used in the pulse detection device 100. As shown in FIG.
[0027] The pixel value acquisition unit 30 acquires pixel values from each block of the forehead 14a, right cheek 14b, and left cheek 14c of the user's face image 12 captured by the imaging unit 10, adds up the pixel values in the blocks, and stores the sum in a time-series pixel array R[], which is a raw data array. For example, pixel values for 30 frames per second are stored in an array to acquire a time-series pixel array R[] with 30 elements. As the captured image frames progress, each element of the time-series pixel array R[] is shifted to the right, the i-th element is copied to the (i+1)-th element, and the pixel value obtained from the new frame is stored in the first element of the time-series pixel array R[].
[0028] The pixel value acquisition unit 30 applies a low-pass filter with a filter strength of N_raw_data to the time-series pixel array R[]. Specifically, as an example, the moving average of the following formula is repeated a number of times according to the filter strength N_raw_data. For example, the filter strength N_raw_data is set to 10, and the moving average is repeated 10 times. R'[i]=0.25*R[i-1]+0.5*R[i]+0.25*R[i+1]
[0029] The time-series pixel array obtained by applying a low-pass filter with a filter strength of N_raw_data to the time-series pixel array R[] is defined as LPR[].
[0030] The pulse data array acquisition unit 50 calculates the average value of each element of the time-series pixel array LPR[] as a DC component, and acquires the first pulse component P[0] by subtracting the DC component from the central element of the time-series pixel array LPR[].
[0031] Next, the pulse data array acquisition unit 50 copies the pulse component P[0] to P[1], and acquires the pulse component P[0] of the next frame. Furthermore, the pulse data array acquisition unit 50 copies the pulse component P[1] to P[2], copies P[0] to P[1], and acquires the pulse component P[0] of the next frame. By repeating this process for a predetermined period, for example, 2.5 seconds, the pulse data array P[] in which the pulse components are arranged is acquired. When the frame rate is 30 frames / second, the number of elements of the pulse data array P[] is 30*2.5=75.
[0032] In this way, as the captured image frames progress, each element of the pulse data array P[] is shifted to the right, the i-th element is copied to the (i+1)-th element, and the pulse component of the new frame is stored in the first element of the pulse data array P[].
[0033] The pulse data sequence acquisition unit 50 applies a low-pass filter with a filter strength of N_pulse_data to the pulse data sequence P[]. Specifically, as an example, the moving average of the following formula is repeated a number of times according to the filter strength N_pulse_data. For example, the moving average is repeated three times with the filter strength N_pulse_data set to 2. P'[i]=0.25*P[i-1]+0.5*P[i]+0.25*P[i+1]
[0034] The pulse data array obtained by applying a low-pass filter with a filter strength of N_pulse_data to the pulse data array P[] is defined as LPP[].
[0035] The pulse detector 60 obtains the autocorrelation AC[t] of the pulse data array LPP[] with respect to the time lag t using the following equation. AC[t]=SUM(LPP[n]*LPP[n+t])
[0036] The pulse detection unit 60 calculates the autocorrelation AC[t] from t=0 to t=N (N is the number of elements in LPP[]), obtains the time T at which AC[T] reaches the second maximum point as the pulse wave period, and outputs the frequency, which is the inverse of this, as the pulse rate.
[0037] Generally, there is a method of detecting the frequency of a pulse wave signal by performing a fast Fourier transform on the pulse wave signal. At least 512 pieces of data are required for the fast Fourier transform, and in the case of 30 frames / second, a pulse wave signal of 10-plus seconds is analyzed, and an average value of the pulse rate over 10-plus seconds is obtained, but the instantaneous pulse rate cannot be obtained. The pulse detection method of this embodiment uses autocorrelation, and when the pulse wave signals are superimposed at a point shifted by one period, the autocorrelation is maximized, and the period of the pulse wave signal can be detected. Therefore, the instantaneous pulse rate can be obtained from the autocorrelation of the pulse wave signal over a short period of about two periods. The pulse detection method of this embodiment is suitable for detecting small fluctuations in the pulse rate.
[0038] FIG. 3 is a flowchart illustrating a pulse wave detection procedure performed by pulse rate detection device 100. As shown in FIG.
[0039] The pixel value acquisition section 30 acquires spatially averaged pixel values from a predetermined number of pixel values in each block of a captured image (S10).
[0040] The time-series pixel array acquisition unit 40 acquires a time-series pixel array in which pixel values of blocks of a predetermined number of frames are arranged (S20). The time-series pixel array acquisition unit 40 applies a low-pass filter to the time-series pixel array (S30).
[0041] The pulse data array acquisition unit 50 calculates the average value of each element of the time series pixel array as a DC component, and acquires the pulse component by subtracting the DC component from the central element of the time series pixel array (S40). The central element is selected as the AC component, and the DC component is subtracted from the AC component to provide a high-pass filter effect. The reason for selecting the central element as the AC component is that when applying a low-pass filter to the time series pixel array, there are a similar number of elements before and after the central element, and the low-pass filter is applied by weighting the elements before and after the time to the same extent.
[0042] The pulse data sequence acquisition unit 50 acquires a pulse data sequence in which pulse components for a predetermined period are arranged (S50). The pulse data sequence acquisition unit 50 applies a low-pass filter to the pulse data sequence (S60).
[0043] Pulse detector 60 determines the period of the pulse wave signal from the autocorrelation of the pulse data sequence, and detects the frequency, which is the inverse of the period, as the pulse rate (S70).
[0044] In the above description, the frequency was obtained from the maximum point of the autocorrelation graph of the detected pulse wave signal, but the pulse detection unit 60 can improve the detection accuracy of the pulse rate by detecting the frequency corresponding to the peak obtained by fitting a quadratic curve to the vicinity of the peak of the autocorrelation of the detected pulse wave as the pulse rate. If the frame rate of the captured image is 30 fps, detecting the frequency from the maximum point of the autocorrelation graph results in a time resolution of 1 / 30 seconds, and the detection accuracy of the frequency is not high. Therefore, the detection accuracy is improved by fitting a quadratic curve to the vicinity of the peak to interpolate the autocorrelation graph, and detecting the frequency at the maximum point of the fitted quadratic curve.
[0045] Fig. 4(a) shows an autocorrelation graph of the detected pulse wave, and Fig. 4(b) is an enlarged view of a peak vicinity 200 of the autocorrelation graph of Fig. 4(a). At a time resolution of 1 / 30 seconds, the position indicated by reference numeral 210b is the maximum point of the autocorrelation graph, but when a quadratic curve 230 passing through values 210a, 210b, and 210c of the autocorrelation graph near the peak is fitted, the position where the quadratic curve 230 becomes maximum is given by reference numeral 220. By determining the frequency of the detected pulse wave from the maximum point 220 of the quadratic curve 230, it is possible to improve the detection accuracy.
[0046] (Second embodiment) Fig. 5 is a configuration diagram of a pulse detection device 100 according to the second embodiment. The pulse detection device 100 according to the second embodiment further includes a reliability calculation unit 80 and a reference graph storage unit 90 in addition to the respective components of the pulse detection device 100 in Fig. 1. Description of the components and operations common to the pulse detection device 100 in Fig. 1 will be omitted.
[0047] The reference graph storage unit 90 stores, as a reference graph, an autocorrelation graph of a pulse data sequence in which noise-free pulse components for a predetermined period are arranged. In order to model a high-frequency pulse wave as a reference pulse wave, for example, autocorrelation graphs of noise-free reference pulse waves when the pulse rate is stable, when the pulse rate is increasing, when the pulse rate is decreasing, etc. are registered in the reference graph storage unit 90 as reference graphs.
[0048] In order to compare the autocorrelation graph of the actual detected pulse wave with the reference graph of the reference pulse wave, it is necessary to align the fundamental frequencies. The fundamental frequency obtained from the autocorrelation graph of the detected pulse wave changes depending on the pulse rate, but the fundamental frequency of the reference graph of the reference pulse wave is fixed at, for example, 60 bpm (beats per minute). In order to evaluate the similarity of the waveforms by cross-correlation between the autocorrelation graph of the detected pulse wave and the reference graph of the reference pulse wave, it is necessary to make the fundamental frequencies of both the graphs the same. Therefore, "frequency standardization" is performed by expanding or contracting the data of the pulse data array of the detected pulse wave along the time axis so that the fundamental frequency of the autocorrelation graph of the detected pulse wave is 60 bpm, the same as the reference graph of the reference pulse wave.
[0049] Figure 6(a) shows the detected pulse wave and its autocorrelation graph, and Figure 6(b) shows the reference pulse wave and its autocorrelation graph. The horizontal axis value of the second maximum point of the autocorrelation graph is the fundamental period, and its reciprocal is the fundamental frequency. Frequency standardization is performed to correct the fundamental frequency of the autocorrelation of the detected pulse wave to match the fundamental frequency of the autocorrelation of the reference pulse wave.
[0050] Reliability calculation unit 80 calculates the cross correlation between the autocorrelation graph of the detected pulse wave stored in autocorrelation graph storage unit 70 and the reference graph of the reference pulse wave stored in reference graph storage unit 90, and determines the waveform reliability based on the cross correlation value. The cross correlation CC is given by the sum of the products between the elements of the autocorrelation graph AC of the detected pulse wave and the reference graph REF of the reference pulse wave, as shown in the following equation. CC=SUM(AC[n]*REF[n])
[0051] The higher the cross correlation value, the greater the similarity between the autocorrelation graph of the detected pulse wave and the waveform of the reference graph of the reference pulse wave. Reliability calculation unit 80 calculates the cross correlation value with the autocorrelation graph of the detected pulse wave for all reference graphs of reference pulse waves registered in reference graph storage unit 90, and takes the maximum value as the final waveform reliability. Waveform reliability is an index that determines how similar the waveform of the detected pulse wave is to a pulse wave.
[0052] Furthermore, reliability calculation section 80 determines the amplitude reliability by comparing the amplitude of the waveform of the detected pulse wave signal with predetermined upper and lower limits.
[0053] Figure 7(a) shows the detected pulse wave. The horizontal axis is time, and the vertical axis is the green pixel value, and the graph shows the change in pixel value over time. The amplitude of the detected pulse wave is given by the difference between the maximum and minimum values of the detected pulse wave.
[0054] Figure 7(b) shows amplitude reliability. The horizontal axis is the amplitude of the detected pulse wave, and the vertical axis is the amplitude reliability. If the amplitude of the detected pulse wave is equal to or greater than the lower limit th1 and equal to or less than the upper limit th2, the amplitude reliability is 1.0. If the amplitude of the detected pulse wave is in the range between the lower limit th1 and the upper limit th2, it is an amplitude that resembles a pulse wave, and the amplitude reliability is set to 1.0.
[0055] If the amplitude of the detected pulse wave is smaller than the lower limit th1, the amplitude is smaller than the expected pulse wave, so the amplitude reliability is gradually decreased from 1.0 as the amplitude decreases from the lower limit th1. If the amplitude of the detected pulse wave is smaller than the lower limit, it may be a minute signal other than a pulse wave or noise.
[0056] If the amplitude of the detected pulse wave is greater than the upper limit th2, the amplitude is greater than the expected pulse wave, so the amplitude reliability is gradually decreased from 1.0 as the amplitude increases from the upper limit th2. If the amplitude of the detected pulse wave is greater than the upper limit, it may be due to the user's body moving or may be noise.
[0057] The reliability calculation unit 80 calculates and outputs the final pulse wave reliability of the detected pulse rate based on the waveform reliability and the amplitude reliability. For example, the product of the waveform reliability and the amplitude reliability is calculated as the final pulse wave reliability of the pulse rate.
[0058] (Third embodiment) Fig. 8 is a configuration diagram of a pulse detection device 100 according to the third embodiment. The pulse detection device 100 according to the third embodiment further includes an area reliability storage unit 92 in addition to each configuration of the pulse detection device 100 in Fig. 5. Description of the configuration and operation common to the pulse detection device 100 in Fig. 5 will be omitted.
[0059] In the pulse detection device 100 according to the first and second embodiments, the captured image stored in the frame storage unit 20 is divided into a plurality of blocks, and the pulse component is obtained from the pixel value of each block, but in the pulse detection device 100 according to the third embodiment, the captured image is divided into a plurality of areas, and the pulse component is obtained from the pixel value of each area. For example, in addition to narrow areas such as the forehead, right cheek, and left cheek of the face, there are wide areas including the eyes and nose, and multiple areas can be specified by allowing overlap. The number of pixels of each area may be different.
[0060] The pixel value acquisition unit 30 acquires pixel values for each area, and adds up a predetermined number of pixel values for each area to acquire spatially smoothed pixel values.
[0061] The time-series pixel array acquisition unit 40 acquires a time-series pixel array in which the pixel values of each area acquired by the pixel value acquisition unit 30 are arranged for a predetermined number of frames, and applies a low-pass filter to the time-series pixel array.
[0062] The pulse data array acquisition unit 50 acquires the pulse components by subtracting the average value of each element of the time series pixel array from the central element of the time series pixel array for each area, generates a pulse data array in which the pulse components for a predetermined period are arranged, and applies a low-pass filter to the pulse data array.
[0063] The pulse detection unit 60 calculates the autocorrelation of the pulse data sequence for each area, stores the autocorrelation graph for each area in the autocorrelation graph storage unit 70, and outputs the frequency of the pulse wave signal detected from the autocorrelation graph for each area as the pulse rate for each area.
[0064] The reliability calculation unit 80 calculates the cross correlation between the autocorrelation graph of the detected pulse wave for each area stored in the autocorrelation graph storage unit 70 and the reference graph of the reference pulse wave stored in the reference graph storage unit 90, and determines the waveform reliability based on the cross correlation value. The reliability calculation unit 80 also determines the amplitude reliability by comparing the amplitude of the waveform of the detected pulse wave signal for each area with predetermined upper and lower limit values. The reliability calculation unit 80 calculates the final pulse wave reliability of the detected pulse rate for each area based on the waveform reliability and amplitude reliability, and stores the pulse reliability for each area in the area reliability storage unit 92.
[0065] The pulse detection unit 60 may select the pulse with the highest reliability stored in the area reliability storage unit 92 from among the pulses detected from each area, and output it as the final pulse. The pulse detection unit 60 may obtain the final pulse by weighting and combining the pulses with reliability equal to or higher than a predetermined threshold value from among the pulses detected from each area based on the reliability.
[0066] 9(a) to 9(d) are diagrams for explaining a plurality of areas set in a captured image. As an example, a forehead 16a, a right cheek 16b, a left cheek 16c, and a wide area 16d including the eyes and nose of a user's face image 12 are set as a plurality of areas. Here, the wide area 16d partially overlaps with the forehead 16a, the right cheek 16b, and the left cheek 16c.
[0067] In FIG. 9(a), since the user's face is entirely exposed, the pulse rate can be detected with high reliability in the four areas 16a to 16d.
[0068] In Fig. 9(b), the forehead is covered by hair, so the pulse rate detected from the forehead 16a has low reliability. Also, the forehead part of the wide area 16d is blocked by hair, so it is difficult to detect the pulse component from the pixel values of the forehead part, and the reliability of the detected pulse rate is lower than that of the wide area 16d in Fig. 9(a).
[0069] In Fig. 9(c), the user is wearing glasses, so the right cheek 16b and the left cheek 16c are partially blocked by the glasses, and the reliability of the detected pulse rate is lower than that of the right cheek 16b and the left cheek 16c in Fig. 9(a). Also, it is difficult to detect the pulse component from the pixels around the eyes in the wide area 16d, and the reliability of the detected pulse rate is lower than that of the wide area 16d in Fig. 9(a).
[0070] In FIG. 9(d), the user is placing his / her hand over his / her mouth, and therefore parts of right cheek 16b, left cheek 16c, and wide area 16d are blocked by the hand, and therefore the reliability of the detected pulse rate is reduced compared to right cheek 16b, left cheek 16c, and wide area 16d in FIG. 9(a).
[0071] In addition to the above, the pulse wave signal may not be detected in some areas, or may be weak if it is detected, due to factors such as the wearing of obstructing objects such as hats, head-mounted displays, and masks, makeup, dark melanin pigments in the skin, the effects of reflected light and shadows, and facial movement.
[0072] The degree to which the reliability of the pulse rate drops varies depending on the size of the area where the pulse wave signal is weakened or not detected due to an obstruction, etc. By comparing the pulse rate and reliability detected in each area at each time and using the pulse rate from the area with the highest reliability at each time, it is possible to maintain a high level of accuracy in detecting the pulse at each time.
[0073] 10(a) and 10(b) are diagrams showing changes over time in pulse rate and reliability detected in each area.
[0074] 10(a) is a graph showing the change over time in the pulse rate detected in each of the areas of the forehead 16a, right cheek 16b, left cheek 16c, and wide area 16d. Depending on the time of day, part of the area may become obscured due to facial movement or may be blocked by an object such as a hand, weakening the pulse wave signal in that area and making the detected pulse rate unstable.
[0075] FIG. 10(b) is a graph showing the change over time in the reliability of the detected pulse wave in each of the forehead 16a, right cheek 16b, left cheek 16c, and wide area 16d areas. It can be seen that the reliability of certain areas drops drastically depending on the time of day. In time periods when the reliability of the detected pulse wave in each area falls below a predetermined threshold, the pulse rate detected from that area is not adopted. In time periods when the reliability of the detected pulse wave in each area is above a predetermined threshold, the pulse rate detected from that area is adopted and the final pulse rate is calculated by taking a weighted average by the reliability, or the pulse rate detected from the area with the highest reliability is used as the final pulse rate.
[0076] (Fourth embodiment) Fig. 11 is a configuration diagram of a pulse detection device 100 according to the fourth embodiment. The pulse detection device 100 according to the fourth embodiment further includes a pixel removal unit 32 and a brightness change compensation unit 34 in addition to the respective components of the pulse detection device 100 in Fig. 1. Description of the components and operations common to the pulse detection device 100 in Fig. 1 will be omitted.
[0077] The pixel value acquisition section 30 divides the captured image into a plurality of blocks, acquires the pixel values of each block, and supplies them to the pixel removal section 32 .
[0078] The pixel exclusion unit 32 excludes pixels that are not suitable for pulse wave detection from the pixel values of each block, thereby narrowing down the target pixels for each block.
[0079] Specifically, the pixel exclusion unit 32 narrows down the target pixels in each block by excluding pixels whose green value is equal to or less than a predetermined threshold when the color of the pixels in each block is expressed in RGB. Dark pixels have a small pulse wave signal and become noise. Therefore, dark pixels whose green value is equal to or less than a predetermined threshold are excluded. In the case of 8-bit pixels with a maximum value of 255, for example, pixels whose green value is equal to or less than 20 are excluded.
[0080] The pixel elimination unit 32 may narrow down the target pixels of each block by excluding pixels whose red value is equal to or exceeds a predetermined threshold value when the color of the pixels of each block is expressed in RGB. A pulse wave signal is not detected from pixels whose brightness is saturated. Since red saturates before green in bright reflected light from the skin, whether the brightness is saturated can be determined by the red value. Therefore, pixels whose red value is equal to or exceeds a predetermined threshold value are excluded. In the case of 8-bit pixels whose maximum value is 255, for example, pixels whose red value is equal to or exceeds 254 are excluded. Note that, for example, even if the green value is 150, if the red value is 255, the pixel is excluded.
[0081] It is preferable to exclude red pixels with saturated brightness from the target pixels since they are used for brightness variation compensation by the brightness variation compensation unit 34 described later.
[0082] The pixel elimination unit 32 may further exclude pixels that are farther away from the skin color than a predetermined threshold when the color of the pixels in each block is expressed in hue, thereby narrowing down the target pixels in each block. In the case where the red side is 0.0 and the purple side is 1.0 in hue, for example, pixels with a hue in the range of 0.3 to 0.85 are excluded.
[0083] The pixel exclusion section 32 supplies the target pixels of each block thus narrowed down to a brightness variation compensation section .
[0084] Pulse wave detection becomes difficult because brightness changes due to changes in shadows caused by facial movement and changes in lighting on the face. Therefore, it is necessary to compensate for the change in brightness. On the same skin, there is a positive correlation between changes in green and changes in red and blue. Therefore, the brightness is made constant by compensating the values of green pixels with strong pulse wave signals using the values of red or blue pixels with weak pulse wave signals.
[0085] The brightness variation compensation unit 34 compensates for the variation in brightness by dividing the average value of the green value by the average value of the red or blue value when the color of the target pixel in each block is expressed in RGB.
[0086] The brightness change compensation unit 34 may compensate for the change in brightness by dividing the average green value by the sum of the average red value and the average blue value when the color of the target pixel in each block is expressed in RGB.
[0087] The brightness variation compensation section 34 supplies the green value of the target pixel, for which the brightness variation has been compensated for in this manner, to the time-series pixel array acquisition section 40 .
[0088] In the above description, after the pixel exclusion unit 32 eliminates pixels, the brightness change compensation unit 34 compensates for brightness changes, but the pixel exclusion unit 32 may not compensate for brightness changes and may instead supply the target pixels narrowed down by eliminating pixels to the time-series pixel array acquisition unit 40. Also, without eliminating pixels by the pixel exclusion unit 32, the brightness change compensation unit 34 may compensate for brightness changes in the pixel values of each block supplied from the pixel value acquisition unit 30 and supply the resulting pixels to the time-series pixel array acquisition unit 40.
[0089] Fig. 12 is a diagram for explaining pixel elimination by the pixel elimination unit 32 of Fig. 11. The pixel elimination unit 32 eliminates pixels in the block 18a whose green value is equal to or less than a predetermined threshold value. Next, the pixel elimination unit 32 eliminates pixels in the block 18a whose red value is equal to or more than a predetermined threshold value. Finally, the pixel elimination unit 32 converts the color space of the pixels in the block 18a from RGB to HSV, which is composed of three components, hue, saturation, and brightness, and eliminates pixels whose hue falls outside a predetermined range assumed to be skin color. This narrows down the target pixels as shown in block 18b. The excluded pixels are shown here by hatching.
[0090] As described above, according to pulse detection device 100 of the present embodiment, minute fluctuations in the pulse can be accurately measured by determining the autocorrelation of the pulse wave signal.
[0091] The present invention has been described above based on the embodiments. The embodiments are merely examples, and it will be understood by those skilled in the art that various modifications are possible in the combination of each component and each treatment process, and that such modifications are also within the scope of the present invention. [Industrial Applicability]
[0092] This invention can be used in pulse detection technology. [Explanation of symbols]
[0093] 10 imaging unit, 20 frame storage unit, 30 pixel value acquisition unit, 32 pixel removal unit, 34 brightness change compensation unit, 40 time series pixel array acquisition unit, 50 pulse data array acquisition unit, 60 pulse detection unit, 70 autocorrelation graph storage unit, 80 reliability calculation unit, 90 Reference graph storage unit, 92 Area reliability storage unit, 100 Pulse detection device.
Claims
1. A storage unit that stores a predetermined number of frames of captured images of an area including the user's skin; a pixel value acquiring unit that divides the captured image into a plurality of blocks and acquires pixel values of each block; a pixel exclusion unit that excludes pixels whose green values are equal to or less than a predetermined threshold when the colors of the pixels in each block are expressed in RGB, thereby narrowing down the target pixels in each block; a pulse detection unit that detects a pulse from a temporal change in a target pixel value of each block, The pixel exclusion unit further excludes pixels whose red value when the color of the pixels in each block is expressed in RGB and is equal to or greater than a predetermined threshold value, thereby narrowing down the target pixels in each block.
2. The pulse detection device according to claim 1, characterized in that the pixel exclusion unit narrows down the target pixels of each block by further excluding pixels that are farther away from the skin color than a predetermined threshold when the color of the pixels in each block is expressed in hue.
3. a brightness variation compensation unit for compensating for brightness variation by dividing an average value of green by an average value of red or blue when the color of the target pixel of each block is expressed in RGB, 3. The pulse detection device according to claim 1, wherein the pulse detection unit detects the pulse from a temporal change in pixel value after compensation for brightness change in each block.
4. 4. The pulse detection device according to claim 3, wherein the brightness change compensation unit compensates for the brightness change by dividing the average green value by the sum of the average red value and the average blue value when the colors of the pixels in each block are expressed in RGB.
5. A storage unit that stores a predetermined number of frames of captured images of an area including the user's skin; a pixel value acquiring unit that divides the captured image into a plurality of blocks and acquires pixel values of each block; a brightness variation compensation unit that compensates for brightness variations by dividing an average value of green values by an average value of red or blue values when the colors of pixels in each block are expressed in RGB; and a pulse detection section for detecting a pulse from a temporal change in pixel value after compensation for brightness change in each block.
6. a pixel value acquiring step of dividing a predetermined number of captured images of an area including the user's skin into a plurality of blocks and acquiring pixel values of each block; a pixel excluding step of excluding pixels whose green value in the case where the color of the pixels in each block is expressed in RGB is equal to or less than a predetermined threshold value, thereby narrowing down the target pixels in each block; a pulse detection step of detecting a pulse from a temporal change in a target pixel value of each block; The pulse detection method is characterized in that the pixel elimination step further excludes pixels whose red value, when the color of the pixels in each block is expressed in RGB, is equal to or greater than a predetermined threshold, thereby narrowing down the target pixels in each block.
7. A pixel value acquisition function that divides a predetermined number of captured images of an area including the user's skin into a plurality of blocks and acquires pixel values of each block; A pixel exclusion function that narrows down the target pixels of each block by excluding pixels whose green value is equal to or less than a predetermined threshold when the color of the pixels of each block is expressed in RGB; a pulse detection function for detecting a pulse from a temporal change in the pixel value of each block; The pixel exclusion function is a program characterized by further excluding pixels whose red value, when the color of the pixels in each block is expressed in RGB, is equal to or greater than a predetermined threshold, thereby narrowing down the target pixels in each block.
Citation Information
Patent Citations
Method and apparatus for measuring vital sign
JP2005218507A
Systems and methods for video-based monitoring of vital signs
US20200268281A1
