Novel sleep monitoring body position judgment method based on IMU (Inertial Measurement Unit)

Through the IMU-based sleep monitoring method, filtering and iterative update technology, the problem of sensor error affecting position detection accuracy is solved, the position determination accuracy of sleep monitoring is improved, and the sensor calibration is supported, which is suitable for wearing conditions of different groups of people. Suitable for integration of low-power devices.

CN118873133APending Publication Date: 2024-11-01BEIJING SHENWU TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411071271.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-06
Publication Date
2024-11-01

AI Technical Summary

Technical Problem

In the existing sleep monitoring technology, there is an error problem in position detection based on wearable sensing devices. Especially at specific angles, sensor errors obviously affect the accuracy of position determination, making it difficult to effectively process sensor data errors.

Method used

Using a new sleep monitoring position determination method based on IMU, it can be filtered by collecting multiple sets of position information, setting the position prediction value and measuring variance for iterative update, combined with the principle of Kalman filter, reduce the impact of sensor errors, and support sensor calibration to adapt Different wearing positions of different groups of people.

Benefits of technology

It improves the accuracy of position detection, reduces the impact of sensor error, adapts to the differences in sensor position between different fat and thin people after wearing, and is suitable for integration of low-power embedded devices, with small calculation amounts.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118873133A_ABST
    Figure CN118873133A_ABST
Patent Text Reader

Abstract

The invention discloses a novel sleep monitoring body position judgment method based on an IMU (Inertial Measurement Unit), which comprises the following steps: S1, collecting a plurality of groups of body position information, the angle value of each group of body position information comprises a pitch angle and a roll angle, and filtering all groups of body position information to obtain a body position data set; s2, setting a body position predicted value and a measurement variance, and performing iterative updating on the body position predicted value and the measurement variance according to the body position data set to obtain a final body position predicted value; and S3, determining the current body position according to the final body position predicted value. According to the method, multiple sets of continuous body position information in a period of extremely short time are filtered, the influence caused by IMU sensor errors is reduced, the data accuracy is improved, meanwhile, the method supports calibration, and the method can better adapt to judgment errors caused by the relative position difference between the sensors and the human body after different fat and thin people actually wear the sensor.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of sleep monitoring, and in particular relates to a novel body position determination method for sleep monitoring based on IMU. Background Art

[0002] Polysomnography is an examination technique that uses polysomnography (PSG) in a sleep monitoring room to continuously and synchronously collect, record and analyze multiple sleep physiological parameters and pathological events. The parameters collected and recorded by polysomnography include electroencephalogram, electrooculogram, electromyogram, electrocardiogram, oral and nasal airflow, snoring, respiratory movement, pulse oxygen saturation, body position, etc. Among them, the common body positions in sleep monitoring are divided into the following: supine position (lying flat on the body, face up), left lateral position (lying on the left side), right lateral position (lying on the right side), prone position (lying face down), and sitting.

[0003] Body position information is of great significance for sleep monitoring, which is mainly reflected in the following aspects: Different sleeping positions may affect breathing conditions. For example, the tongue root may fall back more easily in the supine position, resulting in poor airway. For people with sleep breathing disorders, understanding the association between body position changes and respiratory events can help to more comprehensively assess the condition. Body position can reflect the activities during sleep. By monitoring changes in body position, we can understand the patient's tossing and turning during sleep, which can reflect the quality and stability of sleep to a certain extent. Some diseases may be related to specific body positions. For example, some patients with heart disease may feel uncomfortable in certain positions, and body position information can provide a reference for the diagnosis and analysis of the disease. In addition, understanding the body position during sleep can also help evaluate the impact of factors such as the comfort of the sleeping environment on sleep, thereby providing more targeted suggestions and measures for improving sleep quality. In short, body position information is an important aspect of sleep monitoring that cannot be ignored, and can provide valuable clues and basis for the evaluation and diagnosis of sleep-related problems.

