Method and device for determining sleep quality of user, electronic equipment and storage medium

文档序号:99042 发布日期:2021-10-15 浏览:5次 中文

阅读说明:本技术 用户睡眠质量的确定方法和装置、电子设备和存储介质 (Method and device for determining sleep quality of user, electronic equipment and storage medium ) 是由 刘逸伦 陈向文 贾朝旭 于 2021-08-13 设计创作,主要内容包括:本申请提供了一种用户睡眠质量的确定方法和装置、电子设备和存储介质,其中,该方法包括:在确定目标对象的身体部位的当前所在区域与预设的参考区域相重叠的情况下,获取目标对象的睡眠信号,其中,参考区域为目标对象在参考睡眠模式时身体所需占用的空间区域;对睡眠信号进行特征提取,得到多个特征,其中,多个特征包括:体动特征和睡眠特征;利用多个特征,确定目标对象的睡眠质量。通过本申请,解决了相关技术中存在的睡眠质量检测不准确的问题。(The application provides a method and a device for determining sleep quality of a user, an electronic device and a storage medium, wherein the method comprises the following steps: acquiring a sleep signal of a target object under the condition that the current region of the body part of the target object is determined to be overlapped with a preset reference region, wherein the reference region is a space region occupied by the body of the target object in a reference sleep mode; carrying out feature extraction on the sleep signal to obtain a plurality of features, wherein the plurality of features comprise: body movement characteristics and sleep characteristics; using the plurality of features, a sleep quality of the target subject is determined. By the method and the device, the problem that sleep quality detection is inaccurate in the related technology is solved.)

1. A method for determining sleep quality of a user, the method comprising:

acquiring a sleep signal of a target object under the condition that the current area of the body part of the target object is determined to be overlapped with a preset reference area, wherein the reference area is a space area occupied by the body of the target object in a reference sleep mode;

performing feature extraction on the sleep signal to obtain a plurality of features, wherein the plurality of features include: body movement characteristics and sleep characteristics;

determining a sleep quality of the target subject using the plurality of features.

2. The method according to claim 1, wherein before determining that the current region of the target subject's body part overlaps with the preset reference region, the method further comprises:

acquiring energy information transmitted by a thoracic region of the target object, wherein the energy information is kinetic energy generated by a thoracic part in a vibration process;

and determining the current area according to the energy information.

3. The method of claim 2, wherein said determining the current location area from the energy information comprises:

dividing the chest region into a plurality of sub-regions according to the chest region of the target object;

respectively obtaining the energy information of the plurality of sub-areas;

adding the energy information to obtain the sum of the energy information;

and determining the current area by using the sum of the energy information.

4. The method of claim 3, wherein the determining the current location area using the sum of the energy information comprises:

and under the condition that the sum of the energy information is greater than or equal to a preset threshold, determining that the current region is overlapped with the reference region, and taking the current region as the reference region, wherein the preset threshold is the sum of the energy information generated by all the sub-regions contained in the thoracic region of the target object in the reference sleep mode of the target object.

5. The method of claim 3, wherein the sleep characteristics comprise: a respiratory characteristic and a heart rate characteristic, the determining, using the plurality of characteristics, the sleep quality of the target subject comprising:

determining the body motion characteristics using the energy information of the plurality of sub-regions;

processing the breathing characteristics by using a target regression model to obtain a breathing curve with the resolution ratio larger than a resolution ratio threshold value;

processing the heart rate characteristics by using a target modal function to obtain a heart rate curve of which the heartbeat signal is greater than a heartbeat threshold value;

determining a sleep quality of the target subject based on the body movement characteristics, the respiration curve, and the heart rate curve.

6. The method of claim 5, wherein the determining the body motion characteristic using the energy information of the plurality of sub-regions comprises:

dividing the position of the thoracic cavity into a left subregion, a middle subregion and a right subregion by taking the longitudinal central line of the position of the thoracic cavity as a dividing line;

acquiring the sum of the energy information conveyed by the left sub-area and the neutron area and the sum of the energy information conveyed by the right sub-area and the neutron area;

and under the condition that the sum of the energy information transmitted by the left sub-area and the neutron area is not equal to the sum of the energy information transmitted by the right sub-area and the neutron area, determining that the body movement characteristic is a turning-over movement characteristic.

