Sleep monitoring method and system for psychiatric patient

By placing flexible piezoelectric sensors on the mattress to sense pressure changes and collect heartbeat and breathing signals, the problem of uncomfortable sleep monitoring and difficult signal analysis for psychiatric patients is solved, achieving comfortable and accurate sleep monitoring.

CN118633912AInactive Publication Date: 2024-09-13MIANYANG THIRD PEOPLES HOSPITAL
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410911354.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-09
Publication Date
2024-09-13
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing contact sleep monitoring technology is uncomfortable for psychiatric patients, especially polysomnography, which requires multiple electrodes to be attached to the body during sleep, making it difficult to fall asleep, and weak signal analysis is difficult to achieve, affecting the accuracy of monitoring. Spend.

Method used

A flexible piezoelectric sensor is placed between the mattress and the sheets. It collects information such as heartbeat and breathing by sensing changes in pressure on the mattress. It performs amplification, filtering and empirical mode decomposition processing to decompose signals of different frequencies to determine sleep status.

Benefits of technology

It realizes comfortable sleep monitoring for psychiatric patients, accurately captures heart rate and respiratory signals, improves the accuracy and comfort of sleep monitoring, and avoids the discomfort caused by contact monitoring.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118633912A
    Figure CN118633912A
Patent Text Reader

Abstract

The invention discloses a sleep monitoring method for a psychiatric patient. The sleep monitoring method comprises the steps that electrocardiogram information and respiration information of the patient are collected through a flexible piezoelectric sensor; performing empirical mode decomposition on the signal z (t) acquired by the flexible piezoelectric sensor; the frequency of the breathing signal h (t) is set to be 0.1-0.5 Hz; sleep quality judgment is carried out through logic judgment; dividing the time period of the patient from falling asleep to waking up; a sleep monitoring system for psychiatric patients comprises a flexible piezoelectric sensor, a gain amplifier, a filter processor, a monitoring terminal and a display or a mobile device. The breathing and heartbeat of a patient are detected by adopting the flexible piezoelectric sensor; charge amplification and AD conversion are carried out on the collected signals, preprocessing is facilitated, data information is amplified and filtered, decomposition processing is carried out on the collected information through empirical mode decomposition, different frequency signals are obtained, and the sleep state can be conveniently detected according to different sleep conditions.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of sleep monitoring, and in particular to a method and system for monitoring the sleep of psychiatric patients. Background Art

[0002] A mentally ill person is a person whose brain dysfunction is caused by various external harmful factors and whose clinical manifestations are abnormal mental activities.

[0003] The specific manifestations are different degrees of disorders in perception, thinking, attention, memory, emotion, behavior, will, intelligence and consciousness. Due to psychological disorder, patients distort the objective reality, lose the ability to adapt to society, or harm themselves or disrupt social order. They are generally called mental patients.

[0004] Sleep care is the focus of psychological and psychiatric care. Sleep is a process of protective inhibition. The quality of sleep of psychiatric patients indicates the improvement, fluctuation or aggravation of the patient's condition. Therefore, in order to stabilize the patient's mood and consolidate the treatment effect, it is necessary to observe and care for the patient's sleep and ensure the patient's sleep.

[0005] Polysomnography is the most important examination for diagnosing sleep snoring (sleep apnea-hypopnea syndrome, OSAHS). Through continuous monitoring of breathing, arterial oxygen saturation, electroencephalogram, electrocardiogram, heart rate and other indicators at night, it can be understood whether the snorer has respiratory arrest, the number of pauses, the duration of the pauses, the lowest arterial oxygen value when the pauses occur, and the degree of impact on physical health. It is the internationally recognized gold standard for diagnosing sleep apnea-hypopnea syndrome. Polysomnography is the most commonly used sleep monitoring method, the most important examination for diagnosing snoring, and the internationally recognized gold standard for diagnosing sleep apnea-hypopnea syndrome.

[0006] In the Chinese invention patent with application publication number CN106491079A, a sleep monitoring device, a sleep monitoring method and a sleep monitoring system are disclosed. The sleep monitoring device includes an arterial soundprint acquisition unit and a processing unit. The arterial soundprint acquisition unit is used to acquire the arterial soundprint signal of the organism. The processing unit is used to process the arterial soundprint signal to obtain the sleep information of the organism according to the arterial soundprint signal.

[0007] The technical solutions recorded in the above applications can reduce hardware costs and simplify operations. At the same time, they can also reduce the foreign body sensation of patients during sleep monitoring and the impact on sleep, thereby increasing monitoring accuracy and user experience. However, in combination with the existing technology and the above applications, most of the sleep monitoring technologies for patients are contact-type, but contact-type sleep monitoring is uncomfortable for psychiatric patients, especially polysomnography, which requires dozens of electrodes to be adhered to the body during sleep, making it difficult for patients to fall asleep and unable to effectively monitor the patient's sleep condition. In addition, some weak signal analysis and extraction are difficult to achieve, and other problems.