[0004] At present, there are three main technologies for body position detection on the market: image processing-based, pressure signal-based, and wearable sensor devices-based. Body position monitoring technology based on image processing uses a camera to obtain the human body's sleeping state and analyze the human body's posture, which may pose a risk of privacy leakage. Body position monitoring technology based on pressure signals is generally used in smart mattress products, which analyzes body position through built-in multiple pressure sensors and accelerometers. Wearable sensor devices are commonly used in the field of sleep monitoring, and have the advantages of mature technology and strong real-time performance. Sensors are usually fixed to the human body in the form of belts or abdominal belts. Since the human body is not a flat surface, there is actually a certain inclination angle between the sensor and the human body. If the inclination angle is too large, it may affect the accuracy of body position determination. At the same time, the sensor itself has a certain measurement error. The error will increase significantly at a certain angle, affecting the accuracy of the body position determination result. Therefore, error processing of sensor data has also become an important issue. Summary of the invention

[0005] In view of the above-mentioned deficiencies in the prior art, the present invention provides a novel IMU-based sleep monitoring body position determination method which solves the problem of inaccurate sleep position detection in the prior art.

[0006] In order to achieve the above-mentioned purpose of the invention, the technical solution adopted by the present invention is: a new body position determination method for sleep monitoring based on IMU, comprising the following steps:

[0007] S1, collecting several groups of body position information, the angle value of each group of body position information includes a pitch angle and a roll angle, filtering all groups of body position information to obtain a body position data set;

[0008] S2. Setting a body position prediction value and a measurement variance, iteratively updating the body position prediction value and the measurement variance according to the body position data set, and obtaining a final body position prediction value;

[0009] S3. Determine the current body position according to the final body position prediction value.

[0010] Further: In S1, the method for filtering the body position information is specifically:

[0011] Calculating the distance between the angle values ​​of the first group of body position information and the angle values ​​of the remaining groups of body position information, and adjusting the angle values ​​of the remaining groups of body position information to establish a body position data set;

[0012] The method for adjusting the pitch angle and the roll angle is the same, and the expression for adjusting the pitch angle of the i-th group of body position information is specifically as follows:

[0013] P i =P1+f distance (P1,P i )

[0014] Where P1 is the pitch angle of the first set of body position information, P i is the pitch angle of the adjusted i-th group of body position information, f distance (P1,P i ) is the distance between the pitch angles of the first group of body position information and the i-th group of body position information, and its specific expression is:

[0015]

[0016] Where abs(.) is the absolute value function.

[0017] Further: S2 comprises the following sub-steps:

[0018] S21, taking the first group of body position information in the body position data set as the body position prediction value, and setting the measurement variance;

[0019] S22, calculating a gain according to the current measurement variance and the next set of body position information, and updating the current measurement variance and the current body position prediction value according to the gain;

[0020] S23, repeat S22 until all the body position information in the body position data set is used to update the body position prediction value, and obtain the final body position prediction value.

[0021] Further: In S22, the pitch angle gain K is calculated p and roll angle gain K r The specific expression is:

[0022]

[0023] Where D p is the pitch angle measurement variance, σ p is the standard deviation of the pitch angle data set, D r is the roll angle measurement variance, σ r is the standard deviation of the roll angle data set;

[0024] Update the current measurement variance (D p ,D r ) is expressed as:

[0025]

[0026] In the formula, is the updated measurement variance;

[0027] The expression for updating the current predicted body position value is as follows:

[0028]

[0029] In the formula, is the pitch angle of the updated predicted body position, P p is the pitch angle of the current predicted body position, P l is the pitch angle of the next set of body position information, is the roll angle of the updated predicted body position, R p is the roll angle of the current predicted body position, R l is the rolling angle of the next set of body position information.

[0030] Further: S3 includes the following sub-steps:

[0031] S31, setting the angle value of the standard body position, the standard body position includes supine, prone, left side lying, right side lying and standing;

[0032] S32, calculating the distance between the final predicted body position value and the angle value of the standard body position, and taking the standard body position with the minimum calculated distance as the current body position.

[0033] Further: In the step S32, the distance D between the final predicted body position value and the angle value of the standard body position is calculated. n The specific expression is:

[0034]

[0035] Where P m is the pitch angle of the final predicted body position, R m is the roll angle of the final predicted body position, P n is the pitch angle of the standard position, R n is the roll angle of the standard position.

[0036] The beneficial effects of the present invention are:

[0037] (1) The present invention provides a novel IMU-based body position determination method for sleep monitoring. By filtering multiple sets of continuous body position information within a very short period of time, the impact of IMU sensor errors is reduced and data accuracy is improved. At the same time, the method of the present invention supports calibration to better adapt to the determination error caused by the difference in relative position between the sensor and the human body after actual wearing by people of different fat and thin sizes.

[0038] (2) Compared with similar methods, the method of the present invention has a small amount of calculation and is more suitable for low-power embedded devices to be directly integrated into firmware. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 This is a flow chart of a novel IMU-based sleep monitoring body position determination method of the present invention. DETAILED DESCRIPTION

[0040] The specific implementation modes of the present invention are described below to facilitate those skilled in the art to understand the present invention. However, it should be clear that the present invention is not limited to the scope of the specific implementation modes. For those of ordinary skill in the art, as long as various changes are within the spirit and scope of the present invention as defined and determined by the attached claims, these changes are obvious, and all inventions and creations utilizing the concept of the present invention are protected.

[0041] like Figure 1 As shown, in one embodiment of the present invention, a novel IMU-based sleep monitoring body position determination method includes the following steps:

[0042] S1, collecting several groups of body position information, the angle value of each group of body position information includes a pitch angle and a roll angle, filtering all groups of body position information to obtain a body position data set;

[0043] S2. Setting a body position prediction value and a measurement variance, iteratively updating the body position prediction value and the measurement variance according to the body position data set, and obtaining a final body position prediction value;

[0044] S3. Determine the current body position according to the final body position prediction value.

[0045] In this embodiment, the body position information is collected by an IMU sensor. The IMU sensor collects three-axis acceleration and three-axis angular velocity signals in a short period of time. Through the conversion formula, the pitch angle and roll angle with the earth as the reference plane are obtained and used as the body position information. A total of 50 sets of body position information are obtained in this embodiment.

[0046] In S1, the method for filtering the body position information is specifically as follows:

[0047] Calculating the distance between the angle values ​​of the first group of body position information and the angle values ​​of the remaining groups of body position information, and adjusting the angle values ​​of the remaining groups of body position information to establish a body position data set;

[0048] In terms of angle, since 180 and -180 are actually the same position, it is obviously wrong to simply add them together for calculation. Therefore, in this embodiment, before iteratively calculating the predicted posture value, the pitch angle and roll angle of all collected posture information need to be adjusted. The method for adjusting the pitch angle and roll angle is the same. The specific expression for adjusting the pitch angle of the i-th group of posture information is as follows:

[0049] P i =P1+f distance (P1,P i )

[0050] Where P1 is the pitch angle of the first set of body position information, P i is the pitch angle of the adjusted i-th group of body position information, f distance(P1,P i ) is the distance between the pitch angles of the first group of body position information and the i-th group of body position information, and its specific expression is:

[0051]

[0052] In the formula, abs(.) is the absolute value function. The above formula is abs(P1-P i )=180 is used as a partition to ensure f distance (P1,P i ) is always less than 180. The physical meaning of this function is to rotate from P1 to P i The minimum angle (the absolute value is the smallest), and its positive and negative signs indicate the direction of rotation, f distance (P1,P i ) means the absolute value of the transformation from P1 to P i The minimum rotation angle, and the positive and negative signs indicate the direction of rotation.

[0053] The S2 comprises the following sub-steps:

[0054] S21, taking the first group of body position information in the body position data set as the body position prediction value, and setting the measurement variance;

[0055] S22, calculating a gain according to the current measurement variance and the next set of body position information, and updating the current measurement variance and the current body position prediction value according to the gain;

[0056] S23, repeat S22 until all the body position information in the body position data set is used to update the body position prediction value, and obtain the final body position prediction value.

[0057] In this embodiment, the method of the present invention is used to process all the body position information in the body position data set to obtain the final predicted value. The calculation logic refers to the principle of the Kalman filter. Since the change of body position is a relatively slow process, the measured pitch angle and roll angle can be considered to be unchanged within a very short period of time, and the measurement error is also unchanged, and the system measurement error is approximately the variance of the measurement value sequence during this period of time. This is consistent with the trend that the error of the sensor increases at a specific angle and the variance of the collected data also increases accordingly.