7. The method of any one of claims 1-6, wherein after said determining the sleep quality of the target subject using the plurality of sleep characteristics, the method further comprises:

generating a sleep report and a sleep recommendation according to the plurality of sleep characteristics and the sleep quality;

and sending the sleep report and the sleep suggestion to a terminal of the target object.

8. An apparatus for determining sleep quality of a user, the apparatus comprising:

the sleep signal acquisition device comprises a first acquisition unit, a second acquisition unit and a control unit, wherein the first acquisition unit is used for acquiring a sleep signal of a target object under the condition that the current area of a body part of the target object is determined to be overlapped with a preset reference area, and the reference area is a space area required to be occupied by the body of the target object in a reference sleep mode;

an extraction unit, configured to perform feature extraction on the sleep signal to obtain a plurality of features, where the plurality of features include: body movement characteristics and sleep characteristics;

a first determination unit to determine a sleep quality of the target object using the plurality of features.

9. An electronic device comprising a processor, a communication interface, a memory and a communication bus, wherein said processor, said communication interface and said memory communicate with each other via said communication bus,

the memory for storing a computer program;

the processor for performing the method steps of any one of claims 1 to 7 by running the computer program stored on the memory.

10. A computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to carry out the method steps of any one of claims 1 to 7 when executed.

Technical Field

The present application relates to the field of artificial intelligence, and in particular, to a method and an apparatus for determining sleep quality of a user, an electronic device, and a storage medium.

Background

In the era of interconnection of everything, artificial intelligence technology begins to advance into people's daily life, driving the development of the home industry towards intellectualization, networking and the like. With the continuous promotion of the public to the individual health requirement, the branch of wisdom sleep has just been derived to intelligent house, through carrying out real-time supervision to physiological characteristics such as electrocardio, rhythm of the heart and breathing etc. characteristics, can recommend optimum electrical apparatus application scheme for the user.

In the related technology, a biological radar is adopted for sleep monitoring, wherein the sleep monitoring comprises signal preprocessing, respiratory feature vector extraction and cluster analysis to realize automatic identification and control of a respiratory mode, and further the sleep quality of a user is determined. However, in the related art, only after monitoring the respiratory rate, the heart rate and the heartbeat, the obtained sleep quality is not accurate enough, and the real sleep condition of the user cannot be detected.

Therefore, the problem of inaccurate sleep quality detection of the user exists in the related art.

Disclosure of Invention

The application provides a method and a device for determining user sleep quality, a storage medium and electronic equipment, which are used for at least solving the problem of inaccurate detection of the user sleep quality in the related art.

According to an aspect of an embodiment of the present application, there is provided a method for determining sleep quality of a user, the method including: acquiring a sleep signal of a target object under the condition that the current area of the body part of the target object is determined to be overlapped with a preset reference area, wherein the reference area is a space area occupied by the body of the target object in a reference sleep mode; performing feature extraction on the sleep signal to obtain a plurality of features, wherein the plurality of features include: body movement characteristics and sleep characteristics; determining a sleep quality of the target subject using the plurality of features.

According to another aspect of the embodiments of the present application, there is also provided an apparatus for determining sleep quality of a user, the apparatus including: the sleep signal acquisition device comprises a first acquisition unit, a second acquisition unit and a control unit, wherein the first acquisition unit is used for acquiring a sleep signal of a target object under the condition that the current area of a body part of the target object is determined to be overlapped with a preset reference area, and the reference area is a space area required to be occupied by the body of the target object in a reference sleep mode; an extraction unit, configured to perform feature extraction on the sleep signal to obtain a plurality of features, where the plurality of features include: body movement characteristics and sleep characteristics; a first determination unit to determine a sleep quality of the target object using the plurality of features.

Optionally, the method further comprises: the second acquisition unit is used for acquiring energy information transmitted by the chest region of the target object before the current region of the body part of the target object is determined to be overlapped with a preset reference region, wherein the energy information is kinetic energy generated by the chest part in the vibration process; and the second determining unit is used for determining the current area according to the energy information.

