[go: up one dir, main page]

CN114947768A - Respiration rate processing method, device and computer readable storage medium - Google Patents

Respiration rate processing method, device and computer readable storage medium Download PDF

Info

Publication number
CN114947768A
CN114947768A CN202210429490.1A CN202210429490A CN114947768A CN 114947768 A CN114947768 A CN 114947768A CN 202210429490 A CN202210429490 A CN 202210429490A CN 114947768 A CN114947768 A CN 114947768A
Authority
CN
China
Prior art keywords
envelope
signal
ppg
ppg signal
value
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.)
Granted
Application number
CN202210429490.1A
Other languages
Chinese (zh)
Other versions
CN114947768B (en
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.)
DO Technology Co ltd
Original Assignee
DO Technology 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 DO Technology Co ltd filed Critical DO Technology Co ltd
Priority to CN202210429490.1A priority Critical patent/CN114947768B/en
Publication of CN114947768A publication Critical patent/CN114947768A/en
Application granted granted Critical
Publication of CN114947768B publication Critical patent/CN114947768B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/02Detecting, measuring or recording for evaluating the cardiovascular system, e.g. pulse, heart rate, blood pressure or blood flow
    • A61B5/0205Simultaneously evaluating both cardiovascular conditions and different types of body conditions, e.g. heart and respiratory condition
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/02Detecting, measuring or recording for evaluating the cardiovascular system, e.g. pulse, heart rate, blood pressure or blood flow
    • A61B5/024Measuring pulse rate or heart rate
    • A61B5/02416Measuring pulse rate or heart rate using photoplethysmograph signals, e.g. generated by infrared radiation
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/02Detecting, measuring or recording for evaluating the cardiovascular system, e.g. pulse, heart rate, blood pressure or blood flow
    • A61B5/024Measuring pulse rate or heart rate
    • A61B5/02438Measuring pulse rate or heart rate with portable devices, e.g. worn by the patient
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/08Measuring devices for evaluating the respiratory organs
    • A61B5/0816Measuring devices for examining respiratory frequency
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/72Signal processing specially adapted for physiological signals or for diagnostic purposes
    • A61B5/7203Signal processing specially adapted for physiological signals or for diagnostic purposes for noise prevention, reduction or removal
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/72Signal processing specially adapted for physiological signals or for diagnostic purposes
    • A61B5/7235Details of waveform analysis
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/72Signal processing specially adapted for physiological signals or for diagnostic purposes
    • A61B5/7235Details of waveform analysis
    • A61B5/725Details of waveform analysis using specific filters therefor, e.g. Kalman or adaptive filters
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/72Signal processing specially adapted for physiological signals or for diagnostic purposes
    • A61B5/7235Details of waveform analysis
    • A61B5/7253Details of waveform analysis characterised by using transforms
    • A61B5/7257Details of waveform analysis characterised by using transforms using Fourier transforms