[0008] To this end, the present invention provides a method and system for monitoring sleep of psychiatric patients. Summary of the invention

[0009] 1. Technical issues to be resolved

[0010] In view of the deficiencies in the prior art, the present invention provides a method and system for monitoring the sleep of psychiatric patients. The method detects the patient's breathing and heartbeat by adopting a flexible piezoelectric sensor. The strip of the flexible piezoelectric sensor is placed between the mattress and the bed sheet. The flexible piezoelectric sensor can generate a mixed signal output related to human heartbeat, breathing, body movement and other information by sensing the change in pressure on the mattress, and pre-processes the collected information so that the data information can be easily amplified and filtered, and the collected information can be subsequently decomposed and processed through empirical mode decomposition, and frequency signals from high to low are obtained in sequence, so that the patient's sleep state can be detected according to different sleep conditions, thereby solving the technical problems recorded in the background technology.

[0011] (II) Technical solution

[0012] To achieve the above objectives, the present invention is implemented through the following technical solutions:

[0013] A sleep monitoring method for psychiatric patients, comprising:

[0014] The patient's electrocardiogram information and respiratory information are collected through a flexible piezoelectric sensor, and the data piezoelectric signal collected by the flexible piezoelectric sensor is amplified and filtered, and the signal collected by the flexible piezoelectric sensor is z(t);

[0015] Perform empirical mode decomposition on the signal z(t) collected by the flexible piezoelectric sensor to obtain the breathing signal h(t) and the heartbeat signal x(t) in turn;

[0016] The frequency of the breathing signal h(t) is set to 0.1-0.5Hz, the frequency of the heartbeat signal x(t) is set to 0.8-3.0Hz, and sleep is divided into light sleep, deep sleep and REM period. The breathing frequency of the light sleep period is 0.4-0.3Hz, the heartbeat frequency is 2.8-2.2Hz, and the breathing and heartbeat decrease slowly; the breathing frequency of the deep sleep period is 0.2-0.1Hz, the heartbeat frequency is 0.8-2.0Hz, and the breathing and heartbeat are stable and slow; the breathing frequency of the REM period is 0.3-0.5Hz, the heartbeat frequency is 3.0-2.2Hz, and the breathing and frequency fluctuate frequently;

[0017] The sleep quality is determined through logical judgment, and the judgment content is as follows:

[0018] If the breathing signal h(t) is in the light sleep stage, and the heartbeat signal x(t) is also in the light sleep stage, then the patient is in the light sleep stage; if the heartbeat signal x(t) is in the deep sleep stage, then the patient is in the transition from the light sleep stage to the deep sleep stage, or from the deep sleep stage to the light sleep stage; if the heartbeat signal x(t) is in the REM stage, then the patient is in the transition from the light sleep stage to the REM stage, that is, he is about to wake up;

[0019] If the breathing signal h(t) is in the deep sleep stage and the heartbeat signal x(t) is also in the deep sleep stage, the patient is in the deep sleep stage; if the heartbeat signal x(t) is in the light sleep stage, the patient is in the transition from the light sleep stage to the deep sleep stage, or from the deep sleep stage to the light sleep stage;

[0020] If the breathing signal h(t) is in the REM stage and the heartbeat signal x(t) is also in the REM stage, the patient is in the REM stage; if the heartbeat signal x(t) is in the light sleep stage, the patient is in the transition from the light sleep stage to the REM stage;

[0021] The patient's time period from falling asleep to waking up is divided into one-hour intervals, and according to the above steps, the sleep quality is monitored every hour. If the deep sleep period accounts for 60%-80% and the light sleep period accounts for 18%-38%, the sleep quality is excellent; if the deep sleep period accounts for 40%-60% and the light sleep period accounts for 38%-58%, the sleep quality is good; if the deep sleep period accounts for 50%-70% and the light sleep period accounts for 28%-48%, the sleep quality is poor.

[0022] Furthermore, the filtering process first uses a FIR bandpass filter for filtering, and the passband frequency range is 0.1 Hz-3.3 Hz;

[0023] Then the signal is smoothed by a mean filter, and the remaining high-frequency signals in the signal are filtered out by the mean filter.

[0024] Furthermore, the calculation formula of the FIR bandpass filter is as follows:

[0025]

[0026] The above expression is an M-1 order FIR filter, which has M taps, and therefore consists of M multipliers and M-1 accumulators. Each tap requires a multiplier accumulator unit that consumes logic resources.