Optionally, the second determination unit includes: the dividing module is used for dividing the chest cavity region into a plurality of sub-regions according to the chest cavity region of the target object; a first obtaining module, configured to obtain the energy information of the multiple sub-regions respectively; the second obtaining module is used for adding the energy information to obtain the sum of the energy information; and the first determining module is used for determining the current area by using the sum of the energy information.

Optionally, the determining module includes: the first determining subunit is configured to determine that the current region overlaps with the reference region and use the current region as the reference region when the sum of the energy information is greater than or equal to a preset threshold, where the preset threshold is the sum of energy information generated by all the sub-regions included in the thoracic region of the target object in the reference sleep mode of the target object.

Optionally, the sleep features include: a respiratory characteristic and a heart rate characteristic, the first determination unit comprising: a second determining module, configured to determine the body motion characteristics by using the energy information of the plurality of sub-regions; the third obtaining module is used for processing the breathing characteristics by using the target regression model to obtain a breathing curve with the resolution ratio larger than a resolution ratio threshold value; the fourth obtaining module is used for processing the heart rate characteristics by using the target modal function to obtain a heart rate curve of which the heartbeat signal is greater than the heartbeat threshold value; a third determination module to determine a sleep quality of the target subject based on the body movement characteristics, the breathing curve, and the heart rate curve.

Optionally, the second determining module includes: the dividing subunit is used for dividing the position of the thoracic cavity into a left sub-area, a middle sub-area and a right sub-area by taking the longitudinal center line of the position of the thoracic cavity as a dividing line; the acquisition subunit is used for acquiring the sum of the energy information conveyed by the left sub-area and the neutron area and the sum of the energy information conveyed by the right sub-area and the neutron area; the second determining subunit is configured to determine that the body motion feature is a body turning motion feature when the sum of the energy information conveyed by the left sub-region and the neutron region is not equal to the sum of the energy information conveyed by the right sub-region and the neutron region.

Optionally, the method further comprises: a generating unit, configured to generate a sleep report and a sleep recommendation according to the plurality of sleep features and the sleep quality after determining the sleep quality of the target object by using the plurality of sleep features; a sending unit, configured to send the sleep report and the sleep advice to a terminal of the target object.

According to another aspect of the embodiments of the present application, there is also provided an electronic device, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory communicate with each other through the communication bus; wherein the memory is used for storing the computer program; a processor for executing the steps of the method for determining the quality of sleep of a user in any of the above embodiments by running the computer program stored in the memory.

According to a further aspect of the embodiments of the present application, there is further provided a computer-readable storage medium, in which a computer program is stored, where the computer program is configured to execute the method steps of determining the sleep quality of a user in any of the above embodiments when the computer program is run.

In the embodiment of the application, the sleep signal of the target object is acquired under the condition that the current area of the body part of the target object is determined to be overlapped with a preset reference area, wherein the reference area is a space area occupied by the body of the target object in a reference sleep mode; carrying out feature extraction on the sleep signal to obtain a plurality of features, wherein the features comprise: body movement characteristics and sleep characteristics; using the plurality of features, a sleep quality of the target subject is determined. According to the embodiment of the application, under the condition that the area of the body part of the target object is overlapped with the reference area, the sensor is used for acquiring the sleep signal of the target object in a non-contact mode, the sleep quality of the target object is obtained by utilizing the extracted characteristics through characteristic extraction of the sleep signal, and therefore the purpose of non-contact sleep quality detection can be achieved.

Drawings

The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.

In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.

FIG. 1 is a diagram of a hardware environment for an alternative method of determining quality of user sleep according to an embodiment of the present invention;

FIG. 2 is a flow chart illustrating an alternative method for determining quality of user sleep according to an embodiment of the present application;

FIG. 3 is a schematic flow chart of an alternative piezoelectric film sensor-based method for detecting sleep quality of a user according to an embodiment of the present application;

FIG. 4 is a block diagram of an alternative apparatus for determining quality of user sleep according to an embodiment of the present application;

fig. 5 is a block diagram of an alternative electronic device according to an embodiment of the present application.

Detailed Description

In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.

It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.