Landscapes

  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Engineering & Computer Science (AREA)
  • Physiology (AREA)
  • Physics & Mathematics (AREA)
  • Surgery (AREA)
  • General Health & Medical Sciences (AREA)
  • Biophysics (AREA)
  • Biomedical Technology (AREA)
  • Heart & Thoracic Surgery (AREA)
  • Medical Informatics (AREA)
  • Molecular Biology (AREA)
  • Veterinary Medicine (AREA)
  • Animal Behavior & Ethology (AREA)
  • Pathology (AREA)
  • Public Health (AREA)
  • Cardiology (AREA)
  • Signal Processing (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Psychiatry (AREA)
  • Pulmonology (AREA)
  • Mathematical Physics (AREA)
  • Measurement Of The Respiration, Hearing Ability, Form, And Blood Characteristics Of Living Organisms (AREA)

Abstract

本发明实施例提出一种呼吸率的处理方法、装置及介质。方法部分包括:首先获取PPG传感器的PPG信号,基于所述PPG信号获取上包络和下包络,并对所述上包络和下包络进行特征提取,得到包络特征;然后对所述包络特征进行融合,得到融合包络特征;其次对所述融合包络特征进行处理得到目标融合包络特征,将所述目标融合包络特征从时域转换到频域得到频域能量图;最后基于所述频域能量图,根据预先构建构建的频域能量评分模型,选取评分最高的频率值,确定所述评分最高的频率值对应的呼吸率值,从而提高了呼吸率测量值的准确性。避免了由于上包络或者下包络单个包络引起的误差造成呼吸率测量值的准确性的偏差。

Figure 202210429490

Embodiments of the present invention provide a method, a device and a medium for processing a respiration rate. The method part includes: firstly acquiring the PPG signal of the PPG sensor, acquiring an upper envelope and a lower envelope based on the PPG signal, and performing feature extraction on the upper envelope and the lower envelope to obtain envelope features; The envelope features are fused to obtain a fusion envelope feature; secondly, the fusion envelope feature is processed to obtain a target fusion envelope feature, and the target fusion envelope feature is converted from the time domain to the frequency domain to obtain a frequency domain energy map; Finally, based on the frequency domain energy map, according to the pre-built frequency domain energy scoring model, the frequency value with the highest score is selected, and the respiratory rate value corresponding to the frequency value with the highest score is determined, thereby improving the accuracy of the respiratory rate measurement value. sex. Deviations in the accuracy of respiration rate measurements due to errors caused by a single envelope of the upper envelope or lower envelope are avoided.

Figure 202210429490

Description

呼吸率的处理方法、装置及计算机可读存储介质Respiration rate processing method, device and computer readable storage medium

技术领域technical field

本发明涉及可穿戴设备技术领域,特别是涉及一种呼吸率的处理方法、装置及计算机可读存储介质。The present invention relates to the technical field of wearable devices, and in particular, to a respiratory rate processing method, device and computer-readable storage medium.

背景技术Background technique

随着人们生活水平的提高,健康指标越来越成为人们热切关注的焦点之一,呼吸功能越来越受到重视。呼吸功能的重要参数为呼吸频率,所以针对呼吸疾病的预防和识别,准确地监测呼吸率尤为重要。呼吸率的监测一般情况下采用呼吸气流法,包括温度,二氧化碳,湿度含量等,或呼吸音测量方法,胸腔阻隔法等直接测量法。间接测量法包括基于肌电,心电或者红外成像获得的呼吸信号。以上方法大多用于医疗临床呼吸监护,在日常生活中难以使用测量。利用光电容积脉搏波 (photoplethysmography,PPG)信号监测方法可以间接地获取呼吸率信息。PPG是一种光电技术,能够监测人体组织中血液容积在心动周期内的变化,具有非入侵式的特性,具有无创和简单操作的优点。With the improvement of people's living standards, health indicators have become one of the focuses of people's keen attention, and more and more attention has been paid to respiratory function. An important parameter of respiratory function is respiratory rate, so for the prevention and identification of respiratory diseases, accurate monitoring of respiratory rate is particularly important. The monitoring of respiratory rate generally adopts respiratory airflow method, including temperature, carbon dioxide, humidity content, etc., or direct measurement method such as breath sound measurement method and thoracic isolation method. Indirect measurements include respiration signals based on electromyography, electrocardiography, or infrared imaging. Most of the above methods are used for medical and clinical respiratory monitoring, and it is difficult to measure in daily life. The respiration rate information can be obtained indirectly by using the photoplethysmography (PPG) signal monitoring method. PPG is an optoelectronic technology that can monitor the changes in blood volume in human tissue during the cardiac cycle. It is non-invasive and has the advantages of non-invasive and simple operation.

随着智能穿戴行业的发展,用户对穿戴设备的智能程度期待越来越高,然而目前智能穿戴设备测量呼吸率,容易受到用户所处环境的影响,从而影响测量呼吸率的准确性。With the development of the smart wearable industry, users have higher and higher expectations for the intelligence of wearable devices. However, at present, smart wearable devices measure respiratory rate, which is easily affected by the user's environment, which affects the accuracy of respiratory rate measurement.

发明内容SUMMARY OF THE INVENTION

有鉴于此,本申请的目的在于提供呼吸率的处理方法,以检测用户的呼吸率。该方法通过首先获取PPG传感器的PPG信号,基于所述PPG信号获取上包络和下包络,并对所述上包络和下包络进行特征提取,得到包络特征;然后对所述包络特征进行融合,得到融合包络特征;其次对所述融合包络特征进行处理得到目标融合包络特征,将所述目标融合包络特征从时域转换到频域得到频域能量图;最后基于所述频域能量图,根据预先构建构建的频域能量评分模型,选取评分最高的频率值,确定所述评分最高的频率值对应的呼吸率值,从而提高了呼吸率测量值的准确性。In view of this, the purpose of the present application is to provide a method for processing the breathing rate, so as to detect the breathing rate of the user. The method obtains the envelope features by first obtaining the PPG signal of the PPG sensor, obtaining the upper envelope and the lower envelope based on the PPG signal, and performing feature extraction on the upper envelope and the lower envelope to obtain envelope features; The fusion envelope features are fused to obtain fusion envelope features; secondly, the fusion envelope features are processed to obtain the target fusion envelope features, and the target fusion envelope features are converted from the time domain to the frequency domain to obtain a frequency domain energy map; finally Based on the frequency domain energy map, according to a pre-built frequency domain energy scoring model, the frequency value with the highest score is selected, and the respiratory rate value corresponding to the frequency value with the highest score is determined, thereby improving the accuracy of the respiratory rate measurement value. .

本申请第一方面,提供了一种呼吸率处理方法,所述方法包括:获取PPG传感器的PPG信号;基于所述PPG信号获取上包络和下包络,并对所述上包络和下包络进行特征提取,得到包络特征;对所述包络特征进行融合,得到融合包络特征;对所述融合包络特征进行处理得到目标融合包络特征,将所述目标融合包络特征从时域转换到频域得到频域能量图;基于所述频域能量图,根据预先构建的频域能量评分模型,选取评分最高的频率值,确定所述评分最高的频率值对应的呼吸率值。In a first aspect of the present application, a method for processing a respiration rate is provided. The method includes: acquiring a PPG signal of a PPG sensor; acquiring an upper envelope and a lower envelope based on the PPG signal, and analyzing the upper envelope and the lower envelope The envelope features are extracted to obtain the envelope features; the envelope features are fused to obtain the fusion envelope features; the fusion envelope features are processed to obtain the target fusion envelope features, and the target fusion envelope features are obtained. Convert from the time domain to the frequency domain to obtain a frequency-domain energy map; based on the frequency-domain energy map, according to a pre-built frequency-domain energy scoring model, select the frequency value with the highest score, and determine the respiratory rate corresponding to the frequency value with the highest score value.

可选地,结合第一方面,在一种可能的实现方式中,所述对所述包络特征进行融合,得到融合包络特征,包括:将同一个窗口周期内的下包络曲线进行向上翻转,与上包络曲线按照周期对齐,进行加权融合,其中,权重值和所述窗口周期按照PPG信号频率和相关性确定;所述相关性为上包络特征或者下包络特征与呼吸率值的相关性。Optionally, in combination with the first aspect, in a possible implementation manner, the merging of the envelope features to obtain the fused envelope features includes: upwardly moving the lower envelope curve in the same window period Flip, align with the upper envelope curve according to the period, and perform weighted fusion, wherein the weight value and the window period are determined according to the frequency and correlation of the PPG signal; the correlation is the upper envelope feature or the lower envelope feature and the respiration rate value correlation.

可选地,结合第一方面,在一种可能的实现方式中,所述对所述包络特征进行融合,得到融合包络特征,包括:将同一个窗口周期内的上包络曲线进行向下翻转,与下包络曲线按照周期对齐,进行加权融合,其中,权重值和所述窗口周期按照PPG信号频率和相关性确定;所述相关性为上包络特征或者下包络特征与呼吸率值的相关性。Optionally, in combination with the first aspect, in a possible implementation manner, the merging of the envelope features to obtain the fused envelope features includes: aligning the upper envelope curves in the same window period to the upper envelope curve. Flip down, align with the lower envelope curve according to the period, and perform weighted fusion, wherein the weight value and the window period are determined according to the frequency and correlation of the PPG signal; the correlation is the upper envelope feature or the lower envelope feature and respiration Correlation of rate values.

可选地,结合第一方面,在一种可能的实现方式中,在获取PPG传感器的PPG信号之前,还包括:若为第一测量模式,则根据加速度信号判别可穿戴设备是否静止,若静止则开启PPG信号;若为第二测量模式,则根据入睡算法识别是否已入睡,若入睡则每间隔第一时间开启第二时间的PPG信号;所述第二时间小于所述第一时间。Optionally, in combination with the first aspect, in a possible implementation manner, before acquiring the PPG signal of the PPG sensor, the method further includes: if it is in the first measurement mode, determining whether the wearable device is stationary according to the acceleration signal, and if stationary. Then turn on the PPG signal; if it is the second measurement mode, identify whether you have fallen asleep according to the sleep-on algorithm, if you fall asleep, turn on the PPG signal for a second time every first time; the second time is less than the first time.

可选地,结合第一方面,在一种可能的实现方式中,所述PPG信号为绿灯信号,则还包括:根据PPG信号的间隔特征判断PPG信号的信号质量;所述PPG信号的间隔特征由相邻波峰的间隔差求出;当相邻间隔连续发生突变则判断为信号质量不符合预设条件;若信号质量符合预设条件,则读取信号,对PPG信号进行预处理去除基线信号得到预处理后的PPG信号。Optionally, in combination with the first aspect, in a possible implementation manner, if the PPG signal is a green light signal, the method further includes: judging the signal quality of the PPG signal according to the interval characteristic of the PPG signal; the interval characteristic of the PPG signal It is obtained from the interval difference between adjacent peaks; when the adjacent interval changes continuously, it is judged that the signal quality does not meet the preset conditions; if the signal quality meets the preset conditions, the signal is read, and the PPG signal is preprocessed to remove the baseline signal The preprocessed PPG signal is obtained.

可选地,结合第一方面,在一种可能的实现方式中,基于所述PPG信号获取至少一个维度的第一信号特征,包括:获取所述预处理后的PPG信号的波峰和波谷;对所述波峰和波谷分别做插值得到绿灯信号的上下包络特征。Optionally, in combination with the first aspect, in a possible implementation manner, acquiring a first signal feature of at least one dimension based on the PPG signal includes: acquiring the peaks and troughs of the preprocessed PPG signal; The wave crest and wave trough are respectively interpolated to obtain the upper and lower envelope characteristics of the green light signal.

可选地,结合第一方面,在一种可能的实现方式中,所述获取所述预处理后的PPG信号的波峰和波谷,包括:判断预处理后的PPG信号的PPG点是否为极大值或极小值;若为极大值,则判断是否为相邻窗口长度为N的最大值;如果是最大值,则为有效波峰;其中,N的选择根据PPG信号的频率确定;若为极小值,则判断是否为相邻窗口长度为N的最小值;如果是最小值,则为有效波谷;其中,N的选择根据PPG信号的频率确定。Optionally, in combination with the first aspect, in a possible implementation manner, the acquiring the peaks and troughs of the preprocessed PPG signal includes: judging whether the PPG point of the preprocessed PPG signal is extremely large. value or minimum value; if it is a maximum value, it is judged whether it is the maximum value of the adjacent window length N; if it is the maximum value, it is an effective peak; among them, the selection of N is determined according to the frequency of the PPG signal; if it is If the minimum value is the minimum value, it is determined whether the adjacent window length is the minimum value of N; if it is the minimum value, it is an effective trough; wherein, the selection of N is determined according to the frequency of the PPG signal.

可选地,结合第一方面,在一种可能的实现方式中,PPG传感器包括包括一个或多个绿光LED和光电检测器,所述获取PPG传感器的PPG信号,包括:获取绿光LED 的PPG信号。Optionally, in combination with the first aspect, in a possible implementation manner, the PPG sensor includes one or more green LEDs and a photodetector, and the acquiring the PPG signal of the PPG sensor includes: acquiring the green LED's PPG signal.

可选地,结合第一方面,在一种可能的实现方式中,PPG传感器包括包括一个或多个绿光LED、一个或多个红光LED、一个或多个红外光LED和光电检测器,所述获取PPG传感器的PPG信号,包括:检测可穿戴设备的场景;根据所述场景确定绿光、红光及红外光的信号质量情况;根据所述信号情况质量开启所述绿光LED、红光LED 及红外光LED中的至少一个。Optionally, in combination with the first aspect, in a possible implementation manner, the PPG sensor includes one or more green LEDs, one or more red LEDs, one or more infrared LEDs, and a photodetector, The acquiring the PPG signal of the PPG sensor includes: detecting the scene of the wearable device; determining the signal quality of green light, red light and infrared light according to the scene; turning on the green LED and red light according to the signal quality At least one of a light LED and an infrared light LED.

本申请第二方面,提供了一种呼吸率的处理装置,所述装置包括:获取模块,被配置为获取PPG传感器的PPG信号;提取模块,被配置为基于所述PPG信号获取上包络和下包络,并对所述上包络和下包络进行特征提取,得到包络特征;融合模块,被配置为对所述包络特征进行融合,得到融合包络特征;转换模块,被配置为对所述融合包络特征进行处理得到目标融合包络特征,将所述目标融合包络特征从时域转换到频域得到频域能量图;确定模块,被配置为基于所述频域能量图,根据预先构建构建的频域能量评分模型,选取评分最高的频率值,确定所述评分最高的频率值对应的呼吸率值。A second aspect of the present application provides a respiration rate processing device, the device comprising: an acquisition module configured to acquire a PPG signal of a PPG sensor; an extraction module configured to acquire an upper envelope and an upper envelope based on the PPG signal a lower envelope, and perform feature extraction on the upper envelope and the lower envelope to obtain envelope features; a fusion module is configured to fuse the envelope features to obtain a fusion envelope feature; a conversion module is configured In order to process the fusion envelope feature to obtain the target fusion envelope feature, convert the target fusion envelope feature from the time domain to the frequency domain to obtain a frequency domain energy map; the determining module is configured to be based on the frequency domain energy Figure, according to the frequency domain energy scoring model constructed in advance, select the frequency value with the highest score, and determine the respiratory rate value corresponding to the frequency value with the highest score.

可选地,结合第二方面,在一种可能的实现方式中,所述融合模块包括:Optionally, in combination with the second aspect, in a possible implementation manner, the fusion module includes:

第一融合单元,被配置为将同一个窗口周期内的下包络曲线进行向上翻转,与上包络曲线按照周期对齐,进行加权融合,其中,权重值和所述窗口周期按照PPG信号频率和相关性确定;所述相关性为上包络特征或者下包络特征与呼吸率值的相关性。The first fusion unit is configured to flip up the lower envelope curve in the same window period, align with the upper envelope curve according to the period, and perform weighted fusion, wherein the weight value and the window period are according to the PPG signal frequency and The correlation is determined; the correlation is the correlation between the upper envelope feature or the lower envelope feature and the respiration rate value.

可选地,结合第二方面,在一种可能的实现方式中,所述融合模块包括:Optionally, in combination with the second aspect, in a possible implementation manner, the fusion module includes:

第二融合单元,被配置为将同一个窗口周期内的上包络曲线进行向下翻转,与下包络曲线按照周期对齐,进行加权融合,其中,权重值和所述窗口周期按照PPG信号频率和相关性确定;所述相关性为上包络特征或者下包络特征与呼吸率值的相关性。The second fusion unit is configured to flip the upper envelope curve in the same window period downward, align it with the lower envelope curve according to the period, and perform weighted fusion, wherein the weight value and the window period are according to the frequency of the PPG signal and the correlation is determined; the correlation is the correlation between the upper envelope feature or the lower envelope feature and the respiration rate value.

可选地,结合第二方面,在一种可能的实现方式中,呼吸率的处理装置还包括:Optionally, in combination with the second aspect, in a possible implementation manner, the apparatus for processing the respiratory rate further includes:

第一判断模块,被配置为若为第一测量模式,则根据加速度信号判别可穿戴设备是否静止,若静止则开启PPG信号;The first judgment module is configured to judge whether the wearable device is stationary according to the acceleration signal if it is in the first measurement mode, and turn on the PPG signal if it is stationary;

第二判断模块,被配置为若为第二测量模式,则根据入睡算法识别是否已入睡,若入睡则每间隔第一时间开启第二时间的PPG信号;所述第二时间小于所述第一时间。The second judging module is configured to, if it is the second measurement mode, identify whether it has fallen asleep according to the falling asleep algorithm, and if falling asleep, turn on the PPG signal for a second time every first time interval; the second time is less than the first time time.

可选地,结合第二方面,在一种可能的实现方式中,呼吸率的处理装置还包括:Optionally, in combination with the second aspect, in a possible implementation manner, the apparatus for processing the respiratory rate further includes:

信号质量判断模块,被配置为根据PPG信号的间隔特征判断PPG信号的信号质量;所述PPG信号的间隔特征由相邻波峰的间隔差求出;The signal quality judgment module is configured to judge the signal quality of the PPG signal according to the interval characteristic of the PPG signal; the interval characteristic of the PPG signal is obtained from the interval difference between adjacent peaks;

预处理模块,被配置为当相邻间隔连续发生突变则判断为信号质量不符合预设条件;若信号质量符合预设条件,则读取信号,对PPG信号进行预处理去除基线信号得到预处理后的PPG信号。The preprocessing module is configured to judge that the signal quality does not meet the preset condition when the adjacent intervals continuously change abruptly; if the signal quality meets the preset condition, read the signal, and preprocess the PPG signal to remove the baseline signal to obtain the preprocessing after the PPG signal.

可选地,结合第二方面,在一种可能的实现方式中,获取模块包括:获取单元,被配置为获取所述预处理后的PPG信号的波峰和波谷;差值单元,被配置为对所述波峰和波谷分别做插值得到绿灯信号的上下包络特征。Optionally, in combination with the second aspect, in a possible implementation manner, the acquisition module includes: an acquisition unit, configured to acquire the peaks and troughs of the preprocessed PPG signal; a difference unit, configured to The wave crest and wave trough are respectively interpolated to obtain the upper and lower envelope characteristics of the green light signal.

可选地,结合第二方面,在一种可能的实现方式中,获取单元包括:Optionally, in conjunction with the second aspect, in a possible implementation manner, the obtaining unit includes:

判断子单元,被配置为判断预处理后的PPG信号的PPG点是否为极大值或极小值;The judgment subunit is configured to judge whether the PPG point of the preprocessed PPG signal is a maximum value or a minimum value;

若为极大值,则判断是否为相邻窗口长度为N的最大值;如果是最大值,则为有效波峰;其中,N的选择根据PPG信号的频率确定;若为极小值,则判断是否为相邻窗口长度为N的最小值;如果是最小值,则为有效波谷;其中,N的选择根据PPG信号的频率确定。If it is a maximum value, it is judged whether it is the maximum value of the adjacent window length N; if it is the maximum value, it is an effective peak; among them, the selection of N is determined according to the frequency of the PPG signal; if it is a minimum value, it is judged Whether it is the minimum value whose adjacent window length is N; if it is the minimum value, it is an effective trough; wherein, the selection of N is determined according to the frequency of the PPG signal.

可选地,结合第二方面,在一种可能的实现方式中,获取模块包括:Optionally, in conjunction with the second aspect, in a possible implementation manner, the obtaining module includes:

绿光获取单元,被配置为获取绿光LED的PPG信号。The green light acquisition unit is configured to acquire the PPG signal of the green light LED.

可选地,结合第二方面,在一种可能的实现方式中,获取模块包括:Optionally, in conjunction with the second aspect, in a possible implementation manner, the obtaining module includes:

检测单元,被配置为检测可穿戴设备的场景;a detection unit, configured to detect the scene of the wearable device;

质量判断单元,被配置为根据所述场景确定绿光、红光及红外光的信号质量情况;a quality judging unit, configured to determine the signal quality of green light, red light and infrared light according to the scene;

控制单元,被配置为根据所述信号情况质量开启所述绿光LED、红光LED及红外光LED中的至少一个。and a control unit configured to turn on at least one of the green light LED, the red light LED and the infrared light LED according to the signal condition quality.

本申请第三方面,提供了一种可穿戴设备,包括处理器和存储器,所述存储器存储有能够被所述处理器执行的计算机程序,所述计算机程序被所述处理器执行时实现如第一方面至第一方面任意一种可能的实现方式中的的方法。In a third aspect of the present application, a wearable device is provided, including a processor and a memory, where the memory stores a computer program that can be executed by the processor, and when the computer program is executed by the processor, the implementation of A method in any one possible implementation manner of the first aspect to the first aspect.

本申请第四方面,提供了一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如第一方面至第一方面任意一种可能的实现方式中的的方法。A fourth aspect of the present application provides a computer-readable storage medium on which a computer program is stored, characterized in that, when the computer program is executed by a processor, any one of the possibilities from the first aspect to the first aspect is implemented. method in the implementation.

本申请提供的实施例中,包括:首先获取PPG传感器的PPG信号,基于所述PPG 信号获取上包络和下包络,并对所述上包络和下包络进行特征提取,得到包络特征;然后对所述包络特征进行融合,得到融合包络特征;其次对所述融合包络特征进行处理得到目标融合包络特征,将所述目标融合包络特征从时域转换到频域得到频域能量图;最后基于所述频域能量图,根据预先构建构建的频域能量评分模型,选取评分最高的频率值,确定所述评分最高的频率值对应的呼吸率值,从而提高了呼吸率测量值的准确性。避免了由于上包络或者下包络单个包络引起的误差造成呼吸率测量值的准确性的偏差。The embodiments provided in this application include: first acquiring the PPG signal of the PPG sensor, acquiring an upper envelope and a lower envelope based on the PPG signal, and performing feature extraction on the upper envelope and the lower envelope to obtain an envelope Then the envelope features are fused to obtain the fusion envelope features; secondly, the fusion envelope features are processed to obtain the target fusion envelope features, and the target fusion envelope features are converted from the time domain to the frequency domain Obtain the frequency domain energy map; finally, based on the frequency domain energy map, according to the pre-constructed frequency domain energy scoring model, select the frequency value with the highest score, and determine the respiration rate value corresponding to the frequency value with the highest score, thereby improving the performance. Accuracy of respiratory rate measurements. Deviations in the accuracy of respiration rate measurements due to errors caused by a single envelope of the upper envelope or lower envelope are avoided.

附图说明Description of drawings

为了更清楚地说明本发明实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,应当理解,以下附图仅示出了本发明的某些实施例,因此不应被看作是对范围的限定,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他相关的附图。In order to illustrate the technical solutions of the embodiments of the present invention more clearly, the following briefly introduces the accompanying drawings used in the embodiments. It should be understood that the following drawings only show some embodiments of the present invention, and therefore do not It should be regarded as a limitation of the scope, and for those of ordinary skill in the art, other related drawings can also be obtained according to these drawings without any creative effort.

图1为本申请实施例提供的呼吸过程对PPG信号的波形调制作用的示意图;1 is a schematic diagram of the waveform modulation effect of a breathing process on a PPG signal provided by an embodiment of the present application;

图2为本申请实施例提供的一种呼吸率的数据处理方法流程图;2 is a flowchart of a data processing method for respiratory rate provided by an embodiment of the present application;

图3为本申请实施例提供的一种上包络频域能量图的示意图;3 is a schematic diagram of an upper envelope frequency-domain energy map provided by an embodiment of the present application;

图4为本申请实施例提供的一种呼吸率的数据处理装置的结构示意图;4 is a schematic structural diagram of a respiratory rate data processing device provided by an embodiment of the present application;

图5为本申请实施例提供的一种可穿戴设备的模块示意图。FIG. 5 is a schematic block diagram of a wearable device according to an embodiment of the present application.

具体实施方式Detailed ways

下面将结合本发明实施例中附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。通常在此处附图中描述和示出的本发明实施例的组件可以以各种不同的配置来布置和设计。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments. The components of the embodiments of the invention generally described and illustrated in the drawings herein may be arranged and designed in a variety of different configurations.

因此,以下对在附图中提供的本发明的实施例的详细描述并非旨在限制要求保护的本发明的范围,而是仅仅表示本发明的选定实施例。基于本发明的实施例,本领域技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本发明保护的范围。Thus, the following detailed description of the embodiments of the invention provided in the accompanying drawings is not intended to limit the scope of the invention as claimed, but is merely representative of selected embodiments of the invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work fall within the protection scope of the present invention.

需要说明的是,术语“第一”和“第二”等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that relational terms such as the terms "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any relationship between these entities or operations. any such actual relationship or sequence exists. Moreover, the terms "comprising", "comprising" or any other variation thereof are intended to encompass a non-exclusive inclusion such that a process, method, article or device that includes a list of elements includes not only those elements, but also includes not explicitly listed or other elements inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element.

呼吸频率(respiratory rate)是单位时间内呼吸的次数。人体组肌肉等以及静脉血对光的吸收量恒定,而当心脏搏动变化时,动脉血的容积对光的吸收也呈周期性变化。心脏跳动较强和血管中血液含量较高时,血液对光的吸收量较大,检测到的投射或者反射光强较小;心脏跳动较弱和血管中的血液含量较少时,血液对光的吸收量较小,检测到投射或者反射光强大。血液流动的速度会随着呼吸率的改变而改变,此时接收到的PPG 信号强度也会改变。因此可以通过PPG信号获取呼吸率。Respiratory rate is the number of breaths per unit time. The amount of light absorbed by human body muscles, etc. and venous blood is constant, and when the heartbeat changes, the volume of arterial blood absorbs light periodically changes. When the heart beat is strong and the blood content in the blood vessels is high, the blood absorbs light more, and the detected projected or reflected light intensity is small; when the heart beat is weak and the blood content in the blood vessels is low, the blood absorbs light. The amount of absorption is small, and the projected or reflected light is detected to be strong. The speed of blood flow changes with the respiration rate, and the received PPG signal strength also changes. Therefore, the respiration rate can be obtained from the PPG signal.

平静状态下,成年人正常的呼吸频率大约在16~20次/分。女性比男性呼吸频率平均稍快2~3次/分。新生儿呼吸频率最快约在40~50次/分,1岁以内大约在30~40次/分。 7岁以上基本符合成年人的呼吸频率。In a calm state, the normal breathing rate of adults is about 16 to 20 breaths per minute. Women's respiratory rate is slightly faster than men's on average 2 to 3 times per minute. The fastest breathing rate of newborns is about 40 to 50 breaths/min, and within 1 year old is about 30 to 40 breaths/min. Above the age of 7, it basically corresponds to the respiratory rate of an adult.

具体地,呼吸率的测量原理为:使用发光二极管照射被测部位,然后使用一个光电二极管接收透射/反射的光线,将光信号转换为电信号。Specifically, the measurement principle of the respiration rate is as follows: use a light-emitting diode to illuminate the measured part, and then use a photodiode to receive the transmitted/reflected light, and convert the light signal into an electrical signal.

请参见图1,呼吸过程对PPG波形的调制作用包括基线调制(BW)和脉冲幅度调制(AM)等。基线调制为在整个呼吸周期内,变化中的胸腔内压力会引起静脉血液回流。胸腔内压力在吸气时会降低,引起中心静脉压减少和静脉回流增加。呼气过程与吸气过程相反,即胸腔内压力在呼气时会升高,引起中心静脉压增加和静脉回流减少。当持续更多的血液分流到低压静脉系统,调制作用会作用于基线(基线为No mod),使基线波形上下移动。脉冲幅度调制是由于吸气时胸腔内压力发生变化,每一次的心室跳动,血液搏出量会降低,引起呼吸脉搏幅度降低,如图1中AM波形所示,部分呼吸波的幅值和基线相比会降低。Referring to Figure 1, the modulation effects of the breathing process on the PPG waveform include baseline modulation (BW) and pulse amplitude modulation (AM). The baseline modulation is that throughout the respiratory cycle, changing intrathoracic pressures cause venous return. Intrathoracic pressure decreases during inspiration, causing a decrease in central venous pressure and an increase in venous return. The expiratory process is the opposite of the inspiratory process, ie the intrathoracic pressure rises during exhalation, causing an increase in central venous pressure and a decrease in venous return. As more blood is continuously shunted to the low-pressure venous system, modulation acts on the baseline (baseline is No mod), shifting the baseline waveform up and down. Pulse amplitude modulation is due to the change of intrathoracic pressure during inspiration, and the blood stroke volume will decrease with each ventricular beat, resulting in a decrease in the respiratory pulse amplitude. As shown in the AM waveform in Figure 1, the amplitude and baseline of some respiratory waves will be lower than that.

作为本发明的一个实施例,参考图2,提供了一种呼吸率的处理方法,应用在可穿戴设备,方法具体包括:As an embodiment of the present invention, referring to FIG. 2 , a method for processing respiratory rate is provided, which is applied to a wearable device. The method specifically includes:

S101:获取PPG传感器的PPG信号。S101: Acquire the PPG signal of the PPG sensor.

其中,PPG传感器可以包括一个或多个绿光LED和光电检测器。之所以选择绿光作为光源是考虑到以下几个特点:皮肤的黑色素会吸收大量波长较短的波;皮肤上的水份也会吸收大量的UV和IR部分的光;进入皮肤组织的绿光(500nm)--黄光(600nm) 大部分会被红细胞吸收;红光和接近IR的光相比其他波长的光更容易穿过皮肤组织;血液要比其他组织吸收更多的光;相比红光,绿(绿-黄)光能被氧合血红蛋白和脱氧血红蛋白吸收。综上所述,绿光和红光都能作为测量光源。绿光作为光源得到的信号更好,信噪比也比其他光源好些,所以本实例中的采用的是绿光作为光源。但是考虑到皮肤情况的不同(肤色、汗水),作为优选实施例,PPG传感器包括一个或多个绿光LED、一个或多个红外光LED和光电检测器,可根据情况自动使用和切换绿光、红光和IR多种光源。PPG传感器包括包括一个或多个绿光LED、一个或多个红光LED、一个或多个红外光LED和光电检测器,所述获取PPG传感器的PPG信号,包括:检测可穿戴设备的场景;根据所述场景确定绿光、红光及红外光的信号质量情况;根据所述信号情况质量开启所述绿光LED、红光LED及红外光LED中的至少一个。例如,高温环境的场景,用户正在健身房里挥汗如雨时,皮肤表面水分增加,由于更多绿光已经被吸收掉,要检测皮下反射的绿光就比较困难,可自动将绿光关闭,转换到红外光从而适应各种不同的场景,保证测量出来的呼吸率的准确性。Among them, the PPG sensor may include one or more green LEDs and photodetectors. The reason why green light is selected as the light source is to consider the following characteristics: the melanin in the skin will absorb a large number of shorter wavelength waves; the moisture on the skin will also absorb a large amount of UV and IR light; the green light entering the skin tissue (500nm) -- yellow light (600nm) is mostly absorbed by red blood cells; red light and light close to IR pass through skin tissue more easily than other wavelengths of light; blood absorbs more light than other tissues; compared to Red light, green (green-yellow) light energy is absorbed by oxyhemoglobin and deoxyhemoglobin. In summary, both green and red light can be used as measurement light sources. The signal obtained by green light as the light source is better, and the signal-to-noise ratio is better than other light sources, so in this example, green light is used as the light source. But considering the different skin conditions (skin color, sweat), as a preferred embodiment, the PPG sensor includes one or more green LEDs, one or more infrared LEDs, and a photodetector, which can automatically use and switch green light according to the situation , red and IR light sources. The PPG sensor includes one or more green LEDs, one or more red LEDs, one or more infrared LEDs, and a photodetector, and the acquiring the PPG signal of the PPG sensor includes: detecting the scene of the wearable device; Determine the signal quality conditions of green light, red light and infrared light according to the scene; turn on at least one of the green light LED, red light LED and infrared light LED according to the signal condition quality. For example, in a high temperature environment, when the user is sweating in the gym, the moisture on the skin surface increases. Since more green light has been absorbed, it is difficult to detect the green light reflected under the skin. The green light can be automatically turned off and converted to infrared The light thus adapts to a variety of different scenarios and ensures the accuracy of the measured respiration rate.

S102:基于所述PPG信号获取上包络和下包络,并对所述上包络和下包络进行特征提取,得到包络特征。S102: Obtain an upper envelope and a lower envelope based on the PPG signal, and perform feature extraction on the upper envelope and the lower envelope to obtain envelope features.

其中,PPG信号一般表现为波形图,对所述波形图进行相关处理即可得到上包络和下包络。相关处理的方式可以包括但不限于滤波,在此不做限制。The PPG signal is generally represented as a waveform graph, and the upper envelope and the lower envelope can be obtained by performing correlation processing on the waveform graph. The related processing manner may include, but is not limited to, filtering, which is not limited herein.

S103:对所述包络特征进行融合,得到融合包络特征。S103: Fusing the envelope features to obtain a fusion envelope feature.

对于S103,包括但不限于如下两种实现方式:For S103, including but not limited to the following two implementations:

方式一:将同一个窗口周期内的下包络曲线进行向上翻转,与上包络曲线按照周期对齐,进行加权融合,其中,权重值和所述窗口周期按照PPG信号频率和相关性确定;所述相关性为上包络特征(或者下包络特征)与呼吸率值的相关性。Method 1: Flip up the lower envelope curve in the same window period, align with the upper envelope curve according to the period, and perform weighted fusion, wherein the weight value and the window period are determined according to the frequency and correlation of the PPG signal; The correlation is the correlation between the upper envelope feature (or the lower envelope feature) and the respiration rate value.

方式二:将同一个窗口周期内的上包络曲线进行向下翻转,与下包络曲线按照周期对齐,进行加权融合,其中,权重值和所述窗口周期按照PPG信号频率和相关性确定;所述相关性为上包络特征(或者下包络特征)与呼吸率值的相关性。Method 2: Flip down the upper envelope curve in the same window period, align with the lower envelope curve according to the period, and perform weighted fusion, wherein the weight value and the window period are determined according to the frequency and correlation of the PPG signal; The correlation is the correlation between the upper envelope feature (or the lower envelope feature) and the respiration rate value.

S104:对所述融合包络特征进行处理得到目标融合包络特征,将所述目标融合包络特征从时域转换到频域得到频域能量图。S104: Process the fusion envelope feature to obtain a target fusion envelope feature, and convert the target fusion envelope feature from a time domain to a frequency domain to obtain a frequency domain energy map.

其中,处理的方法可以是滤波,包括但不限于IIR,FIR或滑动滤波。经过滤波使得目标融合包络特征处于呼吸率频带3~50次/min,然后可以通过傅里叶变换,将所述目标融合包络特征从时域转换到频域得到频域能量图。The processing method may be filtering, including but not limited to IIR, FIR or sliding filtering. After filtering, the target fusion envelope feature is in the breathing rate band of 3 to 50 times/min, and then the target fusion envelope feature can be converted from the time domain to the frequency domain through Fourier transform to obtain a frequency domain energy map.

S105:基于所述频域能量图,根据预先构建构建的频域能量评分模型,选取评分最高的频率值,确定所述评分最高的频率值对应的呼吸率值。S105: Based on the frequency domain energy map, according to a pre-built frequency domain energy scoring model, select the frequency value with the highest score, and determine the respiratory rate value corresponding to the frequency value with the highest score.

参考图3,示出了包络频域能量图的示意图,横轴为时点,纵轴为频率值,较为清晰的曲线为频域能量值评分最高的频率,每个频率值对应呼吸率值。通过如下公式计算所述目标融合包络特征的频域能量图上每个时点对应的频域能量值的评分。Referring to Figure 3, a schematic diagram of the envelope frequency domain energy map is shown, the horizontal axis is the time point, the vertical axis is the frequency value, the clearer curve is the frequency with the highest frequency domain energy value score, and each frequency value corresponds to the respiratory rate value. . The score of the frequency domain energy value corresponding to each time point on the frequency domain energy map of the target fusion envelope feature is calculated by the following formula.

频域能量值评分=频率连续性评分*第一权重值+能量值评分*第二权重值。Frequency domain energy value score=frequency continuity score*first weight value+energy value score*second weight value.

其中,频率连续性评分为当前时点频率值与前一时点频率值的绝对差值小于阈值,则连续性评分高,否则评分低;能量值评分为将能量值进行排序,能量越大,评分越高;所述第一权重值和所述第二权重值根据频率能量图上每个时点对应频率的信噪比进行选择。在频域能量图中,可以通过亮度或者清晰度来表征能量值,亮度越大或者越为清晰,则表示能量值越大,反之则越小。Among them, the frequency continuity score means that the absolute difference between the frequency value at the current time point and the frequency value at the previous time point is less than the threshold value, the continuity score is high, otherwise the score is low; the energy value score means that the energy values are sorted, and the greater the energy, the higher the score. The higher the value; the first weight value and the second weight value are selected according to the signal-to-noise ratio of the corresponding frequency at each time point on the frequency energy map. In the frequency domain energy map, the energy value can be represented by brightness or clarity. The greater the brightness or the clearer the energy value, the greater the energy value, and vice versa.

作为本发明的实施例,首先获取PPG传感器的PPG信号,基于所述PPG信号获取上包络和下包络,并对所述上包络和下包络进行特征提取,得到包络特征;然后对所述包络特征进行融合,得到融合包络特征;其次对所述融合包络特征进行处理得到目标融合包络特征,将所述目标融合包络特征从时域转换到频域得到频域能量图;最后基于所述频域能量图,根据预先构建构建的频域能量评分模型,选取评分最高的频率值,确定所述评分最高的频率值对应的呼吸率值,从而提高了呼吸率测量值的准确性。避免了由于上包络或者下包络单个包络引起的误差造成呼吸率测量值的准确性的偏差。As an embodiment of the present invention, first obtain the PPG signal of the PPG sensor, obtain an upper envelope and a lower envelope based on the PPG signal, and perform feature extraction on the upper envelope and the lower envelope to obtain envelope features; then The envelope features are fused to obtain a fusion envelope feature; secondly, the fusion envelope feature is processed to obtain a target fusion envelope feature, and the target fusion envelope feature is converted from the time domain to the frequency domain to obtain the frequency domain energy map; finally based on the frequency domain energy map, according to the pre-built frequency domain energy scoring model, the frequency value with the highest score is selected, and the respiratory rate value corresponding to the frequency value with the highest score is determined, thereby improving the respiratory rate measurement. accuracy of the value. Deviations in the accuracy of respiration rate measurements due to errors caused by a single envelope of the upper envelope or lower envelope are avoided.

需要指出的是,上述呼吸率的处理方法可以应用于穿戴设备,如手环手表等。在应用过程中,该方法可以包括但不限于两种使用场景。第一,点击呼吸率测量。即用户从该可穿戴设备的图形化界面上点击呼吸率测量时,对用户的呼吸率进行测量。第二,睡眠呼吸率测量。即在用户进入睡眠状态时,对用户呼吸率进行测量。It should be pointed out that the above-mentioned method for processing the respiration rate can be applied to wearable devices, such as wristbands and watches. In the application process, the method can include but is not limited to two usage scenarios. First, click on the respiration rate measurement. That is, when the user clicks the breathing rate measurement from the graphical interface of the wearable device, the breathing rate of the user is measured. Second, sleep breathing rate measurement. That is, when the user enters the sleep state, the breathing rate of the user is measured.

作为本发明的实施例,在S101之前,还包括:As an embodiment of the present invention, before S101, it further includes:

S106:若为第一测量模式,则根据加速度信号判别可穿戴设备是否静止,若静止则开启PPG信号。S106: If it is the first measurement mode, determine whether the wearable device is stationary according to the acceleration signal, and turn on the PPG signal if it is stationary.

其中,第一测量模式可以为点击呼吸率测量模式。The first measurement mode may be a click breathing rate measurement mode.

S107:若为第二测量模式,则根据入睡算法识别是否已入睡,若入睡则每间隔第一时间开启第二时间的PPG信号;所述第二时间小于所述第一时间。S107: In the case of the second measurement mode, identify whether the person has fallen asleep according to the falling asleep algorithm, and if falling asleep, turn on the PPG signal for a second time every first time; the second time is less than the first time.

其中,第二测量模式可以为睡眠呼吸率测量模式。入睡算法可以是通过ACC振幅识别完成,在此不作限制。其中,为便于说明,第二时间可以为三分钟,第一时间可以为十分钟。如果判定用户入睡,则每间隔十分钟开启三分钟绿灯信号进行信号提取。The second measurement mode may be a sleep breathing rate measurement mode. The sleep-onset algorithm may be accomplished through ACC amplitude identification, which is not limited herein. Wherein, for the convenience of description, the second time may be three minutes, and the first time may be ten minutes. If it is determined that the user falls asleep, a three-minute green light signal is turned on every ten minutes for signal extraction.

作为本发明的一个实施例,所述PPG信号为绿灯信号,则在S101之前,还包括:As an embodiment of the present invention, if the PPG signal is a green light signal, before S101, it further includes:

S108:根据PPG信号的间隔特征判断PPG信号的信号质量;所述PPG信号的间隔特征由相邻波峰的间隔差求出。S108: Determine the signal quality of the PPG signal according to the interval characteristic of the PPG signal; the interval characteristic of the PPG signal is obtained from the interval difference between adjacent peaks.

S109:当相邻间隔连续发生突变则判断为信号质量不符合预设条件;若信号质量符合预设条件,则读取信号,对PPG信号进行预处理去除基线信号得到预处理后的PPG 信号。S109: When a sudden change occurs continuously in adjacent intervals, it is determined that the signal quality does not meet the preset condition; if the signal quality meets the preset condition, read the signal, preprocess the PPG signal and remove the baseline signal to obtain a preprocessed PPG signal.

在上述S108和S109对应实施例的基础上,作为本发明的一个实施例,S102具体包括:On the basis of the above embodiments corresponding to S108 and S109, as an embodiment of the present invention, S102 specifically includes:

S201:获取所述预处理后的PPG信号的波峰和波谷。S201: Acquire the peaks and valleys of the preprocessed PPG signal.

S202:对所述波峰和波谷分别做插值得到绿灯信号的上下包络特征。S202: Interpolate the wave crest and wave trough respectively to obtain the upper and lower envelope characteristics of the green light signal.

其中,插值方法可以包括但不限于三次样条插值,离散平滑插值等。Wherein, the interpolation method may include, but is not limited to, cubic spline interpolation, discrete smooth interpolation, and the like.

作为本发明的一个实施例,S201具体包括:As an embodiment of the present invention, S201 specifically includes:

S301:判断预处理后的PPG信号的PPG点是否为极大值或极小值。S301: Determine whether the PPG point of the preprocessed PPG signal is a maximum value or a minimum value.

S302:若为极大值,则判断是否为相邻窗口长度为N的最大值;如果是最大值,则为有效波峰;其中,N的选择根据PPG信号的频率确定。S302: If it is a maximum value, determine whether it is the maximum value of the adjacent window length N; if it is the maximum value, it is an effective peak; wherein, the selection of N is determined according to the frequency of the PPG signal.

S303:若为极小值,则判断是否为相邻窗口长度为N的最小值;如果是最小值,则为有效波谷;其中,N的选择根据PPG信号的频率确定。S303: If it is a minimum value, determine whether it is a minimum value with the adjacent window length N; if it is a minimum value, it is an effective trough; wherein, the selection of N is determined according to the frequency of the PPG signal.

对于S301~S303,判断预处理后的PPG点是否比相邻点都大,再判断是否为相邻窗口长度为N的最大值,如果是最大值,则为有效波峰。判断预处理后的PPG点是否比相邻点都小,再判断是否为相邻窗口长度为N的最小值,如果是最小值,则为有效波谷。 N的选择根据PPG信号频率确定。这种方法对于噪声的抗干扰能力强,易于计算。For S301 to S303, it is determined whether the preprocessed PPG point is larger than the adjacent points, and then it is determined whether it is the maximum value of the adjacent window length N, if it is the maximum value, it is an effective peak. Determine whether the preprocessed PPG point is smaller than the adjacent points, and then determine whether it is the minimum value of the adjacent window length N, if it is the minimum value, it is an effective trough. The selection of N is determined according to the frequency of the PPG signal. This method has strong anti-interference ability to noise and is easy to calculate.

参考图4,作为本发明的一个实施例,提供了呼吸率的处理装置40,包括:Referring to FIG. 4, as an embodiment of the present invention, a respiratory rate processing device 40 is provided, including:

获取模块410,被配置为获取PPG传感器的PPG信号;an acquisition module 410, configured to acquire the PPG signal of the PPG sensor;

提取模块420,被配置为基于所述PPG信号获取上包络和下包络,并对所述上包络和下包络进行特征提取,得到包络特征;The extraction module 420 is configured to obtain an upper envelope and a lower envelope based on the PPG signal, and perform feature extraction on the upper envelope and the lower envelope to obtain envelope features;

融合模块430,被配置为对所述包络特征进行融合,得到融合包络特征;The fusion module 430 is configured to fuse the envelope features to obtain fused envelope features;

转换模块440,被配置为对所述融合包络特征进行处理得到目标融合包络特征,将所述目标融合包络特征从时域转换到频域得到频域能量图;The conversion module 440 is configured to process the fusion envelope feature to obtain the target fusion envelope feature, and convert the target fusion envelope feature from the time domain to the frequency domain to obtain a frequency domain energy map;

确定模块450,被配置为基于所述频域能量图,根据预先构建构建的频域能量评分模型,选取评分最高的频率值,确定所述评分最高的频率值对应的呼吸率值。The determination module 450 is configured to select the frequency value with the highest score based on the frequency-domain energy map and a pre-built frequency-domain energy scoring model, and determine the respiratory rate value corresponding to the frequency value with the highest score.

可选地,在一种可能的实现方式中,融合模块430包括:Optionally, in a possible implementation manner, the fusion module 430 includes:

第一融合单元,被配置为将同一个窗口周期内的下包络曲线进行向上翻转,与上包络曲线按照周期对齐,进行加权融合,其中,权重值和所述窗口周期按照PPG信号频率和相关性确定;所述相关性为上包络特征或者下包络特征与呼吸率值的相关性。The first fusion unit is configured to flip up the lower envelope curve in the same window period, align with the upper envelope curve according to the period, and perform weighted fusion, wherein the weight value and the window period are according to the PPG signal frequency and The correlation is determined; the correlation is the correlation between the upper envelope feature or the lower envelope feature and the respiration rate value.

可选地,在一种可能的实现方式中,所述融合模块430包括:Optionally, in a possible implementation manner, the fusion module 430 includes:

第二融合单元,被配置为将同一个窗口周期内的上包络曲线进行向下翻转,与下包络曲线按照周期对齐,进行加权融合,其中,权重值和所述窗口周期按照PPG信号频率和相关性确定;所述相关性为上包络特征或者下包络特征与呼吸率值的相关性。The second fusion unit is configured to flip the upper envelope curve in the same window period downward, align it with the lower envelope curve according to the period, and perform weighted fusion, wherein the weight value and the window period are according to the frequency of the PPG signal and the correlation is determined; the correlation is the correlation between the upper envelope feature or the lower envelope feature and the respiration rate value.

可选地,在一种可能的实现方式中,呼吸率的处理装置还包括:Optionally, in a possible implementation manner, the apparatus for processing the respiratory rate further includes:

第一判断模块,被配置为若为第一测量模式,则根据加速度信号判别可穿戴设备是否静止,若静止则开启PPG信号;The first judgment module is configured to judge whether the wearable device is stationary according to the acceleration signal if it is in the first measurement mode, and turn on the PPG signal if it is stationary;

第二判断模块,被配置为若为第二测量模式,则根据入睡算法识别是否已入睡,若入睡则每间隔第一时间开启第二时间的PPG信号;所述第二时间小于所述第一时间。The second judging module is configured to, if it is the second measurement mode, identify whether it has fallen asleep according to the falling asleep algorithm, and if falling asleep, turn on the PPG signal for a second time every first time interval; the second time is less than the first time time.

可选地,在一种可能的实现方式中,呼吸率的处理装置还包括:Optionally, in a possible implementation manner, the apparatus for processing the respiratory rate further includes:

信号质量判断模块,被配置为根据PPG信号的间隔特征判断PPG信号的信号质量;所述PPG信号的间隔特征由相邻波峰的间隔差求出;The signal quality judgment module is configured to judge the signal quality of the PPG signal according to the interval characteristic of the PPG signal; the interval characteristic of the PPG signal is obtained from the interval difference between adjacent peaks;

预处理模块,被配置为当相邻间隔连续发生突变则判断为信号质量不符合预设条件;若信号质量符合预设条件,则读取信号,对PPG信号进行预处理去除基线信号得到预处理后的PPG信号。The preprocessing module is configured to judge that the signal quality does not meet the preset condition when the adjacent intervals continuously change abruptly; if the signal quality meets the preset condition, read the signal, and preprocess the PPG signal to remove the baseline signal to obtain the preprocessing after the PPG signal.

可选地,在一种可能的实现方式中,获取模块包括:Optionally, in a possible implementation manner, the obtaining module includes:

获取单元,被配置为获取所述预处理后的PPG信号的波峰和波谷;an acquisition unit, configured to acquire the peaks and troughs of the preprocessed PPG signal;

差值单元,被配置为对所述波峰和波谷分别做插值得到绿灯信号的上下包络特征。The difference unit is configured to interpolate the wave crest and the wave trough respectively to obtain the upper and lower envelope characteristics of the green light signal.

可选地,在一种可能的实现方式中,获取单元包括:Optionally, in a possible implementation manner, the obtaining unit includes:

判断子单元,被配置为判断预处理后的PPG信号的PPG点是否为极大值或极小值;The judgment subunit is configured to judge whether the PPG point of the preprocessed PPG signal is a maximum value or a minimum value;

若为极大值,则判断是否为相邻窗口长度为N的最大值;如果是最大值,则为有效波峰;其中,N的选择根据PPG信号的频率确定;If it is a maximum value, it is judged whether it is the maximum value of the adjacent window length N; if it is the maximum value, it is an effective peak; wherein, the selection of N is determined according to the frequency of the PPG signal;

若为极小值,则判断是否为相邻窗口长度为N的最小值;如果是最小值,则为有效波谷;其中,N的选择根据PPG信号的频率确定。If it is a minimum value, it is judged whether it is the minimum value of the adjacent window length N; if it is the minimum value, it is an effective trough; wherein, the selection of N is determined according to the frequency of the PPG signal.

可选地,结合第二方面,在一种可能的实现方式中,获取模块包括:Optionally, in conjunction with the second aspect, in a possible implementation manner, the obtaining module includes:

绿光获取单元,被配置为获取绿光LED的PPG信号。The green light acquisition unit is configured to acquire the PPG signal of the green light LED.

可选地,结合第二方面,在一种可能的实现方式中,获取模块包括:Optionally, in conjunction with the second aspect, in a possible implementation manner, the obtaining module includes:

检测单元,被配置为检测可穿戴设备的场景;a detection unit, configured to detect the scene of the wearable device;

质量判断单元,被配置为根据所述场景确定绿光、红光及红外光的信号质量情况;a quality judging unit, configured to determine the signal quality of green light, red light and infrared light according to the scene;

控制单元,被配置为根据所述信号情况质量开启所述绿光LED、红光LED及红外光LED中的至少一个。and a control unit configured to turn on at least one of the green light LED, the red light LED and the infrared light LED according to the signal condition quality.

本申请提供的一个实施例中首先获取PPG传感器的PPG信号,基于所述PPG信号获取上包络和下包络,并对所述上包络和下包络进行特征提取,得到包络特征;然后对所述包络特征进行融合,得到融合包络特征;其次对所述融合包络特征进行处理得到目标融合包络特征,将所述目标融合包络特征从时域转换到频域得到频域能量图;最后基于所述频域能量图,根据预先构建构建的频域能量评分模型,选取评分最高的频率值,确定所述评分最高的频率值对应的呼吸率值,从而提高了呼吸率测量值的准确性。避免了由于上包络或者下包络单个包络引起的误差造成呼吸率测量值的准确性的偏差。In an embodiment provided by the present application, the PPG signal of the PPG sensor is first obtained, an upper envelope and a lower envelope are obtained based on the PPG signal, and feature extraction is performed on the upper envelope and the lower envelope to obtain envelope features; Then, the envelope features are fused to obtain the fusion envelope features; secondly, the fusion envelope features are processed to obtain the target fusion envelope features, and the target fusion envelope features are converted from the time domain to the frequency domain to obtain the frequency domain. domain energy map; finally based on the frequency domain energy map, according to the frequency domain energy scoring model constructed in advance, select the frequency value with the highest score, and determine the respiratory rate value corresponding to the frequency value with the highest score, thereby improving the respiratory rate Accuracy of measurements. Deviations in the accuracy of respiration rate measurements due to errors caused by a single envelope of the upper envelope or lower envelope are avoided.

如图5所示,可穿戴设备100可以包括一个或多个处理器101、存储器102、通信模块103、传感器模块104、显示屏105、音频模块106、扬声器107、麦克风108、相机模块109、马达110、按键111、指示器112、电池113、电源管理模块114。这些部件可以通过一条或多条通信总线或信号线来进行通信。As shown in FIG. 5, the wearable device 100 may include one or more processors 101, a memory 102, a communication module 103, a sensor module 104, a display screen 105, an audio module 106, a speaker 107, a microphone 108, a camera module 109, a motor 110 , buttons 111 , indicator 112 , battery 113 , power management module 114 . These components may communicate via one or more communication buses or signal lines.

处理器101是信息处理、程序运行的最终执行单元,可以运行操作系统或应用程序,以执行可穿戴设备100的各种功能应用以及数据处理。处理器101可以包括一个或多个处理单元,例如:处理器101可以包括中央处理器(central processing unit,CPU)、图形处理单元(Graphics Processing Unit,GPU)、图像信号处理器(Image Signal Processing,ISP)、传感器中枢处理器或通信处理器(Central Processor,CP)应用处理器(ApplicationProcessor,AP)等等。在一些实施例中,处理器101可以包括一个或多个接口。接口用于将外围设备耦接到处理器101,以传输处理器101与外围设备之间的指令或者数据。在本申请实施例中,处理器101还用于识别加速度传感器和陀螺仪传感器采集的运动数据所对应的目标运动类型,例如,走/跑/骑/游等。具体地,处理器101将接收到的运动数据对应的运动波形特征与目标运动类型对应的运动波形特征作比对,以此来识别运动数据所对应的目标运动类型,处理器101还用于判断在预设时间段内的运动数据是否均满足目标运动类型关联的预设运动强度要求,当判断出运动数据在预设时间段内均满足目标运动类型关联的预设运动强度要求时,处理器101控制开启与目标运动类型关联的传感器组。The processor 101 is the final execution unit for information processing and program execution, and can run an operating system or an application program to execute various functional applications and data processing of the wearable device 100 . The processor 101 may include one or more processing units, for example, the processor 101 may include a central processing unit (central processing unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU), an image signal processor (Image Signal Processing, ISP), sensor central processor or communication processor (Central Processor, CP), application processor (Application Processor, AP) and so on. In some embodiments, the processor 101 may include one or more interfaces. The interface is used to couple peripheral devices to the processor 101 to transfer instructions or data between the processor 101 and the peripheral devices. In this embodiment of the present application, the processor 101 is further configured to identify the target motion type corresponding to the motion data collected by the acceleration sensor and the gyro sensor, for example, walking/running/riding/swimming. Specifically, the processor 101 compares the motion waveform feature corresponding to the received motion data with the motion waveform feature corresponding to the target motion type, thereby identifying the target motion type corresponding to the motion data, and the processor 101 is also used to determine Whether the exercise data in the preset time period meets the preset exercise intensity requirements associated with the target exercise type, when it is determined that the exercise data all meet the preset exercise intensity requirements associated with the target exercise type in the preset time period, the processor 101 controls to turn on the sensor group associated with the target movement type.

存储器102可以用于存储计算机可执行程序代码,可执行程序代码包括指令。存储器102可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储可穿戴设备100使用过程中所创建的数据,例如用户每次运动的运动参数,如步数、步幅、配速、心率、呼吸率、血糖浓度、能量消耗(卡路里)等。存储器可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universalflash storage,UFS)等。在本申请实施例中,存储器102能够存储走、跑、骑、游等目标运动所对应的传感器波形规律特性数据。Memory 102 may be used to store computer-executable program code, which includes instructions. The memory 102 may include a stored program area and a stored data area. The storage program area can store an operating system, an application program required for at least one function (such as a sound playback function, an image playback function, etc.), and the like. The storage data area can store data created during the use of the wearable device 100, such as the exercise parameters of the user for each exercise, such as the number of steps, stride, pace, heart rate, breathing rate, blood sugar concentration, energy consumption (calories), etc. . The memory may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (UFS), and the like. In this embodiment of the present application, the memory 102 can store sensor waveform regularity characteristic data corresponding to target movements such as walking, running, riding, and swimming.

