[go: up one dir, main page]

CN114818833A - Heart rate measuring method, device, electronic equipment, storage medium and program product - Google Patents

Heart rate measuring method, device, electronic equipment, storage medium and program product Download PDF

Info

Publication number
CN114818833A
CN114818833A CN202210594335.5A CN202210594335A CN114818833A CN 114818833 A CN114818833 A CN 114818833A CN 202210594335 A CN202210594335 A CN 202210594335A CN 114818833 A CN114818833 A CN 114818833A
Authority
CN
China
Prior art keywords
heart rate
feature information
wavelet
rate value
target object
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202210594335.5A
Other languages
Chinese (zh)
Inventor
宋言
武帅
刘凯文
马堃
卢乐炜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Sensetime Technology Development Co Ltd
Original Assignee
Beijing Sensetime Technology Development 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 Beijing Sensetime Technology Development Co Ltd filed Critical Beijing Sensetime Technology Development Co Ltd
Priority to CN202210594335.5A priority Critical patent/CN114818833A/en
Publication of CN114818833A publication Critical patent/CN114818833A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2218/00Aspects of pattern recognition specially adapted for signal processing
    • G06F2218/02Preprocessing
    • G06F2218/04Denoising
    • G06F2218/06Denoising by applying a scale-space analysis, e.g. using wavelet analysis
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/045Combinations of networks
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2218/00Aspects of pattern recognition specially adapted for signal processing
    • G06F2218/08Feature extraction

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Artificial Intelligence (AREA)
  • General Engineering & Computer Science (AREA)
  • Biomedical Technology (AREA)
  • Molecular Biology (AREA)
  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Software Systems (AREA)
  • Biophysics (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Evolutionary Computation (AREA)
  • General Health & Medical Sciences (AREA)
  • Mathematical Physics (AREA)
  • Computing Systems (AREA)
  • Signal Processing (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Measuring Pulse, Heart Rate, Blood Pressure Or Blood Flow (AREA)

Abstract

The present disclosure relates to a heart rate measurement method, apparatus, electronic device, storage medium and program product. The method comprises the following steps: acquiring an image sequence corresponding to a target object, wherein the image sequence comprises a plurality of images; extracting a plurality of items of first characteristic information which are in one-to-one correspondence with the plurality of images respectively; processing the plurality of items of first characteristic information by adopting a time domain convolution network to obtain a plurality of items of second characteristic information which are in one-to-one correspondence with the plurality of images; and determining the heart rate value of the target object according to the plurality of items of second characteristic information.

Description

心率测量方法、装置、电子设备、存储介质和程序产品Heart rate measurement methods, devices, electronic equipment, storage media and program products

技术领域technical field

本公开涉及计算机视觉技术领域,尤其涉及一种心率测量方法、装置、电子设备、存储介质和程序产品。The present disclosure relates to the technical field of computer vision, and in particular, to a heart rate measurement method, apparatus, electronic device, storage medium and program product.

背景技术Background technique

心率是人体生理活动和健康状态评判的重要指标之一。目前,心率测量技术主要包括心电图(electrocardiogram,ECG)和穿戴式的光电容积图(photoplethysmography,PPG)。这两种心率测量技术都需要使用接触式的方法进行信号测量,使用场景较为局限,尤其是在对婴儿的日常健康状态检测时更为困难。Heart rate is one of the important indicators for the evaluation of human physiological activity and health status. At present, heart rate measurement technologies mainly include electrocardiogram (electrocardiogram, ECG) and wearable photoplethysmography (PPG). Both of these heart rate measurement technologies need to use contact methods for signal measurement, and the usage scenarios are limited, especially when it is more difficult to detect the daily health status of infants.

发明内容SUMMARY OF THE INVENTION

本公开提供了一种心率测量技术方案。The present disclosure provides a technical solution for measuring heart rate.

根据本公开的一方面,提供了一种心率测量方法,包括:According to an aspect of the present disclosure, there is provided a heart rate measurement method, comprising:

获取目标对象对应的图像序列,其中,所述图像序列包括多个图像;acquiring an image sequence corresponding to the target object, wherein the image sequence includes multiple images;

分别提取与所述多个图像一一对应的多项第一特征信息;respectively extracting multiple items of first feature information corresponding to the multiple images one-to-one;

采用时域卷积网络对所述多项第一特征信息进行处理,得到与所述多个图像一一对应的多项第二特征信息;Using a temporal convolution network to process the multiple items of first feature information to obtain multiple items of second feature information corresponding to the multiple images one-to-one;

根据所述多项第二特征信息,确定所述目标对象的心率值。The heart rate value of the target object is determined according to the plurality of pieces of second feature information.

通过获取目标对象对应的图像序列,其中,所述图像序列包括多个图像,分别提取与所述多个图像一一对应的多项第一特征信息,采用时域卷积网络对所述多项第一特征信息进行处理,得到与所述多个图像一一对应的多项第二特征信息,并根据所述多项第二特征信息,确定所述目标对象的心率值,由此采用轻量级的时域卷积网络替代传统的时序网络结构(例如LSTM),通过轻量级的时域卷积网络对时序关系进行建模以提取时序信息,从而能够降低模型部署对算子的依赖,降低模型部署的硬件门槛,增强模型对硬件的适配性,即,能够部署在较低成本的、所支持的神经网络算子较少的、计算性能较差的硬件上。By acquiring an image sequence corresponding to the target object, wherein the image sequence includes multiple images, multiple items of first feature information corresponding to the multiple images are extracted respectively, and a time domain convolution network is used to analyze the multiple items. The first feature information is processed to obtain multiple pieces of second feature information corresponding to the multiple images one-to-one, and the heart rate value of the target object is determined according to the multiple pieces of second feature information. A high-level time-domain convolutional network replaces the traditional time-series network structure (such as LSTM), and a lightweight time-domain convolutional network is used to model the time-series relationship to extract time-series information, which can reduce the dependence of model deployment on operators. The hardware threshold for model deployment is lowered, and the adaptability of the model to hardware is enhanced, that is, it can be deployed on hardware with lower cost, fewer neural network operators supported, and poor computing performance.

在一种可能的实现方式中,所述根据所述多项第二特征信息,确定所述目标对象的心率值,包括:In a possible implementation manner, the determining the heart rate value of the target object according to the multiple pieces of second feature information includes:

根据所述多项第二特征信息,预测所述图像序列对应的远程光电容积描记rPPG信号;predicting a remote photoplethysmography rPPG signal corresponding to the image sequence according to the multiple pieces of second feature information;

根据所述rPPG信号,确定所述目标对象的心率值。According to the rPPG signal, the heart rate value of the target object is determined.

在该实现方式中,通过根据所述多项第二特征信息,预测所述图像序列对应的远程光电容积描记rPPG信号,并根据所述rPPG信号,确定所述目标对象的心率值,由此能够更准确地确定目标对象的心率值。In this implementation, by predicting the remote photoplethysmography rPPG signal corresponding to the image sequence according to the multiple pieces of second feature information, and determining the heart rate value of the target object according to the rPPG signal, it is possible to Determine the target subject's heart rate value more accurately.

在一种可能的实现方式中,所述根据所述多项第二特征信息,预测所述图像序列对应的远程光电容积描记rPPG信号,包括:In a possible implementation manner, the predicting the remote photoplethysmography rPPG signal corresponding to the image sequence according to the multiple pieces of second feature information includes:

对所述多项第二特征信息进行序数回归,得到所述图像序列对应的远程光电容积描记rPPG信号。Ordinal regression is performed on the multiple items of second feature information to obtain a remote photoplethysmography rPPG signal corresponding to the image sequence.

在该实现方式中,通过对所述多项第二特征信息进行序数回归,得到所述图像序列对应的远程光电容积描记rPPG信号,由此采用更适于预测连续数值的序数回归方式,能够得到更准确的rPPG信号。In this implementation, the remote photoplethysmography rPPG signal corresponding to the image sequence is obtained by performing ordinal regression on the multiple pieces of second feature information, and the ordinal regression method that is more suitable for predicting continuous values can be obtained. More accurate rPPG signal.

在一种可能的实现方式中,所述根据所述rPPG信号,确定所述目标对象的心率值,包括:In a possible implementation manner, the determining the heart rate value of the target object according to the rPPG signal includes:

对所述rPPG信号进行小波分析,确定所述目标对象的心率值。Wavelet analysis is performed on the rPPG signal to determine the heart rate value of the target object.

在该实现方式中,通过对所述rPPG信号进行小波分析,确定所述目标对象的心率值,由此对于信噪比较低的rPPG信号的计算兼容性较好,即,即使在rPPG信号的信噪比较低的情况下,也能确定出较准确的心率值。In this implementation, the heart rate value of the target object is determined by performing wavelet analysis on the rPPG signal, so that the calculation compatibility for the rPPG signal with a low signal-to-noise ratio is better, that is, even in the rPPG signal In the case of low signal-to-noise ratio, a more accurate heart rate value can also be determined.

在一种可能的实现方式中,所述对所述rPPG信号进行小波分析,确定所述目标对象的心率值,包括:In a possible implementation manner, the performing wavelet analysis on the rPPG signal to determine the heart rate value of the target object includes:

确定小波的子波的至少两种宽度;determining at least two widths of the wavelets of the wavelet;

根据所述至少两种宽度,对所述rPPG信号进行小波变换,得到与所述至少两种宽度一一对应的至少两项小波响应;performing wavelet transformation on the rPPG signal according to the at least two widths to obtain at least two wavelet responses corresponding to the at least two widths one-to-one;

确定所述至少两项小波响应对应的响应强度和心率值;determining the response intensity and the heart rate value corresponding to the at least two wavelet responses;

根据所述至少两项小波响应对应的响应强度和心率值,确定所述目标对象的心率值。The heart rate value of the target object is determined according to the response intensity and the heart rate value corresponding to the at least two wavelet responses.

由于rPPG信号的信噪比通常较低,且心率随时间的变化较大,因此,在该实现方式中,通过确定小波的子波的至少两种宽度,根据所述至少两种宽度,对所述rPPG信号进行小波变换,得到与所述至少两种宽度一一对应的至少两项小波响应,确定所述至少两项小波响应对应的响应强度和心率值,并根据所述至少两项小波响应对应的响应强度和心率值,确定所述目标对象的心率值,由此有助于更准确地确定目标对象的心率值。Since the signal-to-noise ratio of the rPPG signal is usually low, and the heart rate varies greatly with time, in this implementation manner, by determining at least two widths of the wavelet of the wavelet, according to the at least two widths, the The rPPG signal is subjected to wavelet transformation to obtain at least two wavelet responses corresponding to the at least two widths one-to-one, and the response intensity and heart rate value corresponding to the at least two wavelet responses are determined, and according to the at least two wavelet responses The corresponding response intensity and heart rate value are used to determine the heart rate value of the target object, thereby helping to more accurately determine the heart rate value of the target object.

在一种可能的实现方式中,所述确定小波的子波的至少两种宽度,包括:In a possible implementation, the determining at least two widths of the wavelet of the wavelet include:

根据所述图像序列对应的帧率、最大预设心率值和最小预设心率值,确定小波的子波的至少两种宽度。At least two widths of the wavelet of the wavelet are determined according to the frame rate, the maximum preset heart rate value and the minimum preset heart rate value corresponding to the image sequence.

在该实现方式中,通过根据所述图像序列对应的帧率、最大预设心率值和最小预设心率值,确定小波的子波的至少两种宽度,由此有助于确定出恰当的宽度,从而能够提高心率确定的准确性。In this implementation manner, at least two widths of wavelets of the wavelet are determined according to the frame rate, the maximum preset heart rate value and the minimum preset heart rate value corresponding to the image sequence, thereby helping to determine an appropriate width , thereby improving the accuracy of heart rate determination.

在一种可能的实现方式中,所述根据所述至少两项小波响应对应的响应强度和心率值,确定所述目标对象的心率值,包括:In a possible implementation manner, the determining the heart rate value of the target object according to the response intensity and the heart rate value corresponding to the at least two wavelet responses includes:

将心率值属于预设心率值范围的小波响应中、响应强度最大的小波响应对应的心率值,确定为所述目标对象的心率值。The heart rate value corresponding to the wavelet response with the largest response intensity among the wavelet responses whose heart rate value belongs to the preset heart rate value range is determined as the heart rate value of the target object.

由于在信噪比较低的情况下,噪声的响应强度可能大于心率的响应强度,因此,在该实现方式中,通过将心率值属于预设心率值范围的小波响应中、响应强度最大的小波响应对应的心率值,确定为所述目标对象的心率值,由此能够提高心率测量的鲁棒性和准确性。Since the response intensity of the noise may be greater than the response intensity of the heart rate in the case of a low SNR In response to the corresponding heart rate value, the heart rate value of the target object is determined, thereby improving the robustness and accuracy of the heart rate measurement.

在一种可能的实现方式中,In one possible implementation,

所述分别提取与所述多个图像一一对应的多项第一特征信息,包括:依次提取所述图像序列中的图像对应的第一特征信息,并将所述第一特征信息缓存在预设长度的先进先出队列中;The extracting, respectively, multiple items of first feature information corresponding to the multiple images includes: sequentially extracting the first feature information corresponding to the images in the image sequence, and buffering the first feature information in a pre-set Set the length in the first-in-first-out queue;

所述采用时域卷积网络对所述多项第一特征信息进行处理,得到与所述多个图像一一对应的多项第二特征信息,包括:采用时域卷积网络对所述先进先出队列中的多项第一特征信息进行处理,得到与所述多项第一特征信息一一对应的多项第二特征信息。The use of a time-domain convolution network to process the multiple items of first feature information to obtain multiple items of second feature information corresponding to the multiple images one-to-one includes: using a time-domain convolution network for the advanced feature information. The multiple items of first feature information in the first-out queue are processed to obtain multiple items of second feature information corresponding to the multiple items of first feature information one-to-one.

在该实现方式中,通过依次提取所述图像序列中的图像对应的第一特征信息,将所述第一特征信息缓存在预设长度的先进先出队列中,并采用时域卷积网络对所述先进先出队列中的多项第一特征信息进行处理,得到与所述多项第一特征信息一一对应的多项第二特征信息,由此能够减少冗余计算,节省硬件设备的算力。In this implementation, by sequentially extracting the first feature information corresponding to the images in the image sequence, the first feature information is cached in a FIFO queue of preset length, and a time domain convolutional network is used to The multiple items of first feature information in the FIFO queue are processed to obtain multiple items of second feature information that correspond one-to-one with the multiple items of first feature information, thereby reducing redundant computation and saving hardware equipment costs. computing power.

根据本公开的一方面,提供了一种心率测量方法,包括:According to an aspect of the present disclosure, there is provided a heart rate measurement method, comprising:

获取目标对象对应的图像序列,其中,所述图像序列包括多个图像;acquiring an image sequence corresponding to the target object, wherein the image sequence includes multiple images;

分别提取与所述多个图像一一对应的多项第一特征信息;respectively extracting multiple items of first feature information corresponding to the multiple images one-to-one;

根据所述多项第一特征信息,预测所述图像序列对应的远程光电容积描记rPPG信号;predicting a remote photoplethysmography rPPG signal corresponding to the image sequence according to the multiple pieces of first feature information;

对所述rPPG信号进行小波分析,确定所述目标对象的心率值。Wavelet analysis is performed on the rPPG signal to determine the heart rate value of the target object.

在本公开实施例中,通过获取目标对象对应的图像序列,其中,所述图像序列包括多个图像,分别提取与所述多个图像一一对应的多项第一特征信息,根据所述多项第一特征信息,预测所述图像序列对应的rPPG信号,并对所述rPPG信号进行小波分析,确定所述目标对象的心率值,由此能够提高对于信噪比较低的rPPG信号的计算兼容性,即,即使在rPPG信号的信噪比较低的情况下,也能确定出较准确的心率值。In this embodiment of the present disclosure, by acquiring an image sequence corresponding to a target object, wherein the image sequence includes multiple images, multiple items of first feature information corresponding to the multiple images are extracted respectively, and according to the multiple images Items of first feature information, predict the rPPG signal corresponding to the image sequence, and perform wavelet analysis on the rPPG signal to determine the heart rate value of the target object, which can improve the calculation of the rPPG signal with low signal-to-noise ratio. Compatibility, that is, more accurate heart rate values can be determined even when the signal-to-noise ratio of the rPPG signal is low.

在一种可能的实现方式中,所述对所述rPPG信号进行小波分析,确定所述目标对象的心率值,包括:In a possible implementation manner, the performing wavelet analysis on the rPPG signal to determine the heart rate value of the target object includes:

确定小波的子波的至少两种宽度;determining at least two widths of the wavelets of the wavelet;

根据所述至少两种宽度,对所述rPPG信号进行小波变换,得到与所述至少两种宽度一一对应的至少两项小波响应;performing wavelet transformation on the rPPG signal according to the at least two widths to obtain at least two wavelet responses corresponding to the at least two widths one-to-one;

确定所述至少两项小波响应对应的响应强度和心率值;determining the response intensity and the heart rate value corresponding to the at least two wavelet responses;

根据所述至少两项小波响应对应的响应强度和心率值,确定所述目标对象的心率值。The heart rate value of the target object is determined according to the response intensity and the heart rate value corresponding to the at least two wavelet responses.

由于rPPG信号的信噪比通常较低,且心率随时间的变化较大,因此,在该实现方式中,通过确定小波的子波的至少两种宽度,根据所述至少两种宽度,对所述rPPG信号进行小波变换,得到与所述至少两种宽度一一对应的至少两项小波响应,确定所述至少两项小波响应对应的响应强度和心率值,并根据所述至少两项小波响应对应的响应强度和心率值,确定所述目标对象的心率值,由此有助于更准确地确定目标对象的心率值。Since the signal-to-noise ratio of the rPPG signal is usually low, and the heart rate varies greatly with time, in this implementation manner, by determining at least two widths of the wavelet of the wavelet, according to the at least two widths, the The rPPG signal is subjected to wavelet transformation to obtain at least two wavelet responses corresponding to the at least two widths one-to-one, and the response intensity and heart rate value corresponding to the at least two wavelet responses are determined, and according to the at least two wavelet responses The corresponding response intensity and heart rate value are used to determine the heart rate value of the target object, thereby helping to more accurately determine the heart rate value of the target object.

在一种可能的实现方式中,所述确定小波的子波的至少两种宽度,包括:In a possible implementation, the determining at least two widths of the wavelet of the wavelet include:

根据所述图像序列对应的帧率、最大预设心率值和最小预设心率值,确定小波的子波的至少两种宽度。At least two widths of the wavelet of the wavelet are determined according to the frame rate, the maximum preset heart rate value and the minimum preset heart rate value corresponding to the image sequence.

在该实现方式中,通过根据所述图像序列对应的帧率、最大预设心率值和最小预设心率值,确定小波的子波的至少两种宽度,由此有助于确定出恰当的宽度,从而能够提高心率确定的准确性。In this implementation manner, at least two widths of wavelets of the wavelet are determined according to the frame rate, the maximum preset heart rate value and the minimum preset heart rate value corresponding to the image sequence, thereby helping to determine an appropriate width , thereby improving the accuracy of heart rate determination.

在一种可能的实现方式中,所述根据所述至少两项小波响应对应的响应强度和心率值,确定所述目标对象的心率值,包括:In a possible implementation manner, the determining the heart rate value of the target object according to the response intensity and the heart rate value corresponding to the at least two wavelet responses includes:

将心率值属于预设心率值范围的小波响应中、响应强度最大的小波响应对应的心率值,确定为所述目标对象的心率值。The heart rate value corresponding to the wavelet response with the largest response intensity among the wavelet responses whose heart rate value belongs to the preset heart rate value range is determined as the heart rate value of the target object.

由于在信噪比较低的情况下,噪声的响应强度可能大于心率的响应强度,因此,在该实现方式中,通过将心率值属于预设心率值范围的小波响应中、响应强度最大的小波响应对应的心率值,确定为所述目标对象的心率值,由此能够提高心率测量的鲁棒性和准确性。Since the response intensity of the noise may be greater than the response intensity of the heart rate in the case of a low SNR In response to the corresponding heart rate value, the heart rate value of the target object is determined, thereby improving the robustness and accuracy of the heart rate measurement.

在一种可能的实现方式中,所述根据所述多项第一特征信息,预测所述图像序列对应的远程光电容积描记rPPG信号,包括:In a possible implementation manner, the predicting the remote photoplethysmography rPPG signal corresponding to the image sequence according to the multiple pieces of first feature information includes:

对所述多项第一特征信息进行处理,得到与所述多个图像一一对应的多项第二特征信息;processing the multiple items of first feature information to obtain multiple items of second feature information corresponding to the multiple images one-to-one;

根据所述多项第二特征信息,预测所述图像序列对应的rPPG信号。According to the multiple pieces of second feature information, the rPPG signal corresponding to the image sequence is predicted.

在该实现方式中,通过对所述多项第一特征信息进行处理,得到与所述多个图像一一对应的多项第二特征信息,并根据所述多项第二特征信息,预测所述图像序列对应的rPPG信号,由此能够得到更准确的rPPG信号。In this implementation manner, by processing the multiple items of first feature information, multiple items of second feature information corresponding to the multiple images are obtained, and according to the multiple items of second feature information, the multiple items of second feature information are predicted. The rPPG signal corresponding to the image sequence can be obtained, so that a more accurate rPPG signal can be obtained.

在一种可能的实现方式中,所述根据所述多项第二特征信息,预测所述图像序列对应的rPPG信号,包括:In a possible implementation manner, the predicting the rPPG signal corresponding to the image sequence according to the multiple pieces of second feature information includes:

对所述多项第二特征信息进行序数回归,得到所述图像序列对应的远程光电容积描记rPPG信号。Ordinal regression is performed on the multiple items of second feature information to obtain a remote photoplethysmography rPPG signal corresponding to the image sequence.

在该实现方式中,通过对所述多项第二特征信息进行序数回归,得到所述图像序列对应的远程光电容积描记rPPG信号,由此采用更适于预测连续数值的序数回归方式,能够得到更准确的rPPG信号。In this implementation, the remote photoplethysmography rPPG signal corresponding to the image sequence is obtained by performing ordinal regression on the multiple pieces of second feature information, and the ordinal regression method that is more suitable for predicting continuous values can be obtained. More accurate rPPG signal.

根据本公开的一方面,提供了一种心率测量装置,包括:According to an aspect of the present disclosure, there is provided a heart rate measurement device, comprising:

获取模块,用于获取目标对象对应的图像序列,其中,所述图像序列包括多个图像;an acquisition module, configured to acquire an image sequence corresponding to the target object, wherein the image sequence includes multiple images;

提取模块,用于分别提取与所述多个图像一一对应的多项第一特征信息;an extraction module, configured to extract a plurality of pieces of first feature information corresponding to the plurality of images one-to-one;

处理模块,用于采用时域卷积网络对所述多项第一特征信息进行处理,得到与所述多个图像一一对应的多项第二特征信息;a processing module, configured to process the multiple items of first feature information by using a time-domain convolutional network to obtain multiple items of second feature information corresponding to the multiple images one-to-one;

第一确定模块,用于根据所述多项第二特征信息,确定所述目标对象的心率值。The first determination module is configured to determine the heart rate value of the target object according to the multiple pieces of second characteristic information.

在一种可能的实现方式中,所述第一确定模块用于:In a possible implementation manner, the first determining module is used for:

根据所述多项第二特征信息,预测所述图像序列对应的远程光电容积描记rPPG信号;predicting a remote photoplethysmography rPPG signal corresponding to the image sequence according to the multiple pieces of second feature information;

根据所述rPPG信号,确定所述目标对象的心率值。According to the rPPG signal, the heart rate value of the target object is determined.

在一种可能的实现方式中,所述第一确定模块用于:In a possible implementation manner, the first determining module is used for:

对所述多项第二特征信息进行序数回归,得到所述图像序列对应的远程光电容积描记rPPG信号。Ordinal regression is performed on the multiple items of second feature information to obtain a remote photoplethysmography rPPG signal corresponding to the image sequence.

在一种可能的实现方式中,所述第一确定模块用于:In a possible implementation manner, the first determining module is used for:

对所述rPPG信号进行小波分析,确定所述目标对象的心率值。Wavelet analysis is performed on the rPPG signal to determine the heart rate value of the target object.

在一种可能的实现方式中,所述第一确定模块用于:In a possible implementation manner, the first determining module is used for:

确定小波的子波的至少两种宽度;determining at least two widths of the wavelets of the wavelet;

根据所述至少两种宽度,对所述rPPG信号进行小波变换,得到与所述至少两种宽度一一对应的至少两项小波响应;performing wavelet transformation on the rPPG signal according to the at least two widths to obtain at least two wavelet responses corresponding to the at least two widths one-to-one;

确定所述至少两项小波响应对应的响应强度和心率值;determining the response intensity and the heart rate value corresponding to the at least two wavelet responses;

根据所述至少两项小波响应对应的响应强度和心率值,确定所述目标对象的心率值。The heart rate value of the target object is determined according to the response intensity and the heart rate value corresponding to the at least two wavelet responses.

在一种可能的实现方式中,所述第一确定模块用于:In a possible implementation manner, the first determining module is used for:

根据所述图像序列对应的帧率、最大预设心率值和最小预设心率值,确定小波的子波的至少两种宽度。At least two widths of the wavelet of the wavelet are determined according to the frame rate, the maximum preset heart rate value and the minimum preset heart rate value corresponding to the image sequence.

在一种可能的实现方式中,所述第一确定模块用于:In a possible implementation manner, the first determining module is used for:

将心率值属于预设心率值范围的小波响应中、响应强度最大的小波响应对应的心率值,确定为所述目标对象的心率值。The heart rate value corresponding to the wavelet response with the largest response intensity among the wavelet responses whose heart rate value belongs to the preset heart rate value range is determined as the heart rate value of the target object.

在一种可能的实现方式中,In one possible implementation,

所述提取模块用于:依次提取所述图像序列中的图像对应的第一特征信息,并将所述第一特征信息缓存在预设长度的先进先出队列中;The extraction module is used for: sequentially extracting the first feature information corresponding to the images in the image sequence, and buffering the first feature information in a FIFO queue of preset length;

所述处理模块用于:采用时域卷积网络对所述先进先出队列中的多项第一特征信息进行处理,得到与所述多项第一特征信息一一对应的多项第二特征信息。The processing module is used for: using a time-domain convolutional network to process multiple items of first feature information in the first-in, first-out queue to obtain multiple items of second feature information one-to-one corresponding to the multiple items of first feature information information.

根据本公开的一方面,提供了一种心率测量装置,包括:According to an aspect of the present disclosure, there is provided a heart rate measurement device, comprising:

获取模块,用于获取目标对象对应的图像序列,其中,所述图像序列包括多个图像;an acquisition module, configured to acquire an image sequence corresponding to the target object, wherein the image sequence includes multiple images;

提取模块,用于分别提取与所述多个图像一一对应的多项第一特征信息;an extraction module, configured to extract a plurality of pieces of first feature information corresponding to the plurality of images one-to-one;

预测模块,用于根据所述多项第一特征信息,预测所述图像序列对应的远程光电容积描记rPPG信号;a prediction module, configured to predict the remote photoplethysmography rPPG signal corresponding to the image sequence according to the multiple pieces of first feature information;

第二确定模块,用于对所述rPPG信号进行小波分析,确定所述目标对象的心率值。The second determination module is configured to perform wavelet analysis on the rPPG signal to determine the heart rate value of the target object.

在一种可能的实现方式中,所述第二确定模块用于:In a possible implementation manner, the second determining module is used for:

确定小波的子波的至少两种宽度;determining at least two widths of the wavelets of the wavelet;

根据所述至少两种宽度,对所述rPPG信号进行小波变换,得到与所述至少两种宽度一一对应的至少两项小波响应;performing wavelet transformation on the rPPG signal according to the at least two widths to obtain at least two wavelet responses corresponding to the at least two widths one-to-one;

确定所述至少两项小波响应对应的响应强度和心率值;determining the response intensity and the heart rate value corresponding to the at least two wavelet responses;

根据所述至少两项小波响应对应的响应强度和心率值,确定所述目标对象的心率值。The heart rate value of the target object is determined according to the response intensity and the heart rate value corresponding to the at least two wavelet responses.

在一种可能的实现方式中,所述第二确定模块用于:In a possible implementation manner, the second determining module is used for:

根据所述图像序列对应的帧率、最大预设心率值和最小预设心率值,确定小波的子波的至少两种宽度。At least two widths of the wavelet of the wavelet are determined according to the frame rate, the maximum preset heart rate value and the minimum preset heart rate value corresponding to the image sequence.

在一种可能的实现方式中,所述第二确定模块用于:In a possible implementation manner, the second determining module is used for:

将心率值属于预设心率值范围的小波响应中、响应强度最大的小波响应对应的心率值,确定为所述目标对象的心率值。The heart rate value corresponding to the wavelet response with the largest response intensity among the wavelet responses whose heart rate value belongs to the preset heart rate value range is determined as the heart rate value of the target object.

在一种可能的实现方式中,所述预测模块用于:In a possible implementation, the prediction module is used to:

对所述多项第一特征信息进行处理,得到与所述多个图像一一对应的多项第二特征信息;processing the multiple items of first feature information to obtain multiple items of second feature information corresponding to the multiple images one-to-one;

根据所述多项第二特征信息,预测所述图像序列对应的rPPG信号。According to the multiple pieces of second feature information, the rPPG signal corresponding to the image sequence is predicted.

在一种可能的实现方式中,所述预测模块用于:In a possible implementation, the prediction module is used to:

对所述多项第二特征信息进行序数回归,得到所述图像序列对应的远程光电容积描记rPPG信号。Ordinal regression is performed on the multiple items of second feature information to obtain a remote photoplethysmography rPPG signal corresponding to the image sequence.

根据本公开的一方面,提供了一种电子设备,包括:一个或多个处理器;用于存储可执行指令的存储器;其中,所述一个或多个处理器被配置为调用所述存储器存储的可执行指令,以执行上述方法。According to an aspect of the present disclosure, there is provided an electronic device comprising: one or more processors; a memory for storing executable instructions; wherein the one or more processors are configured to invoke the memory storage executable instructions to perform the above method.

根据本公开的一方面,提供了一种计算机可读存储介质,其上存储有计算机程序指令,所述计算机程序指令被处理器执行时实现上述方法。According to an aspect of the present disclosure, there is provided a computer-readable storage medium having computer program instructions stored thereon, the computer program instructions implementing the above method when executed by a processor.

根据本公开的一方面,提供了一种计算机程序产品,包括计算机可读代码,或者承载有计算机可读代码的非易失性计算机可读存储介质,当所述计算机可读代码在电子设备中运行时,所述电子设备中的处理器执行上述方法。According to an aspect of the present disclosure, there is provided a computer program product comprising computer-readable code, or a non-volatile computer-readable storage medium carrying the computer-readable code, when the computer-readable code is stored in an electronic device When running, the processor in the electronic device executes the above method.

在本公开实施例中,通过获取目标对象对应的图像序列,其中,所述图像序列包括多个图像,分别提取与所述多个图像一一对应的多项第一特征信息,采用时域卷积网络对所述多项第一特征信息进行处理,得到与所述多个图像一一对应的多项第二特征信息,并根据所述多项第二特征信息,确定所述目标对象的心率值,由此采用轻量级的时域卷积网络替代传统的时序网络结构(例如LSTM),通过轻量级的时域卷积网络对时序关系进行建模以提取时序信息,从而能够降低模型部署对算子的依赖,降低模型部署的硬件门槛,增强模型对硬件的适配性,即,能够部署在较低成本的、所支持的神经网络算子较少的、计算性能较差的硬件上。In the embodiment of the present disclosure, by acquiring an image sequence corresponding to a target object, wherein the image sequence includes multiple images, a plurality of pieces of first feature information corresponding to the multiple images are extracted respectively, and a temporal volume The product network processes the multiple items of first feature information to obtain multiple items of second feature information corresponding to the multiple images one-to-one, and determines the heart rate of the target object according to the multiple items of second feature information Therefore, a lightweight time-domain convolutional network is used to replace the traditional time-series network structure (such as LSTM), and the time-series relationship is modeled through a lightweight time-domain convolutional network to extract time-series information, which can reduce the model Deployment relies on operators, lowers the hardware threshold for model deployment, and enhances the adaptability of models to hardware, that is, it can be deployed on lower-cost hardware that supports fewer neural network operators and has poor computing performance superior.

应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,而非限制本公开。It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.

根据下面参考附图对示例性实施例的详细说明,本公开的其它特征及方面将变得清楚。Other features and aspects of the present disclosure will become apparent from the following detailed description of exemplary embodiments with reference to the accompanying drawings.

附图说明Description of drawings

此处的附图被并入说明书中并构成本说明书的一部分,这些附图示出了符合本公开的实施例,并与说明书一起用于说明本公开的技术方案。The accompanying drawings, which are incorporated into and constitute a part of this specification, illustrate embodiments consistent with the present disclosure, and together with the description, serve to explain the technical solutions of the present disclosure.

图1示出本公开实施例提供的心率测量方法的一流程图。FIG. 1 shows a flowchart of a heart rate measurement method provided by an embodiment of the present disclosure.

图2示出本公开实施例提供的心率测量方法中通过单帧编码模块提取第一特征信息的示意图。FIG. 2 shows a schematic diagram of extracting first feature information by a single-frame encoding module in a heart rate measurement method provided by an embodiment of the present disclosure.

图3示出本公开实施例提供的心率测量方法中时域卷积网络模块的输入和输出的示意图。FIG. 3 shows a schematic diagram of the input and output of a time-domain convolutional network module in the heart rate measurement method provided by an embodiment of the present disclosure.

图4示出本公开实施例提供的心率测量方法中对第二特征信息进行序数回归的示意图。FIG. 4 shows a schematic diagram of performing ordinal regression on the second feature information in the heart rate measurement method provided by an embodiment of the present disclosure.

图5示出本公开实施例提供的心率测量方法中的Ricker小波的示意图。FIG. 5 shows a schematic diagram of a Ricker wavelet in the heart rate measurement method provided by an embodiment of the present disclosure.

图6示出本公开实施例提供的心率测量方法中的小波响应谱的示意图。FIG. 6 shows a schematic diagram of a wavelet response spectrum in a heart rate measurement method provided by an embodiment of the present disclosure.

图7示出本公开实施例提供的心率测量方法中的rPPG信号对应的曲线和小波响应对应的时域响应曲线的示意图。FIG. 7 shows a schematic diagram of a curve corresponding to an rPPG signal and a time domain response curve corresponding to a wavelet response in the heart rate measurement method provided by an embodiment of the present disclosure.

图8示出本公开实施例提供的心率测量方法中的心率测量模型的示意图。FIG. 8 shows a schematic diagram of a heart rate measurement model in a heart rate measurement method provided by an embodiment of the present disclosure.

图9示出本公开实施例提供的心率测量方法的另一流程图。FIG. 9 shows another flowchart of a heart rate measurement method provided by an embodiment of the present disclosure.

图10示出本公开实施例提供的心率测量装置的一框图。FIG. 10 shows a block diagram of a heart rate measurement apparatus provided by an embodiment of the present disclosure.

图11示出本公开实施例提供的心率测量装置的另一框图。FIG. 11 shows another block diagram of the heart rate measurement device provided by the embodiment of the present disclosure.

图12示出本公开实施例提供的电子设备1900的框图。FIG. 12 shows a block diagram of an electronic device 1900 provided by an embodiment of the present disclosure.

具体实施方式Detailed ways

以下将参考附图详细说明本公开的各种示例性实施例、特征和方面。附图中相同的附图标记表示功能相同或相似的元件。尽管在附图中示出了实施例的各种方面,但是除非特别指出,不必按比例绘制附图。Various exemplary embodiments, features and aspects of the present disclosure will be described in detail below with reference to the accompanying drawings. The same reference numbers in the figures denote elements that have the same or similar functions. While various aspects of the embodiments are shown in the drawings, the drawings are not necessarily drawn to scale unless otherwise indicated.

在这里专用的词“示例性”意为“用作例子、实施例或说明性”。这里作为“示例性”所说明的任何实施例不必解释为优于或好于其它实施例。The word "exemplary" is used exclusively herein to mean "serving as an example, embodiment, or illustration." Any embodiment described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments.

本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中术语“至少一种”表示多种中的任意一种或多种中的至少两种的任意组合,例如,包括A、B、C中的至少一种,可以表示包括从A、B和C构成的集合中选择的任意一个或多个元素。The term "and/or" in this article is only an association relationship to describe the associated objects, indicating that there can be three kinds of relationships, for example, A and/or B, it can mean that A exists alone, A and B exist at the same time, and A and B exist independently B these three cases. In addition, the term "at least one" herein refers to any combination of any one of the plurality or at least two of the plurality, for example, including at least one of A, B, and C, and may mean including from A, B, and C. Any one or more elements selected from the set of B and C.

另外,为了更好地说明本公开,在下文的具体实施方式中给出了众多的具体细节。本领域技术人员应当理解,没有某些具体细节,本公开同样可以实施。在一些实例中,对于本领域技术人员熟知的方法、手段、元件和电路未作详细描述,以便于凸显本公开的主旨。In addition, in order to better illustrate the present disclosure, numerous specific details are set forth in the following detailed description. It will be understood by those skilled in the art that the present disclosure may be practiced without certain specific details. In some instances, methods, means, components and circuits well known to those skilled in the art have not been described in detail so as not to obscure the subject matter of the present disclosure.

相关技术中,提出了基于RGB(Red–Green–Blue,红-绿-蓝)视频流的非接触式的心率测量方案。相关技术中,利用人脸血红细胞含量变换对自然光的吸收率变化的时序信息提取rPPG(remote photoplethysmography,远程光电容积描记)信号,进而计算出心率。现有方案对时序信息的建模通常使用LSTM(Long Short Term Memory,长短期记忆)网络或者3D-CNN(3Dimensions–Convolutional Neural Network,三维卷积神经网络),对部署平台的性能要求较高,导致在很多小型的硬件设备上无法部署。In the related art, a non-contact heart rate measurement scheme based on RGB (Red-Green-Blue, red-green-blue) video stream is proposed. In the related art, the rPPG (remote photoplethysmography, remote photoplethysmography) signal is extracted by using the time series information of the change of the absorption rate of natural light by the content of red blood cells of the face, and then the heart rate is calculated. Existing solutions usually use LSTM (Long Short Term Memory) network or 3D-CNN (3Dimensions-Convolutional Neural Network, three-dimensional convolutional neural network) to model time series information, which has high performance requirements for the deployment platform. As a result, it cannot be deployed on many small hardware devices.

本公开实施例提供了一种心率测量方法、装置、电子设备、存储介质和程序产品,通过获取目标对象对应的图像序列,其中,所述图像序列包括多个图像,分别提取与所述多个图像一一对应的多项第一特征信息,采用时域卷积网络对所述多项第一特征信息进行处理,得到与所述多个图像一一对应的多项第二特征信息,并根据所述多项第二特征信息,确定所述目标对象的心率值,由此采用轻量级的时域卷积网络替代传统的时序网络结构(例如LSTM),通过轻量级的时域卷积网络对时序关系进行建模以提取时序信息,从而能够降低模型部署对算子的依赖,降低模型部署的硬件门槛,增强模型对硬件的适配性,即,能够部署在较低成本的、所支持的神经网络算子较少的、计算性能较差的硬件上。Embodiments of the present disclosure provide a heart rate measurement method, device, electronic device, storage medium, and program product, by acquiring an image sequence corresponding to a target object, wherein the image sequence includes multiple images, and extracting images corresponding to the multiple images respectively The multiple items of first feature information corresponding to the images one-to-one are processed by using the time domain convolution network to obtain multiple items of second feature information corresponding to the multiple images one-to-one. The multiple pieces of second feature information are used to determine the heart rate value of the target object, whereby a lightweight time-domain convolutional network is used to replace the traditional time-series network structure (such as LSTM), and a lightweight time-domain convolutional network is used The network models the timing relationship to extract timing information, which can reduce the dependence of model deployment on operators, reduce the hardware threshold for model deployment, and enhance the adaptability of the model to hardware. On hardware that supports fewer neural network operators and has poor computing performance.

下面结合附图对本公开实施例提供的心率测量方法进行详细的说明。The heart rate measurement method provided by the embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings.

图1示出本公开实施例提供的心率测量方法的一流程图。在一种可能的实现方式中,所述心率测量方法的执行主体可以是心率测量装置,例如,所述心率测量方法可以由终端设备或服务器或其它电子设备执行。其中,终端设备可以是用户设备(User Equipment,UE)、移动设备、用户终端、终端、蜂窝电话、无绳电话、个人数字助理(Personal DigitalAssistant,PDA)、手持设备、计算设备、车载设备或者可穿戴设备等。在一些可能的实现方式中,所述心率测量方法可以通过处理器调用存储器中存储的计算机可读指令的方式来实现。如图1所示,所述心率测量方法包括步骤S11至步骤S14。FIG. 1 shows a flowchart of a heart rate measurement method provided by an embodiment of the present disclosure. In a possible implementation manner, the execution subject of the heart rate measurement method may be a heart rate measurement device, for example, the heart rate measurement method may be executed by a terminal device or a server or other electronic devices. The terminal device may be User Equipment (UE), mobile device, user terminal, terminal, cellular phone, cordless phone, Personal Digital Assistant (PDA), handheld device, computing device, vehicle-mounted device, or wearable device. equipment, etc. In some possible implementations, the heart rate measurement method may be implemented by a processor invoking computer-readable instructions stored in a memory. As shown in FIG. 1 , the heart rate measurement method includes steps S11 to S14.

在步骤S11中,获取目标对象对应的图像序列,其中,所述图像序列包括多个图像。In step S11, an image sequence corresponding to the target object is acquired, wherein the image sequence includes multiple images.

在步骤S12中,分别提取与所述多个图像一一对应的多项第一特征信息。In step S12, multiple items of first feature information corresponding to the multiple images one-to-one are extracted respectively.

在步骤S13中,采用时域卷积网络对所述多项第一特征信息进行处理,得到与所述多个图像一一对应的多项第二特征信息。In step S13, a time domain convolution network is used to process the multiple items of first feature information to obtain multiple items of second feature information corresponding to the multiple images one-to-one.

在步骤S14中,根据所述多项第二特征信息,确定所述目标对象的心率值。In step S14, the heart rate value of the target object is determined according to the multiple pieces of second feature information.

在本公开实施例中,目标对象可以表示心率测量的对象。目标对象可以是人,也可以是动物。In an embodiment of the present disclosure, the target object may represent an object of heart rate measurement. The target object can be a person or an animal.

在本公开实施例中,可以从目标对象对应的视频流中提取图像,得到目标对象对应的图像序列。其中,目标对象对应的视频流可以为对目标对象的面部拍摄的视频流,即,目标对象对应的视频流中的视频帧图像的图像内容可以至少包括目标对象的部分面部区域。In the embodiment of the present disclosure, an image may be extracted from a video stream corresponding to the target object to obtain an image sequence corresponding to the target object. The video stream corresponding to the target object may be a video stream captured on the face of the target object, that is, the image content of the video frame images in the video stream corresponding to the target object may include at least part of the face area of the target object.

在一种可能的实现方式中,目标对象对应的图像序列的帧率可以等于目标对象对应的视频流的帧率。例如,目标对象对应的视频流的帧率可以为20FPS(Frames PerSecond,帧每秒)至25FPS。在该实现方式中,可以提取目标对象对应的视频流中的各个视频帧图像,并可以基于所述各个视频帧图像,得到目标对象对应的图像序列。In a possible implementation manner, the frame rate of the image sequence corresponding to the target object may be equal to the frame rate of the video stream corresponding to the target object. For example, the frame rate of the video stream corresponding to the target object may be 20FPS (Frames PerSecond, frames per second) to 25FPS. In this implementation manner, each video frame image in the video stream corresponding to the target object can be extracted, and based on the each video frame image, an image sequence corresponding to the target object can be obtained.

作为该实现方式的一个示例,对于目标对象对应的视频流中的任一视频帧图像,可以根据该视频帧图像中的面部区域的位置,从该视频帧图像中截取预设尺寸的图像,作为目标对象对应的图像序列中的一个图像。例如,预设尺寸可以为64×64或者128×128等,在此不做限定。在该示例中,目标对象对应的图像序列中的图像的图像内容至少包括目标对象的部分面部区域。As an example of this implementation, for any video frame image in the video stream corresponding to the target object, an image of a preset size can be intercepted from the video frame image according to the position of the face region in the video frame image, as An image in the sequence of images corresponding to the target object. For example, the preset size may be 64×64 or 128×128, etc., which is not limited here. In this example, the image content of the images in the image sequence corresponding to the target object includes at least part of the face area of the target object.

作为该实现方式的另一个示例,可以将目标对象对应的视频流中的视频帧图像,直接作为目标对象对应的图像序列中的图像。在该示例中,目标对象对应的图像序列中的图像的尺寸,等于目标对象对应的视频流中的视频帧图像的尺寸。As another example of this implementation, the video frame image in the video stream corresponding to the target object may be directly used as the image in the image sequence corresponding to the target object. In this example, the size of the image in the image sequence corresponding to the target object is equal to the size of the video frame image in the video stream corresponding to the target object.

在另一种可能的实现方式中,目标对象对应的图像序列的帧率可以小于目标对象对应的视频流的帧率。在该实现方式中,可以从目标对象对应的视频流中,每隔K帧提取一个视频帧图像,并可以基于提取的各个视频帧图像,得到目标对象对应的图像序列,其中,K为大于或等于1的整数。In another possible implementation manner, the frame rate of the image sequence corresponding to the target object may be smaller than the frame rate of the video stream corresponding to the target object. In this implementation, a video frame image can be extracted every K frames from the video stream corresponding to the target object, and an image sequence corresponding to the target object can be obtained based on the extracted video frame images, where K is greater than or An integer equal to 1.

作为该实现方式的一个示例,对于提取的任一视频帧图像,可以根据该视频帧图像中的面部区域的位置,从该视频帧图像中截取预设尺寸的图像,作为目标对象对应的图像序列中的一个图像。在该示例中,目标对象对应的图像序列中的图像的图像内容至少包括目标对象的部分面部区域。As an example of this implementation, for any extracted video frame image, an image of a preset size can be intercepted from the video frame image according to the position of the face region in the video frame image, as the image sequence corresponding to the target object an image in . In this example, the image content of the images in the image sequence corresponding to the target object includes at least part of the face area of the target object.

作为该实现方式的另一个示例,可以将提取的各个视频帧图像直接作为目标对象对应的图像序列中的图像。在该示例中,目标对象对应的图像序列中的图像的尺寸,等于目标对象对应的视频流中的视频帧图像的尺寸。As another example of this implementation, each of the extracted video frame images may be directly used as images in the image sequence corresponding to the target object. In this example, the size of the image in the image sequence corresponding to the target object is equal to the size of the video frame image in the video stream corresponding to the target object.

在一种可能的实现方式中,目标对象对应的图像序列中的图像可以为RGB图像。在其他可能的实现方式中,目标对象对应的图像序列中的图像还可以为红外图像等,本公开实施例对此不做限定。In a possible implementation manner, the images in the image sequence corresponding to the target object may be RGB images. In other possible implementation manners, the image in the image sequence corresponding to the target object may also be an infrared image, etc., which is not limited in this embodiment of the present disclosure.

在本公开实施例中,目标对象对应的图像序列可以包括N个图像,其中,N为大于或等于3的整数。例如,N可以等于120。当然,本领域技术人员可以根据实际应用场景需求灵活设置N的大小,在此不做限定。In this embodiment of the present disclosure, the image sequence corresponding to the target object may include N images, where N is an integer greater than or equal to 3. For example, N can be equal to 120. Of course, those skilled in the art can flexibly set the size of N according to actual application scenario requirements, which is not limited here.

本公开实施例基于目标对象对应的图像序列确定目标对象的心率值,由此能够实现非接触式的心率测量,从而能够提高心率测量的便捷性。The embodiments of the present disclosure determine the heart rate value of the target object based on the image sequence corresponding to the target object, thereby enabling non-contact heart rate measurement, thereby improving the convenience of heart rate measurement.

在本公开实施例中,第一特征信息可以表示所述图像序列中的图像对应的特征信息。第一特征信息与所述图像序列中的图像一一对应。In this embodiment of the present disclosure, the first feature information may represent feature information corresponding to images in the image sequence. The first feature information is in one-to-one correspondence with images in the image sequence.

在一种可能的实现方式中,可以通过单帧编码模块提取所述图像序列中的图像对应的第一特征信息。图2示出本公开实施例提供的心率测量方法中通过单帧编码模块提取第一特征信息的示意图。其中,单帧编码模块的输入可以为尺寸为64×64的三通道图像,单帧编码模块的输出可以为第一特征信息,第一特征信息可以为120维的特征向量。In a possible implementation manner, the first feature information corresponding to the images in the image sequence may be extracted through a single-frame encoding module. FIG. 2 shows a schematic diagram of extracting first feature information by a single-frame encoding module in a heart rate measurement method provided by an embodiment of the present disclosure. The input of the single-frame encoding module may be a three-channel image with a size of 64×64, and the output of the single-frame encoding module may be first feature information, and the first feature information may be a 120-dimensional feature vector.

作为该实现方式的一个示例,单帧编码模块可以包括5个卷积模块,每个卷积模块可以包括卷积核尺寸为3×3的2D(2Dimensions,二维)卷积层、2D批量规范化(BatchNormalization,BN)层、2D平均池化层和Relu激活函数层。As an example of this implementation, the single-frame encoding module may include 5 convolution modules, and each convolution module may include a 2D (2Dimensions, two-dimensional) convolution layer with a convolution kernel size of 3×3, a 2D batch normalization (BatchNormalization, BN) layer, 2D average pooling layer and Relu activation function layer.

当然,单帧编码模块也可以采用其他结构,在此不做限定。Of course, the single-frame encoding module may also adopt other structures, which are not limited here.

在本公开实施例中,通过时域卷积网络(Temporal Convolutional Network,TCN)对所述多项第一特征信息进行处理,得到与所述多个图像一一对应的多项第二特征信息。其中,时域卷积网络为轻量级的深度神经网络,因此能够降低对硬件的性能要求。另外,时域卷积网络采用膨胀卷积以扩大感受野,相比于普通的卷积操作,膨胀卷积更适于提取长期关联特征。In the embodiment of the present disclosure, the multiple items of first feature information are processed through a Temporal Convolutional Network (TCN) to obtain multiple items of second feature information corresponding to the multiple images one-to-one. Among them, the time-domain convolutional network is a lightweight deep neural network, so it can reduce the performance requirements of the hardware. In addition, the time-domain convolutional network uses dilated convolution to expand the receptive field. Compared with ordinary convolution operations, dilated convolution is more suitable for extracting long-term related features.

在本公开实施例中,可以通过M层时域卷积网络对所述多项第一特征信息进行处理,得到与所述多个图像一一对应的多项第二特征信息,其中,M为大于或等于1的整数。M层时域卷积网络可以组成时域卷积网络模块。例如,M可以等于4,每层时域卷积网络可以包括2D膨胀卷积层、自适应裁剪层、Relu激活函数层、丢弃(Dropout)层、2D膨胀卷积层、自适应裁剪层、Relu激活函数层和丢弃层。其中,2D膨胀卷积层的卷积核的大小可以为1×2,并可以设置跳接空洞。In this embodiment of the present disclosure, the multiple items of first feature information may be processed through an M-layer temporal convolutional network to obtain multiple items of second feature information corresponding to the multiple images one-to-one, where M is Integer greater than or equal to 1. The M-layer time-domain convolutional network can form a time-domain convolutional network module. For example, M can be equal to 4, and each layer of the temporal convolutional network can include a 2D dilated convolutional layer, an adaptive cropping layer, a Relu activation function layer, a dropout layer, a 2D dilated convolutional layer, an adaptive cropping layer, and a Relu layer. Activation function layer and dropout layer. Among them, the size of the convolution kernel of the 2D dilated convolution layer can be 1 × 2, and the jumper holes can be set.

图3示出本公开实施例提供的心率测量方法中时域卷积网络模块的输入和输出的示意图。如图3所示,时域卷积网络模块的输入可以为N项120维的第一特征信息,输出可以为N项80维的第二特征信息。FIG. 3 shows a schematic diagram of the input and output of a time-domain convolutional network module in the heart rate measurement method provided by an embodiment of the present disclosure. As shown in FIG. 3 , the input of the time domain convolutional network module may be N items of 120-dimensional first feature information, and the output may be N items of 80-dimensional second feature information.

在一种可能的实现方式中,所述分别提取与所述多个图像一一对应的多项第一特征信息,包括:依次提取所述图像序列中的图像对应的第一特征信息,并将所述第一特征信息缓存在预设长度的先进先出队列中;所述采用时域卷积网络对所述多项第一特征信息进行处理,得到与所述多个图像一一对应的多项第二特征信息,包括:采用时域卷积网络对所述先进先出队列中的多项第一特征信息进行处理,得到与所述多项第一特征信息一一对应的多项第二特征信息。In a possible implementation manner, the extracting a plurality of pieces of first feature information corresponding to the plurality of images respectively includes: sequentially extracting the first feature information corresponding to the images in the image sequence, and extracting the first feature information corresponding to the images in the image sequence The first feature information is cached in a FIFO queue with a preset length; the time domain convolution network is used to process the multiple items of first feature information to obtain multiple items corresponding to the multiple images one-to-one. Items of second feature information, including: using a time-domain convolution network to process multiple items of first feature information in the FIFO queue to obtain multiple items of second feature information one-to-one corresponding to the multiple items of first feature information characteristic information.

相关技术中,编码模块每次对滑动窗口内的所有图像进行特征编码。在滑动窗口的步长小于滑动窗口的尺寸的情况下,编码模块将对滑动窗口中的部分图像进行重复编码,从而导致冗余的计算。在上述实现方式中,心率测量模型可以仅包括一个单帧编码模块,该单帧编码模块可以每次对一个图像进行特征提取,并将所提取的特征信息进行缓存。In the related art, the encoding module performs feature encoding on all images in the sliding window each time. When the step size of the sliding window is smaller than the size of the sliding window, the encoding module will repeatedly encode part of the images in the sliding window, resulting in redundant computation. In the above implementation manner, the heart rate measurement model may only include a single-frame encoding module, and the single-frame encoding module may perform feature extraction on one image at a time, and cache the extracted feature information.

在该实现方式中,可以根据图像序列中的图像的顺序,依次提取所述图像序列中的图像对应的第一特征信息,并将所提取的第一特征信息缓存的预设长度的先进先出队列中。其中,所述先进先出队列可以表示用于缓存第一特征信息的、先进先出的队列。在一个示例中,先进先出队列的长度可以为N,即,先进先出队列可以缓存N个图像对应的第一特征信息。例如,N可以等于120。In this implementation manner, the first feature information corresponding to the images in the image sequence may be sequentially extracted according to the order of the images in the image sequence, and the extracted first feature information may be cached in a first-in, first-out format with a preset length. in the queue. The first-in, first-out queue may represent a first-in, first-out queue for buffering the first feature information. In an example, the length of the FIFO queue may be N, that is, the FIFO queue may buffer the first feature information corresponding to N images. For example, N can be equal to 120.

在该实现方式中,时域卷积网络可以对所述先进先出队列中的所有第一特征信息进行处理,得到与所述先进先出队列中的各项第一特征信息一一对应的第二特征信息。In this implementation manner, the time-domain convolutional network can process all the first feature information in the FIFO queue to obtain the first feature information corresponding to each item of first feature information in the FIFO queue one-to-one. Two feature information.

在该实现方式中,通过依次提取所述图像序列中的图像对应的第一特征信息,将所述第一特征信息缓存在预设长度的先进先出队列中,并采用时域卷积网络对所述先进先出队列中的多项第一特征信息进行处理,得到与所述多项第一特征信息一一对应的多项第二特征信息,由此能够减少冗余计算,节省硬件设备的算力。In this implementation, by sequentially extracting the first feature information corresponding to the images in the image sequence, the first feature information is cached in a FIFO queue of preset length, and a time domain convolutional network is used to The multiple items of first feature information in the FIFO queue are processed to obtain multiple items of second feature information that correspond one-to-one with the multiple items of first feature information, thereby reducing redundant computation and saving hardware equipment costs. computing power.

在另一种可能的实现方式中,可以并行对至少两个图像进行特征提取。在该实现方式中,心率测量模型可以包括至少两个单帧编码模块。In another possible implementation, feature extraction may be performed on at least two images in parallel. In this implementation, the heart rate measurement model may include at least two single-frame encoding modules.

在一种可能的实现方式中,所述根据所述多项第二特征信息,确定所述目标对象的心率值,包括:根据所述多项第二特征信息,预测所述图像序列对应的远程光电容积描记rPPG信号;根据所述rPPG信号,确定所述目标对象的心率值。在该实现方式中,通过根据所述多项第二特征信息,预测所述图像序列对应的远程光电容积描记rPPG信号,并根据所述rPPG信号,确定所述目标对象的心率值,由此能够更准确地确定目标对象的心率值。In a possible implementation manner, the determining the heart rate value of the target object according to the multiple pieces of second feature information includes: predicting the distance corresponding to the image sequence according to the multiple pieces of second feature information Photoplethysmography rPPG signal; according to the rPPG signal, determine the heart rate value of the target object. In this implementation, by predicting the remote photoplethysmography rPPG signal corresponding to the image sequence according to the multiple pieces of second feature information, and determining the heart rate value of the target object according to the rPPG signal, it is possible to Determine the target subject's heart rate value more accurately.

作为该实现方式的一个示例,所述根据所述多项第二特征信息,预测所述图像序列对应的远程光电容积描记rPPG信号,包括:对所述多项第二特征信息进行序数回归,得到所述图像序列对应的远程光电容积描记rPPG信号。在该示例中,可以对所述多项第二特征信息分别进行序数回归,得到与所述多项第二特征信息一一对应的多项rPPG值,并可以根据所述多项rPPG值,组成所述图像序列对应的rPPG信号。As an example of this implementation, the predicting the remote photoplethysmography rPPG signal corresponding to the image sequence according to the multiple items of second feature information includes: performing ordinal regression on the multiple items of second feature information to obtain The remote photoplethysmography rPPG signal corresponding to the image sequence. In this example, ordinal regression may be performed on the multiple items of second feature information, respectively, to obtain multiple items of rPPG values that correspond one-to-one with the multiple items of second feature information, and may be composed of multiple items of rPPG values according to the multiple items of second feature information The rPPG signal corresponding to the image sequence.

图4示出本公开实施例提供的心率测量方法中对第二特征信息进行序数回归的示意图。在图4所示的示例中,所述图像序列包括120帧图像,与120帧图像一一对应的120项第二特征信息中,每项第二特征信息为80维的特征向量。对于120项第二特征信息中的任意一项第二特征信息,可以将该第二特征信息对应的80个维度两两组合,构成40个二分类器。其中,任一二分类器对应的两个维度的值可以记为A和B,若A大于B,则该二类器的结果为1,若A小于或等于B,则该二分类器的结果为0。将40个二分类器的结果相加,可以得到该第二特征信息对应的rPPG值。第二特征信息对应的rPPG值大于或等于0且小于或等于40,且第二特征信息对应的rPPG值为整数值。如图4所示,对于第一项第二特征信息,可以将该第二特征信息对应的80个维度两两组合,构成40个二分类器,每个二分类器表示rPPG值的一个组分。任一二分类器对应的两个维度的值可以记为A和B,若A大于B,则该二类器的结果为1,若A小于或等于B,则该二分类器的结果为0。将40个二分类器的结果相加,可以得到第一项第二特征信息对应的rPPG值。对120项第二特征信息分别分别进行序数回归,可以得到120项rPPG值,该120项rPPG组成所述图像序列对应的rPPG信号。FIG. 4 shows a schematic diagram of performing ordinal regression on the second feature information in the heart rate measurement method provided by an embodiment of the present disclosure. In the example shown in FIG. 4 , the image sequence includes 120 frames of images, and among the 120 items of second feature information corresponding to the 120 frames of images, each item of second feature information is an 80-dimensional feature vector. For any item of second feature information in the 120 items of second feature information, 80 dimensions corresponding to the second feature information can be combined in pairs to form 40 binary classifiers. Among them, the values of the two dimensions corresponding to any two classifiers can be recorded as A and B. If A is greater than B, the result of the second classifier is 1, and if A is less than or equal to B, the result of the two classifiers is 0. The rPPG value corresponding to the second feature information can be obtained by adding the results of the 40 binary classifiers. The rPPG value corresponding to the second feature information is greater than or equal to 0 and less than or equal to 40, and the rPPG value corresponding to the second feature information is an integer value. As shown in Figure 4, for the first item of second feature information, the 80 dimensions corresponding to the second feature information can be combined in pairs to form 40 binary classifiers, each of which represents a component of the rPPG value . The values of the two dimensions corresponding to any two-classifier can be recorded as A and B. If A is greater than B, the result of the two-classifier is 1, and if A is less than or equal to B, the result of the two-classifier is 0 . The rPPG value corresponding to the first item of the second feature information can be obtained by adding the results of the 40 binary classifiers. Ordinal regression is performed on the 120 items of second feature information respectively, and 120 items of rPPG values can be obtained, and the 120 items of rPPG constitute the rPPG signal corresponding to the image sequence.

在该示例中,通过对所述多项第二特征信息进行序数回归,得到所述图像序列对应的远程光电容积描记rPPG信号,由此采用更适于预测连续数值的序数回归方式,能够得到更准确的rPPG信号。In this example, the long-range photoplethysmography rPPG signal corresponding to the image sequence is obtained by performing ordinal regression on the multiple items of second feature information, so that an ordinal regression method that is more suitable for predicting continuous values can be used to obtain better Accurate rPPG signal.

当然,还可以采用其他回归方式对所述多项第二特征信息进行回归,在此不做限定。Of course, other regression methods may also be used to regress the multiple pieces of second feature information, which are not limited here.

作为该实现方式的一个示例,所述根据所述rPPG信号,确定所述目标对象的心率值,包括:对所述rPPG信号进行小波分析,确定所述目标对象的心率值。As an example of this implementation, the determining the heart rate value of the target object according to the rPPG signal includes: performing wavelet analysis on the rPPG signal to determine the heart rate value of the target object.

通过深度学习算法预测的rPPG信号常常带有较强的噪声。相关技术中,通常检测信号的波峰及峰间距来计算心率,或者应用快速傅里叶变换(Fast Fourier Transform,FFT)提取主要频率来计算心率,这些方法往往受噪声的影响较大,对于信噪比较低的rPPG信号容易产生较大的误差。在上述示例中,通过对所述rPPG信号进行小波分析,确定所述目标对象的心率值,由此对于信噪比较低的rPPG信号的计算兼容性较好,即,即使在rPPG信号的信噪比较低的情况下,也能确定出较准确的心率值。rPPG signals predicted by deep learning algorithms often have strong noise. In related technologies, the peaks and the peak spacing of the signal are usually detected to calculate the heart rate, or the Fast Fourier Transform (FFT) is used to extract the main frequency to calculate the heart rate. These methods are often greatly affected by noise. Relatively low rPPG signals are prone to larger errors. In the above example, the heart rate value of the target object is determined by performing wavelet analysis on the rPPG signal, so that the calculation compatibility for the rPPG signal with a low signal-to-noise ratio is better, that is, even in the signal-to-noise ratio of the rPPG signal. In the case of low noise ratio, a more accurate heart rate value can also be determined.

在一个示例中,所述对所述rPPG信号进行小波分析,确定所述目标对象的心率值,包括:确定小波的子波的至少两种宽度;根据所述至少两种宽度,对所述rPPG信号进行小波变换,得到与所述至少两种宽度一一对应的至少两项小波响应;确定所述至少两项小波响应对应的响应强度和心率值;根据所述至少两项小波响应对应的响应强度和心率值,确定所述目标对象的心率值。In an example, the performing wavelet analysis on the rPPG signal to determine the heart rate value of the target object includes: determining at least two widths of wavelets of the wavelet; according to the at least two widths, analyzing the rPPG Wavelet transform is performed on the signal to obtain at least two wavelet responses corresponding to the at least two widths one-to-one; the response intensity and the heart rate value corresponding to the at least two wavelet responses are determined; according to the responses corresponding to the at least two wavelet responses Intensity and heart rate value, determine the heart rate value of the target object.

在该示例中,可以采用Ricker小波函数,也可以采用其他小波函数,在此不做限定。图5示出本公开实施例提供的心率测量方法中的Ricker小波的示意图。其中,2σ表示Ricker小波的子波的宽度,σ表示Ricker小波的子波的半宽度。Ricker小波函数y(t,σ)可以采用式1表示:In this example, the Ricker wavelet function may be used, and other wavelet functions may also be used, which is not limited herein. FIG. 5 shows a schematic diagram of a Ricker wavelet in the heart rate measurement method provided by an embodiment of the present disclosure. Among them, 2σ represents the width of the wavelet of the Ricker wavelet, and σ represents the half width of the wavelet of the Ricker wavelet. The Ricker wavelet function y(t,σ) can be expressed by Equation 1:

Figure BDA0003667148340000121
Figure BDA0003667148340000121

rPPG信号可以记为s(t)。对rPPG信号进行小波变换,得到小波响应I(t,σ),可以采用式2来表示:The rPPG signal can be denoted as s(t). Wavelet transform is performed on the rPPG signal to obtain the wavelet response I(t,σ), which can be expressed by Equation 2:

I(t,σ)=s(t)*y(t,σ) 式2,I(t,σ)=s(t)*y(t,σ) Formula 2,

其中,*表示卷积,即,小波响应I(t,σ)为Ricker小波与rPPG信号的卷积。Among them, * represents the convolution, that is, the wavelet response I(t,σ) is the convolution of the Ricker wavelet and the rPPG signal.

在该示例中,不同宽度对应的小波响应,可以代表rPPG信号对应的曲线中、不同宽度的波的强度。I(t=t0,σ=σ0)表示在t0时刻,子波的半宽度为σ0的小波响应对应的响应强度。在心跳的峰值位置,恰当的宽度的小波的响应强度将出现峰值。In this example, the wavelet responses corresponding to different widths may represent the intensities of waves with different widths in the curve corresponding to the rPPG signal. I(t=t 0 , σ=σ 0 ) represents the response intensity corresponding to the wavelet response whose half-width of the wavelet is σ 0 at time t 0 . At the peak position of the heartbeat, the response intensity of a wavelet of appropriate width will peak.

在该示例中,所述至少两项小波响应中的任意一项项小波响应对应的响应强度,可以表示该项小波响应对应的整体响应强度。子波的半宽度为σ0的小波响应对应的响应强度M(σ0)可以采用式3确定:In this example, the response intensity corresponding to any one of the at least two wavelet responses may represent the overall response intensity corresponding to the wavelet response. The response intensity M(σ 0 ) corresponding to the wavelet response whose half-width of the wavelet is σ 0 can be determined by using Equation 3:

Figure BDA0003667148340000122
Figure BDA0003667148340000122

图6示出本公开实施例提供的心率测量方法中的小波响应谱的示意图。在图6中,横坐标为时间,纵坐标为响应强度,亮度与响应强度正相关。由图6可知,对应不同的子波宽度,响应谱呈现两种频率响应:高频响应对应心率,低频响应对应噪声。FIG. 6 shows a schematic diagram of a wavelet response spectrum in a heart rate measurement method provided by an embodiment of the present disclosure. In Fig. 6, the abscissa is time, the ordinate is the response intensity, and the brightness is positively correlated with the response intensity. It can be seen from Figure 6 that, corresponding to different wavelet widths, the response spectrum presents two frequency responses: the high-frequency response corresponds to heart rate, and the low-frequency response corresponds to noise.

图7示出本公开实施例提供的心率测量方法中的rPPG信号对应的曲线和小波响应对应的时域响应曲线的示意图。由图7可以看出,小波响应对应的时域响应曲线22的峰值位置与rPPG信号对应的曲线21的主峰的峰值位置相匹配,且有效地滤除了小峰。FIG. 7 shows a schematic diagram of a curve corresponding to an rPPG signal and a time domain response curve corresponding to a wavelet response in the heart rate measurement method provided by an embodiment of the present disclosure. It can be seen from FIG. 7 that the peak position of the time domain response curve 22 corresponding to the wavelet response matches the peak position of the main peak of the curve 21 corresponding to the rPPG signal, and the small peaks are effectively filtered out.

在一个例子中,子波的半宽度为σ0的小波响应对应的时域响应曲线的峰值出现的位置依次为t1至tK,则平均周期为

Figure BDA0003667148340000131
其中,K为大于1的整数。那么,可以计算得到子波的半宽度为σ0的小波响应对应的响应频率为
Figure BDA0003667148340000132
即,子波的半宽度为σ0的小波响应对应的心率值为
Figure BDA0003667148340000133
In an example, the peaks of the time-domain response curve corresponding to the wavelet response with the half-width of the wavelet σ 0 appear in sequence from t 1 to t K , then the average period is
Figure BDA0003667148340000131
Wherein, K is an integer greater than 1. Then, it can be calculated that the response frequency corresponding to the wavelet response whose half-width of the wavelet is σ 0 is
Figure BDA0003667148340000132
That is, the heart rate corresponding to the wavelet response whose half-width of the wavelet is σ 0 is
Figure BDA0003667148340000133

由于rPPG信号的信噪比通常较低,且心率随时间的变化较大,因此,在上述示例中,通过确定小波的子波的至少两种宽度,根据所述至少两种宽度,对所述rPPG信号进行小波变换,得到与所述至少两种宽度一一对应的至少两项小波响应,确定所述至少两项小波响应对应的响应强度和心率值,并根据所述至少两项小波响应对应的响应强度和心率值,确定所述目标对象的心率值,由此有助于更准确地确定目标对象的心率值。Since the signal-to-noise ratio of the rPPG signal is generally low, and the heart rate varies greatly with time, in the above example, by determining at least two widths of the wavelet of the wavelet, according to the at least two widths, the Perform wavelet transformation on the rPPG signal to obtain at least two wavelet responses corresponding to the at least two widths one-to-one, determine the response intensity and heart rate value corresponding to the at least two wavelet responses, and determine the corresponding response intensity and heart rate according to the at least two wavelet responses. The response intensity and heart rate value of the target object are determined, and the heart rate value of the target object is determined, thereby helping to determine the heart rate value of the target object more accurately.

在一个示例中,所述确定小波的子波的至少两种宽度,包括:根据所述图像序列对应的帧率、最大预设心率值和最小预设心率值,确定小波的子波的至少两种宽度。In an example, the determining at least two widths of the wavelet wavelet includes: determining at least two widths of the wavelet wavelet according to the frame rate, the maximum preset heart rate value and the minimum preset heart rate value corresponding to the image sequence. kind of width.

例如,可以将正常心率的最大值,作为最大预设心率值;可以将正常心率的最小值,作为最小预设心率值。For example, the maximum value of the normal heart rate may be used as the maximum preset heart rate value; the minimum value of the normal heart rate may be used as the minimum preset heart rate value.

在一个例子中,可以采用式4,确定小波的子波的半宽度σ:In one example, Equation 4 can be used to determine the half-width σ of the wavelet of the wavelet:

Figure BDA0003667148340000134
Figure BDA0003667148340000134

其中,f表示所述图像序列的帧率,单位为Hz;hmax表示最大预设心率值,hmin表示最小预设心率值,hmax和hmin的单位为次/分。Wherein, f represents the frame rate of the image sequence, and the unit is Hz; h max represents the maximum preset heart rate value, h min represents the minimum preset heart rate value, and the units of h max and h min are times/min.

其中,小波的子波的半宽度可以为整数值,也可以为小数值。在一个例子中,可以将满足式4的整数值,分别确定为小波的子波的半宽度。例如,f=20,hmin=60,hmax=100,那么,满足式4的σ包括6、7、8、9和10,从而可以确定小波的子波的5种宽度。The half-width of the wavelet of the wavelet may be an integer value or a decimal value. In one example, the integer values satisfying Equation 4 can be respectively determined as the half widths of the wavelets of the wavelet. For example, f=20, h min =60, h max =100, then, σ satisfying Equation 4 includes 6, 7, 8, 9, and 10, so that five kinds of widths of wavelets of the wavelet can be determined.

在该示例中,通过根据所述图像序列对应的帧率、最大预设心率值和最小预设心率值,确定小波的子波的至少两种宽度,由此有助于确定出恰当的宽度,从而能够提高心率确定的准确性。In this example, at least two widths of wavelets of the wavelet are determined according to the frame rate, the maximum preset heart rate value and the minimum preset heart rate value corresponding to the image sequence, thereby helping to determine an appropriate width, Thereby, the accuracy of heart rate determination can be improved.

在一个示例中,所述根据所述至少两项小波响应对应的响应强度和心率值,确定所述目标对象的心率值,包括:将心率值属于预设心率值范围的小波响应中、响应强度最大的小波响应对应的心率值,确定为所述目标对象的心率值。In an example, the determining the heart rate value of the target object according to the response intensity and the heart rate value corresponding to the at least two wavelet responses includes: determining the heart rate value of the target object in the wavelet response whose heart rate value belongs to a preset heart rate value range, the response intensity The heart rate value corresponding to the largest wavelet response is determined as the heart rate value of the target object.

例如,预设心率值范围可以为[hmin,hmax],那么,可以根据hmin≤f(σ)≤hmax,筛选出心率值属于预设心率值范围的小波响应。例如,心率值属于预设心率值范围的小波响应的子波的半宽度可以记为σ′,那么,可以根据

Figure BDA0003667148340000141
确定出心率值属于预设心率值范围的小波响应中、响应强度最大的小波响应,并可以将
Figure BDA0003667148340000142
确定为目标对象的心率值。For example, the preset heart rate value range may be [h min , h max ], then, according to h min ≤f(σ)≤h max , wavelet responses whose heart rate values fall within the preset heart rate value range can be screened. For example, the half-width of the wavelet of the wavelet response whose heart rate value belongs to the preset heart rate value range can be denoted as σ′, then, according to
Figure BDA0003667148340000141
Determine the wavelet response with the largest response intensity among the wavelet responses whose heart rate value belongs to the preset heart rate value range, and can use
Figure BDA0003667148340000142
Determines the heart rate value of the target subject.

由于在信噪比较低的情况下,噪声的响应强度可能大于心率的响应强度,因此,在该示例中,通过将心率值属于预设心率值范围的小波响应中、响应强度最大的小波响应对应的心率值,确定为所述目标对象的心率值,由此能够提高心率测量的鲁棒性和准确性。Since the response intensity of the noise may be greater than the response intensity of the heart rate in the case of a low SNR The corresponding heart rate value is determined as the heart rate value of the target object, thereby improving the robustness and accuracy of the heart rate measurement.

在其他示例中,还可以采用傅里叶变换等方式对所述rPPG信号进行处理,得到目标对象的心率值。In other examples, the rPPG signal may also be processed by means of Fourier transform, etc., to obtain the heart rate value of the target object.

在另一种可能的实现方式中,所述根据所述多项第二特征信息,确定所述目标对象的心率值,包括:将所述多项第二特征信息输入预先训练的心率提取模型中,经由所述心率提取模型确定所述目标对象的心率值。In another possible implementation manner, the determining the heart rate value of the target object according to the multiple pieces of second feature information includes: inputting the multiple pieces of second feature information into a pre-trained heart rate extraction model , and the heart rate value of the target object is determined via the heart rate extraction model.

在另一种可能的实现方式中,所述根据所述多项第二特征信息,确定所述目标对象的心率值,包括:通过预先设计的函数对所述多项第二特征信息进行处理,得到所述目标对象的心率值。In another possible implementation manner, the determining the heart rate value of the target object according to the multiple pieces of second feature information includes: processing the multiple pieces of second feature information through a pre-designed function, Obtain the heart rate value of the target object.

在一种可能的实现方式中,通过单帧编码模块分别提取与所述多个图像一一对应的多项第一特征信息,通过rPPG信号预测模块采用时域卷积网络对所述多项第一特征信息进行处理,得到与所述多个图像一一对应的多项第二特征信息,并根据所述多项第二特征信息,预测所述图像序列对应的远程光电容积描记rPPG信号。即,在该实现方式中,“分别提取与所述多个图像一一对应的多项第一特征信息”的步骤可以由单帧编码模块执行,“采用时域卷积网络对所述多项第一特征信息进行处理,得到与所述多个图像一一对应的多项第二特征信息,并根据所述多项第二特征信息,预测所述图像序列对应的远程光电容积描记rPPG信号”的步骤可以由rPPG信号预测模块执行,单帧编码模块和rPPG信号预测模块分离部署。In a possible implementation manner, multiple items of first feature information corresponding to the multiple images one-to-one are extracted by the single-frame encoding module, and the multiple items of first feature information are extracted by the rPPG signal prediction module using a time-domain convolutional network. A feature information is processed to obtain multiple items of second feature information corresponding to the multiple images one-to-one, and a remote photoplethysmography rPPG signal corresponding to the image sequence is predicted according to the multiple items of second feature information. That is, in this implementation manner, the step of "respectively extracting multiple items of first feature information corresponding to the multiple images one-to-one" can be performed by the single-frame encoding module, "using a time-domain convolutional network to The first feature information is processed to obtain multiple items of second feature information corresponding to the multiple images one-to-one, and based on the multiple items of second feature information, the remote photoplethysmography rPPG signal corresponding to the image sequence is predicted” The steps of can be performed by the rPPG signal prediction module, and the single-frame encoding module and the rPPG signal prediction module are deployed separately.

相关技术中,采用端到端的预测方式,由视频流预测rPPG信号。这种端到端的预测方式对使用平台的性能要求较高,在计算性能较弱的硬件设备上较难部署。在上述实现方式中,通过采用单帧编码模块和rPPG信号预测模块分离的方式,对硬件设备的性能的要求较低,从而能够适用于更多的硬件设备。例如,采用这种分块部署的方案,能够更容易在计算性能较弱的移动设备上进行部署。In the related art, an end-to-end prediction method is used to predict the rPPG signal from the video stream. This end-to-end prediction method has high requirements on the performance of the platform used, and is difficult to deploy on hardware devices with weak computing performance. In the above implementation manner, by adopting a manner of separating the single-frame encoding module and the rPPG signal prediction module, the performance requirement of the hardware device is lower, so it can be applied to more hardware devices. For example, adopting this partitioned deployment scheme makes it easier to deploy on mobile devices with weak computing performance.

本公开实施例提供的心率测量方法可以应用于计算机视觉、生理指标测量、健康监测等应用场景中。本公开实施例提供的心率测量方法可以部署在载有视觉传感器的智能硬件、家庭安防摄像机、儿童或老人的看护仪器等硬件设备上。在这些硬件设备的计算资源不充足的情况下,仍然能够部署本公开实施例提供的心率测量方法。因此,本公开实施例提供的心率测量方法有助于降低硬件设备的成本。The heart rate measurement method provided by the embodiments of the present disclosure can be applied to application scenarios such as computer vision, physiological index measurement, and health monitoring. The heart rate measurement method provided by the embodiments of the present disclosure can be deployed on hardware devices such as smart hardware equipped with vision sensors, home security cameras, and nursing instruments for children or the elderly. When the computing resources of these hardware devices are insufficient, the heart rate measurement method provided by the embodiments of the present disclosure can still be deployed. Therefore, the heart rate measurement method provided by the embodiments of the present disclosure helps to reduce the cost of hardware devices.

下面通过一个具体的应用场景说明本公开实施例提供的心率测量方法。图8示出本公开实施例提供的心率测量方法中的心率测量模型的示意图。在图8所示的示例中,所述心率测量模型包括单帧编码模块、rPPG信号预测模块和小波分析模块。The heart rate measurement method provided by the embodiment of the present disclosure is described below through a specific application scenario. FIG. 8 shows a schematic diagram of a heart rate measurement model in a heart rate measurement method provided by an embodiment of the present disclosure. In the example shown in FIG. 8 , the heart rate measurement model includes a single frame encoding module, an rPPG signal prediction module and a wavelet analysis module.

其中,单帧编码模块可以包括5个卷积模块,每个卷积模块可以包括卷积核尺寸为3×3的2D卷积层、2D批量规范化层、2D平均池化层和Relu激活函数层。单帧编码模块可以每次对一个图像进行特征提取,并将所提取的特征信息进行缓存。例如,单帧编码模块可以每次输入一个尺寸为64×64的图像,提取该图像对应的120维的第一特征信息,并将该第一特征信息缓存在长度为120的先进先出队列中。Among them, the single-frame encoding module can include 5 convolution modules, and each convolution module can include a 2D convolution layer with a convolution kernel size of 3 × 3, a 2D batch normalization layer, a 2D average pooling layer, and a Relu activation function layer. . The single-frame encoding module can perform feature extraction on one image at a time, and cache the extracted feature information. For example, the single-frame encoding module can input an image with a size of 64×64 each time, extract the 120-dimensional first feature information corresponding to the image, and cache the first feature information in a first-in, first-out queue with a length of 120 .

rPPG信号预测模块可以包括4层时域卷积网络和序数回归头,其中,每层时域卷积网络可以包括2D膨胀卷积层、自适应裁剪层、Relu激活函数层、丢弃层、2D膨胀卷积层、自适应裁剪层、Relu激活函数层和丢弃层,且2D膨胀卷积层的卷积核的大小可以为1×2,并可以设置跳接空洞。rPPG信号预测模块可以对所述先进先出队列中的120项第一特征信息进行处理,得到与所述120项第一特征信息一一对应的120项第二特征信息,其中,第二特征信息可以为80维的特征向量。对于120项第二特征信息中的任意一项第二特征信息,可以将该第二特征信息对应的80个维度两两组合,构成40个二分类器。其中,任一二分类器对应的两个维度的值可以记为A和B,若A大于B,则该二类器的结果为1,若A小于或等于B,则该二分类器的结果为0。将40个二分类器的结果相加,可以得到该第二特征信息对应的rPPG值。第二特征信息对应的rPPG值大于或等于0且小于或等于40,且第二特征信息对应的rPPG值为整数值。对120项第二特征信息分别分别进行序数回归,可以得到120项rPPG值,该120项rPPG组成所述先进先出队列对应的rPPG信号。The rPPG signal prediction module can include 4 layers of temporal convolutional network and ordinal regression head, wherein each layer of temporal convolutional network can include 2D dilated convolution layer, adaptive cropping layer, Relu activation function layer, drop layer, 2D dilation layer The convolutional layer, adaptive cropping layer, Relu activation function layer and dropout layer, and the size of the convolution kernel of the 2D dilated convolutional layer can be 1×2, and the jumping hole can be set. The rPPG signal prediction module can process the 120 items of first feature information in the FIFO queue to obtain 120 items of second feature information corresponding to the 120 items of first feature information, wherein the second feature information Can be an 80-dimensional feature vector. For any item of second feature information in the 120 items of second feature information, 80 dimensions corresponding to the second feature information can be combined in pairs to form 40 binary classifiers. Among them, the values of the two dimensions corresponding to any two classifiers can be recorded as A and B. If A is greater than B, the result of the second classifier is 1, and if A is less than or equal to B, the result of the two classifiers is 0. The rPPG value corresponding to the second feature information can be obtained by adding the results of the 40 binary classifiers. The rPPG value corresponding to the second feature information is greater than or equal to 0 and less than or equal to 40, and the rPPG value corresponding to the second feature information is an integer value. Ordinal regression is performed on the 120 items of second feature information respectively, and 120 items of rPPG values can be obtained, and the 120 items of rPPG constitute the rPPG signal corresponding to the FIFO queue.

小波分析模块可以采用上文中的式4,确定小波的子波的多种半宽度σ;采用上文中的式2,对rPPG信号进行小波变换,得到不同宽度对应的小波响应;确定不同宽度的小波响应对应的响应强度和心率值,并将心率值属于预设心率值范围的小波响应中、响应强度最大的小波响应对应的心率值,确定为所述目标对象的心率值。The wavelet analysis module can use Equation 4 above to determine various half-widths σ of wavelets of the wavelet; use Equation 2 above to perform wavelet transformation on the rPPG signal to obtain wavelet responses corresponding to different widths; determine the wavelets of different widths Respond to the corresponding response intensity and heart rate value, and determine the heart rate value corresponding to the wavelet response with the largest response intensity among the wavelet responses whose heart rate value belongs to the preset heart rate value range as the heart rate value of the target object.

图9示出本公开实施例提供的心率测量方法的另一流程图。在一种可能的实现方式中,所述心率测量方法的执行主体可以是心率测量装置,例如,所述心率测量方法可以由终端设备或服务器或其它电子设备执行。其中,终端设备可以是用户设备、移动设备、用户终端、终端、蜂窝电话、无绳电话、个人数字助理、手持设备、计算设备、车载设备或者可穿戴设备等。在一些可能的实现方式中,所述心率测量方法可以通过处理器调用存储器中存储的计算机可读指令的方式来实现。如图9所示,所述心率测量方法包括步骤S21至步骤S24。FIG. 9 shows another flowchart of a heart rate measurement method provided by an embodiment of the present disclosure. In a possible implementation manner, the execution subject of the heart rate measurement method may be a heart rate measurement device, for example, the heart rate measurement method may be executed by a terminal device or a server or other electronic devices. The terminal device may be a user equipment, a mobile device, a user terminal, a terminal, a cellular phone, a cordless phone, a personal digital assistant, a handheld device, a computing device, a vehicle-mounted device, a wearable device, or the like. In some possible implementations, the heart rate measurement method may be implemented by a processor invoking computer-readable instructions stored in a memory. As shown in FIG. 9 , the heart rate measurement method includes steps S21 to S24.

在步骤S21中,获取目标对象对应的图像序列,其中,所述图像序列包括多个图像。In step S21, an image sequence corresponding to the target object is acquired, wherein the image sequence includes multiple images.

在步骤S22中,分别提取与所述多个图像一一对应的多项第一特征信息。In step S22, multiple items of first feature information corresponding to the multiple images one-to-one are extracted respectively.

在步骤S23中,根据所述多项第一特征信息,预测所述图像序列对应的远程光电容积描记rPPG信号。In step S23, a remote photoplethysmography rPPG signal corresponding to the image sequence is predicted according to the multiple items of first feature information.

在步骤S24中,对所述rPPG信号进行小波分析,确定所述目标对象的心率值。In step S24, wavelet analysis is performed on the rPPG signal to determine the heart rate value of the target object.

在本公开实施例中,目标对象可以表示心率测量的对象。目标对象可以是人,也可以是动物。In an embodiment of the present disclosure, the target object may represent an object of heart rate measurement. The target object can be a person or an animal.

在本公开实施例中,可以从目标对象对应的视频流中提取图像,得到目标对象对应的图像序列。其中,目标对象对应的视频流可以为对目标对象的面部拍摄的视频流,即,目标对象对应的视频流中的视频帧图像的图像内容可以至少包括目标对象的部分面部区域。In the embodiment of the present disclosure, an image may be extracted from a video stream corresponding to the target object to obtain an image sequence corresponding to the target object. The video stream corresponding to the target object may be a video stream captured on the face of the target object, that is, the image content of the video frame images in the video stream corresponding to the target object may include at least part of the face area of the target object.

在一种可能的实现方式中,目标对象对应的图像序列的帧率可以等于目标对象对应的视频流的帧率。例如,目标对象对应的视频流的帧率可以为20FPS至25FPS。在该实现方式中,可以提取目标对象对应的视频流中的各个视频帧图像,并可以基于所述各个视频帧图像,得到目标对象对应的图像序列。In a possible implementation manner, the frame rate of the image sequence corresponding to the target object may be equal to the frame rate of the video stream corresponding to the target object. For example, the frame rate of the video stream corresponding to the target object may be 20FPS to 25FPS. In this implementation manner, each video frame image in the video stream corresponding to the target object can be extracted, and based on the each video frame image, an image sequence corresponding to the target object can be obtained.

作为该实现方式的一个示例,对于目标对象对应的视频流中的任一视频帧图像,可以根据该视频帧图像中的面部区域的位置,从该视频帧图像中截取预设尺寸的图像,作为目标对象对应的图像序列中的一个图像。例如,预设尺寸可以为64×64或者128×128等,在此不做限定。在该示例中,目标对象对应的图像序列中的图像的图像内容至少包括目标对象的部分面部区域。As an example of this implementation, for any video frame image in the video stream corresponding to the target object, an image of a preset size can be intercepted from the video frame image according to the position of the face region in the video frame image, as An image in the sequence of images corresponding to the target object. For example, the preset size may be 64×64 or 128×128, etc., which is not limited here. In this example, the image content of the images in the image sequence corresponding to the target object includes at least part of the face area of the target object.

作为该实现方式的另一个示例,可以将目标对象对应的视频流中的视频帧图像,直接作为目标对象对应的图像序列中的图像。在该示例中,目标对象对应的图像序列中的图像的尺寸,等于目标对象对应的视频流中的视频帧图像的尺寸。As another example of this implementation, the video frame image in the video stream corresponding to the target object may be directly used as the image in the image sequence corresponding to the target object. In this example, the size of the image in the image sequence corresponding to the target object is equal to the size of the video frame image in the video stream corresponding to the target object.

在另一种可能的实现方式中,目标对象对应的图像序列的帧率可以小于目标对象对应的视频流的帧率。在该实现方式中,可以从目标对象对应的视频流中,每隔K帧提取一个视频帧图像,并可以基于提取的各个视频帧图像,得到目标对象对应的图像序列,其中,K为大于或等于1的整数。In another possible implementation manner, the frame rate of the image sequence corresponding to the target object may be smaller than the frame rate of the video stream corresponding to the target object. In this implementation, a video frame image can be extracted every K frames from the video stream corresponding to the target object, and an image sequence corresponding to the target object can be obtained based on the extracted video frame images, where K is greater than or An integer equal to 1.

作为该实现方式的一个示例,对于提取的任一视频帧图像,可以根据该视频帧图像中的面部区域的位置,从该视频帧图像中截取预设尺寸的图像,作为目标对象对应的图像序列中的一个图像。在该示例中,目标对象对应的图像序列中的图像的图像内容至少包括目标对象的部分面部区域。As an example of this implementation, for any extracted video frame image, an image of a preset size can be intercepted from the video frame image according to the position of the face region in the video frame image, as the image sequence corresponding to the target object an image in . In this example, the image content of the images in the image sequence corresponding to the target object includes at least part of the face area of the target object.

作为该实现方式的另一个示例,可以将提取的各个视频帧图像直接作为目标对象对应的图像序列中的图像。在该示例中,目标对象对应的图像序列中的图像的尺寸,等于目标对象对应的视频流中的视频帧图像的尺寸。As another example of this implementation, each of the extracted video frame images may be directly used as images in the image sequence corresponding to the target object. In this example, the size of the image in the image sequence corresponding to the target object is equal to the size of the video frame image in the video stream corresponding to the target object.

在一种可能的实现方式中,目标对象对应的图像序列中的图像可以为RGB图像。在其他可能的实现方式中,目标对象对应的图像序列中的图像还可以为红外图像等,本公开实施例对此不做限定。In a possible implementation manner, the images in the image sequence corresponding to the target object may be RGB images. In other possible implementation manners, the image in the image sequence corresponding to the target object may also be an infrared image, etc., which is not limited in this embodiment of the present disclosure.

在本公开实施例中,目标对象对应的图像序列可以包括N个图像,其中,N为大于或等于3的整数。例如,N可以等于120。当然,本领域技术人员可以根据实际应用场景需求灵活设置N的大小,在此不做限定。In this embodiment of the present disclosure, the image sequence corresponding to the target object may include N images, where N is an integer greater than or equal to 3. For example, N can be equal to 120. Of course, those skilled in the art can flexibly set the size of N according to actual application scenario requirements, which is not limited here.

本公开实施例基于目标对象对应的图像序列确定目标对象的心率值,由此能够实现非接触式的心率测量,从而能够提高心率测量的便捷性。The embodiments of the present disclosure determine the heart rate value of the target object based on the image sequence corresponding to the target object, thereby enabling non-contact heart rate measurement, thereby improving the convenience of heart rate measurement.

在本公开实施例中,第一特征信息可以表示所述图像序列中的图像对应的特征信息。第一特征信息与所述图像序列中的图像一一对应。In this embodiment of the present disclosure, the first feature information may represent feature information corresponding to images in the image sequence. The first feature information is in one-to-one correspondence with images in the image sequence.

在一种可能的实现方式中,可以通过单帧编码模块提取所述图像序列中的图像对应的第一特征信息。例如,单帧编码模块的输入可以为尺寸为64×64的三通道图像,单帧编码模块的输出可以为第一特征信息,第一特征信息可以为120维的特征向量。In a possible implementation manner, the first feature information corresponding to the images in the image sequence may be extracted through a single-frame encoding module. For example, the input of the single-frame encoding module may be a three-channel image with a size of 64×64, and the output of the single-frame encoding module may be the first feature information, and the first feature information may be a 120-dimensional feature vector.

作为该实现方式的一个示例,单帧编码模块可以包括5个卷积模块,每个卷积模块可以包括卷积核尺寸为3×3的2D卷积层、2D批量规范化层、2D平均池化层和Relu激活函数层。As an example of this implementation, the single-frame encoding module may include 5 convolution modules, and each convolution module may include a 2D convolution layer with a convolution kernel size of 3×3, a 2D batch normalization layer, and a 2D average pooling layer. layer and Relu activation function layer.

当然,单帧编码模块也可以采用其他结构,在此不做限定。Of course, the single-frame encoding module may also adopt other structures, which are not limited here.

在一种可能的实现方式中,所述根据所述多项第一特征信息,预测所述图像序列对应的远程光电容积描记rPPG信号,包括:对所述多项第一特征信息进行处理,得到与所述多个图像一一对应的多项第二特征信息;根据所述多项第二特征信息,预测所述图像序列对应的rPPG信号。In a possible implementation manner, the predicting the remote photoplethysmography rPPG signal corresponding to the image sequence according to the multiple items of first feature information includes: processing the multiple items of first feature information to obtain Multiple items of second feature information corresponding to the multiple images one-to-one; and predicting the rPPG signal corresponding to the image sequence according to the multiple items of second feature information.

作为该实现方式的一个示例,可以通过时域卷积网络对所述多项第一特征信息进行处理,得到与所述多个图像一一对应的多项第二特征信息。其中,时域卷积网络为轻量级的深度神经网络,因此能够降低对硬件的性能要求。另外,时域卷积网络采用膨胀卷积以扩大感受野,相比于普通的卷积操作,膨胀卷积更适于提取长期关联特征。As an example of this implementation, the multiple items of first feature information may be processed through a time-domain convolutional network to obtain multiple items of second feature information corresponding to the multiple images one-to-one. Among them, the time-domain convolutional network is a lightweight deep neural network, so it can reduce the performance requirements of the hardware. In addition, the time-domain convolutional network uses dilated convolution to expand the receptive field. Compared with ordinary convolution operations, dilated convolution is more suitable for extracting long-term related features.

在该示例中,可以通过M层时域卷积网络对所述多项第一特征信息进行处理,得到与所述多个图像一一对应的多项第二特征信息,其中,M为大于或等于1的整数。M层时域卷积网络可以组成时域卷积网络模块。例如,M可以等于4,每层时域卷积网络可以包括2D膨胀卷积层、自适应裁剪层、Relu激活函数层、丢弃层、2D膨胀卷积层、自适应裁剪层、Relu激活函数层和丢弃层。其中,2D膨胀卷积层的卷积核的大小可以为1×2,并可以设置跳接空洞。In this example, the multiple items of first feature information may be processed through an M-layer temporal convolutional network to obtain multiple items of second feature information corresponding to the multiple images one-to-one, where M is greater than or An integer equal to 1. The M-layer time-domain convolutional network can form a time-domain convolutional network module. For example, M can be equal to 4, and each layer of the temporal convolutional network can include a 2D dilated convolutional layer, an adaptive cropping layer, a Relu activation function layer, a dropout layer, a 2D dilated convolutional layer, an adaptive cropping layer, and a Relu activation function layer and discard layers. Among them, the size of the convolution kernel of the 2D dilated convolution layer can be 1 × 2, and the jumper holes can be set.

在一个例子中,时域卷积网络模块的输入可以为N项120维的第一特征信息,输出可以为N项80维的第二特征信息。In one example, the input of the time-domain convolutional network module may be N items of 120-dimensional first feature information, and the output may be N items of 80-dimensional second feature information.

在其他示例中,也可以采用LSTM等神经网络对所述多项第一特征信息进行处理,得到与所述多个图像一一对应的多项第二特征信息。In other examples, a neural network such as LSTM may also be used to process the multiple items of first feature information to obtain multiple items of second feature information corresponding to the multiple images one-to-one.

在一个示例中,可以依次提取所述图像序列中的图像对应的第一特征信息,并将所述第一特征信息缓存在预设长度的先进先出队列中;采用时域卷积网络对所述先进先出队列中的多项第一特征信息进行处理,得到与所述多项第一特征信息一一对应的多项第二特征信息。In an example, the first feature information corresponding to the images in the image sequence may be sequentially extracted, and the first feature information may be cached in a FIFO queue of preset length; The multiple items of first feature information in the FIFO queue are processed to obtain multiple items of second feature information corresponding to the multiple items of first feature information one-to-one.

相关技术中,编码模块每次对滑动窗口内的所有图像进行特征编码。在滑动窗口的步长小于滑动窗口的尺寸的情况下,编码模块将对滑动窗口中的部分图像进行重复编码,从而导致冗余的计算。在上述示例中,心率测量模型可以仅包括一个单帧编码模块,该单帧编码模块可以每次对一个图像进行特征提取,并将所提取的特征信息进行缓存。In the related art, the encoding module performs feature encoding on all images in the sliding window each time. When the step size of the sliding window is smaller than the size of the sliding window, the encoding module will repeatedly encode part of the images in the sliding window, resulting in redundant computation. In the above example, the heart rate measurement model may only include a single-frame encoding module, and the single-frame encoding module may perform feature extraction on one image at a time, and cache the extracted feature information.

在该示例中,可以根据图像序列中的图像的顺序,依次提取所述图像序列中的图像对应的第一特征信息,并将所提取的第一特征信息缓存的预设长度的先进先出队列中。其中,所述先进先出队列可以表示用于缓存第一特征信息的、先进先出的队列。在一个例子中,先进先出队列的长度可以为N,即,先进先出队列可以缓存N个图像对应的第一特征信息。例如,N可以等于120。In this example, the first feature information corresponding to the images in the image sequence may be sequentially extracted according to the order of the images in the image sequence, and the extracted first feature information may be cached in a first-in, first-out queue of preset length. middle. The first-in, first-out queue may represent a first-in, first-out queue for buffering the first feature information. In one example, the length of the FIFO queue may be N, that is, the FIFO queue may buffer the first feature information corresponding to N images. For example, N can be equal to 120.

在该示例中,时域卷积网络可以对所述先进先出队列中的所有第一特征信息进行处理,得到与所述先进先出队列中的各项第一特征信息一一对应的第二特征信息。In this example, the time-domain convolutional network can process all the first feature information in the FIFO queue, and obtain the second feature information corresponding to each item of first feature information in the FIFO queue one-to-one. characteristic information.

在该示例中,通过依次提取所述图像序列中的图像对应的第一特征信息,将所述第一特征信息缓存在预设长度的先进先出队列中,并采用时域卷积网络对所述先进先出队列中的多项第一特征信息进行处理,得到与所述多项第一特征信息一一对应的多项第二特征信息,由此能够减少冗余计算,节省硬件设备的算力。In this example, by sequentially extracting the first feature information corresponding to the images in the image sequence, the first feature information is cached in a FIFO queue of preset length, and a time-domain convolutional network is used to The multiple items of first feature information in the FIFO queue are processed to obtain multiple items of second feature information that correspond one-to-one with the multiple items of first feature information, which can reduce redundant calculations and save the calculation of hardware devices. force.

在另一示例中,可以并行对至少两个图像进行特征提取。在该实现方式中,心率测量模型可以包括至少两个单帧编码模块。In another example, feature extraction may be performed on at least two images in parallel. In this implementation, the heart rate measurement model may include at least two single-frame encoding modules.

作为该实现方式的一个示例,所述根据所述多项第二特征信息,预测所述图像序列对应的rPPG信号,包括:对所述多项第二特征信息进行序数回归,得到所述图像序列对应的远程光电容积描记rPPG信号。在该示例中,可以对所述多项第二特征信息分别进行序数回归,得到与所述多项第二特征信息一一对应的多项rPPG值,并可以根据所述多项rPPG值,组成所述图像序列对应的rPPG信号。As an example of this implementation, the predicting the rPPG signal corresponding to the image sequence according to the multiple items of second feature information includes: performing ordinal regression on the multiple items of second feature information to obtain the image sequence Corresponding remote photoplethysmography rPPG signal. In this example, ordinal regression may be performed on the multiple items of second feature information, respectively, to obtain multiple items of rPPG values that correspond one-to-one with the multiple items of second feature information, and may be composed of multiple items of rPPG values according to the multiple items of second feature information The rPPG signal corresponding to the image sequence.

在图4所示的示例中,所述图像序列包括120帧图像,与120帧图像一一对应的120项第二特征信息中,每项第二特征信息为80维的特征向量。对于120项第二特征信息中的任意一项第二特征信息,可以将该第二特征信息对应的80个维度两两组合,构成40个二分类器。其中,任一二分类器对应的两个维度的值可以记为A和B,若A大于B,则该二类器的结果为1,若A小于或等于B,则该二分类器的结果为0。将40个二分类器的结果相加,可以得到该第二特征信息对应的rPPG值。第二特征信息对应的rPPG值大于或等于0且小于或等于40,且第二特征信息对应的rPPG值为整数值。如图4所示,对于第一项第二特征信息,可以将该第二特征信息对应的80个维度两两组合,构成40个二分类器,每个二分类器表示rPPG值的一个组分。任一二分类器对应的两个维度的值可以记为A和B,若A大于B,则该二类器的结果为1,若A小于或等于B,则该二分类器的结果为0。将40个二分类器的结果相加,可以得到第一项第二特征信息对应的rPPG值。对120项第二特征信息分别分别进行序数回归,可以得到120项rPPG值,该120项rPPG组成所述图像序列对应的rPPG信号。In the example shown in FIG. 4 , the image sequence includes 120 frames of images, and among the 120 items of second feature information corresponding to the 120 frames of images, each item of second feature information is an 80-dimensional feature vector. For any item of second feature information in the 120 items of second feature information, 80 dimensions corresponding to the second feature information can be combined in pairs to form 40 binary classifiers. Among them, the values of the two dimensions corresponding to any two classifiers can be recorded as A and B. If A is greater than B, the result of the second classifier is 1, and if A is less than or equal to B, the result of the two classifiers is 0. The rPPG value corresponding to the second feature information can be obtained by adding the results of the 40 binary classifiers. The rPPG value corresponding to the second feature information is greater than or equal to 0 and less than or equal to 40, and the rPPG value corresponding to the second feature information is an integer value. As shown in Figure 4, for the first item of second feature information, the 80 dimensions corresponding to the second feature information can be combined in pairs to form 40 binary classifiers, each of which represents a component of the rPPG value . The values of the two dimensions corresponding to any two-classifier can be recorded as A and B. If A is greater than B, the result of the two-classifier is 1, and if A is less than or equal to B, the result of the two-classifier is 0 . The rPPG value corresponding to the first item of the second feature information can be obtained by adding the results of the 40 binary classifiers. Ordinal regression is performed on the 120 items of second feature information respectively, and 120 items of rPPG values can be obtained, and the 120 items of rPPG constitute the rPPG signal corresponding to the image sequence.

在该示例中,通过对所述多项第二特征信息进行序数回归,得到所述图像序列对应的远程光电容积描记rPPG信号,由此采用更适于预测连续数值的序数回归方式,能够得到更准确的rPPG信号。In this example, the long-range photoplethysmography rPPG signal corresponding to the image sequence is obtained by performing ordinal regression on the multiple items of second feature information, so that an ordinal regression method that is more suitable for predicting continuous values can be used to obtain better Accurate rPPG signal.

当然,还可以采用其他回归方式对所述多项第二特征信息进行回归,在此不做限定。Of course, other regression methods may also be used to regress the multiple pieces of second feature information, which are not limited here.

通过深度学习算法预测的rPPG信号常常带有较强的噪声。相关技术中,通常检测信号的波峰及峰间距来计算心率,或者应用快速傅里叶变换提取主要频率来计算心率,这些方法往往受噪声的影响较大,对于信噪比较低的rPPG信号容易产生较大的误差。在本公开实施例中,通过获取目标对象对应的图像序列,其中,所述图像序列包括多个图像,分别提取与所述多个图像一一对应的多项第一特征信息,根据所述多项第一特征信息,预测所述图像序列对应的rPPG信号,并对所述rPPG信号进行小波分析,确定所述目标对象的心率值,由此能够提高对于信噪比较低的rPPG信号的计算兼容性,即,即使在rPPG信号的信噪比较低的情况下,也能确定出较准确的心率值。rPPG signals predicted by deep learning algorithms often have strong noise. In related technologies, the heart rate is usually calculated by detecting the peaks and the peak spacing of the signal, or by applying the fast Fourier transform to extract the main frequency to calculate the heart rate. These methods are often greatly affected by noise, and are easy to use for rPPG signals with low signal-to-noise ratios. produce larger errors. In this embodiment of the present disclosure, by acquiring an image sequence corresponding to a target object, wherein the image sequence includes multiple images, multiple items of first feature information corresponding to the multiple images are extracted respectively, and according to the multiple images Items of first feature information, predict the rPPG signal corresponding to the image sequence, and perform wavelet analysis on the rPPG signal to determine the heart rate value of the target object, which can improve the calculation of the rPPG signal with low signal-to-noise ratio. Compatibility, that is, more accurate heart rate values can be determined even when the signal-to-noise ratio of the rPPG signal is low.

在一种可能的实现方式中,所述对所述rPPG信号进行小波分析,确定所述目标对象的心率值,包括:确定小波的子波的至少两种宽度;根据所述至少两种宽度,对所述rPPG信号进行小波变换,得到与所述至少两种宽度一一对应的至少两项小波响应;确定所述至少两项小波响应对应的响应强度和心率值;根据所述至少两项小波响应对应的响应强度和心率值,确定所述目标对象的心率值。In a possible implementation manner, the performing wavelet analysis on the rPPG signal to determine the heart rate value of the target object includes: determining at least two widths of wavelets of the wavelet; according to the at least two widths, Perform wavelet transformation on the rPPG signal to obtain at least two wavelet responses corresponding to the at least two widths one-to-one; determine the response intensity and heart rate value corresponding to the at least two wavelet responses; In response to the corresponding response intensity and heart rate value, the heart rate value of the target object is determined.

在该实现方式中,可以采用Ricker小波函数,也可以采用其他小波函数,在此不做限定。rPPG信号可以记为s(t),小波函数可以记为y(t,σ)。对rPPG信号进行小波变换得到的小波响应可以记为I(t,σ)。In this implementation manner, a Ricker wavelet function may be used, or other wavelet functions may be used, which is not limited herein. The rPPG signal can be denoted as s(t), and the wavelet function can be denoted as y(t,σ). The wavelet response obtained by the wavelet transform of the rPPG signal can be denoted as I(t,σ).

在该实现方式中,不同宽度对应的小波响应,可以代表rPPG信号对应的曲线中、不同宽度的波的强度。I(t=t0,σ=σ0)表示在t0时刻,子波的半宽度为σ0的小波响应对应的响应强度。在心跳的峰值位置,恰当的宽度的小波的响应强度将出现峰值。In this implementation manner, the wavelet responses corresponding to different widths may represent the intensities of waves with different widths in the curve corresponding to the rPPG signal. I(t=t 0 , σ=σ 0 ) represents the response intensity corresponding to the wavelet response whose half-width of the wavelet is σ 0 at time t 0 . At the peak position of the heartbeat, the response intensity of a wavelet of appropriate width will peak.

在该实现方式中,所述至少两项小波响应中的任意一项项小波响应对应的响应强度,可以表示该项小波响应对应的整体响应强度。子波的半宽度为σ0的小波响应对应的响应强度M(σ0)可以采用上文中的式3确定。In this implementation manner, the response intensity corresponding to any one of the at least two wavelet responses may represent the overall response intensity corresponding to the wavelet response. The response intensity M(σ 0 ) corresponding to the wavelet response whose half-width of the wavelet is σ 0 can be determined by using Equation 3 above.

在一个示例中,子波的半宽度为σ0的小波响应对应的时域响应曲线的峰值出现的位置依次为t1至tK,则平均周期为

Figure BDA0003667148340000191
其中,K为大于1的整数。那么,可以计算得到子波的半宽度为σ0的小波响应对应的响应频率为
Figure BDA0003667148340000192
即,子波的半宽度为σ0的小波响应对应的心率值为
Figure BDA0003667148340000201
In an example, the peaks of the time-domain response curve corresponding to the wavelet response with the half-width of the wavelet σ 0 appear in sequence from t 1 to t K , and the average period is
Figure BDA0003667148340000191
Wherein, K is an integer greater than 1. Then, it can be calculated that the response frequency corresponding to the wavelet response whose half-width of the wavelet is σ 0 is
Figure BDA0003667148340000192
That is, the heart rate corresponding to the wavelet response whose half-width of the wavelet is σ 0 is
Figure BDA0003667148340000201

由于rPPG信号的信噪比通常较低,且心率随时间的变化较大,因此,在上述实现方式中,通过确定小波的子波的至少两种宽度,根据所述至少两种宽度,对所述rPPG信号进行小波变换,得到与所述至少两种宽度一一对应的至少两项小波响应,确定所述至少两项小波响应对应的响应强度和心率值,并根据所述至少两项小波响应对应的响应强度和心率值,确定所述目标对象的心率值,由此有助于更准确地确定目标对象的心率值。Since the signal-to-noise ratio of the rPPG signal is usually low, and the heart rate varies greatly with time, in the above implementation manner, by determining at least two widths of the wavelet of the wavelet, according to the at least two widths, The rPPG signal is subjected to wavelet transformation to obtain at least two wavelet responses corresponding to the at least two widths one-to-one, and the response intensity and heart rate value corresponding to the at least two wavelet responses are determined, and according to the at least two wavelet responses The corresponding response intensity and heart rate value are used to determine the heart rate value of the target object, thereby helping to more accurately determine the heart rate value of the target object.

在一个示例中,所述确定小波的子波的至少两种宽度,包括:根据所述图像序列对应的帧率、最大预设心率值和最小预设心率值,确定小波的子波的至少两种宽度。In an example, the determining at least two widths of the wavelet wavelet includes: determining at least two widths of the wavelet wavelet according to the frame rate, the maximum preset heart rate value and the minimum preset heart rate value corresponding to the image sequence. kind of width.

例如,可以将正常心率的最大值,作为最大预设心率值;可以将正常心率的最小值,作为最小预设心率值。For example, the maximum value of the normal heart rate may be used as the maximum preset heart rate value; the minimum value of the normal heart rate may be used as the minimum preset heart rate value.

在一个例子中,可以采用上文中的式4,确定小波的子波的半宽度σ。In one example, the above equation 4 can be used to determine the half width σ of the wavelet of the wavelet.

其中,小波的子波的半宽度可以为整数值,也可以为小数值。在一个例子中,可以将满足式4的整数值,分别确定为小波的子波的半宽度。例如,f=20,hmin=60,hmax=100,那么,满足式4的σ包括6、7、8、9和10,从而可以确定小波的子波的5种宽度。The half-width of the wavelet of the wavelet may be an integer value or a decimal value. In one example, the integer values satisfying Equation 4 can be respectively determined as the half widths of the wavelets of the wavelet. For example, f=20, h min =60, h max =100, then, σ satisfying Equation 4 includes 6, 7, 8, 9, and 10, so that five kinds of widths of wavelets of the wavelet can be determined.

在该示例中,通过根据所述图像序列对应的帧率、最大预设心率值和最小预设心率值,确定小波的子波的至少两种宽度,由此有助于确定出恰当的宽度,从而能够提高心率确定的准确性。In this example, at least two widths of wavelets of the wavelet are determined according to the frame rate, the maximum preset heart rate value and the minimum preset heart rate value corresponding to the image sequence, thereby helping to determine an appropriate width, Thereby, the accuracy of heart rate determination can be improved.

在一个示例中,所述根据所述至少两项小波响应对应的响应强度和心率值,确定所述目标对象的心率值,包括:将心率值属于预设心率值范围的小波响应中、响应强度最大的小波响应对应的心率值,确定为所述目标对象的心率值。In an example, the determining the heart rate value of the target object according to the response intensity and the heart rate value corresponding to the at least two wavelet responses includes: determining the heart rate value of the target object in the wavelet response whose heart rate value belongs to a preset heart rate value range, the response intensity The heart rate value corresponding to the largest wavelet response is determined as the heart rate value of the target object.

例如,预设心率值范围可以为[hmin,hmax],那么,可以根据hmin≤f(σ)≤hmax,筛选出心率值属于预设心率值范围的小波响应。例如,心率值属于预设心率值范围的小波响应的子波的半宽度可以记为σ′,那么,可以根据

Figure BDA0003667148340000202
确定出心率值属于预设心率值范围的小波响应中、响应强度最大的小波响应,并可以将
Figure BDA0003667148340000203
确定为目标对象的心率值。For example, the preset heart rate value range may be [h min , h max ], then, according to h min ≤f(σ)≤h max , wavelet responses whose heart rate values fall within the preset heart rate value range can be screened. For example, the half-width of the wavelet of the wavelet response whose heart rate value belongs to the preset heart rate value range can be denoted as σ′, then, according to
Figure BDA0003667148340000202
Determine the wavelet response with the largest response intensity among the wavelet responses whose heart rate value belongs to the preset heart rate value range, and can use
Figure BDA0003667148340000203
Determines the heart rate value of the target subject.

由于在信噪比较低的情况下,噪声的响应强度可能大于心率的响应强度,因此,在该示例中,通过将心率值属于预设心率值范围的小波响应中、响应强度最大的小波响应对应的心率值,确定为所述目标对象的心率值,由此能够提高心率测量的鲁棒性和准确性。Since the response intensity of the noise may be greater than the response intensity of the heart rate in the case of a low SNR The corresponding heart rate value is determined as the heart rate value of the target object, thereby improving the robustness and accuracy of the heart rate measurement.

在一种可能的实现方式中,通过单帧编码模块分别提取与所述多个图像一一对应的多项第一特征信息,通过rPPG信号预测模块根据所述多项第一特征信息,预测所述图像序列对应的rPPG信号。即,在该实现方式中,“分别提取与所述多个图像一一对应的多项第一特征信息”的步骤可以由单帧编码模块执行,“根据所述多项第一特征信息,预测所述图像序列对应的rPPG信号”的步骤可以由rPPG信号预测模块执行,单帧编码模块和rPPG信号预测模块分离部署。In a possible implementation manner, the single-frame encoding module extracts multiple pieces of first feature information that correspond to the multiple images one-to-one, and the rPPG signal prediction module predicts the first feature information according to the multiple pieces of first feature information. The rPPG signal corresponding to the image sequence described above. That is, in this implementation manner, the step of "respectively extracting multiple items of first feature information corresponding to the multiple images" may be performed by the single-frame encoding module, "according to the multiple items of first feature information, predict the The step of "rPPG signal corresponding to the image sequence" may be performed by the rPPG signal prediction module, and the single-frame encoding module and the rPPG signal prediction module are deployed separately.

相关技术中,采用端到端的预测方式,由视频流预测rPPG信号。这种端到端的预测方式对使用平台的性能要求较高,在计算性能较弱的硬件设备上较难部署。在上述实现方式中,通过采用单帧编码模块和rPPG信号预测模块分离的方式,对硬件设备的性能的要求较低,从而能够适用于更多的硬件设备。例如,采用这种分块部署的方案,能够更容易在计算性能较弱的移动设备上进行部署。In the related art, an end-to-end prediction method is used to predict the rPPG signal from the video stream. This end-to-end prediction method has high requirements on the performance of the platform used, and is difficult to deploy on hardware devices with weak computing performance. In the above implementation manner, by adopting a manner of separating the single-frame encoding module and the rPPG signal prediction module, the performance requirement of the hardware device is lower, so it can be applied to more hardware devices. For example, adopting this partitioned deployment scheme makes it easier to deploy on mobile devices with weak computing performance.

可以理解,本公开提及的上述各个方法实施例,在不违背原理逻辑的情况下,均可以彼此相互结合形成结合后的实施例,限于篇幅,本公开不再赘述。本领域技术人员可以理解,在具体实施方式的上述方法中,各步骤的具体执行顺序应当以其功能和可能的内在逻辑确定。It can be understood that the above-mentioned method embodiments mentioned in the present disclosure can be combined with each other to form a combined embodiment without violating the principle and logic. Those skilled in the art can understand that, in the above method of the specific embodiment, the specific execution order of each step should be determined by its function and possible internal logic.

此外,本公开还提供了心率测量装置、电子设备、计算机可读存储介质、计算机程序产品,上述均可用来实现本公开提供的任一种心率测量方法,相应技术方案和技术效果可参见方法部分的相应记载,不再赘述。In addition, the present disclosure also provides heart rate measurement devices, electronic equipment, computer-readable storage media, and computer program products, all of which can be used to implement any heart rate measurement method provided by the present disclosure, and the corresponding technical solutions and technical effects can be found in the method section The corresponding records will not be repeated.

图10示出本公开实施例提供的心率测量装置的一框图。如图10所示,所述心率测量装置包括:FIG. 10 shows a block diagram of a heart rate measurement apparatus provided by an embodiment of the present disclosure. As shown in Figure 10, the heart rate measurement device includes:

获取模块31,用于获取目标对象对应的图像序列,其中,所述图像序列包括多个图像;an acquisition module 31, configured to acquire an image sequence corresponding to the target object, wherein the image sequence includes multiple images;

提取模块32,用于分别提取与所述多个图像一一对应的多项第一特征信息;an extraction module 32, configured to extract a plurality of pieces of first feature information corresponding to the plurality of images one-to-one;

处理模块33,用于采用时域卷积网络对所述多项第一特征信息进行处理,得到与所述多个图像一一对应的多项第二特征信息;The processing module 33 is configured to process the multiple items of first feature information by using a time-domain convolutional network to obtain multiple items of second feature information corresponding to the multiple images one-to-one;

第一确定模块34,用于根据所述多项第二特征信息,确定所述目标对象的心率值。The first determination module 34 is configured to determine the heart rate value of the target object according to the multiple pieces of second characteristic information.

在一种可能的实现方式中,所述第一确定模块34用于:In a possible implementation manner, the first determining module 34 is used for:

根据所述多项第二特征信息,预测所述图像序列对应的远程光电容积描记rPPG信号;predicting a remote photoplethysmography rPPG signal corresponding to the image sequence according to the multiple pieces of second feature information;

根据所述rPPG信号,确定所述目标对象的心率值。According to the rPPG signal, the heart rate value of the target object is determined.

在一种可能的实现方式中,所述第一确定模块34用于:In a possible implementation manner, the first determining module 34 is used for:

对所述多项第二特征信息进行序数回归,得到所述图像序列对应的远程光电容积描记rPPG信号。Ordinal regression is performed on the multiple items of second feature information to obtain a remote photoplethysmography rPPG signal corresponding to the image sequence.

在一种可能的实现方式中,所述第一确定模块34用于:In a possible implementation manner, the first determining module 34 is used for:

对所述rPPG信号进行小波分析,确定所述目标对象的心率值。Wavelet analysis is performed on the rPPG signal to determine the heart rate value of the target object.

在一种可能的实现方式中,所述第一确定模块34用于:In a possible implementation manner, the first determining module 34 is used for:

确定小波的子波的至少两种宽度;determining at least two widths of the wavelets of the wavelet;

根据所述至少两种宽度,对所述rPPG信号进行小波变换,得到与所述至少两种宽度一一对应的至少两项小波响应;performing wavelet transformation on the rPPG signal according to the at least two widths to obtain at least two wavelet responses corresponding to the at least two widths one-to-one;

确定所述至少两项小波响应对应的响应强度和心率值;determining the response intensity and the heart rate value corresponding to the at least two wavelet responses;

根据所述至少两项小波响应对应的响应强度和心率值,确定所述目标对象的心率值。The heart rate value of the target object is determined according to the response intensity and the heart rate value corresponding to the at least two wavelet responses.

在一种可能的实现方式中,所述第一确定模块34用于:In a possible implementation manner, the first determining module 34 is used for:

根据所述图像序列对应的帧率、最大预设心率值和最小预设心率值,确定小波的子波的至少两种宽度。At least two widths of the wavelet of the wavelet are determined according to the frame rate, the maximum preset heart rate value and the minimum preset heart rate value corresponding to the image sequence.

在一种可能的实现方式中,所述第一确定模块34用于:In a possible implementation manner, the first determining module 34 is used for:

将心率值属于预设心率值范围的小波响应中、响应强度最大的小波响应对应的心率值,确定为所述目标对象的心率值。The heart rate value corresponding to the wavelet response with the largest response intensity among the wavelet responses whose heart rate value belongs to the preset heart rate value range is determined as the heart rate value of the target object.

在一种可能的实现方式中,In one possible implementation,

所述提取模块32用于:依次提取所述图像序列中的图像对应的第一特征信息,并将所述第一特征信息缓存在预设长度的先进先出队列中;The extraction module 32 is configured to sequentially extract the first feature information corresponding to the images in the image sequence, and cache the first feature information in a FIFO queue of preset length;

所述处理模块33用于:采用时域卷积网络对所述先进先出队列中的多项第一特征信息进行处理,得到与所述多项第一特征信息一一对应的多项第二特征信息。The processing module 33 is configured to: use a time-domain convolutional network to process multiple items of first feature information in the FIFO queue to obtain multiple items of second feature information that correspond one-to-one with the multiple items of first feature information. characteristic information.

在本公开实施例中,通过获取目标对象对应的图像序列,其中,所述图像序列包括多个图像,分别提取与所述多个图像一一对应的多项第一特征信息,采用时域卷积网络对所述多项第一特征信息进行处理,得到与所述多个图像一一对应的多项第二特征信息,并根据所述多项第二特征信息,确定所述目标对象的心率值,由此采用轻量级的时域卷积网络替代传统的时序网络结构(例如LSTM),通过轻量级的时域卷积网络对时序关系进行建模以提取时序信息,从而能够降低模型部署对算子的依赖,降低模型部署的硬件门槛,增强模型对硬件的适配性,即,能够部署在较低成本的、所支持的神经网络算子较少的、计算性能较差的硬件上。In the embodiment of the present disclosure, by acquiring an image sequence corresponding to a target object, wherein the image sequence includes multiple images, a plurality of pieces of first feature information corresponding to the multiple images are extracted respectively, and a temporal volume The product network processes the multiple items of first feature information to obtain multiple items of second feature information corresponding to the multiple images one-to-one, and determines the heart rate of the target object according to the multiple items of second feature information Therefore, a lightweight time-domain convolutional network is used to replace the traditional time-series network structure (such as LSTM), and the time-series relationship is modeled through a lightweight time-domain convolutional network to extract time-series information, which can reduce the model Deployment relies on operators, lowers the hardware threshold for model deployment, and enhances the adaptability of models to hardware, that is, it can be deployed on lower-cost hardware that supports fewer neural network operators and has poor computing performance superior.

图11示出本公开实施例提供的心率测量装置的另一框图。如图11所示,所述心率测量装置包括:FIG. 11 shows another block diagram of the heart rate measurement device provided by the embodiment of the present disclosure. As shown in Figure 11, the heart rate measurement device includes:

获取模块41,用于获取目标对象对应的图像序列,其中,所述图像序列包括多个图像;an acquisition module 41, configured to acquire an image sequence corresponding to the target object, wherein the image sequence includes multiple images;

提取模块42,用于分别提取与所述多个图像一一对应的多项第一特征信息;The extraction module 42 is used for extracting a plurality of pieces of first feature information corresponding to the plurality of images one-to-one respectively;

预测模块43,用于根据所述多项第一特征信息,预测所述图像序列对应的远程光电容积描记rPPG信号;A prediction module 43, configured to predict the remote photoplethysmography rPPG signal corresponding to the image sequence according to the multiple pieces of first feature information;

第二确定模块44,用于对所述rPPG信号进行小波分析,确定所述目标对象的心率值。The second determination module 44 is configured to perform wavelet analysis on the rPPG signal to determine the heart rate value of the target object.

在一种可能的实现方式中,所述第二确定模块44用于:In a possible implementation manner, the second determining module 44 is used for:

确定小波的子波的至少两种宽度;determining at least two widths of the wavelets of the wavelet;

根据所述至少两种宽度,对所述rPPG信号进行小波变换,得到与所述至少两种宽度一一对应的至少两项小波响应;performing wavelet transformation on the rPPG signal according to the at least two widths to obtain at least two wavelet responses corresponding to the at least two widths one-to-one;

确定所述至少两项小波响应对应的响应强度和心率值;determining the response intensity and the heart rate value corresponding to the at least two wavelet responses;

根据所述至少两项小波响应对应的响应强度和心率值,确定所述目标对象的心率值。The heart rate value of the target object is determined according to the response intensity and the heart rate value corresponding to the at least two wavelet responses.

在一种可能的实现方式中,所述第二确定模块44用于:In a possible implementation manner, the second determining module 44 is used for:

根据所述图像序列对应的帧率、最大预设心率值和最小预设心率值,确定小波的子波的至少两种宽度。At least two widths of the wavelet of the wavelet are determined according to the frame rate, the maximum preset heart rate value and the minimum preset heart rate value corresponding to the image sequence.

在一种可能的实现方式中,所述第二确定模块44用于:In a possible implementation manner, the second determining module 44 is used for:

将心率值属于预设心率值范围的小波响应中、响应强度最大的小波响应对应的心率值,确定为所述目标对象的心率值。The heart rate value corresponding to the wavelet response with the largest response intensity among the wavelet responses whose heart rate value belongs to the preset heart rate value range is determined as the heart rate value of the target object.

在一种可能的实现方式中,所述预测模块43用于:In a possible implementation, the prediction module 43 is used for:

对所述多项第一特征信息进行处理,得到与所述多个图像一一对应的多项第二特征信息;processing the multiple items of first feature information to obtain multiple items of second feature information corresponding to the multiple images one-to-one;

根据所述多项第二特征信息,预测所述图像序列对应的rPPG信号。According to the multiple pieces of second feature information, the rPPG signal corresponding to the image sequence is predicted.

在一种可能的实现方式中,所述预测模块43用于:In a possible implementation, the prediction module 43 is used for:

对所述多项第二特征信息进行序数回归,得到所述图像序列对应的远程光电容积描记rPPG信号。Ordinal regression is performed on the multiple items of second feature information to obtain a remote photoplethysmography rPPG signal corresponding to the image sequence.

在本公开实施例中,通过获取目标对象对应的图像序列,其中,所述图像序列包括多个图像,分别提取与所述多个图像一一对应的多项第一特征信息,根据所述多项第一特征信息,预测所述图像序列对应的rPPG信号,并对所述rPPG信号进行小波分析,确定所述目标对象的心率值,由此能够提高对于信噪比较低的rPPG信号的计算兼容性,即,即使在rPPG信号的信噪比较低的情况下,也能确定出较准确的心率值。In this embodiment of the present disclosure, by acquiring an image sequence corresponding to a target object, wherein the image sequence includes multiple images, multiple items of first feature information corresponding to the multiple images are extracted respectively, and according to the multiple images Items of first feature information, predict the rPPG signal corresponding to the image sequence, and perform wavelet analysis on the rPPG signal to determine the heart rate value of the target object, which can improve the calculation of the rPPG signal with low signal-to-noise ratio. Compatibility, that is, more accurate heart rate values can be determined even when the signal-to-noise ratio of the rPPG signal is low.

在一些实施例中,本公开实施例提供的装置具有的功能或包含的模块可以用于执行上文方法实施例描述的方法,其具体实现和技术效果可以参照上文方法实施例的描述,为了简洁,这里不再赘述。In some embodiments, the functions or modules included in the apparatus provided in the embodiments of the present disclosure may be used to execute the methods described in the above method embodiments, and the specific implementation and technical effects may refer to the above method embodiments. It is concise and will not be repeated here.

本公开实施例还提供一种计算机可读存储介质,其上存储有计算机程序指令,所述计算机程序指令被处理器执行时实现上述方法。其中,所述计算机可读存储介质可以是非易失性计算机可读存储介质,或者可以是易失性计算机可读存储介质。Embodiments of the present disclosure further provide a computer-readable storage medium, on which computer program instructions are stored, and when the computer program instructions are executed by a processor, the foregoing method is implemented. Wherein, the computer-readable storage medium may be a non-volatile computer-readable storage medium, or may be a volatile computer-readable storage medium.

本公开实施例还提出一种计算机程序,包括计算机可读代码,当所述计算机可读代码在电子设备中运行时,所述电子设备中的处理器执行上述方法。An embodiment of the present disclosure further provides a computer program, including computer-readable code, when the computer-readable code is executed in an electronic device, a processor in the electronic device executes the above method.

本公开实施例还提供了一种计算机程序产品,包括计算机可读代码,或者承载有计算机可读代码的非易失性计算机可读存储介质,当所述计算机可读代码在电子设备中运行时,所述电子设备中的处理器执行上述方法。Embodiments of the present disclosure also provide a computer program product, including computer-readable codes, or a non-volatile computer-readable storage medium carrying computer-readable codes, when the computer-readable codes are executed in an electronic device , the processor in the electronic device executes the above method.

本公开实施例还提供一种电子设备,包括:一个或多个处理器;用于存储可执行指令的存储器;其中,所述一个或多个处理器被配置为调用所述存储器存储的可执行指令,以执行上述方法。Embodiments of the present disclosure further provide an electronic device, including: one or more processors; a memory for storing executable instructions; wherein the one or more processors are configured to invoke executable instructions stored in the memory instruction to execute the above method.

电子设备可以被提供为终端、服务器或其它形态的设备。The electronic device may be provided as a terminal, server or other form of device.

图12示出本公开实施例提供的电子设备1900的框图。例如,电子设备1900可以被提供为一服务器。参照图12,电子设备1900包括处理组件1922,其进一步包括一个或多个处理器,以及由存储器1932所代表的存储器资源,用于存储可由处理组件1922的执行的指令,例如应用程序。存储器1932中存储的应用程序可以包括一个或一个以上的每一个对应于一组指令的模块。此外,处理组件1922被配置为执行指令,以执行上述方法。FIG. 12 shows a block diagram of an electronic device 1900 provided by an embodiment of the present disclosure. For example, the electronic device 1900 may be provided as a server. 12, electronic device 1900 includes a processing component 1922, which further includes one or more processors, and a memory resource, represented by memory 1932, for storing instructions executable by processing component 1922, such as applications. An application program stored in memory 1932 may include one or more modules, each corresponding to a set of instructions. Additionally, the processing component 1922 is configured to execute instructions to perform the above-described methods.

电子设备1900还可以包括一个电源组件1926被配置为执行电子设备1900的电源管理,一个有线或无线网络接口1950被配置为将电子设备1900连接到网络,和一个输入/输出(I/O)接口1958。电子设备1900可以操作基于存储在存储器1932的操作系统,例如微软服务器操作系统(Windows ServerTM),苹果公司推出的基于图形用户界面操作系统(Mac OSXTM),多用户多进程的计算机操作系统(UnixTM),自由和开放原代码的类Unix操作系统(LinuxTM),开放原代码的类Unix操作系统(FreeBSDTM)或类似。The electronic device 1900 may also include a power supply assembly 1926 configured to perform power management of the electronic device 1900, a wired or wireless network interface 1950 configured to connect the electronic device 1900 to a network, and an input/output (I/O) interface 1958. The electronic device 1900 can operate based on an operating system stored in the memory 1932, such as a Microsoft server operating system (Windows Server ), a graphical user interface based operating system (Mac OSX ) introduced by Apple, a multi-user multi-process computer operating system ( Unix ), Free and Open Source Unix-like Operating System (Linux ), Open Source Unix-like Operating System (FreeBSD ) or the like.

在示例性实施例中,还提供了一种非易失性计算机可读存储介质,例如包括计算机程序指令的存储器1932,上述计算机程序指令可由电子设备1900的处理组件1922执行以完成上述方法。In an exemplary embodiment, a non-volatile computer-readable storage medium is also provided, such as memory 1932 comprising computer program instructions executable by processing component 1922 of electronic device 1900 to perform the above-described method.

本公开可以是系统、方法和/或计算机程序产品。计算机程序产品可以包括计算机可读存储介质,其上载有用于使处理器实现本公开的各个方面的计算机可读程序指令。The present disclosure may be a system, method and/or computer program product. The computer program product may include a computer-readable storage medium having computer-readable program instructions loaded thereon for causing a processor to implement various aspects of the present disclosure.

计算机可读存储介质可以是可以保持和存储由指令执行设备使用的指令的有形设备。计算机可读存储介质例如可以是――但不限于――电存储设备、磁存储设备、光存储设备、电磁存储设备、半导体存储设备或者上述的任意合适的组合。计算机可读存储介质的更具体的例子(非穷举的列表)包括:便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、静态随机存取存储器(SRAM)、便携式压缩盘只读存储器(CD-ROM)、数字多功能盘(DVD)、记忆棒、软盘、机械编码设备、例如其上存储有指令的打孔卡或凹槽内凸起结构、以及上述的任意合适的组合。这里所使用的计算机可读存储介质不被解释为瞬时信号本身,诸如无线电波或者其他自由传播的电磁波、通过波导或其他传输媒介传播的电磁波(例如,通过光纤电缆的光脉冲)、或者通过电线传输的电信号。A computer-readable storage medium may be a tangible device that can hold and store instructions for use by the instruction execution device. The computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples (non-exhaustive list) of computer readable storage media include: portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM) or flash memory), static random access memory (SRAM), portable compact disk read only memory (CD-ROM), digital versatile disk (DVD), memory sticks, floppy disks, mechanically coded devices, such as printers with instructions stored thereon Hole cards or raised structures in grooves, and any suitable combination of the above. Computer-readable storage media, as used herein, are not to be construed as transient signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (eg, light pulses through fiber optic cables), or through electrical wires transmitted electrical signals.