[0027] Where z(n) is the input signal, h(j) is the FIR filter coefficient, and v(n) is the filtered signal.

[0028] Furthermore, the calculation formula of the mean filter is as follows:

[0029]

[0030] in, Identifies the output data set after mean filtering, m represents the size of the window, v(n) j Represents the jth data information in the input data set;

[0031] The mean filter specifies a window with an odd length, uses the average value of all the data in the window to replace the value in the middle, and then translates the window with a step size of 1. The above operation is repeated until it slides to the end of the time series data.

[0032] Further, the steps of empirical mode decomposition are:

[0033] Find all extreme points in the signal z(t) collected by the flexible piezoelectric sensor;

[0034] The envelope of the upper extreme point is fitted by a cubic spline curve. max (t) and the envelope of the lower extreme point e min (t), and find the envelope e of the upper extreme point max (t) and the envelope of the lower extreme point e min The mean value m(t) of v(t) is subtracted from the mean value m(t) in z(t): v(t) = z(t) - m(t);

[0035] Determine whether v(t) is an IMF according to the preset criteria;

[0036] If not, replace z(t) with v(t) and repeat the above steps until v(t) meets the criterion, then v(t) is the IMF to be extracted;

[0037] Each time the first-order IMF is obtained, it is subtracted from z(t) until the remaining part of the signal is r n (t) is just a monotonic sequence or a constant sequence;

[0038] After empirical mode decomposition, the original signal z(t) is decomposed into a series of MFs and a linear stack of the remaining parts, such as:

[0039] Where I is the number of decompositions, i is the i-th decomposition, and imf i (t) is the information after the last decomposition, and r(t) is the noise signal.

[0040] Furthermore, the preset criterion for judging v(t) is:

[0041] The data information keeps the number of extreme points and zero crossing points equal in the entire time range, and the error is controlled at one;

[0042] At any point in time, the envelope of the local maximum and the envelope of the local minimum average to zero;

[0043] Or the envelope of the maximum value and the envelope of the local minimum value satisfy the following formula on average:

[0044] And the SD value is 0.05-0.1, where v j-1 (t) is the data information after the last decomposition, v j (t) is the data information after this decomposition.

[0045] Furthermore, the breathing signal h(t) and the heartbeat signal x(t) are compared in the signals of empirical mode decomposition at frequencies of 0.1-0.5 Hz and 0.8-3.0 Hz, respectively, and the signals are adaptively selected according to the different frequencies of light sleep, deep sleep and REM period to obtain the corresponding breathing signal h(t) and heartbeat signal x(t) of light sleep, deep sleep and REM period.

[0046] Furthermore, the breathing signal h(t) and the heartbeat signal x(t) corresponding to the light sleep period, deep sleep period and REM period are selected and determined by the Lagrangian function. The calculation formula of the Lagrangian function is as follows:

[0047] L(x,λ)=f(x)-λ*g(x),

[0048] Among them, L(x,λ) is the Lagrangian function, f(x) is the objective function, λ is the Lagrangian multiplier, and g(x) is the constraint condition, which is the frequency range value of the respiratory signal h(t) and the heartbeat signal x(t) corresponding to the light sleep period, deep sleep period and REM period.

[0049] Furthermore, the flexible piezoelectric sensor is arranged on the mattress, and the human heartbeat and normal breathing in the sleeping state will cause a certain amplitude of vibration, so as to detect the patient's breathing and heartbeat. The pressure changes caused by the heartbeat and breathing are weak and easily drowned out by the environmental noise. The flexible piezoelectric sensor is provided with a charge amplifier for amplifying the collected charge information, and also includes an AD converter for realizing analog-to-digital conversion of the collected piezoelectric signal.

[0050] A sleep monitoring system for psychiatric patients, comprising:

[0051] The flexible piezoelectric sensor is set on the mattress, which fits closely with the human body. It can detect the patient's breathing and heartbeat by generating a certain amplitude of vibration through the heartbeat and normal breathing of the human body in the sleeping state.

[0052] The flexible piezoelectric sensor also includes a charge amplifier and an AD converter. The charge amplifier amplifies the collected charge information, and the AD converter is used to realize analog-to-digital conversion of the collected piezoelectric signal.

[0053] A gain amplifier is used to perform gain amplification processing on the piezoelectric signal after analog-to-digital conversion, so that the piezoelectric signal after analog-to-digital conversion can be easily filtered and amplified to improve the accuracy of the signal;

[0054] A filter processor is used to filter out clutter from the collected piezoelectric signal, so as to facilitate empirical mode decomposition of the piezoelectric signal and obtain a respiratory signal h(t) and a heartbeat signal x(t). The filter processor includes an FIR bandpass filter and a mean filter. The piezoelectric signal is first selected by the FIR bandpass filter, and then smoothed by the mean filter to filter out the remaining high-frequency signal in the signal.