通信模块103可支持可穿戴设备100通过无线通信技术与网络以及移动终端通信。通信模块103将电信号转换为电磁信号进行发送,或者将接收到的电磁信号转换为电信号。通信模块103可以包括蜂窝移动通信模块、短距离无线通信模块、无线互联网模块、位置信息模块中的一个或者多个。移动通信模块可以基于移动通信的技术标准发送或接收无线信号,可以使用任一移动通信标准或协议,包括但不限于全球移动通信系统 (GSM)、码分多址(CDMA)、码分多址2000(CDMA2000)、宽带CDMA(WCDMA)、时分同步码分多址(TD-SCDMA)、长期演进(LTE)、LTE-A(高级长期演进)等。无线互联网模块可以根据无线互联网技术经由通信网络发送或接收无线信号,包括无线 LAN(WLAN)、无线保真(Wi-Fi)、Wi-Fi直连、数字生活网络联盟(DLNA)、无线宽带(WiBro) 等。短距离无线通信模块可根据短距离通信技术进行发送或接收无线信号,这些技术包括蓝牙、射频识别(RFID)、红外数据通讯(IrDA)、超宽带(UWB)、ZigBee、近场通信(NFC)、无线保真(Wi-Fi)、Wi-Fi直连、无线USB(无线通用串行总线)等。位置信息模块可以基于全球导航卫星系统(GNSS)获取可穿戴设备的位置,全球导航卫星系统(GNSS)可以包括全球定位系统(GPS)、全球卫星导航系统(Glonass)、北斗卫星导航系统和伽利略卫星导航系统中的一个或多个。The communication module 103 can support the wearable device 100 to communicate with the network and the mobile terminal through wireless communication technology. The communication module 103 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals into electrical signals. The communication module 103 may include one or more of a cellular mobile communication module, a short-range wireless communication module, a wireless Internet module, and a location information module. The mobile communication module can send or receive wireless signals based on the technical standards of mobile communication, and can use any mobile communication standard or protocol, including but not limited to Global System for Mobile Communications (GSM), Code Division Multiple Access (CDMA), Code Division Multiple Access 2000 (CDMA2000), Wideband CDMA (WCDMA), Time Division Synchronous Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), LTE-A (Long Term Evolution Advanced), etc. The wireless internet module can send or receive wireless signals via communication networks according to wireless internet technologies, including wireless LAN (WLAN), wireless fidelity (Wi-Fi), Wi-Fi Direct, Digital Living Network Alliance (DLNA), wireless broadband ( WiBro) etc. The short-range wireless communication module can transmit or receive wireless signals according to short-range communication technologies, including Bluetooth, Radio Frequency Identification (RFID), Infrared Data Communication (IrDA), Ultra Wide Band (UWB), ZigBee, Near Field Communication (NFC) , Wireless Fidelity (Wi-Fi), Wi-Fi Direct, Wireless USB (Wireless Universal Serial Bus), etc. The location information module can obtain the position of the wearable device based on the Global Navigation Satellite System (GNSS), which can include Global Positioning System (GPS), Global Navigation Satellite System (Glonass), Beidou satellite navigation system and Galileo satellites One or more of the navigation systems.