这里所描述的计算机可读程序指令可以从计算机可读存储介质下载到各个计算/处理设备,或者通过网络、例如因特网、局域网、广域网和/或无线网下载到外部计算机或外部存储设备。网络可以包括铜传输电缆、光纤传输、无线传输、路由器、防火墙、交换机、网关计算机和/或边缘服务器。每个计算/处理设备中的网络适配卡或者网络接口从网络接收计算机可读程序指令,并转发该计算机可读程序指令,以供存储在各个计算/处理设备中的计算机可读存储介质中。The computer readable program instructions described herein may be downloaded to various computing/processing devices from a computer readable storage medium, or to an external computer or external storage device over a network such as the Internet, a local area network, a wide area network, and/or a wireless network. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers, and/or edge servers. A network adapter card or network interface in each computing/processing device receives computer-readable program instructions from a network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in each computing/processing device .

用于执行本公开操作的计算机程序指令可以是汇编指令、指令集架构(ISA)指令、机器指令、机器相关指令、微代码、固件指令、状态设置数据、或者以一种或多种编程语言的任意组合编写的源代码或目标代码,所述编程语言包括面向对象的编程语言—诸如Smalltalk、C++等,以及常规的过程式编程语言—诸如“C”语言或类似的编程语言。计算机可读程序指令可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络—包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。在一些实施例中,通过利用计算机可读程序指令的状态信息来个性化定制电子电路,例如可编程逻辑电路、现场可编程门阵列(FPGA)或可编程逻辑阵列(PLA),该电子电路可以执行计算机可读程序指令,从而实现本公开的各个方面。Computer program instructions for carrying out operations of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state setting data, or instructions in one or more programming languages. Source or object code, written in any combination, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as the "C" language or similar programming languages. The computer readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or server implement. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (eg, using an Internet service provider through the Internet connect). In some embodiments, custom electronic circuits, such as programmable logic circuits, field programmable gate arrays (FPGAs), or programmable logic arrays (PLAs), can be personalized by utilizing state information of computer readable program instructions. Computer readable program instructions are executed to implement various aspects of the present disclosure.