[0055] The monitoring terminal transmits the processed signal z(t) collected by the flexible piezoelectric sensor to the monitoring terminal, which decomposes the signal z(t) collected by the flexible piezoelectric sensor through empirical mode decomposition, and obtains the respiratory signal h(t) and the heartbeat signal x(t) through the respiratory frequency and the heartbeat frequency, and then obtains the corresponding respiratory signal h(t) and the heartbeat signal x(t) through the different frequencies of the light sleep period, deep sleep period and REM period, and then determines the sleep quality;

[0056] The sleep quality after detection and calculation is displayed on the display of the monitoring terminal, or the monitoring terminal transmits the data information to the mobile device through the communication module, so that the patient's family can obtain the patient's sleep condition.

[0057] (III) Beneficial effects

[0058] The present invention provides a method and system for monitoring sleep of psychiatric patients, which has the following beneficial effects:

[0059] The present invention detects the patient's breathing and heartbeat by using a flexible piezoelectric sensor. The strip of the flexible piezoelectric sensor is placed between the mattress and the bed sheet. The flexible piezoelectric sensor can sense the pressure change on the mattress to generate a mixed signal output related to the human heartbeat, breathing, body movement and other information. The flexible piezoelectric sensor can accurately capture physiological signals such as heart rate and breathing, and has better skin fit and detail capture capabilities. It does not need to be in direct contact with the skin, will not irritate the skin and cause skin sensitivity, and will not cause discomfort to the patient.

[0060] After collecting data information, the flexible piezoelectric sensor enhances the strength of the piezoelectric signal through charge amplification and converts the piezoelectric signal into a digital signal through an AD converter, so as to pre-process the collected information, amplify and filter the data information, and decompose and process the collected information through empirical mode decomposition, so as to obtain frequency signals from high to low in turn, so as to detect the patient's sleep state according to different sleep conditions. BRIEF DESCRIPTION OF THE DRAWINGS

[0061] Figure 1 It is a schematic diagram of the process of the sleep monitoring method for psychiatric patients of the present invention;

[0062] Figure 2 It is a structural schematic diagram of the sleep monitoring system for psychiatric patients of the present invention. DETAILED DESCRIPTION

[0063] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0064] See also Figure 1 The present invention provides a sleep monitoring method for psychiatric patients, comprising:

[0065] Step 1: Collect electrocardiogram information and respiratory information of the patient through a flexible piezoelectric sensor, and amplify and filter the data piezoelectric signal collected by the flexible piezoelectric sensor, and the signal collected by the flexible piezoelectric sensor is z(t);

[0066] S101, a flexible piezoelectric sensor is arranged on a mattress, and a certain amplitude of vibration is generated by the human heartbeat and normal breathing in a sleeping state, so as to detect the patient's breathing and heartbeat. The pressure changes generated by the heartbeat and breathing are weak and easily drowned in the environmental noise. A charge amplifier is provided in the flexible piezoelectric sensor for amplifying the collected charge information, and an AD converter is also provided for converting the collected piezoelectric signal into analog-to-digital form.

[0067] S102, filtering processing first uses FIR bandpass filter to perform filtering processing, and the passband frequency range is 0.1Hz-3.3Hz;

[0068] Then the signal is smoothed by a mean filter, and the remaining high-frequency signals in the signal are filtered out by the mean filter.

[0069] S103, the calculation formula of FIR bandpass filter is as follows:

[0070]

[0071] The above expression is an M-1 order FIR filter, which has M taps, and therefore consists of M multipliers and M-1 accumulators. Each tap requires a multiplier accumulator unit that consumes logic resources.

[0072] Where z(n) is the input signal, h(j) is the FIR filter coefficient, and v(n) is the filtered signal.

[0073] S104, the calculation formula of the mean filter is as follows:

[0074]

[0075] in, Identifies the output data set after mean filtering, m represents the size of the window, v(n) j Represents the jth data information in the input data set;

[0076] The mean filter specifies a window with an odd length, uses the average value of all data in the window to replace the value in the middle, and then translates the window with a step size of 1. Repeat the above operation until it slides to the end of the time series data.

[0077] When in use, the flexible piezoelectric sensor is placed on the mattress to facilitate fitting with the patient's body, so as to detect the patient's breathing and heartbeat vibrations. In order to increase the strength of the signal, it is amplified by a charge amplifier to prevent information loss, and an AD converter is used for analog-to-digital conversion to facilitate subsequent processing of subsequent signals. The data information is then amplified by gain in turn to increase the strength of the data information, so as to facilitate subsequent filtering. The FIR bandpass filter is used for filtering to select the frequency of the data signal, and then the signal is smoothed by a mean filter, and the remaining high-frequency signal in the signal is filtered out by the mean filter.