传感器模块104用于测量物理量或检测可穿戴设备100的操作状态。传感器模块104 可以包括加速度传感器104A、陀螺仪传感器104B、气压传感器104C、磁传感器104D、生物特征传感器104E、接近传感器104F、环境光传感器104G、触摸传感器104H等。传感器模块104还可以包括控制电路,以用于控制包括在传感器模块104中的一个或多个传感器。The sensor module 104 is used to measure physical quantities or detect the operation state of the wearable device 100 . The sensor module 104 may include an acceleration sensor 104A, a gyroscope sensor 104B, an air pressure sensor 104C, a magnetic sensor 104D, a biometric sensor 104E, a proximity sensor 104F, an ambient light sensor 104G, a touch sensor 104H, and the like. The sensor module 104 may also include control circuitry for controlling one or more sensors included in the sensor module 104 .

其中,加速度传感器104A可检测可穿戴设备100在各个方向上的加速度大小。当可穿戴设备100静止时可检测出重力的大小及方向。还可以用于识别可穿戴设备100的姿态,应用于横竖屏切换,计步器等应用。在一种实施方式中,加速度传感器104A可以和陀螺仪传感器104B结合起来用于监测用户在运动过程中的步幅、步频及配速等。The acceleration sensor 104A can detect the acceleration of the wearable device 100 in various directions. The magnitude and direction of gravity can be detected when the wearable device 100 is stationary. It can also be used for recognizing the posture of the wearable device 100, and can be used for switching between horizontal and vertical screens, pedometers and other applications. In one embodiment, the acceleration sensor 104A can be combined with the gyroscope sensor 104B to monitor the stride, stride frequency and pace of the user during exercise.