According to one aspect of the embodiment of the application, a method for determining the sleep quality of a user is provided. Optionally, in this embodiment, the method for determining the sleep quality of the user may be applied to a hardware environment as shown in fig. 1. As shown in fig. 1, the terminal 102 may include a memory 104, a processor 106, and a display 108 (optional components). The terminal 102 may be communicatively coupled to a server 112 via a network 110, the server 112 may be configured to provide services (e.g., application services, etc.) for the terminal or for clients installed on the terminal, and a database 114 may be provided on the server 112 or separate from the server 112 for providing data storage services for the server 112. Additionally, a processing engine 116 may be run in the server 112, and the processing engine 116 may be used to perform the steps performed by the server 112.

Alternatively, the terminal 102 may be, but is not limited to, a terminal capable of calculating data, such as a mobile terminal (e.g., a mobile phone, a tablet Computer), a notebook Computer, a PC (Personal Computer) Computer, and the like, and the network may include, but is not limited to, a wireless network or a wired network. Wherein, this wireless network includes: bluetooth, WIFI (Wireless Fidelity), and other networks that enable Wireless communication. Such wired networks may include, but are not limited to: wide area networks, metropolitan area networks, and local area networks. The server 112 may include, but is not limited to, any hardware device capable of performing computations.

In addition, in this embodiment, the method for determining the sleep quality of the user may also be applied to, but not limited to, an independent processing device with a relatively high processing capability without data interaction. For example, the processing device may be, but is not limited to, a terminal device with a relatively high processing capability, that is, each operation in the method for determining the sleep quality of the user may be integrated into a separate processing device. The above is merely an example, and this is not limited in this embodiment.

Optionally, in this embodiment, the method for determining the quality of sleep of the user may be executed by the server 112 of a sensor, such as a piezoelectric film sensor, as shown in fig. 2, fig. 2 is a schematic flowchart of an optional method for determining the quality of sleep of the user according to an embodiment of the present application, where the flowchart of the method may include the following steps:

step S201, acquiring a sleep signal of the target object when it is determined that the current region of the body part of the target object overlaps a preset reference region, where the reference region is a spatial region occupied by the body of the target object in the reference sleep mode.

Optionally, the embodiment of the application utilizes the piezoelectric film sensor placed under the mattress to monitor signals of the target object such as respiration, heart rate and body movement, and the volume is small, the monitoring precision is high, and normal sleep cannot be affected.

In the embodiment of the present application, it is necessary to first define a sleep posture of the target subject in the bed state, and to use the sleep posture as a reference sleep mode of the target subject. And then, setting a space area required to be occupied by the body of the target object in the reference sleep mode in advance, and taking the space area as a reference area for judging whether the target object is in a state of lying on the bed in the later period. In addition, the target object is preferably a user in the embodiment of the present application, and the embodiment of the present application does not specifically limit the target object.

Then, the current area where the body part of the target object is located is obtained, the current area is compared with the reference area, and when the current area and the reference area are overlapped, the target object is proved to be in the bed state currently, and a sensor (such as a piezoelectric film sensor) server can obtain a sleep signal of the target object.

It should be noted that the reason why the sleep signal is acquired when the target object is in the bed state in the embodiment of the present application is that whether the user generates the breathing vibration or the heart rate vibration in the bed will be stronger, so that some signals related to the sleep of the target object can be more accurately acquired.

Step S202, extracting the features of the sleep signal to obtain a plurality of features, wherein the plurality of features comprise: body movement characteristics and sleep characteristics.

Optionally, before the server performs feature extraction on the acquired sleep signal, the sleep signal may be preprocessed, where a least square method is used to eliminate a trend term in the sleep signal, where the trend term refers to a signal deviating from a baseline and affecting the overall correctness of the signal, the sleep signal with the trend term eliminated is subjected to a smoothing operation on data by using a morphological filtering algorithm with parallel structural elements, so as to obtain a preprocessed sleep signal, and then, the preprocessed sleep signal is subjected to feature extraction, so as to obtain a plurality of features.

Wherein the plurality of features includes: the body movement characteristics mainly represent whether the target object has the condition of turning over and moving in the sleeping process, and the sleeping characteristics generally refer to some physiological characteristics of the target object, such as heart rate, breathing and the like.

Step S203, using the plurality of features, determines the sleep quality of the target subject.

Optionally, the overall sleep quality of the target object is determined comprehensively according to the obtained multiple characteristics. The sleep quality of the target subject may be scored.

