Biological data and sleep detection method and device, electronic equipment and storage medium

By collecting and processing cardiac shock signals through an inertial measurement unit that is near but not in contact with the user, it solves the problems of low accuracy and poor comfort of existing sleep detection methods, achieves sensorless sleep detection and biological data collection, and improves detection accuracy. and comfort.

CN118766413APending Publication Date: 2024-10-15GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310382418.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-04-10
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

Existing sleep detection methods have low detection accuracy and affect user comfort, especially when the user is required to wear or come into contact with the device, resulting in inaccurate sleep detection results and poor comfort.

Method used

The cardiac shock signal is collected by an inertial measurement unit that is near the user but not in contact with the user, and the signal is extracted and processed, including changing the spectrum distribution, to achieve sensorless sleep detection and improve detection accuracy and comfort.

Benefits of technology

It realizes sensorless biological data and sleep detection, improves the user's comfort and detection accuracy during sleep, and also improves the accuracy of sleep detection based on target signals.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118766413A_ABST
    Figure CN118766413A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a biological data and sleep detection method and device, electronic equipment and a storage medium, and relates to the technical field of consumer electronics. The method comprises the following steps: acquiring a heart impact signal of a user through an inertial measurement unit, wherein the inertial measurement unit is positioned in a specified range taking the user as a center but is not in contact with the user; performing signal extraction processing on the ballistocardiogram signal to obtain a target signal, the signal extraction processing including changing the spectrum distribution of the ballistocardiogram signal; and performing sleep detection on the user based on the target signal, thereby improving the problems of low sleep detection precision and influence on the sleep comfort of the user in the current sleep detection method which needs to be worn by the user or contacted with sleep detection equipment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of consumer electronics technology, and in particular, to a biological data, sleep detection method, device, electronic device and storage medium. Background Art

[0002] As people pay more and more attention to their health, various technologies and equipment for biological data detection of human health have emerged. Among them, sleep quality is closely related to a person's health status, and the user's physical health status can be evaluated through sleep detection. Summary of the invention

[0003] The embodiments of the present application provide a biometric data and sleep detection method, device, electronic device and storage medium to improve the current biometric data detection and sleep detection methods that require users to wear or contact the device, have low detection accuracy and make users feel it, thereby affecting user comfort.

[0004] In a first aspect, an embodiment of the present application provides a sleep detection method. The method includes: obtaining a user's cardiac impact signal through an inertial measurement unit, wherein the inertial measurement unit is located within a specified range centered on the user but is not in contact with the user; performing signal extraction processing on the cardiac impact signal to obtain a target signal, wherein the signal extraction processing includes changing the frequency spectrum distribution of the cardiac impact signal; and performing sleep detection on the user based on the target signal.

[0005] In a second aspect, an embodiment of the present application provides a sleep detection device. The device includes: an information perception module, which is used to obtain a user's heart impact signal through an inertial measurement unit, and the inertial measurement unit is located within a specified range of the user but not in contact with the user; a signal processing module, which is used to perform signal extraction processing on the heart impact signal to obtain a target signal, and the signal extraction processing includes changing the frequency spectrum distribution of the heart impact signal; a sleep detection module, which is used to perform sleep detection on the user based on the target signal.

[0006] In a third aspect, an embodiment of the present application provides a biological data detection method, which is applied to an electronic device, wherein the electronic device includes a detection unit, and the method includes: when the electronic device is located within a specified range centered on the user and is not in direct contact with the user, detecting a body motion signal of the user by means of the detection unit; and processing the body motion signal to obtain the biological data of the user.

[0007] In a fourth aspect, an embodiment of the present application provides a biological data detection device, comprising: a detection module, configured to detect a body motion signal of a user when the device is located within a specified range centered on the user and is not in direct contact with the user; and a processing module, configured to process the body motion signal to obtain the biological data of the user.

[0008] In a fifth aspect, an embodiment of the present application provides an electronic device. The electronic device includes an inertial measurement unit, a memory, one or more processors, and one or more applications. Among them, the one or more applications are stored in the memory and are configured to execute the method provided in the embodiment of the present application when called by the one or more processors.

[0009] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium having a program code stored therein, wherein the program code is configured to execute the method provided by the embodiment of the present application when called by a processor.

[0010] The biological data, sleep detection method, device, electronic device and storage medium provided in the embodiments of the present application can realize non-sensing biological data and sleep detection by collecting the heartbeat signal through a detection unit (such as an inertial measurement unit) placed near the user but not in contact with the user. The non-sensing detection will not affect the user's normal life (such as sleep). Compared with related detection methods that require the user to wear or contact the detection device, the non-sensing biological data and sleep detection can improve the comfort and accuracy of the user during sleep. In addition, in some embodiments, in the process of signal extraction and processing of the heartbeat signal, the frequency spectrum distribution of the heartbeat signal is changed, and the target signal can be accurately extracted from the heartbeat diagram, which can improve the accuracy of sleep detection based on the target signal. That is, the biological data, sleep detection method, device, electronic device and storage medium provided in the embodiments of the present application can simultaneously realize non-sensing biological data detection or sleep detection and improve the accuracy of detection. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without paying any creative work.

[0012] Figure 1 is a structural schematic diagram of a sleep detection system provided in an embodiment of the present application;

[0013] Figure 2 is a schematic diagram of possible placement positions of a mobile terminal including an inertial measurement unit provided by an exemplary embodiment of the present application;

[0014] Figure 3 is a schematic diagram of possible installation locations of a wireless electromagnetic sensing device provided by an exemplary embodiment of the present application;

[0015] Figure 4 is a flowchart of a sleep detection method provided in an embodiment of the present application;

[0016] Figure 5 is a schematic diagram of a heart attack signal provided by an exemplary embodiment of the present application;

[0017] Figure 6 is a schematic diagram of a heart rate signal provided by an exemplary embodiment of the present application;

[0018] Figure 7 is a flowchart of a sleep detection method provided by another embodiment of the present application;

[0019] Figure 8 is a flowchart of a sleep detection method provided by another embodiment of the present application;

[0020] Fig. 9 yes Figure 8 A flowchart of steps S330 to S340 in the sleep detection method provided;

[0021] Fig.10 is a flowchart of a sleep detection method provided in yet another embodiment of the present application;

[0022] Fig.11 is a flowchart of a sleep detection method provided by another embodiment of the present application;

[0023] Fig.12 is a structural schematic diagram of a sleep detection device provided in an embodiment of the present application;

[0024] Fig.13 is a schematic diagram of the structure of a biological data detection device provided in an embodiment of the present application;

[0025] Fig.14 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application;

[0026] Fig.15 It is a schematic diagram of the structure of the computer-readable storage medium provided in an embodiment of the present application. DETAILED DESCRIPTION

[0027] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.

[0028] The quality of human sleep is closely related to human health. At present, some related technologies use smart watches or smart bracelets with built-in inertial measurement units (IMUs) to detect sleep stages by identifying the user's body movement information. Some other related technologies use polysomnography (PSG) to detect sleep stages by detecting the user's EEG information. Human sleep detection can be performed by detecting human biological data.

[0029] The inventor discovered that the method of using a smart watch or smart bracelet with a built-in inertial measurement unit to detect sleep stages mainly performs sleep stages based on the user's body movement information. For example, when a lot of movements of the user's body are detected, the user will be considered to be awake or in a light sleep state. Lacking the user's physiological basis, the accuracy of sleep detection is low. In addition, wearing a smart watch or smart bracelet will have a certain impact on the user's sleep comfort. Regarding the method of using polysomnography to detect sleep stages, it is necessary to use polysomnography detection equipment. The equipment is expensive, cumbersome to wear, and there are many contact points with the user, which may seriously affect the user's sleep and cause inaccurate sleep detection results. In addition, the method of using polysomnography to detect sleep stages also has poor sleep comfort. In other words, the current sleep detection method that requires the user to wear or contact the sleep detection equipment has the problem of low sleep detection accuracy and affects the user's sleep comfort.