陀螺仪传感器104B可以用于确定可穿戴设备100的运动姿态。在一些实施例中,可以通过陀螺仪传感器104B确定可穿戴设备100围绕三个轴(即,x,y和z轴)的角速度。The gyroscope sensor 104B may be used to determine the motion posture of the wearable device 100 . In some embodiments, the angular velocity of wearable device 100 about three axes (ie, x, y, and z axes) may be determined by gyro sensor 104B.

气压传感器104C用于测量气压。在一些实施例中,可穿戴设备100通过气压传感器104C测得的气压值计算海拔高度,辅助定位和导航。The air pressure sensor 104C is used to measure air pressure. In some embodiments, the wearable device 100 calculates the altitude from the air pressure value measured by the air pressure sensor 104C to assist in positioning and navigation.

GPS传感器104D可以用于记录用户活动轨迹以确定用户位置。GPS sensor 104D may be used to record user activity traces to determine user location.

生物特征传感器104E用于测量用户的生理参数,包括但不限于光电容积脉搏波(Photoplethysmography,PPG)传感器、ECG传感器、EMG传感器、血糖传感器、温度传感器。例如可穿戴设备100可以通过光电容积脉搏波传感器和/或ECG传感器的信号测量用户的心率、呼吸率、血压数据,基于血糖传感器产生的数据识别用户的血糖值。在本申请实施例中,PPG传感器用于检测用户的心率,具体来讲,PPG传感器在开启之后能够持续检测与用户心率相关的信号数据并传到处理器101,再由处理器101通过心率算法计算出心率值。在本申请实施例中,温度传感器用于检测用户腕部皮肤的第一温度,具体地,温度传感器在开启后能够持续获取用户腕部皮肤的温度数据并传输至处理器101,再由处理器101将温度传感器的电信号数据通过温度算法计算出对应的物理意义的温度值。The biometric sensor 104E is used to measure the physiological parameters of the user, including but not limited to a photoplethysmography (PPG) sensor, an ECG sensor, an EMG sensor, a blood glucose sensor, and a temperature sensor. For example, the wearable device 100 may measure the user's heart rate, respiration rate, and blood pressure data through signals from a photoplethysmography sensor and/or an ECG sensor, and identify the user's blood sugar level based on data generated by the blood sugar sensor. In the embodiment of the present application, the PPG sensor is used to detect the user's heart rate. Specifically, after the PPG sensor is turned on, it can continuously detect the signal data related to the user's heart rate and transmit it to the processor 101, and then the processor 101 uses the heart rate algorithm. Calculate the heart rate value. In the embodiment of the present application, the temperature sensor is used to detect the first temperature of the skin of the user's wrist. Specifically, after the temperature sensor is turned on, it can continuously acquire the temperature data of the skin of the user's wrist and transmit it to the processor 101, and then the processor 101 Calculate the temperature value corresponding to the physical meaning from the electrical signal data of the temperature sensor through the temperature algorithm.