In the embodiment of the application, the sleep signal of the target object is acquired under the condition that the current area of the body part of the target object is determined to be overlapped with a preset reference area, wherein the reference area is a space area occupied by the body of the target object in a reference sleep mode; carrying out feature extraction on the sleep signal to obtain a plurality of features, wherein the features comprise: body movement characteristics and sleep characteristics; using the plurality of features, a sleep quality of the target subject is determined. According to the embodiment of the application, under the condition that the area of the body part of the target object is overlapped with the reference area, the sensor is used for acquiring the sleep signal of the target object in a non-contact mode, the sleep quality of the target object is obtained by utilizing the extracted characteristics through characteristic extraction of the sleep signal, and therefore the purpose of non-contact sleep quality detection can be achieved.

As an alternative embodiment, before determining that the current located region of the body part of the target object overlaps with the preset reference region, the method includes:

acquiring energy information transmitted by a thoracic region of a target object, wherein the energy information is kinetic energy generated by a thoracic part in a vibration process;

and determining the current area according to the energy information.

Optionally, before determining that the target object is in the bed state or the bed leaving state, energy information conveyed by the position of the thoracic cavity of the target object needs to be acquired, and whether the region where the target object is currently located overlaps with the reference region is determined according to the energy information. The energy information is kinetic energy generated by the thoracic cavity part of the target object in the respiratory vibration process, and the energy information of the thoracic cavity vibration signal can represent the body movement characteristics of the target object and reflect the sleeping posture information of the target object.

In the embodiment of the application, the energy information conveyed by the chest region of the target object is utilized to more accurately determine the region where the target object is located.

As an alternative embodiment, determining the current location area according to the energy information includes:

dividing the chest region into a plurality of sub-regions according to the chest region of the target object;

respectively obtaining energy information of a plurality of sub-areas;

adding the energy information to obtain the sum of the energy information;

and determining the current area by using the sum of the energy information.

Optionally, in the embodiment of the application, the thoracic region of the target object is firstly divided into a plurality of sub-regions, then energy information of the plurality of sub-regions is respectively obtained, and then the obtained energy information is added to serve as a judgment basis for determining the current region of the target object.

More specifically, based on the difference between the energy information generated by the target object in the bed state and the energy information generated by the target object in the bed exit state, the embodiment of the present application regards the energy information generated by the target object in the bed exit state as noise, and does not participate in the analysis of the sleep quality, and then determines that the current region overlaps with the reference region and regards the current region as the reference region when the sum of the energy information generated by the target object in the bed exit state is greater than or equal to a preset threshold, where the preset threshold is the sum of the energy information generated by all sub-regions included in the thoracic region of the target object in the reference sleep mode of the target object. And under the condition that the sum of the energy information is smaller than a preset threshold value, determining that the current area is not overlapped with the reference area.

As an alternative embodiment, determining the sleep quality of the target subject using a plurality of features comprises:

determining body motion characteristics by using energy information of a plurality of sub-regions;

processing the breathing characteristics by using a target regression model to obtain a breathing curve with the resolution ratio larger than a resolution ratio threshold value;

processing the heart rate characteristics by using a target modal function to obtain a heart rate curve of which the heartbeat signal is greater than a heart rate threshold value;

determining the sleep quality of the target object based on the body movement characteristics, the breathing curve and the heart rate curve.

Optionally, the sensor server according to the embodiment of the present application may determine the body motion characteristics of the target object by using the energy information of the multiple sub-regions; then, for respiratory rate detection, selecting an autoregressive model power spectrum estimation to obtain a respiratory rate curve which is smooth in curve, clear in main frequency and higher in resolution than a resolution threshold; for heart rate detection, a first order mode function and a second order mode function are selected to reconstruct a heartbeat signal through an empirical mode decomposition method, and a heart rate curve of the heartbeat signal larger than a heart rate threshold value can be further calculated.

And finally, determining the sleep quality of the target object based on the body movement characteristics, the breathing curve and the heart rate curve.

As an alternative embodiment, the determining the body motion characteristics using the energy information of the plurality of sub-regions comprises:

dividing the position of the thoracic cavity into a left subregion, a middle subregion and a right subregion by taking the longitudinal central line of the position of the thoracic cavity as a dividing line;

acquiring the sum of energy information transmitted by the left sub-area and the neutron area and the sum of energy information transmitted by the right sub-area and the neutron area;

and under the condition that the sum of the energy information transmitted by the left sub-region and the neutron region is not equal to the sum of the energy information transmitted by the right sub-region and the neutron region, determining the body movement characteristic as a turning-over movement characteristic.

Optionally, in the embodiment of the present application, a longitudinal center line of a position of a thoracic cavity is taken as a dividing line, the position of the thoracic cavity is divided into three left, middle and right sub-regions, or a transverse center line and a longitudinal center line of the position of the thoracic cavity are taken as dividing lines, so as to obtain six sub-regions, i.e., upper left, lower left, upper middle, lower middle, upper right and lower right, which are, from left to right, an upper thoracic region 1, 4, 5 and a lower thoracic region 2, 3, 6, where a sum of energy of the left half region is: eR1=E1+E2+E3+E4And the right half area energy sum is: eR2=E3+E4+E5+E6And regions 3, 4 are the central overlapping portions of the thorax. Respectively calculating the body energy information of (n-2), (n-1), n and (n +1) frames, if the energy of the left and right regions changes in the nth frame, for example, the sum of the energy information transmitted by the left sub-region and the neutron region is not equal to the sum of the energy information transmitted by the right sub-region and the neutron region, that is, E1+E2Not equal to E5+E6Namely, the turning-over action is considered to occur, and the body movement characteristic is determined to be the turning-over action characteristic.

In the embodiment of the application, the body movement characteristics of the target object can be determined by comparing the energy sum of the left half area and the energy sum of the right half area, the sleeping condition of the target object is determined according to the body movement characteristics, if the situation that the target object turns over within a certain time exceeds a certain threshold value, the target object is relatively light in sleep, and the possibility that the target object cannot fall asleep on the rolling side exists, so that when the sleeping quality of the target object is determined, the body movement characteristics are used as parameters influencing the sleeping quality judgment of the target object, and the method has the necessity.

As an alternative embodiment, after determining the sleep quality of the target subject using the plurality of sleep characteristics, the method further comprises:

generating a sleep report and a sleep recommendation according to the plurality of sleep characteristics and the sleep quality;

and sending the sleep report and the sleep advice to the terminal of the target object.

Optionally, the server or the monitoring platform in the embodiment of the application generates a sleep report by using a plurality of sleep characteristics monitored in real time and the sleep quality determined according to the plurality of sleep characteristics, and meanwhile, generates a sleep suggestion according to the sleep report, and sends the sleep report and the sleep suggestion to the terminal app of the target object, so that the target object queries the sleep state at any time, and adjusts work and rest according to the sleep report and the sleep suggestion.

As an alternative embodiment, as shown in fig. 3, the steps included in the figure are as follows:

inputting a signal;

signal preprocessing;

the method comprises the steps of detecting respiration, heart rate and body movement;

and based on the detection content, comprehensively scoring and displaying by a terminal.

It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.

Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (e.g., a ROM (Read-Only Memory)/RAM (Random Access Memory), a magnetic disk, an optical disk) and includes several instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the methods of the embodiments of the present application.

According to another aspect of the embodiment of the present application, there is also provided a device for determining the sleep quality of a user, which is used for implementing the method for determining the sleep quality of a user. Fig. 4 is a block diagram of an alternative apparatus for determining sleep quality of a user according to an embodiment of the present application, and as shown in fig. 4, the apparatus may include:

a first obtaining unit 401, configured to obtain a sleep signal of a target object when it is determined that a current region of a body part of the target object overlaps a preset reference region, where the reference region is a spatial region that the body of the target object needs to occupy when referring to a sleep mode;

an extracting unit 402, configured to perform feature extraction on the sleep signal to obtain a plurality of features, where the plurality of features include: body movement characteristics and sleep characteristics;

a first determining unit 403 for determining the sleep quality of the target object using the plurality of features.

It should be noted that the first obtaining unit 401 in this embodiment may be configured to execute the step S201, the extracting unit 402 in this embodiment may be configured to execute the step S202, and the first determining unit 403 in this embodiment may be configured to execute the step S203.