[0078] Step 2: Perform empirical mode decomposition on the signal z(t) collected by the flexible piezoelectric sensor to obtain the breathing signal h(t) and the heartbeat signal x(t) in turn;

[0079] S201. Steps of empirical mode decomposition:

[0080] Find all extreme points in the signal z(t) collected by the flexible piezoelectric sensor;

[0081] The envelope of the upper extreme point is fitted by a cubic spline curve. max (t) and the envelope of the lower extreme point e min (t), and find the envelope e of the upper extreme point max (t) and the envelope of the lower extreme point e min The mean value m(t) of v(t) is subtracted from the mean value m(t) in z(t): v(t) = z(t) - m(t);

[0082] Determine whether v(t) is an IMF according to the preset criteria;

[0083] If not, replace z(t) with v(t) and repeat the above steps until v(t) meets the criterion, then v(t) is the IMF to be extracted;

[0084] Each time the first-order IMF is obtained, it is subtracted from z(t) until the remaining part of the signal is r n (t) is just a monotonic sequence or a constant sequence;

[0085] After empirical mode decomposition, the original signal z(t) is decomposed into a series of MFs and a linear stack of the remaining parts, such as:

[0086] Where I is the number of decompositions, i is the i-th decomposition, and imf i (t) is the information after the last decomposition, and r(t) is the noise signal.

[0087] S202, the condition for determining v(t) by a preset criterion is:

[0088] The data information keeps the number of extreme points and zero crossing points equal in the entire time range, and the error is controlled at one;

[0089] At any point in time, the envelope of the local maximum and the envelope of the local minimum average to zero;

[0090] Or the envelope of the maximum value and the envelope of the local minimum value satisfy the following formula on average:

[0091] And the SD value is 0.05-0.1, where v j-1 (t) is the data information after the last decomposition, v j (t) is the data information after this decomposition;

[0092] When in use, the signal z(t) collected by the flexible piezoelectric sensor is decomposed and processed by empirical mode decomposition to obtain the breathing signal h(t) and the heartbeat signal x(t), and the signal z(t) collected by the flexible piezoelectric sensor is decomposed and processed in order from high to low frequency by empirical mode decomposition, and finally the clutter is eliminated to obtain the breathing signal h(t) and the heartbeat signal x(t), and the breathing signal h(t) and the heartbeat signal x(t) are obtained by the breathing frequency and the heartbeat frequency, and then the corresponding breathing signal h(t) and the heartbeat signal x(t) are obtained by the different frequencies of the light sleep period, deep sleep period and REM period, and then the sleep quality is determined;

[0093] Step 3: Set the frequency of the breathing signal h(t) to 0.1-0.5Hz, the frequency of the heartbeat signal x(t) to 0.8-3.0Hz, and divide sleep into light sleep, deep sleep and REM periods. The breathing rate in the light sleep period is 0.4-0.3Hz, the heartbeat rate is 2.8-2.2Hz, and the breathing and heartbeat decrease slowly; the breathing rate in the deep sleep period is 0.2-0.1Hz, the heartbeat rate is 0.8-2.0Hz, and the breathing and heartbeat are stable and slow; the breathing rate in the REM period is 0.3-0.5Hz, the heartbeat rate is 3.0-2.2Hz, and the breathing and frequency fluctuations are more frequent;

[0094] S301, the breathing signal h(t) and the heartbeat signal x(t) are compared in the signals of empirical mode decomposition at frequencies of 0.1-0.5 Hz and 0.8-3.0 Hz respectively, and the signals are adapted and selected according to the different frequencies of the light sleep period, deep sleep period and REM period to obtain the corresponding breathing signal h(t) and heartbeat signal x(t) of the light sleep period, deep sleep period and REM period.

[0095] S302, the breathing signal h(t) and the heartbeat signal x(t) corresponding to the light sleep period, deep sleep period and REM period are selected and determined by the Lagrangian function, and the calculation formula of the Lagrangian function is as follows:

[0096] L(x,λ)=f(x)-λ*g(x),

[0097] Among them, L(x,λ) is the Lagrangian function, f(x) is the objective function, λ is the Lagrangian multiplier, and g(x) is the constraint condition, which is the frequency range value of the respiratory signal h(t) and the heartbeat signal x(t) corresponding to the light sleep period, deep sleep period and REM period;

[0098] When in use, the signal selection and determination for different sleep levels are realized through the corresponding frequency bands, and in order to improve the accuracy of the selection, the selection is made through the Lagrangian function, that is, the constraint condition is the corresponding frequency band, which improves the accuracy of the signal selection for different sleep levels;