这里参照根据本公开实施例的方法、装置(系统)和计算机程序产品的流程图和/或框图描述了本公开的各个方面。应当理解,流程图和/或框图的每个方框以及流程图和/或框图中各方框的组合,都可以由计算机可读程序指令实现。Aspects of the present disclosure are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the disclosure. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer readable program instructions.

这些计算机可读程序指令可以提供给通用计算机、专用计算机或其它可编程数据处理装置的处理器,从而生产出一种机器,使得这些指令在通过计算机或其它可编程数据处理装置的处理器执行时,产生了实现流程图和/或框图中的一个或多个方框中规定的功能/动作的装置。也可以把这些计算机可读程序指令存储在计算机可读存储介质中,这些指令使得计算机、可编程数据处理装置和/或其他设备以特定方式工作,从而,存储有指令的计算机可读介质则包括一个制造品,其包括实现流程图和/或框图中的一个或多个方框中规定的功能/动作的各个方面的指令。These computer readable program instructions may be provided to the processor of a general purpose computer, special purpose computer or other programmable data processing apparatus to produce a machine that causes the instructions when executed by the processor of the computer or other programmable data processing apparatus , resulting in means for implementing the functions/acts specified in one or more blocks of the flowchart and/or block diagrams. These computer readable program instructions can also be stored in a computer readable storage medium, these instructions cause a computer, programmable data processing apparatus and/or other equipment to operate in a specific manner, so that the computer readable medium on which the instructions are stored includes An article of manufacture comprising instructions for implementing various aspects of the functions/acts specified in one or more blocks of the flowchart and/or block diagrams.