[0030] Based on this, the inventors have proposed a biological data and sleep detection method, device, electronic device and storage medium after long-term research. The inertial measurement unit is set near the user but not in direct contact with the user to sense the user's body motion information, and the frequency spectrum distribution of the cardiac shock signal is changed to improve the signal extraction accuracy. It can simultaneously realize non-contact biological data detection or sleep detection and improve the detection accuracy.

[0031] First, the biological data detection method provided in the embodiment of the present application is introduced. The biological data detection method can detect the body motion signal of the user through the detection unit in the electronic device when the electronic device is located within a specified range centered on the user and is not in contact with the user; the body motion signal is processed to obtain the biological data of the user, and further sleep detection can be performed based on the biological data.

[0032] In some embodiments, the above-mentioned specified range may be a range in which the electronic device can detect available body motion signals; the electronic device and the user are located on the same carrier. The carrier may be a bed, a table, etc. For example, when the detection unit is an inertial measurement unit, the electronic device may be placed on the bed in a position that is not in contact with the user.

[0033] In some embodiments, by collecting ballistocardiogram (BCG) signals through an inertial measurement unit (e.g., an IMU sensor) placed near the user but not in contact with the user, non-sense sleep detection can be achieved. Non-sense sleep detection does not affect the user's normal sleep and can improve the comfort and accuracy of the user during sleep. In addition, in the process of extracting and processing the ballistocardiogram signal, the frequency spectrum distribution of the ballistocardiogram signal is changed, so that the target signal can be accurately extracted from the ballistocardiogram, which can improve the accuracy of sleep detection based on the target signal.

[0034] In some embodiments, processing the body motion signal to obtain the user's biological data includes: extracting the cardiac impulse signal and / or other body motion signals from the body motion signal, and then obtaining the user's biological data based on the cardiac impulse signal and / or other body motion signals.

[0035] In some embodiments, obtaining the biological data of the user according to the cardiac impact signal includes: obtaining heart rate data and / or breathing data according to the cardiac impact signal. Further, obtaining the heart rate data and / or breathing data according to the cardiac impact signal may include: preprocessing the cardiac impact signal to obtain the preprocessed cardiac impact signal; using a specified filter to change the frequency spectrum distribution of the preprocessed cardiac impact signal, and performing filtering processing to obtain the heart rate data and / or breathing data.

[0036] In some embodiments, in order to improve data accuracy, after the filtering processing, the biological data detection method also includes: changing the frequency spectrum distribution of the cardiac impact signal after filtering processing, and performing filtering processing, wherein the step of "changing the frequency spectrum distribution of the cardiac impact signal after filtering processing" and the step of "filtering processing" are performed alternately until a preset number of filtering times or a preset filtering effect is reached.

[0037] In some embodiments, the designated filter includes a first filter and a second filter. The designated filter is used to change the spectrum distribution of the preprocessed cardiac impact signal and perform filtering processing to obtain the heart rate data and / or the respiratory data, including: using the first filter to amplify and superimpose the fundamental wave and harmonics of the heart rate signal in the preprocessed cardiac impact signal, and perform filtering processing to obtain the heart rate data; and / or using the second filter to amplify and superimpose the fundamental wave and harmonics of the respiratory signal in the preprocessed cardiac impact signal, and perform filtering processing to obtain the respiratory signal, and the filter kernel and filtering parameters of the second filter are different from those of the first filter.

[0038] In some embodiments, the first filter includes a first low-pass filter or a first band-pass filter, and the first filter is used to amplify and superimpose the fundamental wave and the harmonics of the heart rate signal in the preprocessed heart impact signal, and filter the amplified heart rate data, including: squaring the preprocessed heart impact signal to obtain the squared heart impact signal; filtering the squared heart impact signal using the first low-pass filter or the first band-pass filter to obtain a preliminary heart rate signal, and the cutoff frequency used by the first low-pass filter or the first band-pass filter is determined according to the bandwidth of the heart rate signal; and square root processing is performed on the preliminary heart rate signal to obtain the heart rate data.

[0039] In some embodiments, the second filter includes a second low-pass filter or a second band-pass filter, and the second filter is used to amplify and superimpose the fundamental wave and the harmonics of the respiratory signal in the preprocessed cardiac impact signal, and filter the amplified fundamental wave and the harmonics of the respiratory signal in the preprocessed cardiac impact signal to obtain the respiratory signal, including: squaring the preprocessed cardiac impact signal to obtain the squared cardiac impact signal; filtering the squared cardiac impact signal using the second low-pass filter or the second band-pass filter to obtain a preliminary respiratory signal, and the cutoff frequency of the second low-pass filter or the second band-pass filter is determined according to the bandwidth of the respiratory signal; and performing square root processing on the preliminary respiratory signal to obtain the respiratory data.

[0040] It should be noted that the order of the above processing methods is not limited. If there is an order, it can be understood as further processing on the signal obtained after the previous processing. For example, the filtering process and the process of changing the spectrum distribution can be interspersed, for example, filtering first, then spectrum shifting, and then filtering, etc. For another example, the heart shock signal is pre-processed first, then the spectrum distribution is changed, and then the first filter is used for filtering to obtain the heart rate signal; for specific processing methods, reference can also be made to the exemplary description of obtaining the target signal in other embodiments below.

[0041] In some embodiments, the user's sleep is monitored based on at least one or more of the heart rate data, the breathing data, and the other body movement data, the heart rate data including heart rate values ​​and / or heart rate variability characteristics, and the breathing data including breathing values ​​and / or breathing rate variability characteristics.

[0042] For example, heart rate variability can be calculated by filtering the heart beat signal to obtain a clean heart rate signal, where each heart beat is an oscillating signal group, and the point with the highest frequency is the feature point. Each group of feature points can be found through an appropriate peak finding algorithm, and the heart rate variability characteristics can be calculated based on the position of the point.

[0043] It should be noted that the electronic device can be a terminal device such as a smart phone, a smart watch, or a dedicated portable health detection device, which is not limited in the embodiments of the present application. The detection unit in the electronic device can be one or more of an inertial measurement unit (such as an IMU sensor), a millimeter wave sensor, an ultra-wideband (Ultra Wide Band, referred to as UWB) sensor, a Wi-Fi unit, and a radio frequency (Radio Frequency, referred to as RF) unit.

[0044] In some embodiments of the present application, the user's biological data can be detected in a non-contact manner, which can improve the user's comfort, especially sleeping comfort, while monitoring health.

[0045] The technical features in the following embodiments may be combined with or replaced with the technical features in the above embodiments, and all belong to the protection scope of this application.

[0046] Figure 1 : is a structural diagram of a sleep detection system provided in an embodiment of the present application. The sleep detection system 100 includes an inertial measurement unit 110 and a processing device 120. The inertial measurement unit 110 is used to sense the ballistocardiogram (BCG) signal and other body motion information of the user, and send the sensed ballistocardiogram signal and other body motion information to the processing device 120. The inertial measurement unit 110 can be located in a mobile terminal, and the mobile terminal can include but is not limited to a smart phone, a smart watch, and a smart bracelet. The mobile terminal of the inertial measurement unit 110 can be placed near the user but not in contact with the user. For an example, please refer to Figure 2 When the user lies on the bed, the mobile terminal including the inertial measurement unit 110 can be placed on the pillow close to the user's body.