[0099] Step 4: Determine the sleep quality through logical judgment, and the judgment content is as follows:

[0100] If the breathing signal h(t) is in the light sleep stage, and the heartbeat signal x(t) is also in the light sleep stage, then the patient is in the light sleep stage; if the heartbeat signal x(t) is in the deep sleep stage, then the patient is in the transition from the light sleep stage to the deep sleep stage, or from the deep sleep stage to the light sleep stage; if the heartbeat signal x(t) is in the REM stage, then the patient is in the transition from the light sleep stage to the REM stage, that is, he is about to wake up;

[0101] If the breathing signal h(t) is in the deep sleep stage and the heartbeat signal x(t) is also in the deep sleep stage, the patient is in the deep sleep stage; if the heartbeat signal x(t) is in the light sleep stage, the patient is in the transition from the light sleep stage to the deep sleep stage, or from the deep sleep stage to the light sleep stage;

[0102] If the breathing signal h(t) is in the REM stage and the heartbeat signal x(t) is also in the REM stage, the patient is in the REM stage; if the heartbeat signal x(t) is in the light sleep stage, the patient is in the transition from the light sleep stage to the REM stage;

[0103] When in use, breathing and heartbeat are generally in a synchronized state. However, in some cases, breathing and heartbeat may be abnormal. At this time, a judgment is required. Through the judgment of a single situation, it is set as a transition stage and a duration period. The sleep level is generally a light sleep period when falling asleep, and alternating between light sleep and deep sleep during sleep. That is, when the patient enters the dream state, he is in a light sleep period. At this time, the breathing signal and heartbeat signal will produce alternating fluctuations. The REM period is the pre-sleep stage and the pre-awakening stage. At this time, it is only possible to enter the REM period from the light sleep period, or the REM period from the light sleep period.

[0104] Step 5: Divide the patient's time period from falling asleep to waking up into one-hour intervals, and monitor the sleep quality for each hour according to the above steps. If the deep sleep period accounts for 60%-80% and the light sleep period accounts for 18%-38%, the sleep quality is excellent; if the deep sleep period accounts for 40%-60% and the light sleep period accounts for 38%-58%, the sleep quality is good; if the deep sleep period accounts for 50%-70% and the light sleep period accounts for 28%-48%, the sleep quality is poor;

[0105] When in use, the sleep time is divided into time periods to facilitate the detection of the sleep conditions in each time period, and the proportion of deep sleep and light sleep is calculated based on the sleep conditions in each time period to determine the patient's sleep quality.

[0106] refer to Figure 2 , a sleep monitoring system for psychiatric patients, comprising:

[0107] The flexible piezoelectric sensor is set on the mattress, which fits closely with the human body. It can detect the patient's breathing and heartbeat by generating a certain amplitude of vibration through the heartbeat and normal breathing of the human body in the sleeping state.

[0108] The flexible piezoelectric sensor also includes a charge amplifier and an AD converter. The charge amplifier amplifies the collected charge information, and the AD converter is used to realize analog-to-digital conversion of the collected piezoelectric signal.

[0109] A gain amplifier is used to perform gain amplification processing on the piezoelectric signal after analog-to-digital conversion, so that the piezoelectric signal after analog-to-digital conversion can be easily filtered and amplified to improve the accuracy of the signal;

[0110] A filter processor is used to filter out clutter from the collected piezoelectric signal, so as to facilitate empirical mode decomposition of the piezoelectric signal and obtain a respiratory signal h(t) and a heartbeat signal x(t). The filter processor includes an FIR bandpass filter and a mean filter. The piezoelectric signal is first selected by the FIR bandpass filter, and then smoothed by the mean filter to filter out the remaining high-frequency signal in the signal.

[0111] The monitoring terminal transmits the processed signal z(t) collected by the flexible piezoelectric sensor to the monitoring terminal, which decomposes the signal z(t) collected by the flexible piezoelectric sensor through empirical mode decomposition, and obtains the respiratory signal h(t) and the heartbeat signal x(t) through the respiratory frequency and the heartbeat frequency, and then obtains the corresponding respiratory signal h(t) and the heartbeat signal x(t) through the different frequencies of the light sleep period, deep sleep period and REM period, and then determines the sleep quality;

[0112] The sleep quality after detection and calculation is displayed on the display of the monitoring terminal, or the monitoring terminal transmits the data information to the mobile device through the communication module, so that the patient's family can obtain the patient's sleep condition.

[0113] The above embodiments can be implemented in whole or in part by software, hardware, firmware or any other combination. When implemented by software, the above embodiments can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions or computer programs. When the computer instructions or computer programs are loaded or executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that contains one or more available media sets. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium. The semiconductor medium can be a solid-state hard disk.