接近传感器104F用于在没有任何的物理接触时检测可穿戴设备100附近物体的存在。在一些实施例中,接近传感器104F可以包括发光二极管和光检测器。发光二极管可以是红外光,可穿戴设备100使用光检测器检测来自附近物体的反射光。当检测到反射光时,可以确定可穿戴设备100附近有物体。可穿戴设备100可以利用接近传感器104F 检测其佩戴状态。Proximity sensor 104F is used to detect the presence of objects near wearable device 100 in the absence of any physical contact. In some embodiments, proximity sensor 104F may include light emitting diodes and light detectors. The light emitting diodes may be infrared light, and the wearable device 100 uses a light detector to detect reflected light from nearby objects. When the reflected light is detected, it may be determined that there is an object near the wearable device 100 . The wearable device 100 can detect its wearing state using the proximity sensor 104F.

环境光传感器104G用于感知环境光亮度。在一些实施例中,可穿戴设备100可以根据感知的环境光亮度自适应调节显示屏亮度,以降低功耗。The ambient light sensor 104G is used to sense ambient light brightness. In some embodiments, the wearable device 100 can adaptively adjust the brightness of the display screen according to the perceived brightness of the ambient light to reduce power consumption.

触摸传感器104H用于检测作用于其上或附近的触摸操作,也称“触控器件”。触摸传感器104H可以设置于显示屏105,由触摸传感器104H与显示屏105组成触摸屏。The touch sensor 104H is used to detect touch operations on or near it, and is also referred to as a "touch device". The touch sensor 104H may be disposed on the display screen 105 , and a touch screen is formed by the touch sensor 104H and the display screen 105 .