[0058] In S22, the pitch angle gain K is calculated. p and roll angle gain K r The specific expression is:

[0059]

[0060] Where D p is the pitch angle measurement variance, σ p is the standard deviation of the pitch angle data set, Dr is the roll angle measurement variance, σ r is the standard deviation of the roll angle data set;

[0061] Update the current measurement variance (D p ,D r ) is expressed as:

[0062]

[0063] In the formula, is the updated measurement variance;

[0064] The expression for updating the current predicted body position value is as follows:

[0065]

[0066] In the formula, is the pitch angle of the updated predicted body position, P p is the pitch angle of the current predicted body position, P l is the pitch angle of the next set of body position information, is the roll angle of the updated predicted body position, R p is the roll angle of the current predicted body position, R l is the rolling angle of the next set of body position information.

[0067] The S3 comprises the following sub-steps:

[0068] S31, setting the angle value of the standard body position, the standard body position includes supine, prone, left side lying, right side lying and standing;

[0069] S32, calculating the distance between the final predicted body position value and the angle value of the standard body position, and taking the standard body position with the minimum calculated distance as the current body position.

[0070] In S31, the angle value of the standard posture is specifically set to:

[0071] The angle value of supine position is (Ps, Rs), where Ps and Rs are the pitch angle and roll angle values ​​in the standard supine position, respectively.

[0072] The angle value of prone position is (f reverse (Ps),f reverse (Rs)), where f reverse (·) is the angle value after the given angle is rotated 180 degrees. In order to ensure that its value is always between -180 and 180, it is segmented. Its specific expression is:

[0073]

[0074] Wherein, x is the first undetermined angle value, which is in the range of -180 degrees to 180 degrees.

[0075] The angle values ​​for lying on the left side are as follows:

[0076] (f rotate (Ps,90),-180+f mod (Rs)

[0077] (f rotate (Ps,90),-90+f mod (Rs)

[0078] (f rotate (Ps,90),f mod (Rs)

[0079] (f rotate (Ps,90),90+f mod (Rs)

[0080] (f rotate (Ps,90),180+f mod (Rs)

[0081] where f mod The (·) function is used to find an angle value within the range of 0 to 90, whose absolute value of the angle difference with the given angle x is an integer multiple of 90. Its specific expression is:

[0082] f mod (x)=(x+180)mod90 -180≤x≤180

[0083] f rotate The (·,·) function means that given the initial angle x and the rotation angle y, it calculates the angle after rotation, where the angle after rotation ranges from -180 to 180. Its specific expression is:

[0084]

[0085] Wherein, y is the second angle value to be determined, which is in the range of -180 degrees to 180 degrees.

[0086] When no calibration is done, P s =0,R s =0,P u =0,R u =90, the center point can be calibrated in the following way: after the user puts on the device and keeps the standing posture stable, the position information at this time is saved as (Pu, Ru) through the host computer software; similarly, after the user keeps the prone posture stable, the position information at this time is saved as (Ps, Rs) through the host computer software.

[0087] The principle of setting the angle value of the standard body position is that there is a relative position relationship between each body position. The prone body position is the pitch angle or roll angle of the supine body position, which is flipped 180 degrees at will. The left side lying is the roll angle in the supine position rotated 90 degrees clockwise, and the right side lying is the roll angle in the supine position rotated 90 degrees counterclockwise. These predefined coordinates are the coordinate values ​​of the human body in the standard body position, that is, the closer to these coordinates, the higher the probability that the body position is this body position. Therefore, the logic of body position calibration is to collect the actual supine and standing body position coordinates, and add them as calculated offsets to subsequent calculations as correction values.

[0088] In the step S32, the distance D between the final predicted body position value and the angle value of the standard body position is calculated. n The specific expression is:

[0089]

[0090] Where P m is the pitch angle of the final predicted body position, R m is the roll angle of the final predicted body position, P n is the pitch angle of the standard position, R n is the roll angle of the standard position.

[0091] The beneficial effects of the present invention are as follows: the present invention provides a new IMU-based sleep monitoring body position determination method, which reduces the impact of IMU sensor errors and improves data accuracy by filtering multiple groups of continuous body position information within a very short period of time. At the same time, the method of the present invention supports calibration to better adapt to the determination error caused by the difference in the relative position of the sensor and the human body after actual wearing by people of different fat and thin sizes.

[0092] Compared with similar methods, the method of the present invention has a small amount of calculation and is more suitable for low-power embedded devices to be directly integrated into firmware.

[0093] In the description of the present invention, it is necessary to understand that the orientation or positional relationship indicated by the terms "center", "thickness", "upper", "lower", "horizontal", "top", "bottom", "inner", "outer", "radial", etc. is based on the orientation or positional relationship shown in the drawings, and is only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention. In addition, the terms "first", "second", and "third" are used only for descriptive purposes, and cannot be understood as indicating or implying the relative importance or the number of implicitly specified technical features. Therefore, the features defined by "first", "second", and "third" may explicitly or implicitly include one or more of the features.

Claims

1. A new sleep monitoring body position determination method based on IMU, characterized in that: The following steps are involved: S1, collecting several groups of body position information, the angle value of each group of body position information includes a pitch angle and a roll angle, filtering all groups of body position information to obtain a body position data set; S2. Setting a body position prediction value and a measurement variance, iteratively updating the body position prediction value and the measurement variance according to the body position data set, and obtaining a final body position prediction value; S3. Determine the current body position according to the final body position prediction value.

2. The novel IMU-based sleep monitoring body position determination method according to claim 1, characterized in that: In S1, the method for filtering the body position information is specifically as follows: Calculating the distance between the angle values ​​of the first group of body position information and the angle values ​​of the remaining groups of body position information, and adjusting the angle values ​​of the remaining groups of body position information to establish a body position data set; The method for adjusting the pitch angle and the roll angle is the same, and the expression for adjusting the pitch angle of the i-th group of body position information is specifically as follows: P i =P1+f distance (P1,P i ) Where P1 is the pitch angle of the first set of body position information, P i is the pitch angle of the adjusted i-th group of body position information, f distance (P1,P i ) is the distance between the pitch angles of the first group of body position information and the i-th group of body position information, and its specific expression is: Where abs(.) is the absolute value function.

3. The novel IMU-based sleep monitoring body position determination method according to claim 2, characterized in that: The S2 comprises the following sub-steps: S21, taking the first group of body position information in the body position data set as the body position prediction value, and setting the measurement variance; S22, calculating a gain according to the current measurement variance and the next set of body position information, and updating the current measurement variance and the current body position prediction value according to the gain; S23, repeat S22 until all the body position information in the body position data set is used to update the body position prediction value, and obtain the final body position prediction value.

4. The novel IMU-based sleep monitoring body position determination method according to claim 3, characterized in that: In S22, the pitch angle gain K is calculated. p and roll angle gain K r The specific expression is: Where D p is the pitch angle measurement variance, σ p is the standard deviation of the pitch angle data set, D r is the roll angle measurement variance, σ r is the standard deviation of the roll angle data set; Update the current measurement variance (D p ,D r ) is expressed as: In the formula, is the updated measurement variance; The expression for updating the current predicted body position value is as follows: In the formula, is the pitch angle of the updated predicted body position, P p is the pitch angle of the current predicted body position, P l is the pitch angle of the next set of body position information, is the roll angle of the updated predicted body position, R p is the roll angle of the current predicted body position, R l is the rolling angle of the next set of body position information.

5. The novel IMU-based sleep monitoring body position determination method according to claim 4, characterized in that: The S3 comprises the following sub-steps: S31, setting the angle value of the standard body position, the standard body position includes supine, prone, left side lying, right side lying and standing; S32, calculating the distance between the final predicted body position value and the angle value of the standard body position, and taking the standard body position with the minimum calculated distance as the current body position.

6. The novel IMU-based sleep monitoring body position determination method according to claim 5, characterized in that: In the step S32, the distance D between the final predicted body position value and the angle value of the standard body position is calculated. n The specific expression is: Where P m is the pitch angle of the final predicted body position, R m is the roll angle of the final predicted body position, P n is the pitch angle of the standard position, R n is the roll angle of the standard position.