Through the modules, under the condition that the area of the body part of the target object is overlapped with the reference area, the sensor is used for acquiring the sleep signal of the target object in a non-contact manner, the sleep quality of the target object is obtained by utilizing a plurality of extracted features through feature extraction of the sleep signal, and therefore the purpose of non-contact sleep quality detection can be achieved.

As an alternative embodiment, the method further comprises: the second acquisition unit is used for acquiring energy information transmitted by the chest region of the target object before the current region of the body part of the target object is determined to be overlapped with a preset reference region, wherein the energy information is kinetic energy generated by the chest part in the vibration process; and the second determining unit is used for determining the current area according to the energy information.

As an alternative embodiment, the second determination unit includes: the dividing module is used for dividing the chest cavity region into a plurality of sub-regions according to the chest cavity region of the target object; the first obtaining module is used for respectively obtaining energy information of a plurality of sub-areas; the second obtaining module is used for adding the energy information to obtain the sum of the energy information; and the first determining module is used for determining the current area by using the sum of the energy information.

As an alternative embodiment, the determining module includes: the first determining subunit is configured to determine that the current region overlaps with the reference region and use the current region as the reference region when the sum of the energy information is greater than or equal to a preset threshold, where the preset threshold is the sum of the energy information generated by all sub-regions included in the thoracic region of the target object in the reference sleep mode of the target object.

As an alternative embodiment, the sleep features include: a respiratory characteristic and a heart rate characteristic, the first determination unit comprising: the second determining module is used for determining the body motion characteristics by utilizing the energy information of the plurality of sub-areas; the third obtaining module is used for processing the breathing characteristics by using the target regression model to obtain a breathing curve with the resolution ratio larger than a resolution ratio threshold value; the fourth obtaining module is used for processing the heart rate characteristics by using the target modal function to obtain a heart rate curve of which the heartbeat signal is greater than the heartbeat threshold value; and the third determination module is used for determining the sleep quality of the target object based on the body movement characteristics, the breathing curve and the heart rate curve.

As an alternative embodiment, the second determining module includes: the dividing subunit is used for dividing the position of the thoracic cavity into a left subregion, a middle subregion and a right subregion by taking the longitudinal central line of the position of the thoracic cavity as a dividing line; the acquisition subunit is used for acquiring the sum of the energy information transmitted by the left sub-area and the neutron area and the sum of the energy information transmitted by the right sub-area and the neutron area; and the second determining subunit is used for determining the body motion characteristic as the turning motion characteristic under the condition that the sum of the energy information transmitted by the left sub-area and the neutron area is not equal to the sum of the energy information transmitted by the right sub-area and the neutron area.

As an alternative embodiment, the method further comprises: a generation unit for generating a sleep report and a sleep advice according to the plurality of sleep characteristics and the sleep quality after determining the sleep quality of the target object by using the plurality of sleep characteristics; and the sending unit is used for sending the sleep report and the sleep suggestion to the terminal of the target object.

It should be noted here that the modules described above are the same as the examples and application scenarios implemented by the corresponding steps, but are not limited to the disclosure of the above embodiments. It should be noted that the modules described above as a part of the apparatus may be operated in a hardware environment as shown in fig. 1, and may be implemented by software, or may be implemented by hardware, where the hardware environment includes a network environment.

According to another aspect of the embodiments of the present application, there is also provided an electronic device for implementing the method for determining sleep quality of a user, where the electronic device may be a server, a terminal, or a combination thereof.

Fig. 5 is a block diagram of an alternative electronic device according to an embodiment of the present application, as shown in fig. 5, including a processor 501, a communication interface 502, a memory 503, and a communication bus 504, where the processor 501, the communication interface 502, and the memory 503 are communicated with each other through the communication bus 504, where,

a memory 503 for storing a computer program;

the processor 501, when executing the computer program stored in the memory 503, implements the following steps:

s1, acquiring a sleep signal of the target object under the condition that the current area of the body part of the target object is determined to be overlapped with a preset reference area, wherein the reference area is a space area occupied by the body of the target object in a reference sleep mode;

s2, performing feature extraction on the sleep signal to obtain a plurality of features, wherein the plurality of features include: body movement characteristics and sleep characteristics;