也可以把计算机可读程序指令加载到计算机、其它可编程数据处理装置、或其它设备上,使得在计算机、其它可编程数据处理装置或其它设备上执行一系列操作步骤,以产生计算机实现的过程,从而使得在计算机、其它可编程数据处理装置、或其它设备上执行的指令实现流程图和/或框图中的一个或多个方框中规定的功能/动作。Computer readable program instructions can also be loaded onto a computer, other programmable data processing apparatus, or other equipment to cause a series of operational steps to be performed on the computer, other programmable data processing apparatus, or other equipment to produce a computer-implemented process , thereby causing instructions executing on a computer, other programmable data processing apparatus, or other device to implement the functions/acts specified in one or more blocks of the flowcharts and/or block diagrams.

附图中的流程图和框图显示了根据本公开的多个实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段或指令的一部分,所述模块、程序段或指令的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个连续的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或动作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more functions for implementing the specified logical function(s) executable instructions. In some alternative implementations, the functions noted in the blocks may occur out of the order noted in the figures. For example, two blocks in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It is also noted that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented in dedicated hardware-based systems that perform the specified functions or actions , or can be implemented in a combination of dedicated hardware and computer instructions.

该计算机程序产品可以具体通过硬件、软件或其结合的方式实现。在一个可选实施例中,所述计算机程序产品具体体现为计算机存储介质,在另一个可选实施例中,计算机程序产品具体体现为软件产品,例如软件开发包(Software Development Kit,SDK)等等。The computer program product can be specifically implemented by hardware, software or a combination thereof. In an optional embodiment, the computer program product is embodied as a computer storage medium, and in another optional embodiment, the computer program product is embodied as a software product, such as a software development kit (Software Development Kit, SDK), etc. Wait.