显示屏105用于显示图形用户界面(User Interface,UI),图形用户界面可以包括图形、文本、图标、视频及其它们的任意组合。显示屏105可以是液晶显示屏(LiquidCrystal Display,液晶显示屏)、有机发光二极管(Organic Light-Emitting Diode,OLED)显示屏等。当显示屏105是触摸显示屏时,显示屏105能够采集在显示屏105的表面或表面上方的触摸信号,并将该触摸信号作为控制信号输入至处理器101。The display screen 105 is used to display a graphical user interface (User Interface, UI), and the graphical user interface may include graphics, texts, icons, videos, and any combination thereof. The display screen 105 may be a liquid crystal display (Liquid Crystal Display, liquid crystal display), an organic light-emitting diode (Organic Light-Emitting Diode, OLED) display, and the like. When the display screen 105 is a touch display screen, the display screen 105 can collect a touch signal on or above the surface of the display screen 105 and input the touch signal to the processor 101 as a control signal.

音频模块106,扬声器107,麦克风108提供用户与可穿戴设备100之间的音频功能等,例如收听音乐或通话;又例如当可穿戴设备100接收来自移动终端的通知消息时,处理器101控制音频模块106输出预设的音频信号,扬声器107发出声音提醒用户。其中,音频模块106将接收到的音频数据转换为电信号发送至扬声器107,由扬声器107 将电信号转换为声音;或者由麦克风108将声音转换为电信号发送至音频模块106,再由音频模块106将音频电信号转换为音频数据。The audio module 106, the speaker 107, and the microphone 108 provide audio functions between the user and the wearable device 100, such as listening to music or talking; for example, when the wearable device 100 receives a notification message from the mobile terminal, the processor 101 controls the audio The module 106 outputs a preset audio signal, and the speaker 107 emits a sound to remind the user. The audio module 106 converts the received audio data into an electrical signal and sends it to the speaker 107, and the speaker 107 converts the electrical signal into sound; or the microphone 108 converts the sound into an electrical signal and sends it to the audio module 106, and then the audio module 108 converts the sound into electrical signals and sends it to the audio module 106. 106 converts the audio electrical signal into audio data.

相机模块111用于捕获静态图像或视频。相机模块111可以包括图像传感器、图像信号处理器(ISP)和数字信号处理器(DSP)。图像传感器把光信号转换成电信号,图像信号处理器将电信号转换成数字图像信号,数字信号处理器将数字图像信号转换成标准格式(RGB、YUV)的图像信号。图像传感器可以是电荷耦合元件(charge coupled device, CCD)或金属氧化物半导体元件(complementary metal-oxide-semiconductor,CMOS)。The camera module 111 is used to capture still images or video. The camera module 111 may include an image sensor, an image signal processor (ISP), and a digital signal processor (DSP). The image sensor converts the optical signal into an electrical signal, the image signal processor converts the electrical signal into a digital image signal, and the digital signal processor converts the digital image signal into a standard format (RGB, YUV) image signal. The image sensor may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS).

马达110可以将电信号转换为机械振动,以产生振动效果。马达110可以用于来电、消息的振动提示,也可以用于触摸振动反馈。按键109包括开机键,音量键等。按键109 可以是机械按键(物理按钮)或者触摸式按键。指示器112用于指示可穿戴设备100的状态,例如用于指示充电状态、电量变化,也可以用于指示消息,未接来电,通知等。在一些实施例中,可穿戴设备100接收到来自移动终端应用的通知消息后,提供振动反馈。The motor 110 may convert electrical signals into mechanical vibrations to generate vibration effects. The motor 110 can be used for vibration prompting of incoming calls and messages, and can also be used for touch vibration feedback. The keys 109 include a power-on key, a volume key, and the like. The keys 109 may be mechanical keys (physical buttons) or touch keys. The indicator 112 is used to indicate the state of the wearable device 100 , for example, to indicate a charging state, a change in power, and also to indicate a message, a missed call, a notification, and the like. In some embodiments, the wearable device 100 provides vibration feedback after receiving the notification message from the mobile terminal application.

电池113用于为可穿戴设备100的各个部件提供电力。电源管理模块114用于电池的充放电管理,以及监测电池容量,电池循环次数,电池健康状态(是否漏电,阻抗、电压、电流以及温度)等参数。在一些实施例中,电源管理模块114可以通过有线或者无线方式为电池充电。The battery 113 is used to power various components of the wearable device 100 . The power management module 114 is used to manage the charge and discharge of the battery, and monitor parameters such as battery capacity, battery cycle times, battery health status (whether leakage, impedance, voltage, current, and temperature). In some embodiments, the power management module 114 may charge the battery via wired or wireless means.

应当理解,在一些实施例中,可穿戴设备100可由前述部件中的一个或多个组成,可穿戴设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It should be understood that, in some embodiments, the wearable device 100 may be composed of one or more of the aforementioned components, and the wearable device 100 may include more or less components than shown, or combine certain components, or split certain components, or different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

应当理解,在一些实施例中,可穿戴设备可由前述部件中的一个或多个组成,可穿戴设备可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It should be understood that, in some embodiments, the wearable device may be composed of one or more of the aforementioned components, and the wearable device may include more or less components than shown, or combine some components, or separate some components components, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

本申请还提供了一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现上述呼吸率的处理方法。The present application also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the above-mentioned method for processing the respiration rate is implemented.

在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,也可以通过其它的方式实现。以上所描述的装置实施例仅仅是示意性的,例如,附图中的流程图和框图显示了根据本发明的多个实施例的装置、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段或代码的一部分,所述模块、程序段或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现方式中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个连续的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或动作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method may also be implemented in other manners. The apparatus embodiments described above are merely illustrative, for example, the flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality and possible implementations of apparatuses, methods and computer program products according to various embodiments of the present invention. operate. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code that contains one or more functions for implementing the specified logical function(s) executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the block 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.

另外,在本发明各个实施例中的各功能模块可以集成在一起形成一个独立的部分,也可以是各个模块单独存在,也可以两个或两个以上模块集成形成一个独立的部分。In addition, each functional module in each embodiment of the present invention may be integrated to form an independent part, or each module may exist independently, or two or more modules may be integrated to form an independent part.

所述功能如果以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,RandomAccess Memory)、磁碟或者光盘等各种可以存储程序代码的介质。If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention can be embodied in the form of a software product in essence, or the part that contributes to the prior art or the part of the technical solution. The computer software product is stored in a storage medium, including Several instructions are used to cause a computer device to perform all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: U disk, removable hard disk, Read-Only Memory (ROM, Read-Only Memory), Random Access Memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program codes.

以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and changes. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included within the protection scope of the present invention.

Claims (12)

1. A method of processing a breathing rate, the method comprising:
acquiring a PPG signal of a PPG sensor;
acquiring an upper envelope and a lower envelope based on the PPG signal, and performing feature extraction on the upper envelope and the lower envelope to obtain envelope features;
fusing the envelope characteristics to obtain fused envelope characteristics;
processing the fusion envelope characteristics to obtain target fusion envelope characteristics, and converting the target fusion envelope characteristics from a time domain to a frequency domain to obtain a frequency domain energy map;
based on the frequency domain energy graph, according to a frequency domain energy scoring model which is constructed in advance, a frequency value with the highest score is selected, and a respiration rate value corresponding to the frequency value with the highest score is determined.
2. The processing method of claim 1, wherein said fusing the envelope features to obtain fused envelope features comprises:
upwards overturning a lower envelope curve in the same window period, aligning the lower envelope curve with an upper envelope curve according to a period, and performing weighting fusion, wherein a weight value and the window period are determined according to PPG signal frequency and correlation; the correlation is the correlation of the upper envelope characteristic or the lower envelope characteristic with the respiration rate value.
3. The processing method of claim 1, wherein said fusing the envelope features to obtain fused envelope features comprises:
downwards turning an upper envelope curve in the same window period, aligning the upper envelope curve with a lower envelope curve according to the period, and performing weighting fusion, wherein a weight value and the window period are determined according to PPG signal frequency and correlation; the correlation is the correlation of the upper envelope characteristic or the lower envelope characteristic with the respiration rate value.
4. A processing method as claimed in any one of claims 1 to 3, further comprising, before acquiring the PPG signal of the PPG sensor:
if the measurement mode is the first measurement mode, judging whether the wearable equipment is static according to the acceleration signal, and if the measurement mode is static, starting a PPG signal;
if the measurement mode is the second measurement mode, whether the user falls asleep is identified according to a sleep algorithm, and if the user falls asleep, the PPG signal of the second time is started at the first interval; the second time is less than the first time.
5. The processing method of claim 4, wherein the PPG signal is a green light signal, further comprising:
judging the signal quality of the PPG signal according to the interval characteristic of the PPG signal; the interval characteristic of the PPG signal is obtained by the interval difference of adjacent peaks;
when the adjacent intervals continuously generate mutation, the signal quality is judged to be not in accordance with the preset condition; and if the signal quality meets the preset condition, reading the signal, preprocessing the PPG signal, and removing the baseline signal to obtain a preprocessed PPG signal.
6. The processing method of claim 5, wherein obtaining a first signal feature in at least one dimension based on the PPG signal comprises:
acquiring the wave crest and the wave trough of the preprocessed PPG signal;
and respectively interpolating the wave crest and the wave trough to obtain the upper and lower envelope characteristics of the green light signal.
7. The processing method of claim 6, wherein the obtaining peaks and valleys of the pre-processed PPG signal comprises:
judging whether the PPG point of the preprocessed PPG signal is a maximum value or a minimum value;
if the window length is the maximum value, judging whether the window length is the maximum value of N; if the peak value is the maximum value, the peak value is a valid peak; wherein the selection of N is determined according to the frequency of the PPG signal;
if the window length is the minimum value, judging whether the window length is the minimum value of the adjacent window length N; if the minimum value is the minimum value, the effective trough is obtained; wherein the selection of N is determined according to the frequency of the PPG signal.
8. The processing method of claim 1, wherein the PPG sensor comprises one or more green LEDs and a photodetector, and the obtaining a PPG signal for the PPG sensor comprises:
the PPG signal of the green LED is acquired.
9. The process of claim 1, wherein the PPG sensor comprises one or more green LEDs, one or more red LEDs, one or more infrared LEDs, and a photodetector, and wherein acquiring PPG signals of the PPG sensor comprises:
detecting a scene of the wearable device;
determining signal quality conditions of green light, red light and infrared light according to the scene;
and at least one of the green light LED, the red light LED and the infrared light LED is turned on according to the signal condition quality.
10. A device for processing a breathing rate, the device comprising:
an acquisition module configured to acquire a PPG signal of a PPG sensor;
the extraction module is configured to acquire an upper envelope and a lower envelope based on the PPG signal, and perform feature extraction on the upper envelope and the lower envelope to obtain envelope features;
the fusion module is configured to fuse the envelope features to obtain fused envelope features;
the conversion module is configured to process the fusion envelope characteristics to obtain target fusion envelope characteristics, and convert the target fusion envelope characteristics from a time domain to a frequency domain to obtain a frequency domain energy map;
and the determining module is configured to select a frequency value with the highest score according to a frequency domain energy scoring model which is constructed in advance based on the frequency domain energy map, and determine a respiration rate value corresponding to the frequency value with the highest score.
11. A wearable device comprising a processor and a memory, the memory storing a computer program executable by the processor, the computer program when executed by the processor implementing the method of any of claims 1-9.
12. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 1-9.
CN202210429490.1A 2022-04-22 2022-04-22 Respiration rate processing method, apparatus and computer readable storage medium Active CN114947768B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210429490.1A CN114947768B (en) 2022-04-22 2022-04-22 Respiration rate processing method, apparatus and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210429490.1A CN114947768B (en) 2022-04-22 2022-04-22 Respiration rate processing method, apparatus and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN114947768A true CN114947768A (en) 2022-08-30
CN114947768B CN114947768B (en) 2025-05-23

Family

ID=82978917

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210429490.1A Active CN114947768B (en) 2022-04-22 2022-04-22 Respiration rate processing method, apparatus and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN114947768B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116019423A (en) * 2022-12-30 2023-04-28 广州昂宝电子有限公司 Sleep monitoring method and system
CN117547234A (en) * 2023-04-13 2024-02-13 青岛大学 A behind-the-ear health monitoring hearing aid device

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030055324A1 (en) * 2001-09-13 2003-03-20 Imagyn Medical Technologies, Inc. Signal processing method and device for signal-to-noise improvement
CN101732050A (en) * 2009-12-04 2010-06-16 西安交通大学 Photoelectric volume wave-based breathing rate monitoring method
CN104921715A (en) * 2015-06-09 2015-09-23 上海华旌科技有限公司 Multi-parameter vital sign measurement device
CN106264475A (en) * 2016-10-13 2017-01-04 西安交通大学 Single photoelectric sensor sleep-respiratory multi-physiological-parameter monitoring method and device
CN107303183A (en) * 2017-06-08 2017-10-31 中国医学科学院生物医学工程研究所 The algorithm of apnea monitoring in a kind of sleep quality
US20190261890A1 (en) * 2015-06-01 2019-08-29 Pixart Imaging Inc. Optical respiration rate detection device
CN112998690A (en) * 2021-03-29 2021-06-22 华南理工大学 Pulse wave multi-feature fusion-based respiration rate extraction method
CN113425282A (en) * 2020-03-23 2021-09-24 复旦大学附属中山医院 Respiration rate monitoring method and device based on multispectral PPG blind source separation method
CN114305325A (en) * 2020-09-30 2022-04-12 华为云计算技术有限公司 Emotion detection method and device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030055324A1 (en) * 2001-09-13 2003-03-20 Imagyn Medical Technologies, Inc. Signal processing method and device for signal-to-noise improvement
CN101732050A (en) * 2009-12-04 2010-06-16 西安交通大学 Photoelectric volume wave-based breathing rate monitoring method
US20190261890A1 (en) * 2015-06-01 2019-08-29 Pixart Imaging Inc. Optical respiration rate detection device
CN104921715A (en) * 2015-06-09 2015-09-23 上海华旌科技有限公司 Multi-parameter vital sign measurement device
CN106264475A (en) * 2016-10-13 2017-01-04 西安交通大学 Single photoelectric sensor sleep-respiratory multi-physiological-parameter monitoring method and device
CN107303183A (en) * 2017-06-08 2017-10-31 中国医学科学院生物医学工程研究所 The algorithm of apnea monitoring in a kind of sleep quality
CN113425282A (en) * 2020-03-23 2021-09-24 复旦大学附属中山医院 Respiration rate monitoring method and device based on multispectral PPG blind source separation method
CN114305325A (en) * 2020-09-30 2022-04-12 华为云计算技术有限公司 Emotion detection method and device
CN112998690A (en) * 2021-03-29 2021-06-22 华南理工大学 Pulse wave multi-feature fusion-based respiration rate extraction method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116019423A (en) * 2022-12-30 2023-04-28 广州昂宝电子有限公司 Sleep monitoring method and system
CN117547234A (en) * 2023-04-13 2024-02-13 青岛大学 A behind-the-ear health monitoring hearing aid device

Also Published As

Publication number Publication date
CN114947768B (en) 2025-05-23

Similar Documents

Publication Publication Date Title
US11589758B2 (en) Calibration of pulse-transit-time to blood pressure model using multiple physiological sensors and various methods for blood pressure variation
US12070297B2 (en) Photoplethysmography-based pulse wave analysis using a wearable device
US11350829B2 (en) Portable monitoring devices for processing applications and processing analysis of physiological conditions of a user associated with the portable monitoring device
US11096601B2 (en) Optical device for determining pulse rate
US10830904B2 (en) GPS power conservation using environmental data
CN108742559B (en) Wearable heart rate monitor
US9241635B2 (en) Portable monitoring devices for processing applications and processing analysis of physiological conditions of a user associated with the portable monitoring device
CN104207756B (en) Wearable heart rate monitor
US9311825B2 (en) Biometric sensing and processing apparatus for mobile gaming, education, and wellness applications
US9005129B2 (en) Wearable heart rate monitor
US20170188864A1 (en) Spherical handheld biosensor array device for physiological status monitoring
US20160302706A1 (en) Physiological data collection
US20170156609A1 (en) Pulse cycle detection device and method, and wearable electronic device
JP2009072417A (en) Biological information processing apparatus and method
US20160206212A1 (en) User-wearable devices including optical sensors with power saving features and methods for use therewith
CN114947768B (en) Respiration rate processing method, apparatus and computer readable storage medium
CN114947767B (en) Respiration rate processing method, apparatus and computer readable storage medium
CN114847942A (en) Blood oxygen data processing method, related device and medium
CN115054210B (en) Respiration rate processing method, apparatus and computer readable storage medium
CN114847943A (en) Blood oxygen data processing method, related device and medium

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
GR01 Patent grant
GR01 Patent grant