s3, determining the sleep quality of the target subject using the plurality of features.

Alternatively, in this embodiment, the communication bus may be a PCI (Peripheral Component Interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 5, but this is not intended to represent only one bus or type of bus.

The communication interface is used for communication between the electronic equipment and other equipment.

The memory may include RAM, and may also include non-volatile memory (non-volatile memory), such as at least one disk memory. Alternatively, the memory may be at least one memory device located remotely from the processor.

As an example, as shown in fig. 5, the memory 503 may include, but is not limited to, a first obtaining unit 401, an extracting unit 402, and a first determining unit 403 of the device for determining the sleep quality of the user. In addition, other module units in the device for determining the sleep quality of the user may also be included, but are not limited to these, and are not described in detail in this example.

The processor may be a general-purpose processor, and may include but is not limited to: a CPU (Central Processing Unit), an NP (Network Processor), and the like; but also a DSP (Digital Signal Processing), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component.

In addition, the electronic device further includes: and the display is used for displaying the determination result of the sleep quality of the user.

Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments, and this embodiment is not described herein again.

It can be understood by those skilled in the art that the structure shown in fig. 5 is only an illustration, and the device implementing the method for determining the sleep quality of the user may be a terminal device, and the terminal device may be a terminal device such as a smart phone (e.g., an Android phone, an iOS phone, etc.), a tablet computer, a palm computer, a Mobile Internet Device (MID), a PAD, and the like. Fig. 5 is a diagram illustrating a structure of the electronic device. For example, the terminal device may also include more or fewer components (e.g., network interfaces, display devices, etc.) than shown in FIG. 5, or have a different configuration than shown in FIG. 5.

Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by a program instructing hardware associated with the terminal device, where the program may be stored in a computer-readable storage medium, and the storage medium may include: flash disk, ROM, RAM, magnetic or optical disk, and the like.

According to still another aspect of an embodiment of the present application, there is also provided a storage medium. Alternatively, in this embodiment, the storage medium may be a program code for executing the method for determining the sleep quality of the user.

Optionally, in this embodiment, the storage medium may be located on at least one of a plurality of network devices in a network shown in the above embodiment.

Optionally, in this embodiment, the storage medium is configured to store program code for performing the following steps:

s1, acquiring a sleep signal of the target object under the condition that the current area of the body part of the target object is determined to be overlapped with a preset reference area, wherein the reference area is a space area occupied by the body of the target object in a reference sleep mode;

s2, performing feature extraction on the sleep signal to obtain a plurality of features, wherein the plurality of features include: body movement characteristics and sleep characteristics;

s3, determining the sleep quality of the target subject using the plurality of features.

Optionally, the specific example in this embodiment may refer to the example described in the above embodiment, which is not described again in this embodiment.

Optionally, in this embodiment, the storage medium may include, but is not limited to: various media capable of storing program codes, such as a U disk, a ROM, a RAM, a removable hard disk, a magnetic disk, or an optical disk.

According to yet another aspect of an embodiment of the present application, there is also provided a computer program product or a computer program comprising computer instructions stored in a computer readable storage medium; the processor of the computer device reads the computer instructions from the computer readable storage medium, and the processor executes the computer instructions to cause the computer device to execute the method steps of determining the sleep quality of the user in any of the embodiments.

The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.

The integrated unit in the above embodiments, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in the above computer-readable storage medium. Based on such understanding, the technical solution of the present application may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions to enable one or more computer devices (which may be personal computers, servers, or network devices) to execute all or part of the steps of the method for determining the quality of user sleep according to the embodiments of the present application.

In the above embodiments of the present application, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.

In the several embodiments provided in the present application, it should be understood that the disclosed client may be implemented in other manners. The above-described embodiments of the apparatus are merely illustrative, and for example, a division of a unit is merely a division of a logic function, and an actual implementation may have another division, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.

The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, and may also be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution provided in the embodiment.

In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.

The foregoing is only a preferred embodiment of the present application and it should be noted that those skilled in the art can make several improvements and modifications without departing from the principle of the present application, and these improvements and modifications should also be considered as the protection scope of the present application.

15页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种手提式监护设备

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!