[0114] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0115] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0116] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only some logical function divisions. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0117] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0118] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0119] If the functions are implemented in the form of software functional units 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 application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard disks, read-only memories (ROM), random access memories (RAM), magnetic disks or optical disks.

[0120] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0121] The above description is only a specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application.

Claims

1. A method for monitoring sleep of psychiatric patients, characterized in that: include, The patient's electrocardiogram information and respiratory information are collected through a flexible piezoelectric sensor, and the data piezoelectric signal collected by the flexible piezoelectric sensor is amplified and filtered, and the signal collected by the flexible piezoelectric sensor is z(t); Perform empirical mode decomposition on the signal z(t) collected by the flexible piezoelectric sensor to obtain the breathing signal h(t) and the heartbeat signal x(t) in turn; The frequency of the breathing signal h(t) is set to 0.1-0.5Hz, the frequency of the heartbeat signal x(t) is set to 0.8-3.0Hz, and sleep is divided into light sleep, deep sleep and REM period. The breathing frequency of the light sleep period is 0.4-0.3Hz, the heartbeat frequency is 2.8-2.2Hz, and the breathing and heartbeat decrease slowly; the breathing frequency of the deep sleep period is 0.2-0.1Hz, the heartbeat frequency is 0.8-2.0Hz, and the breathing and heartbeat are stable and slow; the breathing frequency of the REM period is 0.3-0.5Hz, the heartbeat frequency is 3.0-2.2Hz, and the breathing and frequency fluctuate frequently; The sleep quality is determined through logical judgment, and the judgment content is as follows: If the breathing signal h(t) is in the light sleep stage, and the heartbeat signal x(t) is also in the light sleep stage, then the patient is in the light sleep stage; if the heartbeat signal x(t) is in the deep sleep stage, then the patient is in the transition from the light sleep stage to the deep sleep stage, or from the deep sleep stage to the light sleep stage; if the heartbeat signal x(t) is in the REM stage, then the patient is in the transition from the light sleep stage to the REM stage, that is, he is about to wake up; If the breathing signal h(t) is in the deep sleep stage and the heartbeat signal x(t) is also in the deep sleep stage, the patient is in the deep sleep stage; if the heartbeat signal x(t) is in the light sleep stage, the patient is in the transition from the light sleep stage to the deep sleep stage, or from the deep sleep stage to the light sleep stage; If the breathing signal h(t) is in the REM stage and the heartbeat signal x(t) is also in the REM stage, the patient is in the REM stage; if the heartbeat signal x(t) is in the light sleep stage, the patient is in the transition from the light sleep stage to the REM stage; The patient's time period from falling asleep to waking up is divided into one-hour intervals, and according to the above steps, the sleep quality is monitored every hour. If the deep sleep period accounts for 60%-80% and the light sleep period accounts for 18%-38%, the sleep quality is excellent; if the deep sleep period accounts for 40%-60% and the light sleep period accounts for 38%-58%, the sleep quality is good; if the deep sleep period accounts for 50%-70% and the light sleep period accounts for 28%-48%, the sleep quality is poor.

2. A sleep monitoring method for psychiatric patients according to claim 1, characterized in that: Filtering: First, a FIR bandpass filter is used for filtering, and the passband frequency range is 0.1Hz-3.3Hz; Then the signal is smoothed by a mean filter, and the remaining high-frequency signals in the signal are filtered out by the mean filter.

3. A sleep monitoring method for psychiatric patients according to claim 2, characterized in that: The calculation formula of FIR bandpass filter is as follows: The above expression is an M-1 order FIR filter, which has M taps, and therefore consists of M multipliers and M-1 accumulators. Each tap requires a multiplier accumulator unit that consumes logic resources. Where z(n) is the input signal, h(j) is the FIR filter coefficient, and v(n) is the filtered signal.

4. A method for monitoring sleep of psychiatric patients according to claim 2, characterized in that: The calculation formula of the mean filter is as follows: in, Identifies the output data set after mean filtering, m represents the size of the window, v(n) j Represents the jth data information in the input data set; The mean filter specifies a window with an odd length, uses the average value of all the data in the window to replace the value in the middle, and then translates the window with a step size of 1. The above operation is repeated until it slides to the end of the time series data.