上文对各个实施例的描述倾向于强调各个实施例之间的不同之处,其相同或相似之处可以互相参考,为了简洁,本文不再赘述。The above descriptions of the various embodiments tend to emphasize the differences between the various embodiments, and the same or similar points can be referred to each other, and for the sake of brevity, they will not be repeated herein.

若本公开实施例的技术方案涉及个人信息,应用本公开实施例的技术方案的产品在处理个人信息前,已明确告知个人信息处理规则,并取得个人自主同意。若本公开实施例的技术方案涉及敏感个人信息,应用本公开实施例的技术方案的产品在处理敏感个人信息前,已取得个人单独同意,并且同时满足“明示同意”的要求。例如,在摄像头等个人信息采集装置处,设置明确显著的标识告知已进入个人信息采集范围,将会对个人信息进行采集,若个人自愿进入采集范围即视为同意对其个人信息进行采集;或者在个人信息处理的装置上,利用明显的标识/信息告知个人信息处理规则的情况下,通过弹窗信息或请个人自行上传其个人信息等方式获得个人授权;其中,个人信息处理规则可包括个人信息处理者、个人信息处理目的、处理方式以及处理的个人信息种类等信息。If the technical solutions of the embodiments of the present disclosure involve personal information, before processing personal information, the products applying the technical solutions of the embodiments of the present disclosure have been clearly informed of the personal information processing rules, and the individual's voluntary consent has been obtained. If the technical solutions of the embodiments of the present disclosure involve sensitive personal information, the products applying the technical solutions of the embodiments of the present disclosure have obtained individual consent before processing sensitive personal information, and at the same time satisfy the requirement of "express consent". For example, at the personal information collection device such as a camera, set a clear and conspicuous sign to inform that the personal information has entered the scope of personal information collection, and the personal information will be collected. On the personal information processing device, if the personal information processing rules are informed by obvious signs/information, the personal authorization can be obtained by means of pop-up information or asking individuals to upload their personal information; among them, the personal information processing rules may include personal information Information processor, purpose of processing personal information, method of processing, and types of personal information processed.