[0047] It should be noted that in actual applications, wireless electromagnetic sensing devices, piezoelectric ceramics or optical fiber devices (for example, optical fiber BCG sensors) can also be used to replace inertial measurement units to sense the user's cardiac signal and other body motion information. Wireless electromagnetic sensing devices may include but are not limited to millimeter wave radar (mmW Radar), UWB devices, Wi-Fi devices, and RF devices. For examples, please refer to Figure 3 The wireless electromagnetic sensing device can be suspended near the user's body. It can be understood that the detection unit of the electronic device in some of the aforementioned embodiments can adopt the above-mentioned sensing device.

[0048] The processing device 120 performs sleep detection on the user based on the cardiac shock signal and other body movement information. The processing device 120 can be located at the server end, which can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDN for short), and big data and artificial intelligence platforms. The server end can be used to provide services for applications running on mobile terminals.

[0049] Figure 4 1 is a flowchart of a sleep detection method provided in an embodiment of the present application. The sleep detection method can be applied to the above-mentioned sleep detection system (or the processing device therein), or the sleep detection device or electronic device mentioned later. The sleep detection method can include the following steps S110 to S130.

[0050] Step S110 , obtaining a cardiac signal of the user through an inertial measurement unit, wherein the inertial measurement unit is located within a specified range centered on the user but is not in contact with the user.

[0051] Among them, the cardiac impact signal is the change of external pressure or surface displacement of the human body caused by the heart beat and blood flow in the aorta, reflecting the mechanical properties of the heart. The cardiac impact signal includes physiological characteristic information such as heart rate signal and respiratory signal. The definition of the cardiac impact signal can also refer to the relevant meaning of the prior art.

[0052] The user-centered designated range in the embodiment of the present application can be set according to actual needs, for example, within a 1-meter range centered on the user. The inertial measurement unit is located within the user-centered designated range but is not in contact with the user, so that the inertial measurement unit is close to the user's body but not in contact with the user, which will not affect the user's normal sleep, thereby realizing non-sensing sleep monitoring.

[0053] The inertial measurement unit can obtain the user's cardiac signal and other body motion information (for example, the amplitude, frequency and duration of human body movements) through signals such as vibration feedback or reflected echo. As an example, the cardiac signal can be as follows: Figure 5 As shown, the signal indicated by the arrow is the vibration signal caused by the user's heartbeat, that is, the heart rate signal in the embodiment of the present application. The black bold envelope is the low-frequency signal caused by the user's breathing, that is, the breathing signal in the embodiment of the present application.

[0054] Step S120, performing signal extraction processing on the ballistocardi signal to obtain a target signal, wherein the signal extraction processing includes changing the frequency spectrum distribution of the ballistocardi signal.

[0055] The target signal in the embodiment of the present application may include a heart rate signal and a breathing signal.

[0056] The cardiac impact signal itself is very weak, and is easily disturbed by breathing, body movement, and power frequency noise, resulting in the cardiac impact signal obtained by direct measurement often being submerged in noise, making it difficult to obtain the physiological characteristic information such as heart rate and breathing contained therein. In addition, the inventor found after long-term research that the signal-to-noise ratio of the heart rate signal (or respiratory rate signal) in the cardiac impact signal is extremely low to the cardiac impact signal. In order to improve the signal extraction accuracy, that is, to improve the accuracy of the heart rate signal and the respiratory rate signal, the embodiment of the present application can pre-process the cardiac impact signal to obtain the pre-processed cardiac impact signal, adopt a specified filter, change the spectrum distribution of the pre-processed cardiac impact signal, and perform filtering to obtain the heart rate signal and / or respiratory signal. Among them, the kernel and filtering parameters of the specified filter can be designed according to actual needs. The pre-processing operation can include removing the baseline drift operation of the cardiac impact signal. The embodiment of the present application also involves changing the spectrum distribution of the cardiac impact signal after removing the baseline drift of the cardiac impact signal. By changing the frequency spectrum distribution of the cardiac impact signal, the heart rate signal (or breathing signal) in the cardiac impact signal can be amplified and superimposed, so that other signal frequency bands except the fundamental frequency and multiples of the heart rate signal (or breathing signal) can be effectively suppressed in the frequency domain, thereby improving the accuracy of the heart rate signal (or breathing signal) extracted from the cardiac impact signal.

[0057] It can be understood that, in the absence of conflict, the biological data in some embodiments is equivalent to the target signal in some embodiments, the heart rate data in some embodiments is equivalent to the heart rate signal in some embodiments, and the breathing data in some embodiments is equivalent to the breathing signal in some embodiments.

[0058] In some embodiments of the present application, the method of changing the spectrum distribution of the cardiac ballistic signal may include: performing one or more combinations of spectrum shifting, spectrum enhancement, and phase transformation on a partial frequency band of the cardiac ballistic signal.