5. A sleep monitoring method for psychiatric patients according to claim 1, characterized in that: Steps of Empirical Mode Decomposition: Find all extreme points in the signal z(t) collected by the flexible piezoelectric sensor; The envelope of the upper extreme point is fitted by a cubic spline curve. max (t) and the envelope of the lower extreme point e min (t), and find the envelope e of the upper extreme point max (t) and the envelope of the lower extreme point e min The mean value m(t) of v(t) is subtracted from the mean value m(t) in z(t): v(t) = z(t) - m(t); Determine whether v(t) is an IMF according to the preset criteria; If not, replace z(t) with v(t) and repeat the above steps until v(t) meets the criterion, then v(t) is the IMF to be extracted; Each time the first-order IMF is obtained, it is subtracted from z(t) until the remaining part of the signal is r n (t) is just a monotonic sequence or a constant sequence; After empirical mode decomposition, the original signal z(t) is decomposed into a series of MFs and a linear stack of the remaining parts, such as: Where I is the number of decompositions, i is the i-th decomposition, and imf i (t) is the information after the last decomposition, and r(t) is the noise signal.

6. A method for monitoring sleep of psychiatric patients according to claim 5, characterized in that: The preset criterion for judging v(t) is: The data information keeps the number of extreme points and zero crossing points equal in the entire time range, and the error is controlled at one; At any point in time, the envelope of the local maximum and the envelope of the local minimum average to zero; Or the envelope of the maximum value and the envelope of the local minimum value satisfy the following formula on average: And the SD value is 0.05-0.1, where v j-1 (t) is the data information after the last decomposition, v j (t) is the data information after this decomposition.

7. A method for monitoring sleep of psychiatric patients according to claim 5, characterized in that: The breathing signal h(t) and the heartbeat signal x(t) are compared in the signals of empirical mode decomposition at frequencies of 0.1-0.5 Hz and 0.8-3.0 Hz respectively. The signals are adaptively selected according to the different frequencies of light sleep, deep sleep and REM period to obtain the corresponding breathing signal h(t) and heartbeat signal x(t) of light sleep, deep sleep and REM period.

8. A method for monitoring sleep of psychiatric patients according to claim 7, characterized in that: The breathing signal h(t) and heartbeat signal x(t) corresponding to the light sleep period, deep sleep period and REM period are selected and determined by the Lagrangian function. The calculation formula of the Lagrangian function is as follows: L(x,λ)=f(x)-λ*g(x), Among them, L(x,λ) is the Lagrangian function, f(x) is the objective function, λ is the Lagrangian multiplier, and g(x) is the constraint condition, which is the frequency range value of the respiratory signal h(t) and the heartbeat signal x(t) corresponding to the light sleep period, deep sleep period and REM period.

9. A method for monitoring sleep of psychiatric patients according to claim 1, characterized in that: The flexible piezoelectric sensor is set on the mattress. The human heartbeat and normal breathing in the sleeping state will produce a certain amplitude of vibration, so as to detect the patient's breathing and heartbeat. The pressure changes caused by the heartbeat and breathing are weak and easily drowned out by the environmental noise. The flexible piezoelectric sensor is provided with a charge amplifier for amplifying the collected charge information, and also includes an AD converter for realizing analog-to-digital conversion of the collected piezoelectric signal.

10. A sleep monitoring system for psychiatric patients, characterized in that: include: The flexible piezoelectric sensor is set on the mattress, which fits closely with the human body. It can detect the patient's breathing and heartbeat by generating a certain amplitude of vibration through the heartbeat and normal breathing of the human body in the sleeping state. The flexible piezoelectric sensor also includes a charge amplifier and an AD converter. The charge amplifier amplifies the collected charge information, and the AD converter is used to realize analog-to-digital conversion of the collected piezoelectric signal. A gain amplifier is used to perform gain amplification processing on the piezoelectric signal after analog-to-digital conversion, so that the piezoelectric signal after analog-to-digital conversion can be easily filtered and amplified to improve the accuracy of the signal; A filter processor is used to filter out clutter from the collected piezoelectric signal, so as to facilitate empirical mode decomposition of the piezoelectric signal and obtain a respiratory signal h(t) and a heartbeat signal x(t). The filter processor includes an FIR bandpass filter and a mean filter. The piezoelectric signal is first selected by the FIR bandpass filter, and then smoothed by the mean filter to filter out the remaining high-frequency signal in the signal. The monitoring terminal transmits the processed signal z(t) collected by the flexible piezoelectric sensor to the monitoring terminal, which decomposes the signal z(t) collected by the flexible piezoelectric sensor through empirical mode decomposition, and obtains the respiratory signal h(t) and the heartbeat signal x(t) through the respiratory frequency and the heartbeat frequency, and then obtains the corresponding respiratory signal h(t) and the heartbeat signal x(t) through the different frequencies of the light sleep period, deep sleep period and REM period, and then determines the sleep quality; The sleep quality after detection and calculation is displayed on the display of the monitoring terminal, or the monitoring terminal transmits the data information to the mobile device through the communication module, so that the patient's family can obtain the patient's sleep condition.

Citation Information

Cited By

  • Brain wave audio sleep aiding method and brain wave audio sleep aiding device

    CN119488663A