以上已经描述了本公开的各实施例,上述说明是示例性的,并非穷尽性的,并且也不限于所披露的各实施例。在不偏离所说明的各实施例的范围和精神的情况下,对于本技术领域的普通技术人员来说许多修改和变更都是显而易见的。本文中所用术语的选择,旨在最好地解释各实施例的原理、实际应用或对市场中的技术的改进,或者使本技术领域的其它普通技术人员能理解本文披露的各实施例。Various embodiments of the present disclosure have been described above, and the foregoing descriptions are exemplary, not exhaustive, and not limiting of the disclosed embodiments. Numerous modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein was chosen to best explain the principles of the various embodiments, the practical application or improvement over the technology in the marketplace, or to enable others of ordinary skill in the art to understand the various embodiments disclosed herein.

Claims (19)

1.一种心率测量方法,其特征在于,包括:1. a heart rate measurement method, is characterized in that, comprises: 获取目标对象对应的图像序列,其中,所述图像序列包括多个图像;acquiring an image sequence corresponding to the target object, wherein the image sequence includes multiple images; 分别提取与所述多个图像一一对应的多项第一特征信息;respectively extracting multiple items of first feature information corresponding to the multiple images one-to-one; 采用时域卷积网络对所述多项第一特征信息进行处理,得到与所述多个图像一一对应的多项第二特征信息;Using a temporal convolution network to process the multiple items of first feature information to obtain multiple items of second feature information corresponding to the multiple images one-to-one; 根据所述多项第二特征信息,确定所述目标对象的心率值。The heart rate value of the target object is determined according to the plurality of pieces of second feature information. 2.根据权利要求1所述的方法,其特征在于,所述根据所述多项第二特征信息,确定所述目标对象的心率值,包括:2. The method according to claim 1, wherein the determining the heart rate value of the target object according to the multiple pieces of second characteristic information comprises: 根据所述多项第二特征信息,预测所述图像序列对应的远程光电容积描记rPPG信号;predicting a remote photoplethysmography rPPG signal corresponding to the image sequence according to the multiple pieces of second feature information; 根据所述rPPG信号,确定所述目标对象的心率值。According to the rPPG signal, the heart rate value of the target object is determined. 3.根据权利要求2所述的方法,其特征在于,所述根据所述多项第二特征信息,预测所述图像序列对应的远程光电容积描记rPPG信号,包括:3. The method according to claim 2, wherein the predicting the remote photoplethysmography rPPG signal corresponding to the image sequence according to the multiple pieces of second feature information comprises: 对所述多项第二特征信息进行序数回归,得到所述图像序列对应的远程光电容积描记rPPG信号。Ordinal regression is performed on the multiple items of second feature information to obtain a remote photoplethysmography rPPG signal corresponding to the image sequence. 4.根据权利要求2或3所述的方法,其特征在于,所述根据所述rPPG信号,确定所述目标对象的心率值,包括:4. The method according to claim 2 or 3, wherein the determining the heart rate value of the target object according to the rPPG signal comprises: 对所述rPPG信号进行小波分析,确定所述目标对象的心率值。Wavelet analysis is performed on the rPPG signal to determine the heart rate value of the target object. 5.根据权利要求4所述的方法,其特征在于,所述对所述rPPG信号进行小波分析,确定所述目标对象的心率值,包括:5. The method according to claim 4, wherein the performing wavelet analysis on the rPPG signal to determine the heart rate value of the target object comprises: 确定小波的子波的至少两种宽度;determining at least two widths of the wavelets of the wavelet; 根据所述至少两种宽度,对所述rPPG信号进行小波变换,得到与所述至少两种宽度一一对应的至少两项小波响应;performing wavelet transformation on the rPPG signal according to the at least two widths to obtain at least two wavelet responses corresponding to the at least two widths one-to-one; 确定所述至少两项小波响应对应的响应强度和心率值;determining the response intensity and the heart rate value corresponding to the at least two wavelet responses; 根据所述至少两项小波响应对应的响应强度和心率值,确定所述目标对象的心率值。The heart rate value of the target object is determined according to the response intensity and the heart rate value corresponding to the at least two wavelet responses. 6.根据权利要求5所述的方法,其特征在于,所述确定小波的子波的至少两种宽度,包括:6. The method according to claim 5, wherein the determining at least two widths of the wavelet of the wavelet comprises: 根据所述图像序列对应的帧率、最大预设心率值和最小预设心率值,确定小波的子波的至少两种宽度。At least two widths of the wavelet of the wavelet are determined according to the frame rate, the maximum preset heart rate value and the minimum preset heart rate value corresponding to the image sequence. 7.根据权利要求5或6所述的方法,其特征在于,所述根据所述至少两项小波响应对应的响应强度和心率值,确定所述目标对象的心率值,包括:7. The method according to claim 5 or 6, wherein the determining the heart rate value of the target object according to the response intensity and the heart rate value corresponding to the at least two wavelet responses, comprises: 将心率值属于预设心率值范围的小波响应中、响应强度最大的小波响应对应的心率值,确定为所述目标对象的心率值。The heart rate value corresponding to the wavelet response with the largest response intensity among the wavelet responses whose heart rate value belongs to the preset heart rate value range is determined as the heart rate value of the target object. 8.根据权利要求1至7中任意一项所述的方法,其特征在于,8. The method according to any one of claims 1 to 7, characterized in that, 所述分别提取与所述多个图像一一对应的多项第一特征信息,包括:依次提取所述图像序列中的图像对应的第一特征信息,并将所述第一特征信息缓存在预设长度的先进先出队列中;The extracting, respectively, multiple items of first feature information corresponding to the multiple images includes: sequentially extracting the first feature information corresponding to the images in the image sequence, and buffering the first feature information in a pre-set Set the length in the first-in first-out queue; 所述采用时域卷积网络对所述多项第一特征信息进行处理,得到与所述多个图像一一对应的多项第二特征信息,包括:采用时域卷积网络对所述先进先出队列中的多项第一特征信息进行处理,得到与所述多项第一特征信息一一对应的多项第二特征信息。The use of a time-domain convolution network to process the multiple items of first feature information to obtain multiple items of second feature information corresponding to the multiple images one-to-one includes: using a time-domain convolution network for the advanced feature information. The multiple items of first feature information in the first-out queue are processed to obtain multiple items of second feature information corresponding to the multiple items of first feature information one-to-one. 9.一种心率测量装置,其特征在于,包括:9. A heart rate measuring device, comprising: 获取模块,用于获取目标对象对应的图像序列,其中,所述图像序列包括多个图像;an acquisition module, configured to acquire an image sequence corresponding to the target object, wherein the image sequence includes multiple images; 提取模块,用于分别提取与所述多个图像一一对应的多项第一特征信息;an extraction module, configured to extract a plurality of pieces of first feature information corresponding to the plurality of images one-to-one; 处理模块,用于采用时域卷积网络对所述多项第一特征信息进行处理,得到与所述多个图像一一对应的多项第二特征信息;a processing module, configured to process the multiple items of first feature information by using a time-domain convolutional network to obtain multiple items of second feature information corresponding to the multiple images one-to-one; 第一确定模块,用于根据所述多项第二特征信息,确定所述目标对象的心率值。The first determination module is configured to determine the heart rate value of the target object according to the multiple pieces of second characteristic information. 10.根据权利要求9所述的装置,其特征在于,所述第一确定模块用于:10. The apparatus according to claim 9, wherein the first determining module is used for: 根据所述多项第二特征信息,预测所述图像序列对应的远程光电容积描记rPPG信号;predicting a remote photoplethysmography rPPG signal corresponding to the image sequence according to the multiple pieces of second feature information; 根据所述rPPG信号,确定所述目标对象的心率值。According to the rPPG signal, the heart rate value of the target object is determined. 11.根据权利要求10所述的装置,其特征在于,所述第一确定模块用于:11. The apparatus according to claim 10, wherein the first determining module is configured to: 对所述多项第二特征信息进行序数回归,得到所述图像序列对应的远程光电容积描记rPPG信号。Ordinal regression is performed on the multiple items of second feature information to obtain a remote photoplethysmography rPPG signal corresponding to the image sequence. 12.根据权利要求10或11所述的装置,其特征在于,所述第一确定模块用于:12. The apparatus according to claim 10 or 11, wherein the first determining module is configured to: 对所述rPPG信号进行小波分析,确定所述目标对象的心率值。Wavelet analysis is performed on the rPPG signal to determine the heart rate value of the target object. 13.根据权利要求12所述的装置,其特征在于,所述第一确定模块用于:13. The apparatus according to claim 12, wherein the first determining module is configured to: 确定小波的子波的至少两种宽度;determining at least two widths of the wavelets of the wavelet; 根据所述至少两种宽度,对所述rPPG信号进行小波变换,得到与所述至少两种宽度一一对应的至少两项小波响应;performing wavelet transform on the rPPG signal according to the at least two widths to obtain at least two wavelet responses corresponding to the at least two widths one-to-one; 确定所述至少两项小波响应对应的响应强度和心率值;determining the response intensity and the heart rate value corresponding to the at least two wavelet responses; 根据所述至少两项小波响应对应的响应强度和心率值,确定所述目标对象的心率值。The heart rate value of the target object is determined according to the response intensity and the heart rate value corresponding to the at least two wavelet responses. 14.根据权利要求13所述的装置,其特征在于,所述第一确定模块用于:14. The apparatus according to claim 13, wherein the first determining module is configured to: 根据所述图像序列对应的帧率、最大预设心率值和最小预设心率值,确定小波的子波的至少两种宽度。At least two widths of the wavelet of the wavelet are determined according to the frame rate, the maximum preset heart rate value and the minimum preset heart rate value corresponding to the image sequence. 15.根据权利要求13或14所述的装置,其特征在于,所述第一确定模块用于:15. The apparatus according to claim 13 or 14, wherein the first determining module is configured to: 将心率值属于预设心率值范围的小波响应中、响应强度最大的小波响应对应的心率值,确定为所述目标对象的心率值。The heart rate value corresponding to the wavelet response with the largest response intensity among the wavelet responses whose heart rate value belongs to the preset heart rate value range is determined as the heart rate value of the target object. 16.根据权利要求9至15中任意一项所述的装置,其特征在于,16. The device according to any one of claims 9 to 15, characterized in that, 所述提取模块用于:依次提取所述图像序列中的图像对应的第一特征信息,并将所述第一特征信息缓存在预设长度的先进先出队列中;The extraction module is used for: sequentially extracting the first feature information corresponding to the images in the image sequence, and buffering the first feature information in a FIFO queue of preset length; 所述处理模块用于:采用时域卷积网络对所述先进先出队列中的多项第一特征信息进行处理,得到与所述多项第一特征信息一一对应的多项第二特征信息。The processing module is used for: using a time-domain convolutional network to process multiple items of first feature information in the FIFO queue to obtain multiple items of second feature information one-to-one corresponding to the multiple items of first feature information information. 17.一种电子设备,其特征在于,包括:17. An electronic device, comprising: 一个或多个处理器;one or more processors; 用于存储可执行指令的存储器;memory for storing executable instructions; 其中,所述一个或多个处理器被配置为调用所述存储器存储的可执行指令,以执行权利要求1至8中任意一项所述的方法。wherein the one or more processors are configured to invoke executable instructions stored in the memory to perform the method of any one of claims 1-8. 18.一种计算机可读存储介质,其上存储有计算机程序指令,其特征在于,所述计算机程序指令被处理器执行时实现权利要求1至8中任意一项所述的方法。18. A computer-readable storage medium on which computer program instructions are stored, wherein the computer program instructions implement the method of any one of claims 1 to 8 when executed by a processor. 19.一种计算机程序产品,其特征在于,包括计算机可读代码,或者承载有计算机可读代码的非易失性计算机可读存储介质,当所述计算机可读代码在电子设备中运行时,所述电子设备中的处理器执行权利要求1至8中任意一项所述的方法。19. A computer program product, characterized by comprising computer-readable codes, or a non-volatile computer-readable storage medium carrying computer-readable codes, when the computer-readable codes are executed in an electronic device, A processor in the electronic device performs the method of any one of claims 1 to 8.
CN202210594335.5A 2022-05-27 2022-05-27 Heart rate measuring method, device, electronic equipment, storage medium and program product Pending CN114818833A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210594335.5A CN114818833A (en) 2022-05-27 2022-05-27 Heart rate measuring method, device, electronic equipment, storage medium and program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210594335.5A CN114818833A (en) 2022-05-27 2022-05-27 Heart rate measuring method, device, electronic equipment, storage medium and program product