[0059] In some embodiments of the present application, the cardiac impulse signal includes multiple signal groups. For example, the heart rate signal in the cardiac impulse signal is as follows: Figure 6 As shown, usually one heartbeat is a vibration signal group, and the point with the highest frequency in each signal group is a characteristic point (such as Figure 6 The above-mentioned partial frequency band in the embodiment of the present application may include the fundamental wave, multiple harmonics and frequency bands corresponding to the characteristic points of the ballistocardia signal.

[0060] In some embodiments, in order to further improve the signal extraction accuracy, after the above filtering process, the spectrum distribution of the heart ballistogram signal after filtering process can be further changed and filtered, wherein the step of "changing the spectrum distribution of the heart ballistogram signal after filtering process" and the step of "filtering process" can be performed alternately until the preset filtering times or the preset filtering effect are reached. The preset filtering times and the preset filtering effect can be set according to actual needs and are not specifically limited here.

[0061] In some embodiments, the designated filter may include a first filter, and the first filter may be used to amplify and superimpose the fundamental wave and harmonics of the heart rate signal in the preprocessed heart ballistic signal, and perform filtering processing to obtain the heart rate signal.

[0062] In some embodiments, the designated filter may include a second filter, and the second filter may be used to amplify and superimpose the fundamental wave and harmonics of the respiratory signal in the preprocessed heart ballistic signal, and perform filtering processing to obtain the respiratory signal.

[0063] In some embodiments, the designated filter may include a first filter and a second filter, wherein the filter kernel and filter parameters of the second filter are different from those of the first filter. The first filter may be used to amplify and superimpose the fundamental wave and the harmonics of the heart rate signal in the preprocessed heartbeat signal, and filter the amplified and superimposed signal to obtain the heart rate signal. The second filter may be used to amplify and superimpose the fundamental wave and the harmonics of the respiratory signal in the preprocessed heartbeat signal, and filter the amplified and superimposed signal to obtain the respiratory signal.

[0064] It should be noted that the implementation details of "preprocessing the cardiac impact signal to obtain a preprocessed cardiac impact signal, using a specified filter to change the frequency spectrum distribution of the preprocessed cardiac impact signal, and performing filtering processing to obtain a heart rate signal and / or a breathing signal" can also be referred to the following steps S230 and S240.

[0065] Step S130: performing sleep detection on the user based on the target signal.

[0066] Sleep staging can be performed based on the target signal, that is, the user's sleep time is divided into multiple stages to detect the user's sleep. The multiple stages involved in sleep staging may include but are not limited to the awake stage, light sleep stage, deep sleep stage, and rapid eye movement (REM) stage.

[0067] Since the heart rate and respiratory rate of the human body gradually decrease during the process from wakefulness to deep sleep, in some embodiments, sleep stages can be performed according to the heart rate and respiratory rate, and sleep detection can be performed on the user. For specific implementations, please refer to the subsequent steps S430 and S440.

[0068] In addition, when the user is awake, the amplitude of human body movements is large and the frequency of movements is high; when the user is asleep, the frequency of human body movements is much less than the frequency of movements when awake and the movement time is short. Therefore, falling asleep can be detected based on the amplitude and frequency of human body movements. When the user is in deep sleep, the body metabolism is reduced, the body is quiet, and the muscles are relaxed. When it is detected that the body has been quiet for a long time, it can be considered that the user has entered deep sleep. In some embodiments, in order to improve the accuracy of sleep detection, heart rate, respiratory rate and other body movement information can also be combined to perform sleep staging and perform sleep detection on the user. The specific implementation method can refer to the subsequent step S530.

[0069] It can be understood that the description of "performing sleep detection on the user based on the target signal" in some of the above embodiments can be applied to the example explanation of "performing sleep monitoring on the user based on one or more of the heart rate data, the breathing data and the other body movement data" in some embodiments.

[0070] The sleep detection method, device, electronic device and storage medium provided by some embodiments of the present application can realize non-sense sleep detection by collecting the heartbeat signal through an inertial measurement unit placed near the user but not in contact with the user. Non-sense sleep detection will not affect the user's normal sleep. Compared with related sleep detection methods that require the user to wear or contact the sleep detection device, non-sense sleep detection can improve the comfort and accuracy of the user during sleep. In addition, in the process of signal extraction and processing of the heartbeat signal, the frequency spectrum distribution of the heartbeat signal is changed, so that the target signal can be accurately extracted from the heartbeat diagram, which can improve the accuracy of sleep detection based on the target signal.

[0071] Figure 7 : is a flowchart of a sleep detection method provided by another embodiment of the present application. The sleep detection method can be applied to the above-mentioned sleep detection system (or the processing device therein), or the sleep detection device or electronic device mentioned later. The sleep detection method may include the following steps S210 to S250. The specified filter in this embodiment includes a first filter and a second filter, and the filter kernel and filter parameters of the second filter are different from those of the first filter.

[0072] Step S210: acquiring a cardiac signal of the user through an inertial measurement unit, wherein the inertial measurement unit is located within a specified range centered on the user but is not in contact with the user.

[0073] For the detailed description of step S210, please refer to the relevant part of the aforementioned step S110, which will not be repeated here.

[0074] Step S220, preprocessing the ballistocardiogram signal to obtain a preprocessed ballistocardiogram signal.

[0075] The preprocessing may refer to performing a baseline drift removal operation on the ballistocardiac signal. For an exemplary description of the preprocessing, please refer to the relevant part in the aforementioned step S120, which will not be repeated here.

[0076] Step S230: using a first filter, amplifying and superimposing the fundamental wave and the harmonics of the heart rate signal in the preprocessed heartbeat signal, and performing filtering processing to obtain the heart rate signal.

[0077] Among them, the first filter can amplify and superimpose the fundamental wave and harmonics of the heart rate signal in the cardiac impact signal, and suppress other signal frequency bands. The first filter may include but is not limited to a low-pass filter, a band-pass filter, a band-pass filter composed of a low-pass filter and a high-pass filter, or an active filter. The kernel and filtering parameters of the first filter can be set according to the real heart rate signals of different users. After the first filter amplifies and superimposes the fundamental wave and harmonics of the heart rate signal in the preprocessed cardiac impact signal, other signal frequency bands in the cardiac impact signal except the fundamental frequency and harmonics of the heart rate signal are effectively suppressed, so that a heart rate signal with higher accuracy (such as Figure 6 As shown), the accuracy of sleep detection based on heart rate signals can be improved.

[0078] In some embodiments, the first filter includes a first low-pass filter or a first band-pass filter, which can square the preprocessed cardiac impact signal to obtain a squared cardiac impact signal. Squaring the cardiac impact signal can amplify and superimpose the cardiac impact signal so that a higher-precision cardiac impact signal can be obtained during subsequent filtering; the squared cardiac impact signal is filtered using the first low-pass filter or the first band-pass filter to obtain a preliminary heart rate signal, and the cutoff frequency used by the first low-pass filter or the first band-pass filter is determined according to the bandwidth of the heart rate signal; the preliminary heart rate signal is squared to obtain a heart rate signal.

[0079] Step S240: using a second filter, amplifying and superimposing the fundamental wave and the harmonics of the respiratory signal in the preprocessed heart ballistic signal, and performing filtering processing to obtain the respiratory signal.

[0080] Among them, the second filter can amplify and superimpose the fundamental wave and harmonics of the respiratory signal in the cardiac impact signal, and suppress other signal frequency bands. The second filter may include but is not limited to a low-pass filter, a band-pass filter, a band-pass filter composed of a low-pass filter and a high-pass filter, or an active filter. The kernel and filter parameters of the second filter can be set according to the real respiratory signals of different users. After the second filter amplifies and superimposes the fundamental wave and harmonics of the respiratory signal in the pre-processed cardiac impact signal, other signal frequency bands in the cardiac impact signal except the fundamental frequency and harmonics of the respiratory signal are effectively suppressed, so that a respiratory signal with higher precision can be obtained, thereby improving the accuracy of sleep detection based on the respiratory signal.

[0081] In some embodiments, the second filter includes a second low-pass filter or a second band-pass filter, which can square the preprocessed cardiac impact signal to obtain a squared cardiac impact signal; use the second low-pass filter or the second band-pass filter to filter the squared cardiac impact signal to obtain a preliminary breathing signal, and the cutoff frequency of the second low-pass filter or the second band-pass filter is determined according to the bandwidth of the breathing signal; and perform square root processing on the preliminary breathing signal to obtain a breathing signal.

[0082] Step S250: Perform sleep detection on the user based on the heart rate signal and the breathing signal.

[0083] For the detailed description of step S240 , please refer to the aforementioned step S130 and subsequent steps S430 to S440 .

[0084] The sleep detection method, device, electronic device and storage medium provided in the embodiments of the present application can realize non-sense sleep detection by collecting the heartbeat signal through an inertial measurement unit placed near the user but not in contact with the user. Non-sense sleep detection will not affect the user's normal sleep. Compared with related sleep detection methods that require the user to wear or contact the sleep detection device, non-sense sleep detection can improve the comfort and accuracy of the user during sleep. In addition, a first filter is set to amplify and superimpose the fundamental wave and harmonics of the heart rate signal, and a second filter is set to amplify and superimpose the fundamental wave and harmonics of the breathing signal, so that a heart rate signal and a breathing signal with higher accuracy can be obtained, thereby improving the accuracy of sleep detection based on the target signal.

[0085] Figure 8 : is a flowchart of a sleep detection method provided by another embodiment of the present application. The sleep detection method can be applied to the above-mentioned sleep detection system (or the processing device therein), or the sleep detection device or electronic device mentioned later. The sleep detection method can include the following steps S310 to S360.

[0086] Step S310: acquiring a cardiac signal of the user through an inertial measurement unit, wherein the inertial measurement unit is located within a specified range centered on the user but is not in contact with the user.

[0087] Step S320, preprocessing the ballistocardiogram signal to obtain a preprocessed ballistocardiogram signal.

[0088] For the detailed description of step S310 and step S320, please refer to the relevant parts of the aforementioned step S110 and step S120, which will not be repeated here.

[0089] Step S330, square the preprocessed ballistocardiac signal to obtain a squared ballistocardiac signal.

[0090] By squaring the cardiac impact signal, the cardiac impact signal can be amplified and superimposed, so that a cardiac impact signal with higher accuracy can be obtained in subsequent low-pass filtering.

[0091] Step S340, using a first low-pass filter or a first band-pass filter to filter the squared heartbeat signal to obtain a preliminary heart rate signal, the cutoff frequency used by the first low-pass filter or the first band-pass filter is determined according to the bandwidth of the heart rate signal; performing square root processing on the preliminary heart rate signal to obtain a heart rate signal.

[0092] Among them, the first low-pass filter or the first band-pass filter can filter other signals except the heart rate signal to obtain a preliminary heart rate signal. Since square processing is performed before filtering, in order to obtain a true heart rate signal, it is necessary to perform square root processing on the preliminary heart rate signal after filtering to obtain the heart rate signal.

[0093] For ease of understanding, an example is provided here to illustrate how this implementation extracts the heart rate signal. Fig. 9 , the pre-processed cardiac impact signal is squared to obtain the squared cardiac impact signal, the squared cardiac impact signal is filtered by a first low-pass filter or a first band-pass filter to obtain a preliminary heart rate signal, and the preliminary heart rate signal is squared to obtain a heart rate signal. For example, the heart rate signal can be as follows Figure 6 shown.

[0094] Step S350, using a second low-pass filter or a second band-pass filter to filter the squared heart ballistogalactosid signal to obtain a preliminary breathing signal, the cutoff frequency of the second low-pass filter or the second band-pass filter is determined according to the bandwidth of the breathing signal; performing square root processing on the preliminary breathing signal to obtain a breathing signal.

[0095] Among them, the second low-pass filter or the second band-pass filter can filter other signals except the breathing signal to obtain a preliminary breathing signal. Since the squaring process is performed before filtering, in order to obtain the real breathing signal, it is necessary to perform square root processing on the preliminary breathing signal after filtering to obtain the breathing signal.

[0096] Step S360: Perform sleep detection on the user based on the heart rate signal and the breathing signal.

[0097] For the detailed description of step S360, please refer to the aforementioned step S130 and subsequent steps S430 to S440.

[0098] The sleep detection method, device, electronic device and storage medium provided in the embodiments of the present application can realize non-sense sleep detection by collecting the cardiac impact signal through an inertial measurement unit placed near the user but not in contact with the user. Non-sense sleep detection will not affect the user's normal sleep. Compared with related sleep detection methods that require the user to wear or contact the sleep detection device, non-sense sleep detection can improve the comfort and accuracy of the user during sleep. In addition, by sequentially squaring, low-pass filtering and square rooting the pre-processed cardiac impact signal, a high-precision heart rate signal and breathing signal can be obtained, thereby improving the accuracy of sleep detection based on the target signal.

[0099] Fig.10 : is a flowchart of a sleep detection method provided by another embodiment of the present application. The sleep detection method can be applied to the above-mentioned sleep detection system (or the processing device therein), or the sleep detection device or electronic device mentioned later. The sleep detection method can include the following steps S410 to S440.

[0100] Step S410: acquiring a cardiac signal of the user through an inertial measurement unit, wherein the inertial measurement unit is located within a specified range centered on the user but is not in contact with the user.

[0101] Step S420, performing signal extraction processing on the ballistocardi signal to obtain a target signal, wherein the signal extraction processing includes changing the frequency spectrum distribution of the ballistocardi signal.

[0102] For the detailed description of step S410 and step S420, please refer to the relevant parts of the aforementioned step S110 and step S120, which will not be repeated here.

[0103] Step S430, based on the target signal, a peak finding algorithm and a variability calculation method are used to calculate the variability characteristics of the target signal.

[0104] In this embodiment, the target signal may include a heart rate signal and a breathing signal. “Based on the target signal, using a peak-finding algorithm and a variability calculation method to calculate the variability characteristics of the target signal” may include: based on the heart rate signal, using a peak-finding algorithm and a heart rate variability calculation method to calculate the variability characteristics of the heart rate signal; based on the breathing signal, using a peak-finding algorithm and a breathing rate variability calculation method to calculate the variability characteristics of the breathing signal.

[0105] In some embodiments, the heart rate signal may include multiple heart rate signal groups, such as Figure 6 As shown, each heartbeat is a heart rate signal group, and the point with the highest frequency in each heart rate signal group is a heart rate characteristic point. "Based on the heart rate signal, using an appropriate peak-finding algorithm and a heart rate variability calculation method to calculate the variability characteristics of the heart rate signal" may include: using a peak-finding algorithm to find the heart rate characteristic points in each heart rate signal group, and based on the positions of the heart rate characteristic points in each heart rate signal group, using a heart rate variability calculation method to calculate the heart rate variability characteristics. Among them, the peak-finding algorithm and the heart rate variability calculation method can be referred to in the relevant technology, and in order to save space, they are not described in detail here.

[0106] In some embodiments, the respiratory signal may include multiple respiratory signal groups, and the point with the highest frequency in each respiratory signal group is a respiratory feature point. "Based on the respiratory signal, using a peak-finding algorithm and a respiratory rate variability calculation method to calculate the variability characteristics of the respiratory signal" may include: using a peak-finding algorithm to find the respiratory feature points in each respiratory signal group, and based on the positions of the respiratory feature points in each respiratory signal group, using a respiratory rate variability calculation method to calculate the respiratory rate variability characteristics. Among them, the peak-finding algorithm and the respiratory rate variability calculation method can be referred to in related technologies, and in order to save space, they are not described in detail here.

[0107] It should be noted that the heart rate data in some embodiments of the present application may include the heart rate signals (i.e., heart rate values) and heart rate variability characteristics in some embodiments, and the breathing data in some embodiments may include the breathing signals (i.e., breathing values) and breathing rate variability characteristics in some embodiments.

[0108] Step S440: Perform sleep detection on the user based on the variability characteristics of the target signal.

[0109] The variability characteristics of the target signal in the embodiment of the present application may include the above-mentioned heart rate variability characteristics and the above-mentioned respiratory rate variability characteristics.

[0110] In some embodiments, the above-mentioned heart rate variability characteristics and the above-mentioned respiratory rate variability characteristics can be used as input, and a pre-trained sleep staging model can be used to divide the user's sleep time into multiple sleep stages (for example, awake, light sleep, deep sleep, and rapid eye movement stage) according to the above-mentioned heart rate variability characteristics and the above-mentioned respiratory rate variability characteristics. Among them, the sleep staging model can be pre-trained and stored, and is used to divide the user's sleep time into multiple sleep stages according to the heart rate variability characteristics and the respiratory rate variability characteristics. The sleep staging model can take the heart rate variability characteristics and the respiratory rate variability characteristics in the existing training set as input, and take the corresponding multiple sleep stages as output, and can be obtained by pre-training using machine learning and deep learning algorithms.

[0111] The sleep detection method, device, electronic device and storage medium provided in the embodiments of the present application can realize non-sense sleep detection by collecting the heartbeat signal through an inertial measurement unit placed near the user but not in contact with the user. Non-sense sleep detection will not affect the user's normal sleep. Compared with related sleep detection methods that require the user to wear or contact the sleep detection device, non-sense sleep detection can improve the comfort and accuracy of the user during sleep. In addition, in the process of signal extraction and processing of the heartbeat signal, the frequency spectrum distribution of the heartbeat signal is changed, and the target signal can be accurately extracted from the heartbeat diagram, which can improve the accuracy of sleep detection based on the target signal.

[0112] Fig.11 : is a flowchart of a sleep detection method provided by another embodiment of the present application. The sleep detection method can be applied to the above-mentioned sleep detection system (or the processing device therein), or the sleep detection device or electronic device mentioned later. The sleep detection method can include the following steps S510 to S530.

[0113] Step S510: acquiring a cardiac signal and other body motion information of the user through an inertial measurement unit, wherein the inertial measurement unit is located within a specified range centered on the user but is not in contact with the user.

[0114] The other body motion information may include but is not limited to the human body motion amplitude, human body motion frequency, human body motion time, etc. For the detailed description of step S510, please refer to the aforementioned step S110, which will not be repeated here.

[0115] Step S520, performing signal extraction processing on the ballistocardi signal to obtain a target signal, wherein the signal extraction processing includes changing the frequency spectrum distribution of the ballistocardi signal.

[0116] For the detailed description of step S520, please refer to the aforementioned step S120, which will not be repeated here.

[0117] Step S530: Perform sleep detection on the user in combination with the target signal and other body movement information.

[0118] Based on the target signal, a peak-finding algorithm and a variability calculation method can be used to calculate the variability characteristics of the target signal, and the variability characteristics of the target signal and other body motion information can be combined to perform sleep detection on the user. As mentioned above, the variability characteristics of the target signal in the embodiment of the present application may include the above-mentioned heart rate variability characteristics and the above-mentioned respiratory rate variability characteristics. For the specific method of calculating the variability characteristics of the target signal, please refer to the relevant part of the above-mentioned step S430, which will not be repeated here.

[0119] In some embodiments, the above-mentioned heart rate variability characteristics, the above-mentioned respiratory rate variability characteristics and other body movement information can be used as input, and a pre-trained sleep staging model can be used to divide the user's sleep time into multiple sleep stages (for example, awake, light sleep, deep sleep and rapid eye movement stage) according to the above-mentioned heart rate variability characteristics, the above-mentioned respiratory rate variability characteristics and other body movement information. Among them, the sleep staging model can be pre-trained and stored, and is used for the above-mentioned heart rate variability characteristics, the above-mentioned respiratory rate variability characteristics and other body movement information to divide the user's sleep time into multiple sleep stages. The sleep staging model can use the above-mentioned heart rate variability characteristics, the above-mentioned respiratory rate variability characteristics and other body movement information in the existing training set as input, and use the corresponding multiple sleep stages as output, and is pre-trained using machine learning and deep learning algorithms. Combining heart rate variability characteristics, respiratory rate variability characteristics and other body movement information for sleep staging can improve the accuracy of sleep staging.

[0120] The sleep detection method, device, electronic device and storage medium provided in the embodiments of the present application can realize non-sense sleep detection by collecting the ballistocardiogram signal through an inertial measurement unit placed near the user but not in contact with the user. Non-sense sleep detection will not affect the user's normal sleep. Compared with related sleep detection methods that require the user to wear or contact the sleep detection device, non-sense sleep detection can improve the comfort and accuracy of the user during sleep. In addition, in the process of signal extraction and processing of the ballistocardiogram signal, the frequency spectrum distribution of the ballistocardiogram signal is changed, so that the target signal can be accurately extracted from the ballistocardiogram, which can improve the accuracy of sleep detection based on the target signal. In addition, this embodiment combines the heart rate variability characteristics, respiratory rate variability characteristics and other body movement information for sleep staging, which can improve the accuracy of sleep staging.

[0121] It should be noted that the heart rate signals and breathing signals obtained in all the above embodiments of the present application can be uploaded to the server so that the server can evaluate the user's health status based on the heart rate signals and breathing heart rate, which can expand the application scenarios of the mobile terminal of the inertial measurement unit.

[0122] Fig.12 2 is a schematic diagram of the structure of the sleep detection device provided in the embodiment of the present application. The sleep detection device 200 can be applied to an electronic device or the above-mentioned sleep detection system (or the processing device therein). The sleep detection device 200 may include an information perception module 210, a signal processing module 220 and a sleep detection module 230.

[0123] The information sensing module 210 is used to obtain the user's cardiac signal through an inertial measurement unit, where the inertial measurement unit is located within a specified range of the user but is not in contact with the user.

[0124] The signal processing module 220 is used to perform signal extraction processing on the cardiac ballistic signal to obtain a target signal. The signal extraction processing includes changing the frequency spectrum distribution of the cardiac ballistic signal.

[0125] The sleep detection module 230 is configured to perform sleep detection on the user based on the target signal.

[0126] In some implementations, the method of changing the spectrum distribution of the cardiac shock signal includes: performing one or more combinations of spectrum shifting, spectrum enhancement, and phase transformation on a partial frequency band of the cardiac shock signal.

[0127] In some embodiments, the cardiac shock signal includes multiple signal groups, the point with the highest frequency in each signal group is a characteristic point, and the partial frequency band includes the fundamental wave, multiple harmonics of the cardiac shock signal and the frequency band corresponding to the characteristic point.

[0128] In some embodiments, the target signal includes a heart rate signal and / or a breathing signal. The signal processing module 220 is further used to preprocess the cardiac impact signal to obtain the preprocessed cardiac impact signal; use a specified filter to change the frequency spectrum distribution of the preprocessed cardiac impact signal, and perform filtering to obtain the heart rate signal and / or the breathing signal.

[0129] In some embodiments, the signal processing module 220 is also used to change the frequency spectrum distribution of the cardiac impact signal after filtering and perform filtering after the filtering, wherein the step of "changing the frequency spectrum distribution of the cardiac impact signal after filtering" and the step of "filtering" are performed alternately until a preset number of filtering times or a preset filtering effect is reached.

[0130] In some embodiments, the designated filter includes a first filter and / or a second filter. The signal processing module 220 is further configured to use the first filter to amplify and superimpose the fundamental wave and harmonics of the heart rate signal in the preprocessed heartbeat signal, and perform filtering processing to obtain the heart rate signal; and / or use the second filter to amplify and superimpose the fundamental wave and harmonics of the respiratory signal in the preprocessed heartbeat signal, and perform filtering processing to obtain the respiratory signal, wherein the filter kernel and filtering parameters of the second filter are different from those of the first filter. .

[0131] In some embodiments, the first filter includes a first low-pass filter or a first band-pass filter. The signal processing module 220 is further used to perform square processing on the pre-processed cardiac impact signal to obtain the squared cardiac impact signal; use the first low-pass filter or the first band-pass filter to filter the squared cardiac impact signal to obtain a preliminary heart rate signal, and the cutoff frequency used by the first low-pass filter or the first band-pass filter is determined according to the bandwidth of the heart rate signal; perform square root processing on the preliminary heart rate signal to obtain the heart rate signal.

[0132] In some embodiments, the second filter includes a second low-pass filter or a second band-pass filter. The signal processing module 220 is further used to perform square processing on the pre-processed cardiac impact signal to obtain the squared cardiac impact signal; use the second low-pass filter or the second band-pass filter to filter the squared cardiac impact signal to obtain a preliminary breathing signal, and the cutoff frequency of the second low-pass filter or the second band-pass filter is determined according to the bandwidth of the breathing signal; perform square root processing on the preliminary breathing signal to obtain the breathing signal.

[0133] In some implementations, the sleep detection module 230 is further configured to calculate the variability characteristics of the target signal based on the target signal by using a peak finding algorithm and a variability calculation method; and perform sleep detection on the user based on the variability characteristics of the target signal.

[0134] In some embodiments, the sleep detection module 230 is further configured to take the variability characteristics of the target signal as input, and use a pre-trained sleep staging model to divide the user's sleep time into multiple sleep stages according to the variability characteristics of the target signal.

[0135] In some implementations, the information sensing module 210 is further configured to obtain other body motion information of the user in addition to the heartbeat signal through the inertial measurement unit. The sleep detection module 230 is further configured to perform sleep detection on the user in combination with the target signal and the other body motion information.

[0136] Fig.13 3 is a schematic diagram of the structure of the biological data detection device provided in an embodiment of the present application. The biological data detection device 300 can be applied to an electronic device, and the electronic device includes the above-mentioned detection unit. The biological data detection device 300 may include: a detection module 310, configured to detect the body motion signal of the user when the device is located within a specified range centered on the user and is not in direct contact with the user; a processing module 320, configured to process the body motion signal to obtain the biological data of the user.

[0137] In some embodiments, the processing module 320 is further configured to extract a cardiac impulse signal and / or other body motion signals from the body motion signal; and obtain the user's biological data based on the cardiac impulse signal and / or the other body motion signal.

[0138] In some implementations, the processing module 320 is further configured to obtain heart rate data and / or respiration data according to the cardiac impulse signal.

[0139] In some embodiments, the processing module 320 is further used to preprocess the cardiac impact signal to obtain the preprocessed cardiac impact signal; use a specified filter to change the frequency spectrum distribution of the preprocessed cardiac impact signal, and perform filtering processing to obtain heart rate data and / or respiratory data.

[0140] In some embodiments, the processing module 320 is also used to change the frequency spectrum distribution of the cardiac impact signal after filtering and perform filtering after the filtering, wherein the step of "changing the frequency spectrum distribution of the cardiac impact signal after filtering" and the step of "filtering" are performed alternately until a preset number of filtering times or a preset filtering effect is reached.

[0141] In some embodiments, the designated filter includes a first filter and a second filter. The processing module 320 is further configured to use the first filter to amplify and superimpose the fundamental wave and harmonics of the heart rate signal in the preprocessed heartbeat signal, and perform filtering processing to obtain the heart rate data; and / or use the second filter to amplify and superimpose the fundamental wave and harmonics of the respiratory signal in the preprocessed heartbeat signal, and perform filtering processing to obtain the respiratory signal, wherein the filter kernel and filtering parameters of the second filter are different from those of the first filter.

[0142] In some embodiments, the first filter includes a first low-pass filter or a first band-pass filter. The processing module 320 is further used to perform square processing on the pre-processed cardiac impact signal to obtain the squared cardiac impact signal; use the first low-pass filter or the first band-pass filter to filter the squared cardiac impact signal to obtain a preliminary heart rate signal, and the cutoff frequency used by the first low-pass filter or the first band-pass filter is determined according to the bandwidth of the heart rate signal; perform square root processing on the preliminary heart rate signal to obtain the heart rate data.

[0143] In some embodiments, the second filter includes a second low-pass filter or a second band-pass filter. The processing module 320 is further used to perform square processing on the pre-processed cardiac impact signal to obtain the squared cardiac impact signal; use the second low-pass filter or the second band-pass filter to filter the squared cardiac impact signal to obtain a preliminary respiratory signal, and the cutoff frequency of the second low-pass filter or the second band-pass filter is determined according to the bandwidth of the respiratory signal; perform square root processing on the preliminary respiratory signal to obtain the respiratory data.

[0144] In some embodiments, the biological data detection device 200 may also include a sleep detection module, which is configured to monitor the sleep of the user based on one or more of the heart rate data, the breathing data, and the other body movement data, the heart rate data including heart rate values ​​and / or heart rate variability characteristics, and the breathing data including breathing values ​​and / or breathing rate variability characteristics.

[0145] It should be noted that the detection module 310 in this embodiment can be equivalent to the information perception module 210 in the above embodiment, and the processing module 320 can be equivalent to the signal processing module 220. Reference can be made to the relevant description of the above modules in the above embodiment. In addition, other modules can be further added to the above embodiment, such as the sleep monitoring module 230. The specific functions of each module can be referred to the following embodiments and the description of the above method part, which will not be repeated here.

[0146] Those skilled in the art can clearly understand that the sleep detection device 200 provided in the embodiment of the present application can implement the sleep detection method provided in the embodiment of the present application, and the biological data detection device 300 can implement the biological data detection method provided in the embodiment of the present application. The specific working process of the above-mentioned devices and modules can refer to the corresponding process of the relevant method in the embodiment of the present application, and will not be repeated here.

[0147] In the embodiments provided in the present application, the coupling, direct coupling or communication connection between the modules shown or discussed may be indirect coupling or communication coupling through some interfaces, devices or modules, and may be electrical, mechanical or other forms, and the embodiments of the present application are not limited to this.

[0148] In addition, each functional module in the embodiment of the present application can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or in the form of software functional modules, which is not limited in the embodiment of the present application.

[0149] Fig.14 4 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device 400 may include one or more of the following components: an inertial measurement unit 410, a memory 420, one or more processors 430, and one or more applications, wherein the one or more applications may be stored in the memory 420 and configured to execute the above sleep detection method provided in an embodiment of the present application when called by the one or more processors 430.

[0150] The processor 430 may include one or more processing cores. The processor 430 uses various interfaces and lines to connect various parts of the entire electronic device 400, and is used to run or execute instructions, programs, code sets or instruction sets stored in the memory 420, and call to run or execute data stored in the memory 420, perform various functions of the electronic device 400 and process data.

[0151] The processor 430 can be implemented in at least one of the following hardware forms: digital signal processing (DSP), field programmable gate array (FPGA), and programmable logic array (PLA). The processor 430 can integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It is understandable that the above-mentioned modem may not be integrated into the processor 430, but may be implemented separately through a communication chip.

[0152] The memory 420 may include a random access memory (RAM) or a read-only memory (ROM). The memory 420 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 420 may include a program storage area and a data storage area. The program storage area may store instructions for implementing an operating system, instructions for implementing at least one function, instructions for implementing the above-mentioned various method embodiments, etc. The data storage area may store data created by the electronic device 400 during use, etc.

[0153] Fig.15 5 is a schematic diagram of the structure of a computer-readable storage medium provided in an embodiment of the present application. The computer-readable storage medium 500 stores a program code 510, and the program code 510 is configured to, when called by a processor, enable the processor to execute the above sleep detection method provided in an embodiment of the present application.

[0154] The computer-readable storage medium 500 may be an electronic memory such as a flash memory, an electrically erasable programmable read-only memory (EEPROM), an erasable programmable read-only memory (EPROM), a hard disk or a ROM.

[0155] In some embodiments, the computer-readable storage medium 500 includes a non-transitory computer-readable medium (Non-TCRSM). The computer-readable storage medium 500 has storage space for program codes 510 that execute any method steps in the above method. These program codes 510 can be read from or written into one or more computer program products. The program codes 510 can be compressed in an appropriate form.

[0156] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. In the absence of conflict, the above embodiments, implementation methods and technical features thereof can be combined and replaced with each other, and the descriptions of the same features in different embodiments can be mutually applicable. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein; and these modifications or replacements do not drive the essence of the corresponding technical solutions away from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A sleep detection method, characterized in that: include: Acquiring a cardiac signal of the user through an inertial measurement unit, wherein the inertial measurement unit is located within a specified range centered on the user but is not in contact with the user; Performing signal extraction processing on the cardiac shock signal to obtain a target signal, wherein the signal extraction processing includes changing the frequency spectrum distribution of the cardiac shock signal; Based on the target signal, sleep detection is performed on the user.

2. The method according to claim 1, characterized in that The method of changing the spectrum distribution of the cardiac shock signal includes: performing one or more combinations of spectrum shifting, spectrum enhancement and phase transformation on a partial frequency band of the cardiac shock signal.

3. The method according to claim 2, characterized in that The cardiac impact signal includes a plurality of signal groups, the point with the highest frequency in each signal group is a characteristic point, and the partial frequency band includes the fundamental wave, multiple harmonics of the cardiac impact signal and the frequency band corresponding to the characteristic point.

4. The method according to claim 1, characterized in that The target signal includes a heart rate signal and / or a breathing signal, and the signal extraction process is performed on the heartbeat signal to obtain the target signal, including: Preprocessing the cardiac impulse signal to obtain the preprocessed cardiac impulse signal; A designated filter is used to change the frequency spectrum distribution of the preprocessed heartbeat signal, and filter the signal to obtain the heart rate signal and / or the breathing signal.

5. The method according to claim 4, characterized in that After the filtering process, the method further includes: The frequency spectrum distribution of the heart shock signal after filtering is changed, and filtering is performed, wherein the step of "changing the frequency spectrum distribution of the heart shock signal after filtering" and the step of "filtering" are performed alternately until a preset filtering number or a preset filtering effect is reached.

6. The method according to claim 4, characterized in that The designated filter includes a first filter and / or a second filter. The designated filter is used to change the frequency spectrum distribution of the pre-processed heartbeat signal and perform filtering processing to obtain the heart rate signal and / or the breathing signal, including: Using a first filter, amplifying and superimposing the fundamental wave and the harmonics of the heart rate signal in the preprocessed heartbeat signal, and performing filtering processing to obtain the heart rate signal; and / or A second filter is used to amplify and superimpose the fundamental wave and harmonics of the respiratory signal in the preprocessed cardiac impact signal, and filter the signal to obtain the respiratory signal. The filter kernel and filter parameters of the second filter are different from those of the first filter.

7. The method according to claim 6, characterized in that The first filter includes a first low-pass filter or a first band-pass filter. The first filter is used to amplify and superimpose the fundamental wave and the harmonics of the heart rate signal in the preprocessed heart shock signal, and perform filtering processing to obtain the heart rate signal, including: Performing square processing on the preprocessed cardiac impulse signal to obtain the squared cardiac impulse signal; Using the first low-pass filter or the first band-pass filter to filter the squared heartbeat signal to obtain a preliminary heart rate signal, wherein the cutoff frequency used by the first low-pass filter or the first band-pass filter is determined according to the bandwidth of the heart rate signal; Performing square root processing on the preliminary heart rate signal to obtain the heart rate signal.

8. The method according to claim 6, characterized in that The second filter includes a second low-pass filter or a second band-pass filter, and the second filter is used to filter the pre-processed heart ballistic signal to obtain the breathing signal, including: Performing square processing on the preprocessed cardiac impulse signal to obtain the squared cardiac impulse signal; Using the second low-pass filter or the second band-pass filter to filter the squared ballistocardial signal to obtain a preliminary respiratory signal, wherein the cutoff frequency of the second low-pass filter or the second band-pass filter is determined according to the bandwidth of the respiratory signal; Performing square root processing on the preliminary breathing signal to obtain the breathing signal.

9. The method according to any one of claims 1 to 8, characterized in that: The performing sleep detection on the user based on the target signal includes: Based on the target signal, a peak finding algorithm and a variability calculation method are used to calculate the variability characteristics of the target signal; Based on the variability characteristics of the target signal, sleep detection is performed on the user.

10. The method according to claim 9, characterized in that The performing sleep detection on the user based on the variability feature of the target signal includes: The variability characteristics of the target signal are used as input, and a pre-trained sleep staging model is used to divide the user's sleep time into multiple sleep stages according to the variability characteristics of the target signal.

11. The method according to any one of claims 1 to 8, characterized in that: The method further comprises: Acquiring other body motion information of the user except the heartbeat signal through the inertial measurement unit; The performing sleep detection on the user based on the target signal includes: The target signal and the other body motion information are combined to perform sleep detection on the user.

12. A sleep detection device, characterized in that: include: An information sensing module, configured to obtain a cardiac signal of a user through an inertial measurement unit, wherein the inertial measurement unit is located within a specified range of the user but is not in contact with the user; A signal processing module, used for performing signal extraction processing on the cardiac shock signal to obtain a target signal, wherein the signal extraction processing includes changing the frequency spectrum distribution of the cardiac shock signal; A sleep detection module is used to perform sleep detection on the user based on the target signal.

13. A biological data detection method, applied to an electronic device, wherein the electronic device comprises a detection unit, characterized in that: The method comprises: When the electronic device is located within a specified range centered on the user and is not in contact with the user, detecting a body motion signal of the user by the detection unit; The body motion signal is processed to obtain biological data of the user.

14. The method according to claim 13, characterized in that The processing of the body motion signal to obtain the biological data of the user includes: Extracting a cardiac impulse signal and / or other body motion signals from the body motion signal; The biological data of the user is acquired according to the cardiac impulse signal and / or the other body motion signal.

15. The method according to claim 14, characterized in that The obtaining of the user's biological data according to the cardiac impulse signal comprises: Heart rate data and / or respiration data are acquired according to the cardiac shock signal.

16. The method according to claim 15, characterized in that The obtaining of heart rate data and / or respiration data according to the cardiac impact signal comprises: Preprocessing the cardiac impulse signal to obtain the preprocessed cardiac impulse signal; A designated filter is used to change the frequency spectrum distribution of the pre-processed heartbeat signal, and filter the signal to obtain heart rate data and / or respiration data.

17. The method according to claim 16, characterized in that After the filtering process, the method further includes: The frequency spectrum distribution of the heart shock signal after filtering is changed, and filtering is performed, wherein the step of "changing the frequency spectrum distribution of the heart shock signal after filtering" and the step of "filtering" are performed alternately until a preset filtering number or a preset filtering effect is reached.

18. The method according to claim 16, characterized in that The designated filter includes a first filter and a second filter. The designated filter is used to change the frequency spectrum distribution of the pre-processed heartbeat signal and perform filtering processing to obtain the heart rate data and / or the breathing data, including: Using a first filter, amplifying and superimposing the fundamental wave and the harmonics of the heart rate signal in the preprocessed heartbeat signal, and performing filtering processing to obtain the heart rate data; and / or A second filter is used to amplify and superimpose the fundamental wave and harmonics of the respiratory signal in the preprocessed cardiac impact signal, and filter the signal to obtain the respiratory signal. The filter kernel and filter parameters of the second filter are different from those of the first filter.

19. The method according to claim 18, characterized in that The first filter includes a first low-pass filter or a first band-pass filter. The first filter is used to amplify and superimpose the fundamental wave and the harmonics of the heart rate signal in the pre-processed heart shock signal, and perform filtering processing to obtain the heart rate data, including: Performing square processing on the preprocessed cardiac impulse signal to obtain the squared cardiac impulse signal; Using the first low-pass filter or the first band-pass filter to filter the squared heartbeat signal to obtain a preliminary heart rate signal, wherein the cutoff frequency used by the first low-pass filter or the first band-pass filter is determined according to the bandwidth of the heart rate signal; Performing square root processing on the preliminary heart rate signal to obtain the heart rate data.

20. The method according to claim 18, characterized in that The second filter includes a second low-pass filter or a second band-pass filter. The second filter is used to amplify and superimpose the fundamental wave and the harmonics of the respiratory signal in the pre-processed cardiac shock signal, and perform filtering processing to obtain the respiratory signal, including: Performing square processing on the preprocessed cardiac impulse signal to obtain the squared cardiac impulse signal; Using the second low-pass filter or the second band-pass filter to filter the squared ballistocardial signal to obtain a preliminary respiratory signal, wherein the cutoff frequency of the second low-pass filter or the second band-pass filter is determined according to the bandwidth of the respiratory signal; The preliminary respiratory signal is subjected to square root processing to obtain the respiratory data.

21. The method according to claim 15, characterized in that The method also includes: performing sleep monitoring on the user based on one or more of the heart rate data, the breathing data and the other body movement data, the heart rate data including heart rate value and / or heart rate variability characteristics, and the breathing data including breathing value and / or breathing rate variability characteristics.

22. The method according to claim 13, characterized in that The detection unit includes: one or more of an inertial measurement unit, a millimeter wave sensor, an ultra-wideband sensor, a Wi-Fi unit, and a radio frequency unit.

23. The method according to claim 13, characterized in that The designated range is a range in which the electronic device can detect available body motion signals; the electronic device and the user are located on the same carrier.

24. A biological data detection device, characterized in that: include: A detection module, configured to detect a body motion signal of the user when the device is located within a specified range centered on the user and is not in direct contact with the user; The processing module is configured to process the body motion signal to obtain the biological data of the user.

25. An electronic device, characterized in that: include: Inertial measurement unit; Memory; one or more processors; One or more applications, the one or more applications are stored in the memory and are used to execute the method according to any one of claims 1-12 or 13-23 when called by the one or more processors.

26. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores program code, and the program code is used to execute the method according to any one of claims 1-12 or 13-23 when called by the processor.