[go: up one dir, main page]

CN113892913A - Prompt message generation method and device, electronic equipment and storage medium - Google Patents

Prompt message generation method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113892913A
CN113892913A CN202111173655.5A CN202111173655A CN113892913A CN 113892913 A CN113892913 A CN 113892913A CN 202111173655 A CN202111173655 A CN 202111173655A CN 113892913 A CN113892913 A CN 113892913A
Authority
CN
China
Prior art keywords
function
signal
eigenmode
determining
sleep
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
CN202111173655.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.)
Gree Electric Appliances Inc of Zhuhai
Zhuhai Lianyun Technology Co Ltd
Original Assignee
Gree Electric Appliances Inc of Zhuhai
Zhuhai Lianyun 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 Gree Electric Appliances Inc of Zhuhai, Zhuhai Lianyun Technology Co Ltd filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202111173655.5A priority Critical patent/CN113892913A/en
Publication of CN113892913A publication Critical patent/CN113892913A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/48Other medical applications
    • A61B5/4806Sleep evaluation
    • A61B5/4818Sleep apnoea
    • 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
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/24Detecting, measuring or recording bioelectric or biomagnetic signals of the body or parts thereof
    • A61B5/316Modalities, i.e. specific diagnostic methods
    • A61B5/318Heart-related electrical modalities, e.g. electrocardiography [ECG]
    • 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

Landscapes

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

Abstract

The embodiment of the disclosure discloses a method and a device for generating prompt information, electronic equipment and a storage medium. The method comprises the following steps: acquiring a first electrocardiographic respiration signal of a user acquired during a first sleep period; determining a first eigenmode function of the first cardiac respiratory signal, wherein a domain of the first eigenmode function corresponds to the first sleep period; calculating a first average of said first eigenmode function within said defined domain; and determining whether to generate sleep prompting information or not based on the size relation between the first average value and a preset threshold value. According to the embodiment of the sleep prompting method and the sleep prompting device, whether the sleep prompting information is generated or not is determined through the eigenmode function of the electrocardio-respiration signal, so that the mode of determining whether the sleep prompting information is generated or not is enriched, the accuracy of generating the sleep prompting information is improved, and the user can be protected from suffocation hazards.

Description

Prompt message generation method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of sleep detection technologies, and in particular, to a method and an apparatus for generating a prompt message, an electronic device, and a storage medium.
Background
Approximately one third of the time that human beings are in sleep is a necessary condition for growth, development, efficient learning and working of human bodies.
However, it is investigated that adults with more than three adults currently have sleep problems of varying degrees. Among them, sleep apnea hypopnea syndrome is a common sleep-related disease and is also a major factor affecting sleep quality. When sleep apnea occurs, timely waking is necessary, otherwise, problems such as hypoxia, sudden death and the like can be caused.
Disclosure of Invention
In view of this, to solve some or all of the technical problems, embodiments of the present disclosure provide a method and apparatus for generating hint information, an electronic device, and a storage medium.
In a first aspect, an embodiment of the present disclosure provides a method for generating a prompt message, where the method includes:
acquiring a first electrocardiographic respiration signal of a user acquired during a first sleep period;
determining a first eigenmode function of the first cardiac respiratory signal, wherein a domain of the first eigenmode function corresponds to the first sleep period;
calculating a first average of said first eigenmode function within said defined domain;
and determining whether to generate sleep prompting information or not based on the size relation between the first average value and a preset threshold value.
Optionally, in the method of any embodiment of the present disclosure, the preset threshold is determined as follows:
acquiring a preset number of periods of second electrocardiographic respiration signals of the user, wherein the number of the acquired second electrocardiographic respiration signals is equal to the number of the periods;
respectively determining a second eigenmode function of each acquired second electrocardio-respiration signal, wherein the definition domain of the second eigenmode function corresponds to the period of the second electrocardio-respiration signal;
and determining a preset threshold corresponding to the user based on the determined second average value of each second eigenmode function in the defined domain.
Optionally, in a method according to any embodiment of the present disclosure, the determining a preset threshold corresponding to the user based on a second average value of the determined second eigenmode functions in a defined domain includes:
and determining the product of the second average value of each determined second eigenmode function in the defined domain and a preset value as a preset threshold corresponding to the user, wherein the preset value is a positive number smaller than 1.
Optionally, in the method according to any embodiment of the present disclosure, in a case that the target electrocardiographic respiration signal is the first electrocardiographic respiration signal, the target eigenmode function is the first eigenmode function; when the target electrocardiographic respiration signal is the second electrocardiographic respiration signal, the target eigenmode function is the second eigenmode function; and
the target eigenmode function of the target electrocardio-respiratory signal is determined as follows:
determining a mean function of the target electrocardio-respiratory signal;
determining the difference between the function indicated by the target electrocardio-respiratory signal and the mean value function as a direct current removing function, and executing the following determination steps based on the direct current removing function: determining whether the direct current removing function meets a preset eigenmode function judgment condition;
and if the direct current removing function meets the eigenmode function judging condition, determining the direct current removing function meeting the eigenmode function judging condition as the target eigenmode function.
Optionally, in the method of any embodiment of the present disclosure, the method further includes:
if the de-DC function does not satisfy the eigenmode function determination condition, determining a difference between the de-DC function that does not satisfy the eigenmode function determination condition and the mean function as a new de-DC function, and performing the determining step based on the new de-DC function.
Optionally, in the method according to any embodiment of the present disclosure, the first electrocardiographic respiration signal includes a plurality of cardioshock signals and a plurality of respiration signals, and the domains of the plurality of cardioshock signals and the domains of the plurality of respiration signals correspond to each other one to one; and
the determining whether to generate the sleep prompting information based on the magnitude relation between the first average value and the preset threshold includes:
determining an average value of eigenmode functions of the plurality of ballistocardiograms in a defined domain as an average value corresponding to the plurality of ballistocardiograms;
determining an average value of the eigenmode functions of the plurality of respiratory signals in a defined domain as an average value corresponding to the plurality of respiratory signals;
determining the number of the average values corresponding to the plurality of cardiac shock signals, which is smaller than a first preset threshold value, as a first number, wherein the first preset threshold value is set for the cardiac shock signals;
determining the number of average values corresponding to a plurality of respiratory signals, which is smaller than a second preset threshold value, as a second number, wherein the second preset threshold value is set for the respiratory signals;
and if the sum of the first number and the second number is greater than or equal to a preset number value, determining to generate sleep prompting information.
Optionally, in the method of any embodiment of the present disclosure, the first preset threshold and the second preset threshold are also set for a duration of the first sleep period.
In a second aspect, an embodiment of the present disclosure provides an apparatus for generating a prompt message, where the apparatus includes:
an acquisition unit configured to acquire a first electrocardiographic respiration signal of a user acquired during a first sleep period;
a first determining unit configured to determine a first eigenmode function of the first cardiac respiration signal, wherein a domain of the first eigenmode function corresponds to the first sleep period;
a calculation unit configured to calculate a first average value of the first eigenmode function within the defined domain;
and the second determining unit is configured to determine whether to generate the sleep prompting information based on the magnitude relation between the first average value and a preset threshold value.
Optionally, in the apparatus according to any embodiment of the present disclosure, the preset threshold is determined as follows:
acquiring a preset number of periods of second electrocardiographic respiration signals of the user, wherein the number of the acquired second electrocardiographic respiration signals is equal to the number of the periods;
respectively determining a second eigenmode function of each acquired second electrocardio-respiration signal, wherein the definition domain of the second eigenmode function corresponds to the period of the second electrocardio-respiration signal;
and determining a preset threshold corresponding to the user based on the determined second average value of each second eigenmode function in the defined domain.
Optionally, in the apparatus according to any embodiment of the present disclosure, the determining a preset threshold corresponding to the user based on a second average value of the determined second eigenmode functions in a defined domain includes:
and determining the product of the second average value of each determined second eigenmode function in the defined domain and a preset value as a preset threshold corresponding to the user, wherein the preset value is a positive number smaller than 1.
Optionally, in the apparatus according to any embodiment of the present disclosure, in a case that the target electrocardiographic respiration signal is the first electrocardiographic respiration signal, the target eigenmode function is the first eigenmode function; when the target electrocardiographic respiration signal is the second electrocardiographic respiration signal, the target eigenmode function is the second eigenmode function; and
the target eigenmode function of the target electrocardio-respiratory signal is determined as follows:
determining a mean function of the target electrocardio-respiratory signal;
determining the difference between the function indicated by the target electrocardio-respiratory signal and the mean value function as a direct current removing function, and executing the following determination steps based on the direct current removing function: determining whether the direct current removing function meets a preset eigenmode function judgment condition;
and if the direct current removing function meets the eigenmode function judging condition, determining the direct current removing function meeting the eigenmode function judging condition as the target eigenmode function.
Optionally, in an apparatus according to any embodiment of the present disclosure, the apparatus further includes:
if the de-DC function does not satisfy the eigenmode function determination condition, determining a difference between the de-DC function that does not satisfy the eigenmode function determination condition and the mean function as a new de-DC function, and performing the determining step based on the new de-DC function.
Optionally, in an apparatus according to any embodiment of the present disclosure, the first electrocardiographic respiration signal includes a plurality of cardioshock signals and a plurality of respiration signals, and the domains of the plurality of cardioshock signals and the domains of the plurality of respiration signals correspond to each other one by one; and
the second determination unit includes:
a first determining subunit, configured to determine an average value of eigenmode functions of a plurality of the ballistocardiograph signals in a defined domain as a corresponding average value of the plurality of the ballistocardiograph signals;
a second determining subunit, configured to determine an average value of the eigenmode functions of a plurality of the respiratory signals in a defined domain as a corresponding average value of the plurality of the respiratory signals;
a third determining subunit configured to determine, as the first number, a number smaller than a first preset threshold in an average value corresponding to a plurality of the ballistocardiographic signals, where the first preset threshold is set for the ballistocardiographic signal;
a fourth determining subunit, configured to determine, as a second number, a number smaller than a second preset threshold in an average value corresponding to a plurality of the respiratory signals, where the second preset threshold is set for the respiratory signals;
a fifth determining subunit configured to determine to generate the sleep prompt information if a sum of the first number and the second number is greater than or equal to a preset number value.
Optionally, in the apparatus according to any embodiment of the present disclosure, the first preset threshold and the second preset threshold are also set for a duration of the first sleep period.
In a third aspect, an embodiment of the present disclosure provides an electronic device, including:
a memory for storing a computer program;
a processor, configured to execute the computer program stored in the memory, and when the computer program is executed, implement the method of any embodiment of the method for generating the prompt information according to the first aspect of the present disclosure.
In a fourth aspect, the disclosed embodiments provide a computer readable medium, and when being executed by a processor, the computer program implements the method of any embodiment of the method for generating prompt information according to the first aspect.
In a fifth aspect, the disclosed embodiments provide a computer program, which includes computer readable code, when the computer readable code is run on a device, causes a processor in the device to execute instructions for implementing the steps in the method according to any one of the embodiments of the method for generating hint information as described in the first aspect above.
Based on the method for generating the prompt message provided by the above embodiment of the present disclosure, a first electrocardiographic respiration signal of the user acquired during a first sleep period may be acquired, and then a first eigenmode function of the first electrocardiographic respiration signal is determined, where a domain of the first eigenmode function corresponds to the first sleep period, then a first average value of the first eigenmode function within the domain is calculated, and finally, whether to generate the sleep prompt message is determined based on a magnitude relationship between the first average value and a preset threshold. Therefore, whether the sleep prompt information is generated or not is determined through the eigenmode function of the electrocardio-respiration signal, so that the mode of determining whether the sleep prompt information is generated or not is enriched, the accuracy of generating the sleep prompt information is improved, and the user can be protected from suffocation hazards.
The technical solution of the present disclosure is further described in detail by the accompanying drawings and examples.
Drawings
Other features, objects and advantages of the disclosure will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
fig. 1 is an exemplary system architecture diagram of a method for generating a hint information or a device for generating a hint information provided by an embodiment of the present disclosure;
fig. 2 is a flowchart of a method for generating a prompt message according to an embodiment of the present disclosure;
FIG. 3 is a schematic diagram of one application scenario for the embodiment of FIG. 2;
FIG. 4A is a flowchart of another method for generating hint information provided by embodiments of the present disclosure;
fig. 4B is a flowchart of a method for generating a prompt message according to an embodiment of the disclosure;
fig. 5 is a schematic structural diagram of an apparatus for generating a prompt message according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of an electronic device provided in an embodiment of the present disclosure.
Detailed Description
Various exemplary embodiments of the present disclosure will now be described in detail with reference to the accompanying drawings. It should be noted that: the relative arrangement of parts and steps, numerical expressions, and values set forth in these embodiments do not limit the scope of the present disclosure unless specifically stated otherwise.
It will be understood by those within the art that the terms "first," "second," and the like in the embodiments of the present disclosure are used merely to distinguish one object, step, device, or module from another object, and do not denote any particular technical meaning or logical order therebetween.
It is also understood that in embodiments of the present disclosure, "a plurality" may refer to two or more and "at least one" may refer to one, two or more.
It is also to be understood that any reference to any component, data, or structure in the embodiments of the disclosure, may be generally understood as one or more, unless explicitly defined otherwise or stated otherwise.
In addition, the term "and/or" in the present disclosure is only one kind of association relationship describing an associated object, and means that three kinds of relationships may exist, for example, a and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" in the present disclosure generally indicates that the former and latter associated objects are in an "or" relationship.
It should also be understood that the description of the various embodiments of the present disclosure emphasizes the differences between the various embodiments, and the same or similar parts may be referred to each other, so that the descriptions thereof are omitted for brevity.
The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the disclosure, its application, or uses.
Techniques, methods, and apparatus known to those of ordinary skill in the relevant art may not be discussed in detail but are intended to be part of the specification where appropriate.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, further discussion thereof is not required in subsequent figures.
It should be noted that, in the present disclosure, the embodiments and features of the embodiments may be combined with each other without conflict. The present disclosure will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
Fig. 1 is an exemplary system architecture diagram of a method for generating hint information or a device for generating hint information provided by an embodiment of the present disclosure.
As shown in fig. 1, the system architecture 100 may include an electronic device 101. Optionally, system architecture 100 may also include electronic device 102 and network 103. Network 103 is the medium used to provide communication links between electronic device 101 and electronic device 102. Network 103 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The electronic device 101 may interact with the electronic device 102 via the network 103 to receive or transmit data (e.g., cardiac electrical respiratory signals), etc. Here, at least one of the electronic device 101 and the electronic device 102 may be a server or a terminal (e.g., a cell phone). When the electronic device 101 and/or the electronic device 102 function as a terminal, various communication client applications may be installed thereon. When the electronic device 101 and/or the electronic device 102 serve as a server, it may be a server providing various services, for example, a background server performing corresponding processing on an instruction sent by a terminal. The background server can analyze and process the received data. As an example, the server may be a cloud server. As an example, a pressure sensor for acquiring an electrocardiographic respiration signal may be provided in the electronic device 101. Illustratively, the electronic device 101 may be a sleep detector.
It should be noted that the method for generating the prompt information provided by the embodiment of the present disclosure may be executed by, but is not limited to, the electronic device described above. The execution main body of the method for generating the prompt information provided by the embodiment of the present disclosure may be hardware or software, and is not specifically limited herein.
It should be understood that the number of electronic devices and networks in fig. 1 is merely illustrative. There may be any number of electronic devices and networks, as desired for implementation. When the execution subject of the method for generating the prompt information provided by the embodiment of the present disclosure does not need to interact with other electronic devices, the system architecture 100 may include only the electronic device 101, and not the electronic device 102 and the network 103.
Fig. 2 shows a flow 200 of a method for generating hint information provided by an embodiment of the present disclosure. The method for generating the prompt message comprises the following steps:
in step 201, a first electrocardiographic respiration signal of a user acquired during a first sleep period is acquired.
In this embodiment, an execution subject of the method for generating the reminder information (for example, the electronic device 101 shown in fig. 1 or the reminder information generating device) may obtain the first cardiac respiration signal of the user acquired during the first sleep period from other electronic devices or locally by means of wired or wireless connection.
The first sleep period may be any time period during which the user sleeps. The duration of the first sleep period may be predetermined or may be set according to actual needs.
The first electrocardiographic respiration signal may be an electrocardiographic respiration signal of the user during a first sleep period, and the start time and the end time of the first electrocardiographic respiration signal are respectively the same as the start time and the end time of the first sleep period. The cardiac electrical respiratory signal (e.g., the first cardiac electrical respiratory signal) may include at least one of a Ballistocardiogram (BCG) signal and a respiratory signal. The heart attack signal, also called heart beat signal, may be a signal generated by pressure change caused by the micro-motion of heart beat. The respiration signal may be a signal generated by a pressure change due to the amplitude of the thorax during respiration.
In practice, a pressure sensor may be employed to capture physiological signals during sleep (including the first sleep period).
In the process of signal capture, besides the heart impact signal and the respiration signal related to sleep apnea detection, the body movement (such as turning over) during sleep and the friction between the body and materials such as a mattress, a bedding and the like can also enable the pressure sensor to capture a noise signal, so that the pressure sensor can capture three parts of the heart impact signal, the respiration signal and the noise signal.
Here, the pressure signal (including the above-mentioned three components of the cardiac shock signal, the respiration signal, and the noise signal) collected by the pressure sensor may be converted into an electrical signal, and the electrical signal may be amplified. It can be understood that since the body signal captured by the pressure sensor is very weak, the pressure signal can be converted into an electrical signal using an analog vibration circuit, and the corresponding electrical signal can be amplified using a charge amplifier.
The noise signal in the amplified electrical signal may then be attenuated.
The noise signal affects the signals related to the sleep apnea determination (the heart attack signal and the respiration signal, which are related to the determination of apnea), so that a filter (such as a band-pass filter) is required to attenuate the noise signal to ensure the normal determination of apnea. From this, a ballistocardiogram signal and a respiration signal can be obtained.
Next, a low pass filter may be used to further filter the ballistocardiogram signal and the respiration signal.
For example, FIR (Finite Impulse Response, also called non-recursive filter) with linear phase (linear phase means that delay time of each frequency component is the same after signals with different frequencies pass through the system) may be used, the cut-off frequency may be 0.67 hz at most, corresponding to a heart rate of 40, and a low-pass filter is used to filter the heart attack signal and the respiration signal, so as to complete the pre-processing of the relevant signals. Whereby at least one of the filter impulse signal and the respiration signal can be taken as the first electro-cardio respiration signal.
In step 202, a first eigenmode function of the first cardiac respiration signal is determined.
In this embodiment, the execution body may determine an eigenmode function of the first cardiac respiration signal, so as to obtain a first eigenmode function.
Wherein the first eigenmode function has a domain corresponding to the first sleep period. That is, the domain of the first eigenmode function is the interval range indicated by the start time and the end time of the first sleep period.
The first eigenmode function may be an eigenmode function of the first electrocardiographic respiration signal.
In practice, the Intrinsic Mode Function (IMF) needs to satisfy the following two conditions: in the whole time range of the function, the number of local extreme points and zero-crossing points must be equal, or the difference is at most 1; at any point in time, the envelope of the local maxima (upper envelope) and the envelope of the local minima (lower envelope) must be, on average, zero.
Here, the eigenmode function of the electrocardiographic respiration signal (including the first eigenmode function of the first electrocardiographic respiration signal) can be determined in various ways. For example, Ensemble modal composition (EEMD).
Step 203, calculate a first average value of the first eigenmode function in the defined domain.
In this embodiment, the execution body may calculate an average value of the first eigenmode function within the defined domain, thereby obtaining a first average value.
And 204, determining whether to generate sleep prompting information based on the magnitude relation between the first average value and a preset threshold value.
In this embodiment, the execution subject may determine whether to generate the sleep prompt message based on a magnitude relationship between the first average value and a preset threshold.
The preset threshold may be a fixed value, or may be a different value set for at least one of the following differences: a user, a duration of the first sleep period, a category of the first electrocardiographic respiration signal. The kind of the first electrical cardiac respiration signal may be a cardiac shock signal, a respiration signal, or the like. The sleep prompting message can prompt, such as wake-up, the user in a sleep state.
In some optional implementations of the present embodiment, the first electrocardiographic respiration signal includes a plurality of cardioblast signals and a plurality of respiration signals. The plurality of ballistocardiogram signals and the plurality of respiration signals correspond one to one. The plurality of the definition domains of the cardiac shock signals correspond to the plurality of the definition domains of the respiratory signals one by one. That is, the domain of the ballistocardiogram signal is the domain of the respiration signal corresponding to the ballistocardiogram signal.
On this basis, the executing entity may execute the step 204 in a manner as follows to determine whether to generate the sleep promoting information based on the magnitude relationship between the first average value and a preset threshold:
first, an average value of eigenmode functions of the plurality of ballistocardiograms in a defined domain is determined as an average value corresponding to the plurality of ballistocardiograms. Here, each eigenmode function of the ballistocardiogram signal corresponds to an average value. A number of average values can thus be obtained, the number of average values being equal to the number of ballistocardiogram signals.
Then, an average value of the eigenmode functions of the plurality of respiratory signals in a defined domain is determined as an average value corresponding to the plurality of respiratory signals. Here, the eigenmode function of each respiratory signal corresponds to an average value. A number of averages can thus be obtained, the number of averages being equal to the number of breathing signals.
Then, the number of the average values corresponding to the plurality of the cardiac shock signals, which is smaller than a first preset threshold value, is determined as a first number. Wherein, the first preset threshold is set for the cardiac shock signal.
And then, determining the number which is smaller than a second preset threshold value in the average value corresponding to the plurality of respiratory signals as a second number. Wherein the second preset threshold is set for the respiration signal.
And finally, if the sum of the first number and the second number is greater than or equal to a preset number value, determining to generate sleep prompt information.
For example, if the number of occurrences (i.e., the sum of the first number and the second number) per hour (i.e., the first sleep period) exceeds 5 times (i.e., a preset number value), or 30 times (i.e., a preset number value) or more (i.e., the sum of the first number and the second number) of occurrences (i.e., the sum of the first number and the second number) within 7 hours (i.e., the first sleep period) is determined to have occurred, the sleep apnea event is generated, and then the sleep apnea information is determined to be generated.
It can be understood that, in the above alternative implementation manner, whether the sleep prompting information is generated is determined by judging the relationship between the sum of the first number and the second number and a preset number value, so that the more accurate judgment of the sleep apnea event is realized by combining the cardiac shock signal and the respiration signal.
In some application scenarios of the above-mentioned alternative implementation, the first preset threshold and the second preset threshold are also set for a duration of the first sleep period.
As an example, the first preset threshold may be positively correlated with the duration of the first sleep period, and the second preset threshold may be positively correlated with the duration of the first sleep period.
It can be understood that, in the above application scenario, the first preset threshold and the second preset threshold may be set based on the duration of the first sleep period, so as to further improve the accuracy of determining the sleep apnea event.
With continued reference to fig. 3, fig. 3 is a schematic diagram of an application scenario of the method for generating prompt information according to the present embodiment. In fig. 3, a sleep monitor 310 first acquires a first electrocardiographic respiration signal 301 of a user acquired during a first sleep period. The sleep detector 310 then determines the first eigenmode function 302 of the first cardiac respiration signal 301. The first eigenmode function 302 has a domain corresponding to the first sleep period. The sleep detector 310 then calculates a first average 303 of the first eigenmode function 302 within the defined range. Finally, the sleep detector 310 determines to generate the sleep prompt message 305 based on the magnitude relationship between the first average 303 and the preset threshold 304.
The method provided by the above embodiment of the present disclosure may acquire a first electrocardiographic respiration signal of a user acquired during a first sleep period, then determine a first eigenmode function of the first electrocardiographic respiration signal, where a domain of the first eigenmode function corresponds to the first sleep period, then calculate a first average value of the first eigenmode function within the domain, and finally determine whether to generate sleep-prompting information based on a magnitude relationship between the first average value and a preset threshold. Therefore, whether the sleep prompt information is generated or not is determined through the eigenmode function of the electrocardio-respiration signal, so that the mode of determining whether the sleep prompt information is generated or not is enriched, the accuracy of generating the sleep prompt information is improved, and the user can be protected from suffocation hazards.
With further reference to FIG. 4A, a flow 400 of yet another embodiment of a method of generating hints information is shown. The process 400 of the method for generating prompt information includes the following steps:
step 401, acquiring a second electrocardiographic respiration signal of a preset number of cycles of the user acquired during a second sleep period.
In this embodiment, an execution subject of the method for generating the reminder information (for example, the electronic device 101 shown in fig. 1 or a device for generating the reminder information) or other electronic devices may acquire, from other electronic devices or locally, the second electrocardiographic respiration signals of the preset number of cycles of the user acquired during the second sleep period in a wired or wireless connection manner. Wherein the number of the second acquired electrocardiographic respiration signals is equal to the number of cycles.
The second sleep period may be any time period during which the user sleeps. The duration of the second sleep period may be predetermined or may be set according to actual needs.
The second electrical respiration signal may be an electrical respiration signal of a cycle (e.g. 1 second) of the user during a second sleep period, and the start time and the end time of the second electrical respiration signal are respectively the same as the start time and the end time of the cycle during the second sleep period. The cardiac electrical respiratory signal (e.g., the second cardiac electrical respiratory signal) may include at least one of a Ballistocardiogram (BCG) signal and a respiratory signal.
The preset number of cycles may be a continuous or discontinuous preset number of time periods in the second sleep period.
Here, the manner of obtaining the second electrocardiographic respiration signal may be the same as that of obtaining the first electrocardiographic respiration signal, and specific reference may be made to the description of the embodiment corresponding to fig. 2, which is not described herein again.
In step 402, second eigenmode functions of the acquired second electrocardiographic respiration signals are respectively determined.
In this embodiment, the second eigenmode functions of the acquired respective second electrocardiographic respiration signals may be determined separately. Wherein the domain of the second eigenmode function corresponds to a period of the second cardiac respiratory signal. Each second cardiac respiratory signal may correspond to a second eigenmode function.
Wherein the domain of the second eigenmode function corresponds to a single period of the second sleep period. That is, the definition domain of the second eigenmode function is the interval range indicated by the start time and the end time of the single cycle of the second sleep period.
The second eigenmode function may be an eigenmode function of the second cardiac respiration signal.
Here, a manner of determining the second eigenmode function of the second electrocardiographic respiration signal may be the same as the manner of determining the first eigenmode function of the first electrocardiographic respiration signal, and specifically, reference may be made to the description of the embodiment corresponding to fig. 2, and details are not repeated here.
Step 403, determining a preset threshold corresponding to the user based on the second average value of the determined second eigenmode functions in the defined domain.
In this embodiment, the predetermined threshold corresponding to the user may be determined based on a second average value of the determined second eigenmode functions in the defined domain.
Wherein the second average value may be an average value of the second eigenmode function within the defined domain. Each second eigenmode function may correspond to a second average value.
Here, the predetermined threshold corresponding to the user may be determined based on the second average value of the determined second eigenmode functions within the defined domain in various ways.
For example, an average value of the respective second average values may be used as a preset threshold value corresponding to the user.
At step 404, a first electrocardiographic respiration signal of the user is acquired that is acquired during a first sleep period.
In this embodiment, the execution subject may acquire a first electrocardiographic respiration signal of the user acquired during the first sleep period.
Here, in the case where the second electrocardiographic respiration signal includes only the ballistocardiogram signal, the first electrocardiographic respiration signal may include only the ballistocardiogram signal; in the case where the second electrocardiographic respiration signal includes only respiration signals, the first electrocardiographic respiration signal may include only respiration signals; where the second electrocardiographic respiration signal includes both a ballistocardiographic signal and a respiration signal, the first electrocardiographic respiration signal may include both a ballistocardiographic signal and a respiration signal.
The first sleep period and the second sleep period may be the same or different. As an example, the duration of the second sleep period may be 5 times the duration of the first sleep period, and the second sleep period may be continuous with the first sleep period, and the second sleep period may precede the first sleep period.
In step 405, a first eigenmode function of the first cardiac respiration signal is determined.
In this embodiment, the execution body may determine a first eigenmode function of the first cardiac respiration signal. Wherein the first eigenmode function has a domain corresponding to the first sleep period.
Step 406, a first average of the first eigenmode function within the defined domain is calculated.
In this embodiment, the execution entity may calculate a first average value of the first eigenmode function within the defined domain.
Step 407, determining whether to generate sleep prompting information based on the magnitude relation between the first average value and a preset threshold.
In this embodiment, the execution subject may determine whether to generate the sleep prompt message based on a magnitude relationship between the first average value and a preset threshold.
In this embodiment, the specific implementation manner of steps 404 to 407 may refer to the description of steps 201 to 204 in the embodiment corresponding to fig. 2, and is not described herein again.
In some optional implementations of this embodiment, the determining a preset threshold corresponding to the user based on the determined second average value of each second eigenmode function in the defined domain includes:
and determining the product of the second average value of each second eigenmode function in the defined domain and a preset value as a preset threshold corresponding to the user. Wherein the predetermined value is a positive number less than 1.
In some application scenarios of the above optional implementation, in a case where the target electrocardiographic respiration signal is the first electrocardiographic respiration signal, the target eigenmode function is the first eigenmode function; when the target electrocardiographic respiration signal is the second electrocardiographic respiration signal, the target eigenmode function is the second eigenmode function.
On the basis, the target eigenmode function of the target electrocardio-respiratory signal is determined as follows:
firstly, determining the mean function of the target electrocardio-respiratory signal.
Then, determining the difference between the function indicated by the target electrocardio-respiratory signal and the mean value function as a direct current removing function, and executing the following determination steps based on the direct current removing function: and determining whether the direct current removing function meets a preset eigenmode function judgment condition.
And finally, if the direct current removing function meets the eigenmode function judgment condition, determining the direct current removing function meeting the eigenmode function judgment condition as the target eigenmode function.
Optionally, in some examples in the application scenario, if the dc-removing function does not satisfy the eigenmode function determination condition, a difference between the dc-removing function that does not satisfy the eigenmode function determination condition and the mean function is determined as a new dc-removing function, and the determining step is performed based on the new dc-removing function.
It can be understood that, in the above application scenario, the eigenmode function is determined in the above manner, the complex signal can be decomposed into a limited number of eigenmode functions, and the non-stationary signal is converted into a stationary signal, which is used because the instantaneous frequency of the electrocardiographic respiration signal becomes significant. Thereby, the accuracy of determining sleep apnea events is further improved.
The method for generating the prompt information in the embodiment can generate different preset thresholds for different users to judge the sleep apnea event, so that the accuracy and pertinence of judging the sleep apnea event are improved.
Turning next to FIG. 4B, a flow 410 of another embodiment of a method for generating hints information is shown. The process 410 of the method for generating the prompt message includes the following steps:
in step 411, the physiological signals during sleep (e.g. the first sleep period and the second sleep period) are captured by the pressure sensor, resulting in a first mixed signal comprising the ballistocardiogram signal, the respiration signal and the noise signal. Thereafter, step 412 is performed.
In step 412, the first mixed signal is converted into an electrical signal by using an analog vibration circuit, and the electrical signal is amplified by using a charge amplifier to obtain an amplified signal. Thereafter, step 413 is performed.
In step 413, the noise signal in the amplified signal is attenuated by using a filter, so as to obtain a second mixed signal including the ballistocardiogram signal and the respiration signal. Thereafter, step 414 is performed.
In step 414, the low-pass filter is used to filter the shocking heart signal and the breathing respiration signal in the second mixed signal. Thereafter, step 415 is performed. The cardiac shock signal and the respiration signal can be respectively used as a first electrocardio-respiration signal.
Step 415, the breathing signal and the ballistocardiogram signal are smoothed, and a threshold for determining sleep apnea (i.e., the set threshold mentioned above) is set, after which step 416 is performed.
In step 416, it is determined whether a sleep apnea signal is present. If not, go to step 417; if so, step 418 is performed.
Step 417, the sleep monitor does not need to prompt.
Step 418, the sleep monitor vibrates twice. Thereafter, step 419 is performed.
Step 419 determines whether the number of occurrences of the sleep apnea signal per hour exceeds 5, or whether the number of occurrences of the sleep apnea signal per hour exceeds 30. Then, if not, go to step 420; if yes, go to step 421.
In step 420, it is determined that no sleep apnea event has occurred.
In step 421, it is determined that a sleep apnea event occurs, the buzzer makes a continuous sound, and the testee closes the mobile phone or clicks a button on the body of the tester to close the mobile phone (i.e., generates a sleep prompt message).
In particular, a pressure sensor may be employed to capture physiological signals during sleep (including a first sleep period and a second sleep period).
In the process of signal capture, besides the heart impact signal and the respiration signal related to sleep apnea detection, the body movement (such as turning over) during sleep and the friction between the body and materials such as a mattress, a bedding and the like can also enable the pressure sensor to capture a noise signal, so that the pressure sensor can capture three parts of the heart impact signal, the respiration signal and the noise signal.
Here, the pressure signal (including the above-mentioned three components of the cardiac shock signal, the respiration signal, and the noise signal) collected by the pressure sensor may be converted into an electrical signal, and the electrical signal may be amplified. It can be understood that since the body signal captured by the pressure sensor is very weak, it is necessary to convert the pressure signal into an electrical signal using an analog vibration circuit and amplify the corresponding electrical signal using a charge amplifier.
The noise signal in the amplified electrical signal may then be attenuated.
The noise signal affects the signals related to sleep apnea determination (the heart attack signal and the respiration signal are related to the determination of apnea), so that a filter (such as a band-pass filter) is required to attenuate the noise signal to ensure the normal determination of apnea. From this, a ballistocardiogram signal and a respiration signal can be obtained.
Next, a low pass filter may be used to further filter the ballistocardiogram signal and the respiration signal.
For example, FIR (Finite Impulse Response, also called non-recursive filter) with linear phase can be used, the cut-off frequency can be 0.67 hz at most, and the corresponding heart rate is 40 (linear phase means that the delay time of each frequency component after signals with different frequencies pass through the system is the same), and the low-pass filter is used to filter the impact signal and the respiration signal, so as to complete the preprocessing of the relevant signals. Whereby at least one of the filter impulse signal and the respiration signal can be taken as the first electro-cardio respiration signal.
For example, taking a periodic ballistocardiogram signal as an example (the processing method of the respiration signal may be the same as the ballistocardiogram signal, and is not described here), the following processing method may obtain a stationary heart rate signal (the conventional unprocessed ballistocardiogram signal is a non-stationary signal) reflecting the heart beat characteristics. The period of the ballistocardiogram signal can be determined by the heart rate, and if the heart rate is 60 times/min, the period of one ballistocardiogram signal can be set to be 1 second.
First, let SBiAs the ballistocardiogram signal (S is signal, B is BCG, i represents the ith initial ballistocardiogram signal, i is 1 … n because there may be i sampling points in the ballistocardiogram signal of one period), SmaxIs SBiLocal set of maximum values of, SminIs SBiLocal set of minima, SaveAs a function of the mean of the local maxima and local minima, i.e.:
Figure BDA0003294160550000161
then, subtracting the mean function of the local maximum value and the local minimum value from the heart impact signal to obtain a direct current removing function, and marking as fBi
fBi=SBi-Save
Formula (2)
Thus, when S isaveWhen the mean value of all the maximum values and all the minimum values in the impact signal in one period is recorded as FBi=fBi,(FBiI.e., eigenmode function, which will be described later) tends to be smooth, and if not, the equations (1) to (2) are repeatedly calculated until SaveIs the average of all maximum values and all minimum values in the impact signal in one period, thereby obtaining FBiUntil now.
In other words, FBiBeing an eigenmode function, fBi can be referred to as an "eigenmode function" with two conditions: firstly, in the whole time range of the function, the number of local extreme points and zero-crossing points must be equal, or at most, the difference is 1; second, at any point in time, the envelope of the local maxima (upper envelope) and the envelope of the local minima (lower envelope) must be, on average, zero. Here, after equation (1) is first calculated, f can be obtainedB1,fB1=SB1-SaveObtaining this fB1If the two conditions of the above-mentioned "eigenmode function" are not met, f is setB1As a new signal, hasB2=fB1-Save’,Save’Is a function fB1Forming upper and lower envelope lines to obtain median line (mean function), and repeating the process until fBiSatisfies the condition of the eigenmode function, and then it is denoted as FBiIt is said to be a qualified eigenmode function.
The above method cites the "Empirical Mode Decomposition (EMD)" method of decomposing a complex signal into a finite number of eigen-mode functions and converting a non-stationary signal into a stationary signal, for reasons used hereinTo make the instantaneous frequency of the ballistocardiogram signal meaningful; wherein S isaveCorresponding to the mean function of the upper and lower envelope of the ballistocardiogram signal, i.e. the average envelope of the ballistocardiogram signal, using the initial ballistocardiogram signal SBiSubtracting the average envelope (this subtraction process can be understood as a stripping detail process) to obtain a new data sequence fBiThe number of extreme points will gradually decrease with the repeated operation of equation (2), and a finite number of modulus functions will be generated along with the decomposition process.
Next, information for determining sleep apnea may be extracted. Taking the ballistocardiogram signal as an example, in a single cycle of the ballistocardiogram signal, sampling is performed with 20 hz as a sampling frequency, and the eigenmode function F of five cycles (only five cycles are exemplarily illustrated here, and other cycles are also possible) is decomposed according to the formula (1) and the formula (2)BiOne half of the mean value of the eigenmode functions of five cycles (i.e., the preset value) is used as the threshold (i.e., the set threshold) for determining sleep apnea (i.e., the heartbeat signal).
Subsequently, determination of sleep apnea is performed. Taking the cardiac shock signal as an example, from the sixth period, when the mean value of the eigenmode functions is below the threshold, it is recorded as a signal of sleep apnea (cardiac shock signal, and respiration signal in the same way), and when the number of occurrences of the sleep apnea signal (including respiration signal and cardiac shock signal) per hour exceeds 5, or 30 or more occurrences of the apnea signal (definition of sleep apnea syndrome) within 7 hours, it is determined that the sleep apnea event has occurred.
And finally, prompting sleep apnea. When the sleep apnea signal is judged to occur, the sleep detector sends out two continuous vibration prompts, and when the sleep apnea event is judged to occur, the buzzer sends out continuous sound, and the testee closes the mobile phone or clicks a button on the machine body to close the mobile phone.
The method for generating the prompt information in the embodiment can effectively eliminate the judgment of other noises on the sleep apnea, ensures the accuracy of the sleep apnea judgment through the common screening and analysis of various signals, prompts a user in time, and ensures that the user is far away from the harm caused by the sleep apnea and even the apnea.
With further reference to fig. 5, as an implementation of the method shown in the above figures, the present disclosure provides an embodiment of a device for generating a hint information, the device embodiment corresponds to the above-described method embodiment, and the device embodiment may include the same or corresponding features as the above-described method embodiment and produce the same or corresponding effects as the above-described method embodiment, in addition to the features described below. The device can be applied to various electronic equipment.
As shown in fig. 5, the presentation information generating apparatus 500 of the present embodiment. The above apparatus 500 includes: an acquisition unit 501, a first determination unit 502, a calculation unit 503, and a second determination unit 504. Wherein the acquiring unit 501 is configured to acquire a first electrocardiographic respiration signal of the user acquired during a first sleep period; a first determining unit 502 configured to determine a first eigenmode function of the first cardiac respiration signal, wherein a domain of the first eigenmode function corresponds to the first sleep period; a calculating unit 503 configured to calculate a first average value of the first eigenmode function within the defined domain; the second determining unit 504 is configured to determine whether to generate the sleep prompt information based on a magnitude relationship between the first average value and a preset threshold.
In this embodiment, the acquisition unit 501 of the prompt information generation apparatus 500 may acquire the first electrocardiographic respiration signal of the user acquired during the first sleep period.
In this embodiment, the first determining unit 502 may determine the first eigenmode function of the first cardiac respiratory signal. Wherein the first eigenmode function has a domain corresponding to the first sleep period.
In this embodiment, the calculating unit 503 may calculate a first average value of the first eigenmode function in the defined domain.
In this embodiment, the second determining unit 504 may determine whether to generate the sleep prompt information based on a magnitude relationship between the first average value and a preset threshold.
In some optional implementations of this embodiment, the preset threshold is determined as follows:
acquiring a preset number of periods of second electrocardiographic respiration signals of the user, wherein the number of the acquired second electrocardiographic respiration signals is equal to the number of the periods;
respectively determining a second eigenmode function of each acquired second electrocardio-respiration signal, wherein the definition domain of the second eigenmode function corresponds to the period of the second electrocardio-respiration signal;
and determining a preset threshold corresponding to the user based on the determined second average value of each second eigenmode function in the defined domain.
In some optional implementations of this embodiment, the determining a preset threshold corresponding to the user based on the determined second average value of each second eigenmode function in the defined domain includes:
and determining the product of the second average value of each determined second eigenmode function in the defined domain and a preset value as a preset threshold corresponding to the user, wherein the preset value is a positive number smaller than 1.
In some optional implementations of this embodiment, in a case that the target electrocardiographic respiration signal is the first electrocardiographic respiration signal, the target eigenmode function is the first eigenmode function; when the target electrocardiographic respiration signal is the second electrocardiographic respiration signal, the target eigenmode function is the second eigenmode function; and
the target eigenmode function of the target electrocardio-respiratory signal is determined as follows:
determining a mean function of the target electrocardio-respiratory signal;
determining the difference between the function indicated by the target electrocardio-respiratory signal and the mean value function as a direct current removing function, and executing the following determination steps based on the direct current removing function: determining whether the direct current removing function meets a preset eigenmode function judgment condition;
and if the direct current removing function meets the eigenmode function judging condition, determining the direct current removing function meeting the eigenmode function judging condition as the target eigenmode function.
In some optional implementations of this embodiment, the apparatus 500 further includes:
if the de-DC function does not satisfy the eigenmode function determination condition, determining a difference between the de-DC function that does not satisfy the eigenmode function determination condition and the mean function as a new de-DC function, and performing the determining step based on the new de-DC function.
In some optional implementations of this embodiment, the first electrocardiographic respiration signal includes a plurality of cardioblast signals and a plurality of respiration signals, and the domains of the plurality of cardioblast signals and the domains of the plurality of respiration signals correspond to each other one by one; and
the second determining unit 504 includes:
a first determining subunit (not shown in the figure) configured to determine an average value of eigenmode functions of a plurality of the ballistocardiographic signals in a defined domain as a corresponding average value of the plurality of the ballistocardiographic signals;
a second determining subunit (not shown in the figure) configured to determine an average value of the eigenmode functions of a plurality of the respiratory signals in a defined domain as a corresponding average value of the plurality of the respiratory signals;
a third determining subunit (not shown in the figure), configured to determine, as the first number, a number smaller than a first preset threshold in an average value corresponding to a plurality of the ballistocardiographic signals, where the first preset threshold is set for the ballistocardiographic signals;
a fourth determining subunit (not shown in the figure), configured to determine, as the second number, a number smaller than a second preset threshold in the average value corresponding to a plurality of the respiratory signals, where the second preset threshold is set for the respiratory signals;
a fifth determining subunit (not shown in the figure) configured to determine to generate the sleep prompt information if the sum of the first number and the second number is greater than or equal to a preset number value.
In some optional implementations of the embodiment, the first preset threshold and the second preset threshold are also set for a duration of the first sleep period.
In the apparatus 500 provided in the above embodiment of the present disclosure, the obtaining unit 501 may obtain a first electrocardiographic respiration signal of the user acquired during a first sleep period; first determining unit 502 may determine a first eigenmode function of the first cardiac respiratory signal, wherein a domain of the first eigenmode function corresponds to the first sleep period; the calculating unit 503 may calculate a first average value of the first eigenmode function within the defined domain; the second determining unit 504 may determine whether to generate the sleep prompt information based on a magnitude relationship between the first average value and a preset threshold. Therefore, whether the sleep prompt information is generated or not is determined through the eigenmode function of the electrocardio-respiration signal, so that the mode of determining whether the sleep prompt information is generated or not is enriched, the accuracy of generating the sleep prompt information is improved, and the user can be protected from suffocation hazards.
Fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure, where the electronic device 600 shown in fig. 6 includes: at least one processor 601, memory 602, and at least one network interface 604 and other user interfaces 603. The various components in the electronic device 600 are coupled together by a bus system 605. It is understood that the bus system 605 is used to enable communications among the components. The bus system 605 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are labeled as bus system 605 in fig. 6.
The user interface 603 may include, among other things, a display, a keyboard, or a pointing device (e.g., a mouse, trackball, touch pad, or touch screen, among others.
It will be appreciated that the memory 602 in embodiments of the disclosure may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The non-volatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash Memory. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of illustration and not limitation, many forms of RAM are available, such as Static random access memory (Static RAM, SRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic random access memory (Synchronous DRAM, SDRAM), Double Data Rate Synchronous Dynamic random access memory (ddr Data Rate SDRAM, ddr SDRAM), Enhanced Synchronous SDRAM (ESDRAM), synchlronous SDRAM (SLDRAM), and Direct Rambus RAM (DRRAM). The memory 602 described herein is intended to comprise, without being limited to, these and any other suitable types of memory.
In some embodiments, memory 602 stores the following elements, executable units or data structures, or a subset thereof, or an expanded set thereof: an operating system 6021 and application programs 6022.
The operating system 6021 includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, and is used for implementing various basic services and processing hardware-based tasks. The application program 6022 includes various application programs such as a Media Player (Media Player), a Browser (Browser), and the like, and is used to implement various application services. Programs that implement methods of embodiments of the disclosure can be included in the application program 6022.
In the embodiment of the present disclosure, by calling a program or an instruction stored in the memory 602, specifically, a program or an instruction stored in the application program 6022, the processor 601 is configured to execute the method steps provided by the method embodiments, for example, including: acquiring a first electrocardiographic respiration signal of a user acquired during a first sleep period; determining a first eigenmode function of the first cardiac respiratory signal, wherein a domain of the first eigenmode function corresponds to the first sleep period; calculating a first average of said first eigenmode function within said defined domain; and determining whether to generate sleep prompting information or not based on the size relation between the first average value and a preset threshold value.
The method disclosed by the embodiment of the present disclosure can be applied to the processor 601 or implemented by the processor 601. The processor 601 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 601. The Processor 601 may be a general-purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, or discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present disclosure may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present disclosure may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software elements in the decoding processor. The software elements may be located in ram, flash, rom, prom, or eprom, registers, among other storage media that are well known in the art. The storage medium is located in the memory 602, and the processor 601 reads the information in the memory 602 and completes the steps of the method in combination with the hardware thereof.
It is to be understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or any combination thereof. For a hardware implementation, the Processing units may be implemented within one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), general purpose processors, controllers, micro-controllers, microprocessors, other electronic units configured to perform the functions described herein, or a combination thereof.
For a software implementation, the techniques described herein may be implemented by means of units performing the functions described herein. The software codes may be stored in a memory and executed by a processor. The memory may be implemented within the processor or external to the processor.
The electronic device provided in this embodiment may be the electronic device shown in fig. 6, and may execute all the steps of the method for generating the prompt information shown in fig. 2, so as to achieve the technical effect of the method for generating the prompt information shown in fig. 2, and please refer to the description related to fig. 2 for brevity, which is not described herein again.
The disclosed embodiments also provide a storage medium (computer-readable storage medium). The storage medium herein stores one or more programs. Among others, the storage medium may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as read-only memory, flash memory, a hard disk, or a solid state disk; the memory may also comprise a combination of memories of the kind described above.
When one or more programs in the storage medium can be executed by one or more processors, the method for generating the prompt message executed on the electronic device side is realized.
The processor is used for executing the communication program stored in the memory so as to realize the following steps of the prompt message generation method executed on the electronic equipment side: acquiring a first electrocardiographic respiration signal of a user acquired during a first sleep period; determining a first eigenmode function of the first cardiac respiratory signal, wherein a domain of the first eigenmode function corresponds to the first sleep period; calculating a first average of said first eigenmode function within said defined domain; and determining whether to generate sleep prompting information or not based on the size relation between the first average value and a preset threshold value.
Those of skill would further appreciate that the various illustrative components and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present disclosure.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied in hardware, a software module executed by a processor, or a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The above-mentioned embodiments, objects, technical solutions and advantages of the present disclosure are described in further detail, it should be understood that the above-mentioned embodiments are merely illustrative of the present disclosure and are not intended to limit the scope of the present disclosure, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present disclosure should be included in the scope of the present disclosure.

Claims (10)

1. A method for generating prompt information is characterized in that the method comprises the following steps:
acquiring a first electrocardiographic respiration signal of a user acquired during a first sleep period;
determining a first eigenmode function of the first cardiac respiration signal, wherein a domain of the first eigenmode function corresponds to the first sleep period;
calculating a first average of the first eigenmode function within the defined domain;
and determining whether to generate sleep prompting information based on the size relation between the first average value and a preset threshold value.
2. The method of claim 1, wherein the preset threshold is determined as follows:
acquiring a preset number of periods of second electrocardiographic respiration signals of the user, wherein the number of the acquired second electrocardiographic respiration signals is equal to the number of the periods;
respectively determining a second eigenmode function of each acquired second electrocardio-respiration signal, wherein the definition domain of the second eigenmode function corresponds to the period of the second electrocardio-respiration signal;
determining a preset threshold corresponding to the user based on a second average value of the determined second eigenmode functions within the defined domain.
3. The method of claim 2, wherein determining the preset threshold corresponding to the user based on the determined second average of the respective second eigenmode functions in the defined domain comprises:
and determining a product of a second average value of each determined second eigenmode function in the defined domain and a preset value as a preset threshold corresponding to the user, wherein the preset value is a positive number smaller than 1.
4. The method of claim 3, wherein in the case where the target cardiac electrical respiratory signal is the first cardiac electrical respiratory signal, the target eigenmode function is the first eigenmode function; under the condition that the target electrocardio-respiratory signal is the second electrocardio-respiratory signal, the target eigenmode function is the second eigenmode function; and
the target eigenmode function of the target electrocardio-respiratory signal is determined as follows:
determining a mean function of the target electrocardio-respiratory signal;
determining the difference between the function indicated by the target electrocardio-respiratory signal and the mean function as a direct current removing function, and executing the following determination steps based on the direct current removing function: determining whether the direct current removing function meets a preset eigenmode function judgment condition;
and if the direct current removing function meets the eigenmode function judging condition, determining the direct current removing function meeting the eigenmode function judging condition as the target eigenmode function.
5. The method of claim 4, further comprising:
determining a difference between the de-dc function not satisfying the eigenmode function decision condition and the mean function as a new de-dc function if the de-dc function does not satisfy the eigenmode function decision condition, and performing the determining step based on the new de-dc function.
6. The method according to any one of claims 1-5, wherein the first electrical cardiac respiration signal comprises a plurality of ballistocardiographic signals and a plurality of respiration signals, and the plurality of ballistocardiographic signals and the plurality of respiration signals have a domain-to-domain correspondence; and
the determining whether to generate sleep prompting information based on the magnitude relation between the first average value and a preset threshold value includes:
determining an average value of the eigenmode functions of the plurality of ballistocardiographic signals in a defined domain as a corresponding average value of the plurality of ballistocardiographic signals;
determining an average value of the eigenmode functions of the plurality of respiratory signals in a defined domain as a corresponding average value of the plurality of respiratory signals;
determining the number of the average values corresponding to the plurality of cardiac shock signals, which is smaller than a first preset threshold value, as a first number, wherein the first preset threshold value is set for the cardiac shock signals;
determining the number of the average values corresponding to the plurality of respiratory signals, which is smaller than a second preset threshold value, as a second number, wherein the second preset threshold value is set for the respiratory signals;
and if the sum of the first number and the second number is greater than or equal to a preset number value, determining to generate sleep prompt information.
7. The method of claim 6, wherein the first preset threshold and the second preset threshold are also set for a duration of the first sleep period.
8. An apparatus for generating a hint information, the apparatus comprising:
an acquisition unit configured to acquire a first electrocardiographic respiration signal of a user acquired during a first sleep period;
a first determination unit configured to determine a first eigenmode function of the first cardiac respiration signal, wherein a domain of the first eigenmode function corresponds to the first sleep period;
a calculation unit configured to calculate a first average value of the first eigenmode function within the defined domain;
a second determination unit configured to determine whether to generate sleep prompt information based on a magnitude relation of the first average value and a preset threshold.
9. An electronic device, comprising:
a memory for storing a computer program;
a processor for executing a computer program stored in the memory, and when executed, implementing the method of any of the preceding claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the method of any one of the preceding claims 1 to 7.
CN202111173655.5A 2021-10-08 2021-10-08 Prompt message generation method and device, electronic equipment and storage medium Pending CN113892913A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111173655.5A CN113892913A (en) 2021-10-08 2021-10-08 Prompt message generation method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111173655.5A CN113892913A (en) 2021-10-08 2021-10-08 Prompt message generation method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113892913A true CN113892913A (en) 2022-01-07

Family

ID=79190619

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111173655.5A Pending CN113892913A (en) 2021-10-08 2021-10-08 Prompt message generation method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113892913A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116401598A (en) * 2023-03-16 2023-07-07 华南师范大学 Sleep apnea detection method and device based on physiological signals

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1736324A (en) * 2005-07-26 2006-02-22 中国人民解放军空军航空医学研究所 Detection/disposal method and apparatus for obtaining respiratory disturbance index information
CN101843489A (en) * 2009-03-26 2010-09-29 深圳市理邦精密仪器有限公司 Respiration signal processing method
CN101991418A (en) * 2009-08-14 2011-03-30 深圳市理邦精密仪器股份有限公司 Method for improving respiratory rate detection accuracy
CN109222928A (en) * 2018-08-03 2019-01-18 深圳市大耳马科技有限公司 Extracting method, device, processing equipment and the system of breath signal
CN112155560A (en) * 2020-10-15 2021-01-01 国微集团(深圳)有限公司 Apnea detection method and system based on real-time cardiac shock signal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1736324A (en) * 2005-07-26 2006-02-22 中国人民解放军空军航空医学研究所 Detection/disposal method and apparatus for obtaining respiratory disturbance index information
CN101843489A (en) * 2009-03-26 2010-09-29 深圳市理邦精密仪器有限公司 Respiration signal processing method
CN101991418A (en) * 2009-08-14 2011-03-30 深圳市理邦精密仪器股份有限公司 Method for improving respiratory rate detection accuracy
CN109222928A (en) * 2018-08-03 2019-01-18 深圳市大耳马科技有限公司 Extracting method, device, processing equipment and the system of breath signal
CN112155560A (en) * 2020-10-15 2021-01-01 国微集团(深圳)有限公司 Apnea detection method and system based on real-time cardiac shock signal

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116401598A (en) * 2023-03-16 2023-07-07 华南师范大学 Sleep apnea detection method and device based on physiological signals
CN116401598B (en) * 2023-03-16 2023-11-21 华南师范大学 Sleep apnea detection method and device based on physiological signals

Similar Documents

Publication Publication Date Title
JP4917373B2 (en) Biological information estimation apparatus and electronic device equipped with the same
CN108354612B (en) Signal processing method and device
US20100102971A1 (en) Arrangement and method to wake up a sleeping subject at an advantageous time instant associated with natural arousal
KR20190008426A (en) Stress detection based on autonomic balance
US20140257124A1 (en) Atrial fibrillation analyzer and program
JP2019010437A (en) Determination device and determination method
WO2021248882A1 (en) Methods and apparatuses for constructing sleep state detection model and for detecting sleep state
CN102469978A (en) Noise reduction of breathing signals
Kang et al. Sinabro: Opportunistic and unobtrusive mobile electrocardiogram monitoring system
CN108697347A (en) Physiologic information measurement method, storage medium and physiologic information monitoring device, equipment
Gonzalez-Landaeta et al. Estimation of systolic blood pressure by Random Forest using heart sounds and a ballistocardiogram
CN114257683A (en) Message prompting method and device, wearable device, and computer-readable storage medium
CN113892913A (en) Prompt message generation method and device, electronic equipment and storage medium
JP6258172B2 (en) Sound information processing apparatus and system
WO2016047494A1 (en) Device and system for measuring biological information
JP6019659B2 (en) Apnea condition determination device, apnea condition determination method, and apnea condition determination program
Song et al. Engagement-free and contactless bed occupancy and vital signs monitoring
CN108852405A (en) Gating device, Medical Devices and its control method, equipment and medium
US10932687B2 (en) Harnessing S1 variability for AF detection
KR20190058289A (en) Detecting respiratory rates in audio using an adaptive low-pass filter
CN112957018A (en) Heart state detection method and device based on artificial intelligence
CN115644854B (en) A fall monitoring method and wearable device
CN114027799B (en) Method and device for determining time point of falling asleep
JP2014014543A (en) Determination system, determination method and program for determination system
CN113974575A (en) Sleep staging method and device, electronic equipment and storage 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