Publications (1)

Publication Number Publication Date
CN114818833A true CN114818833A (en) 2022-07-29

Family

ID=82520009

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210594335.5A Pending CN114818833A (en) 2022-05-27 2022-05-27 Heart rate measuring method, device, electronic equipment, storage medium and program product

Country Status (1)

Country Link
CN (1) CN114818833A (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1318903A (en) * 2001-03-13 2001-10-24 北京阜国数字技术有限公司 Construction method of wavelet decomposing filter set and reconfigurated filter set
CN103006195A (en) * 2013-01-10 2013-04-03 浙江大学 Non-contact vital sign data monitoring system and non-contact vital sign data monitoring method on basis of image processing
CN109978886A (en) * 2019-04-01 2019-07-05 北京市商汤科技开发有限公司 Image processing method and device, electronic equipment and storage medium
US20190246910A1 (en) * 2018-02-13 2019-08-15 National Chiao Tung University Imaging-Type Heart Rate Monitoring Device and Method Thereof
CN110353646A (en) * 2019-07-29 2019-10-22 苏州市高事达信息科技股份有限公司 Contactless heart rate detection method
CN110706826A (en) * 2019-10-29 2020-01-17 江苏大学 Non-contact real-time multi-person heart rate and blood pressure measuring method based on video images
CN111134650A (en) * 2019-12-26 2020-05-12 上海眼控科技股份有限公司 Heart rate information acquisition method and device, computer equipment and storage medium
CN111624346A (en) * 2014-08-14 2020-09-04 米密德诊断学有限公司 Kit for predicting and/or determining prognosis
CN111860079A (en) * 2019-04-30 2020-10-30 北京嘀嘀无限科技发展有限公司 Living body image detection method and device and electronic equipment
CN112022131A (en) * 2020-09-16 2020-12-04 合肥工业大学 Method and system for long-term continuous non-contact heart rate measurement
CN113223697A (en) * 2021-04-23 2021-08-06 西北大学 Remote plethysmography signal detection model construction and detection method, device and application

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1318903A (en) * 2001-03-13 2001-10-24 北京阜国数字技术有限公司 Construction method of wavelet decomposing filter set and reconfigurated filter set
CN103006195A (en) * 2013-01-10 2013-04-03 浙江大学 Non-contact vital sign data monitoring system and non-contact vital sign data monitoring method on basis of image processing
CN111624346A (en) * 2014-08-14 2020-09-04 米密德诊断学有限公司 Kit for predicting and/or determining prognosis
US20190246910A1 (en) * 2018-02-13 2019-08-15 National Chiao Tung University Imaging-Type Heart Rate Monitoring Device and Method Thereof
CN109978886A (en) * 2019-04-01 2019-07-05 北京市商汤科技开发有限公司 Image processing method and device, electronic equipment and storage medium
CN111860079A (en) * 2019-04-30 2020-10-30 北京嘀嘀无限科技发展有限公司 Living body image detection method and device and electronic equipment
CN110353646A (en) * 2019-07-29 2019-10-22 苏州市高事达信息科技股份有限公司 Contactless heart rate detection method
CN110706826A (en) * 2019-10-29 2020-01-17 江苏大学 Non-contact real-time multi-person heart rate and blood pressure measuring method based on video images
CN111134650A (en) * 2019-12-26 2020-05-12 上海眼控科技股份有限公司 Heart rate information acquisition method and device, computer equipment and storage medium
CN112022131A (en) * 2020-09-16 2020-12-04 合肥工业大学 Method and system for long-term continuous non-contact heart rate measurement
CN113223697A (en) * 2021-04-23 2021-08-06 西北大学 Remote plethysmography signal detection model construction and detection method, device and application

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
阿卜杜勒哈密特·苏巴西: "机器学习实践 基于Python进行数据分析", 31 January 2022, 机械工业出版社, pages: 38 - 39 *

Similar Documents

Publication Publication Date Title
US11961282B2 (en) Methods and systems for detecting deepfakes
US11847816B2 (en) Resource optimization based on video frame analysis
Hnoohom et al. An Efficient ResNetSE Architecture for Smoking Activity Recognition from Smartwatch.
Le et al. Robust hand detection in vehicles
Hasan et al. SmartHeLP: Smartphone-based hemoglobin level prediction using an artificial neural network
US10388009B2 (en) Machine-learning measurements of quantitative feature attributes
CN110717407A (en) Human face recognition method, device and storage medium based on lip language password
US12333717B2 (en) Infrared image sequence-based sleep quality evaluation system and method comprising performing evaluation by a classifier and counting the sleep quality evaluation results to determine the largest number to judge good or poor sleep quality
CN110298230A (en) Silent biopsy method, device, computer equipment and storage medium
CN114120370A (en) CNN-LSTM-based human body falling detection implementation method and system
Kang et al. Transppg: Two-stream transformer for remote heart rate estimate
CN112800919A (en) Method, device and equipment for detecting target type video and storage medium
CN112052816B (en) Human behavior prediction method and system based on adaptive graph convolution countermeasure network
CN115375983B (en) A multi-feature fusion target detection method and system based on Pairwise classifier
KR101512048B1 (en) Action recognition method and apparatus based on sparse representation
CN114613010A (en) Training method and device for detecting model, and method and device for detecting smoking behavior
JP2022537542A (en) Dynamic image resolution evaluation
CN118986286A (en) Sleep stage method and device based on graph structure, electronic equipment and storage medium
CN115399789A (en) Visual vertigo EEG signal classification method, device, equipment and medium
Álvarez Casado et al. Assessing the feasibility of remote photoplethysmography through videocalls: A study of network and computing constraints
WO2023024334A1 (en) Human activity recognition method and apparatus based on topological representation, and device and storage medium
US20240020882A1 (en) Camera-Based Contactless Monitoring of Physiological Parameters
Sünnetci et al. Face mask detection using GoogLeNet CNN-based SVM classifiers
Bhutani et al. Preserving privacy and video quality through remote physiological signal removal
CN114818833A (en) Heart rate measuring method, device, electronic equipment, storage medium and program product

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination