A sleeping posture detection system based on human body pressure distribution

Through a sleeping posture detection system based on human body pressure distribution, mattress pressure sensors and machine learning models are used to identify and evaluate the sleep quality and posture of bedridden patients, solving the problems of subjectivity and limitations in the existing technology and achieving personalization. sleep monitoring and nursing support.

CN118402783BActive Publication Date: 2024-09-20THE 900TH HOSPITAL OF THE CHINESE PEOPLES LIBERATION ARMY JOINT LOGISTICS SUPPORT FORCE
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410870388.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-01
Publication Date
2024-09-20
Estimated Expiration
2044-07-01

AI Technical Summary

Technical Problem

In the existing technology, the detection of sleep quality and posture has subjectivity and limitations, lacks personalized nursing detection basis, and it is difficult to accurately assess the sleep status of bedridden patients.

Method used

A sleeping posture detection system based on human body pressure distribution is designed. Through the data acquisition module, area division module and sleep assessment module, mattress pressure sensors and machine learning models are used to identify human body pressure data, divide contour areas, and analyze sleeping posture status. , and assess sleep quality throughout the night.

Benefits of technology

It realizes real-time monitoring and personalized assessment of the patient's sleep quality and posture, provides objective data support for medical staff, helps formulate personalized care plans, and improves sleep quality and life quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118402783B
    Figure CN118402783B
Patent Text Reader

Abstract

The present invention discloses a sleeping posture detection system based on human body pressure distribution, and relates to the technical field of data processing. The sleeping posture detection system based on human body pressure distribution identifies human body pressure data after triggering sleeping posture detection, analyzes the turning point of pressure distribution according to the human body pressure data, divides the contour of the patient on the mattress into regions according to the turning point of pressure distribution, and determines the representative pressure sensor position points of each contour region; analyzes the pressure data of the representative pressure sensor position points and the patient's personalized sleeping posture database through a machine learning model, and outputs the patient's sleeping posture state; based on the data compliance range of the patient's different sleeping posture states in the patient's personalized sleeping posture database, records the number of times the patient's sleeping posture changes throughout the night, and evaluates the patient's sleep quality throughout the night. The system solves the problem that the detection of sleep quality and posture of patients with limited mobility is subjective and limited, and lacks personalized nursing detection basis.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data processing, and in particular to a sleeping posture detection system based on human body pressure distribution. Background Art

[0002] As the population continues to age, the demand for medical services is increasing year by year. In the medical field, especially in wards or rehabilitation centers, it is crucial to monitor and manage patients' sleep quality and posture. Insufficient sleep or poor sleep quality is associated with many health problems, including cardiovascular disease, mental illness, and decreased immune system function. At the same time, the correct sleeping posture can reduce patients' discomfort, promote recovery, and prevent complications such as pressure sores. Traditionally, the assessment of sleep quality relies mainly on the patient's subjective report and the doctor's observation, which is subjective and limited. For bedridden patients, caregivers need to regularly check the patient's sleeping posture and adjust it as needed, which is subjective and unstable.

[0003] The development of modern science and technology has made it possible to use sensor technology to monitor human posture and pressure distribution in real time. For bedridden patients, pressure sensors installed in different mattress zones are expected to accurately detect the pressure distribution in different areas, thereby identifying the patient's sleeping posture, promptly discovering bad sleeping habits, and taking measures to prevent the occurrence of pressure ulcers. Different patients require personalized care due to different illnesses or physical conditions. By detecting the patient's sleeping posture and objectively evaluating the patient's sleep quality, we can more accurately understand the patient's sleep situation and formulate corresponding care plans based on their specific needs and limitations. Summary of the invention

[0004] In view of the deficiencies in the prior art, the present invention provides a sleeping posture detection system based on human body pressure distribution, which solves the problems of subjectivity and limitations in the detection of sleep quality and posture of patients with limited mobility and lack of personalized nursing detection basis.

[0005] To achieve the above objectives, the present invention is implemented through the following technical solutions: a sleeping position detection system based on human body pressure distribution, comprising: a data acquisition module, used to obtain pressure data obtained by a mattress pressure sensor after triggering sleeping position detection, and identify human body pressure data in the pressure data; an area division module, used to analyze the turning point of pressure distribution according to the human body pressure data, divide the contour of the patient on the mattress into regions according to the turning point of pressure distribution, and determine the representative pressure sensor position points of each contour region; a sleeping position output module, used to analyze the pressure data of the representative pressure sensor position points and the patient's personalized sleeping position database constructed based on the patient's sleeping position simulation record through a machine learning model, and output the patient's sleeping position state; a sleep evaluation module, used to record the number of times the patient's sleeping position changes throughout the night based on the data compliance range of the patient's different sleeping positions in the patient's personalized sleeping position database, and evaluate the patient's sleep quality throughout the night.

[0006] Furthermore, the specific analysis of the human body pressure data in the identified pressure data is: obtaining the pressure data obtained by each pressure sensor in the mattress, the pressure data is specifically a pressure value; the pressure data obtained by each pressure sensor in the mattress specifically includes human body pressure data and interference pressure data, and the interference pressure data specifically includes a quilt pressure value; filtering out high-frequency signals of the vibration of the quilt through a low-pass filter, retaining the slowly changing part of the human body pressure, and then identifying the human body pressure data, and further preprocessing the human body pressure data to obtain the human body pressure value.

[0007] Furthermore, the specific analysis for determining the representative pressure sensor position points of each contour area is as follows: based on the sliding window method, the human body pressure values ​​obtained by each pressure sensor in the mattress are analyzed to determine the turning point of the pressure distribution, which represents the boundary between different parts of the patient's body; based on each pressure turning point, the contour of the patient on the mattress is divided into different areas using the boundary curve, and the area of ​​each area is obtained, each area represents a part of the patient's body; the pressure sensors at the average value position in each area are respectively selected as representative pressure sensors, and the representative pressure sensor position points of each contour area are marked.

[0008] Furthermore, the specific analysis process for determining the turning point of the pressure distribution is as follows: step A1, determining the size of the sliding window, that is, the window length sampled in the pressure data; step A2, for each window, based on the first-order derivative analysis of the pressure data, identifying the changing trend of the pressure data in the window; step A3, when the pressure change in the window exceeds the change in the adjacent window, marking it as a turning point, and then marking the turning point position, the turning point indicates the position where the pressure distribution in the window changes from one trend to another; step A4, using the sliding window to repeat steps A2 and A3 on the entire pressure distribution data sequence until the entire data sequence is processed.

[0009] Furthermore, the specific analysis steps for outputting the patient's sleeping posture are as follows: based on the patient's personalized sleeping posture database, the pressure value range and contour area range of each body part corresponding to the patient's various sleeping postures are obtained, and the pressure value range and contour area range of each body part corresponding to the various sleeping postures are used to construct a comparison set of various sleeping postures, and the various sleeping postures specifically include: supine, prone, left side, and right side; the pressure values ​​of representative pressure sensor position points in each region of the patient and the area of ​​each region are constructed into a regional representative data set; the comparison set is used as a label and the regional representative data set is used as a feature, and a decision tree is constructed using a random forest to output the patient's sleeping posture. The specific random forest analysis The steps are as follows: Step B1, assume that the regional representative data set is D, which contains m samples, and each sample j has k features: cj1, cj2, cj3, ..., cjk, and assume that the target variable is Tj, Tj represents the sleeping state of the patient mapped by the comparison set; Step B2, perform normalization preprocessing on the data to ensure the accuracy of the model, randomly divide 70% of the data set D into a training set Dtrain, and 30% into a test set Dtest. The training set is used to build the model, and the test set is used to verify the model. The training set contains p samples, and the test set contains q samples, p+q=m; Step B3, construct W decision trees, each tree Uw is independently constructed, and for each tree, A sample set of size p is extracted from the training set Dtrain by sampling with replacement. At each split node, the square root of k features is randomly selected from the k features to find the best split. Step B4: Each tree Uw generates a model Kw based on its training data. For a given test sample c, each tree Uw outputs a prediction result Tw(c). Step B5: Output the prediction output of all trees. , ; The average of all tree prediction outputs is taken as the prediction result.

[0010] Furthermore, the patient's personalized sleeping position database specifically includes pressure data corresponding to various sleeping positions based on the patient's various sleeping position simulation records and the contour area range of the patient's various sleeping positions simulated on the mattress based on the boundary curve, and also includes the patient's weight data recorded by the mattress detection when the patient lies flat.

[0011] Furthermore, the specific analysis of evaluating the patient's whole-night sleep quality is as follows: real-time monitoring of the patient's whole-night sleep, analyzing the patient's whole-night pressure data and contour area based on the data compliance range of the patient's different sleeping positions in the patient's personalized sleeping position database, marking the number of times the pressure data and contour area exceed the peak value of the data compliance range for different sleeping positions as the number of whole-night sleeping position changes, and obtaining the duration of each sleeping position; fuzzy reasoning is performed on the duration of each sleeping position and the number of whole-night sleeping position changes through fuzzy logic to obtain the patient's whole-night sleep quality assessment value, and then generate the patient's whole-night sleep monitoring report, which includes the patient's whole-night sleep quality assessment value, the patient's various sleeping positions throughout the night, and the duration of each sleeping position.

[0012] Furthermore, the specific analysis of fuzzy reasoning on the duration of each sleeping posture and the number of times the sleeping posture is changed throughout the night through fuzzy logic is as follows: the duration of each sleeping posture and the number of times the sleeping posture is changed throughout the night are divided into different fuzzy sets, and fuzzy rules are established. The specific fuzzy rules are as follows: the duration of each sleeping posture is directly proportional to the whole night sleep quality assessment value, and the number of times the sleeping posture is changed throughout the night is inversely proportional to the whole night sleep quality assessment value; fuzzy reasoning is performed on the fuzzy sets corresponding to the duration of each sleeping posture and the number of times the sleeping posture is changed throughout the night according to the established fuzzy rules to obtain a fuzzy set of the whole night sleep quality assessment value, and then the whole night sleep quality assessment value is obtained by defuzzifying the fuzzy set of the whole night sleep quality assessment value.

[0013] The present invention has the following beneficial effects:

[0014] (1) This sleeping posture detection system based on human body pressure distribution can monitor the patient's sleeping posture in real time, including supine, prone, left side, and right side, through the data obtained by the mattress pressure sensor, and provide real-time sleeping posture information for medical staff; by analyzing the patient's personalized sleeping posture through a machine learning model, the pressure distribution of the patient in different sleeping postures can be understood, helping medical staff to better understand the patient's sleeping habits and physical condition; according to the number of times the patient's sleeping posture changes throughout the night and the sleeping posture state predicted by the machine learning model, the patient's whole night sleep quality is evaluated, which can help medical staff to promptly identify patients with poor sleep quality and take corresponding intervention measures; by analyzing the patient's sleeping posture data and sleep quality evaluation results, medical staff can provide patients with personalized medical care services, including adjusting sleeping posture, improving sleeping environment, etc., to improve the patient's sleep quality and quality of life; recording and analyzing the patient's sleeping posture data and sleep quality evaluation results can provide a reference basis for medical decision-making and treatment effect evaluation, and promote the intelligence and refinement of medical services.

[0015] (2) In this sleeping posture detection system based on human body pressure distribution, random forest can use multiple decision trees for integrated learning to effectively predict the patient's sleeping posture. By training the random forest model, the pressure value range and contour area range patterns corresponding to various sleeping postures can be learned, so as to more accurately identify the patient's sleeping posture. The patient's personalized sleeping posture database contains the patient's different sleeping posture data, so the random forest model can be adjusted according to the patient's personalized differences, thereby improving the generalization ability and applicability of the model. The sleeping posture status output by the random forest model can be used to monitor the patient's sleeping posture in real time, provide timely sleeping posture information to medical staff, help adjust the patient's sleeping posture, prevent health problems caused by poor sleeping posture, and provide more reference and guidance for sleep research and medical services.

[0016] Of course, any product implementing the present invention does not necessarily need to achieve all of the advantages described above at the same time. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 This is a structural diagram of a sleeping posture detection system based on human body pressure distribution according to the present invention.

[0018] Figure 2 The present invention is a flow chart of a sleeping posture detection system method based on human body pressure distribution. DETAILED DESCRIPTION

[0019] The embodiment of the present application solves the problem that the detection of sleep quality and posture of patients with limited mobility is subjective and limited, and lacks personalized nursing detection basis, through a sleeping posture detection system based on human body pressure distribution.

[0020] The overall idea of ​​the problem in the embodiment of this application is as follows:

[0021] The pressure data is processed, the human body pressure data is identified, and the turning points of the pressure distribution are analyzed to determine the representative pressure sensor position points of each contour area. The pressure data of the representative pressure sensor position points is preprocessed, and the pressure data is analyzed by the random forest algorithm to predict the patient's sleeping position. Based on the predicted sleeping position, the patient's sleeping position on the mattress is analyzed to understand the pressure distribution of the patient in different sleeping positions. The patient's sleep quality throughout the night is evaluated by recording the number of times the patient changes his sleeping position throughout the night.

[0022] See also Figure 1 to Figure 2The embodiment of the present invention provides a technical solution: a sleeping posture detection system based on human body pressure distribution, comprising: a data acquisition module, used to acquire pressure data acquired by a mattress pressure sensor after triggering sleeping posture detection, and identify human body pressure data in the pressure data; an area division module, used to analyze the turning point of pressure distribution according to the human body pressure data, divide the contour of the patient on the mattress into regions according to the turning point of pressure distribution, and determine the representative pressure sensor position points of each contour region; a sleeping posture output module, used to analyze the pressure data of the representative pressure sensor position points and a patient personalized sleeping posture database constructed based on the patient's sleeping posture simulation record through a machine learning model, and output the patient's sleeping posture state; a sleep evaluation module, used to record the number of times the patient's sleeping posture changes throughout the night based on the data compliance range of the patient's different sleeping posture states in the patient's personalized sleeping posture database, and evaluate the patient's sleep quality throughout the night.

[0023] Specifically, the sleeping position detection is triggered by infrared detection feedback through an infrared sensor, and the triggering process is: the infrared sensor is installed at an appropriate position on the mattress or bed frame, and the patient's sleeping condition is monitored based on the infrared sensor trigger time threshold; when the infrared sensor detects that the patient stays on the bed beyond the trigger time threshold, a trigger signal is sent as the input for sleeping position detection, thereby starting the sleeping position detection process.

[0024] The specific analysis of identifying the human body pressure data in the pressure data is as follows: obtaining the pressure data obtained by each pressure sensor in the mattress, the pressure data is specifically a pressure value; the pressure data obtained by each pressure sensor in the mattress specifically includes human body pressure data and interference pressure data, and the interference pressure data specifically includes a quilt pressure value; filtering out the high-frequency signal of the quilt vibration through a low-pass filter, retaining the slowly changing part of the human body pressure, and then identifying the human body pressure data, further preprocessing the human body pressure data, and obtaining the human body pressure value.

[0025] In this implementation, by triggering with an infrared sensor, the patient's sleeping situation can be monitored in real time, thereby accurately starting the sleeping position detection process, avoiding fixed detection based on time periods, and being able to more accurately capture changes in the patient's sleeping behavior; the data obtained by the pressure sensor in the mattress, combined with a low-pass filter to filter out the vibration of the bedding, can accurately identify human body pressure data, thereby avoiding the influence of interference with pressure data, which helps the system to accurately judge the patient's sleeping position; by further preprocessing the human body pressure data, specific human body pressure values ​​can be obtained, which can provide more detailed data support for subsequent sleeping position analysis, help the system better understand the patient's sleeping posture characteristics, and provide a more accurate basis for sleep quality assessment.

[0026] Specifically, the specific analysis for determining the representative pressure sensor position points of each contour area is as follows: based on the sliding window method, the human body pressure values ​​obtained by each pressure sensor in the mattress are analyzed to determine the turning point of the pressure distribution, which represents the boundary between different parts of the patient's body; based on each pressure turning point, the patient's contour on the mattress is divided into different areas using the boundary curve, and the area of ​​each area is obtained, each area represents a part of the patient's body; the pressure sensors at the average value position in each area are selected as representative pressure sensors, and the representative pressure sensor position points of each contour area are marked.

[0027] In this embodiment, interpolation, fitting or other curve generation algorithms are used to construct a boundary curve to separate the areas between adjacent turning points. For each area, the area is calculated using geometric principles. Specifically, the boundary curve is represented as a function or a parametric equation, and each area is integrated, or its area is calculated using a polygon area calculation formula. Regarding the reliability of pressure data acquisition by the representative pressure sensor, the pressure data of the representative pressure sensor is specifically compared with the pressure data of the four pressure sensors surrounding the representative pressure sensor. The comparison steps are as follows: ensure that the data acquired by the representative sensor and the surrounding sensors have the same timestamp, that is, the data acquired at the same time point, compare the pressure data acquired by the representative sensor and the surrounding sensors with the same timestamp to see if there are consistent trends and changes in the same time period. When there is an inconsistent trend change, the representative sensor is unreliable, and the average of the pressure data of the four sensors surrounding the representative sensor is obtained as the pressure value of the area. By comparing the data with multiple surrounding sensors, possible abnormal conditions of the representative sensor, such as failure or external interference, can be better excluded, thereby improving the reliability of the data. Using the mean of the surrounding sensor data as a substitute for the representative sensor data can reduce the data deviation caused by single sensor errors or outliers and improve the accuracy of the data. Even if the representative sensor fails or has an abnormal condition, the system can still operate normally and provide reliable data, ensuring the robustness and stability of the system.

[0028] Specifically, the specific analysis process for determining the turning point of the pressure distribution is as follows: step A1, determining the size of the sliding window, that is, the window length sampled in the pressure data; step A2, for each window, based on the first-order derivative analysis of the pressure data, identifying the changing trend of the pressure data in the window; step A3, when the pressure change in the window exceeds the change in the adjacent window, marking it as a turning point, and then marking the turning point position, the turning point indicates the position where the pressure distribution in the window changes from one trend to another; step A4, using the sliding window to repeat steps A2 and A3 on the entire pressure distribution data sequence until the entire data sequence is processed.

[0029] In this embodiment, the specific analysis of identifying the change trend of pressure data within the window is as follows: for example, for an array containing A window of Indicates The pressure value obtained by the pressure sensor, , Represents the total number of time points, the first-order derivative ; In the formula and represents the adjacent pressure sensor, and Represents the time of adjacent time points, if , indicating that the pressure data in this window is on the rise. , indicating that the pressure data in this window is on a downward trend. , indicating that the pressure data in this window remains basically unchanged.

[0030] Through first-order derivative analysis and window comparison, turning points in pressure data can be automatically identified without manual intervention, which improves the degree of automation of identification. The first-order derivative analysis method can more accurately capture the changing trend of pressure data, thereby determining the position of turning points and improving the accuracy of identification. The size of the sliding window can be adjusted according to actual conditions to adapt to different pressure data characteristics and changing trends, thereby improving the flexibility and applicability of the algorithm, and can be further expanded to identify turning points in different types of data sequences, with certain versatility and scalability.

[0031] Specifically, the specific analysis steps for outputting the patient's sleeping state are: based on the patient's personalized sleeping position database, the pressure value range and contour area range of each body part corresponding to the patient's various sleeping positions are obtained, and the pressure value range and contour area range of each body part corresponding to the various sleeping positions are used to construct a comparison set of various sleeping positions, and the various sleeping positions specifically include: supine, prone, left side, and right side; the pressure values ​​of the representative pressure sensor position points of each region of the patient and the area of ​​each region are constructed into a regional representative data set; the comparison set is used as a label and the regional representative data set is used as a feature, and a decision tree is constructed using a random forest to output the patient's sleeping state. The specific random forest analysis steps are:

[0032] Step B1, let the regional representative data set be D, containing m samples, each sample j has k features: cj1, cj2, cj3, ..., cjk, and let the target variable be Tj, Tj represents the sleeping state of the patient mapped by the comparison set; Step B2, perform normalization preprocessing on the data to ensure the accuracy of the model, randomly divide 70% of the data set D into a training set Dtrain, and 30% into a test set Dtest. The training set is used to build the model, and the test set is used to verify the model. The training set contains p samples, and the test set contains q samples, p+q=m;

[0033] Step B3, construct W decision trees, each tree Uw is constructed independently, for each tree, a sample set of size p is extracted from the training set Dtrain by sampling with replacement, and at each split node, square root k features are randomly selected from k features to find the best split;

[0034] Step B4, each tree Uw generates a model Kw based on its training data, and for a given test sample c, each tree Uw outputs a prediction result Tw(c);

[0035] Step B5, output all tree prediction outputs , ; The average of all tree prediction outputs is taken as the prediction result.

[0036] In this implementation, the data set D specifically includes the following fields: Pressure: the pressure value of the representative pressure sensor position point in each area, indicating the pressure value measured by the representative pressure sensor in the area; Area: the area of ​​each area, indicating the size of the space occupied by the area; Tj: the sleeping state of the patient mapped by the comparison set, including supine, prone, left side, and right side. The data set D consists of m samples, each sample j has the above-described features and sleeping state, that is, , for each sample j, Indicates the value of Pressure. Indicates the value of Area. Indicates sleeping position.

[0037] By obtaining the pressure value range and contour area range corresponding to various sleeping positions of patients based on the patient's personalized sleeping position database, we can more accurately understand the patient's body pressure distribution in different sleeping positions and realize personalized analysis of the patient's sleeping position; using the random forest algorithm to learn the model from the data can not only use a large amount of patient data for training, but also make full use of the characteristic information in the data to realize accurate prediction of the patient's sleeping position, which is highly data-driven; using the random forest method to construct a decision tree can effectively process a large amount of data and realize efficient classification and prediction, thereby improving the efficiency of patient sleeping position recognition, realizing accurate prediction of patient sleeping position, and providing reliable reference information for medical staff.

[0038] Specifically, the patient's personalized sleeping position database includes pressure data corresponding to various sleeping positions based on the patient's various sleeping position simulation records and the contour area range of the patient's various sleeping positions simulated on the mattress based on the boundary curve, and also includes the patient's weight data recorded by the mattress detection when the patient lies flat.

[0039] In this implementation, the patient's weight data recorded by the mattress detection when the patient lies flat can solve the problem that the patient cannot stand to weigh himself. The specific formula for obtaining the patient's weight is: The pressure sensors that detect pressure changes when the patient lies flat are numbered: , Indicates the total number of pressure sensors in the mattress that detect pressure changes. The pressure sensor detects the pressure , the total pressure detected by the mattress is: , the patient's gravity is: .

[0040] Specifically, the specific analysis for evaluating the patient's whole-night sleep quality is as follows: real-time monitoring of the patient's whole-night sleep, analyzing the patient's whole-night pressure data and contour area based on the data compliance range of the patient's different sleeping positions in the patient's personalized sleeping position database, marking the number of times the pressure data and contour area exceed the peak of the data compliance range for different sleeping positions as the number of whole-night sleeping position changes, and obtaining the duration of each sleeping position state; fuzzy reasoning is performed on the duration of each sleeping position state and the number of sleeping position changes throughout the night through fuzzy logic to obtain the patient's whole-night sleep quality assessment value, and then generate the patient's whole-night sleep monitoring report, which includes the patient's whole-night sleep quality assessment value, the patient's various sleeping positions throughout the night, and the duration of each sleeping position state.

[0041] In this implementation scheme, the specific analysis of fuzzy reasoning of the duration of each sleeping posture state and the number of times the sleeping posture is changed throughout the night through fuzzy logic is as follows: the duration of each sleeping posture state and the number of times the sleeping posture is changed throughout the night are defined as input variables, and divided into different fuzzy sets, such as: "Low", "Medium", "High" for the duration of each sleeping posture state, "Few", "Medium", "Many" for the number of times the sleeping posture is changed throughout the night, and the whole night sleep quality evaluation value is defined as the output variable, and divided into different fuzzy sets, such as: "Low", "Medium", "High" for the whole night sleep quality evaluation value. Fuzzy rules are established based on the fact that the duration of each sleeping posture state is proportional to the whole night sleep quality evaluation value, and the number of times the sleeping posture is changed throughout the night is inversely proportional to the whole night sleep quality evaluation value. Examples of fuzzy rules are:

[0042] The duration of each sleeping posture is marked as Q, the number of changes in sleeping posture throughout the night is marked as G, and the evaluation value of sleep quality throughout the night is marked as R, then it can be defined as:

[0043] Rule 1: IF (Q is High) AND (G is Few) THEN (R is High)

[0044] Rule 2: IF (T is Low) AND (G is Many) THEN (R is Low) ...

[0046] Fuzzy reasoning is performed based on the established fuzzy rules and the fuzzy sets corresponding to the duration of each sleeping posture and the number of times the sleeping posture is changed throughout the night, so as to obtain a fuzzy set of the whole night sleep quality evaluation value. Then, the whole night sleep quality evaluation value is obtained by defuzzifying the fuzzy set of the whole night sleep quality evaluation value.

[0047] The division of fuzzy sets can be adjusted according to actual conditions. For example, although this embodiment takes three fuzzy sets as examples, in fact, the duration of each sleeping state, the number of sleeping position changes throughout the night, and the whole night sleep quality assessment value can be divided into more than three sets to facilitate a better assessment of sleep quality.

[0048] For the judgment of the duration of each sleeping position, and the number of times the sleeping position is changed throughout the night, you can set a threshold value according to the actual situation. For example, when the number of changes in sleeping position throughout the night exceeds 5, it will be marked as "Many"; when the duration of each sleeping position is more than one hour, it will be marked as "High", and so on. I will not go into details here.

[0049] Real-time monitoring of sleep throughout the night can capture various changes and behaviors of patients during sleep, thereby providing more comprehensive data to evaluate sleep quality; marking the number of times that the pressure data and contour area exceed the peak of different sleeping positions can evaluate the frequency of changes in sleeping positions of patients throughout the night, which helps to understand whether the patient frequently changes positions during sleep, thereby inferring sleep quality. Obtaining the length of time each sleeping position is maintained can further understand the patient's comfort level and sleep quality in different sleeping positions. Maintaining a certain position for a long time may mean that the patient has better sleep quality in this position. By inferring the length of time a sleeping position is maintained and the number of times a sleeping position is changed through fuzzy logic, multiple indicators can be taken into consideration and a more comprehensive evaluation value of sleep quality throughout the night can be obtained, thereby improving the accuracy and credibility of the evaluation.

[0050] In summary, this application has at least the following effects:

[0051] Through area division and sleeping posture output module, the system can realize personalized sleeping posture analysis according to the patient's specific pressure distribution data, rather than adopting a general model, so as to more accurately understand the sleeping habits and behaviors of each patient; the analyzed data is converted into the patient's sleeping posture status through the sleeping posture output module, which helps to monitor and record the patient's different postures during sleep, so as to better understand their sleeping habits and possible sleep problems; based on the data in the patient's personalized sleeping posture database, recording the number of times the patient's sleeping posture changes throughout the night is of great significance for understanding the patient's sleep quality and sleep cycle, and helps to discover sleep problems and improve sleep quality; by recording the number of times the patient's sleeping posture changes throughout the night and the sleeping posture status, the patient's sleep quality throughout the night can be evaluated, providing an objective method to evaluate sleep quality and help doctors or users understand their sleep health status, which helps patients improve sleep quality and prevent the occurrence of sleep disorders and related health problems.

[0052] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as systems. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0053] The present invention is described with reference to the block diagram of the system according to the embodiment of the present invention. It should be understood that the combination of each structure in the block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate a device for implementing the functions specified in each structure in the block diagram.

[0054] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory produce a product including an instruction device that implements the functions specified in each structure of the structural diagram.

[0055] These computer program instructions may also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, whereby the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in each structure in the structural diagram.

[0056] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.

[0057] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. A sleeping posture detection system based on human body pressure distribution, characterized in that: include A data acquisition module, used to acquire pressure data acquired by a mattress pressure sensor after triggering sleeping posture detection, and identify human body pressure data in the pressure data; A region division module is used to analyze the turning points of pressure distribution according to the human body pressure data, divide the contour of the patient on the mattress into regions according to the turning points of pressure distribution, and determine the representative pressure sensor position points of each contour region; A sleeping posture output module is used to analyze the pressure data of representative pressure sensor positions and the patient's personalized sleeping posture database constructed based on the patient's sleeping posture simulation records through a machine learning model, and output the patient's sleeping posture status; A sleep assessment module, which is used to record the number of changes in the patient's sleeping position throughout the night based on the data compliance range of the patient's different sleeping positions in the patient's personalized sleeping position database, and to assess the patient's sleep quality throughout the night; The specific analysis of identifying the human body pressure data in the pressure data is as follows: Obtaining pressure data obtained by each pressure sensor in the mattress, the pressure data being specifically a pressure value; The pressure data acquired by each pressure sensor in the mattress specifically includes human body pressure data and interference pressure data, and the interference pressure data specifically includes a quilt pressure value; The high-frequency signal of the vibration of the quilt is filtered out through a low-pass filter, and the slowly changing part of the human body pressure is retained, thereby identifying the human body pressure data, and further pre-processing the human body pressure data to obtain the human body pressure value; The specific analysis of determining the representative pressure sensor position points of each contour area is as follows: The human body pressure values ​​obtained by each pressure sensor in the mattress are analyzed based on the sliding window method to determine the turning point of the pressure distribution, which represents the boundary between different parts of the patient's body; Based on each pressure turning point, the contour of the patient on the mattress is divided into different regions using the boundary curve, and the area of ​​each region is obtained, each region representing a part of the patient's body; Select the pressure sensor at the average value position in each area as the representative pressure sensor, and mark the representative pressure sensor position point in each contour area; The specific analysis process for determining the turning point of pressure distribution is as follows: Step A1, determining the size of the sliding window, that is, the window length sampled in the pressure data; Step A2: for each window, based on the first-order derivative analysis of the pressure data, identifying the change trend of the pressure data within the window; Step A3, when the pressure change in the window exceeds the change in the adjacent window, mark it as a turning point, and then mark the turning point position, the turning point indicates the position where the pressure distribution in the window changes from one trend to another; Step A4, using a sliding window to repeat steps A2 and A3 on the entire pressure distribution data sequence until the entire data sequence is processed; The specific analysis steps for outputting the sleeping posture of the patient are: Based on the patient's personalized sleeping position database, the pressure value range and contour area range of each body part corresponding to each sleeping position of the patient are obtained, and the pressure value range and contour area range of each body part corresponding to each sleeping position are used to construct a comparison set of various sleeping positions, and the various sleeping positions specifically include: supine, prone, left side, and right side; The pressure values ​​of representative pressure sensor positions in each region of the patient and the area of ​​each region are constructed into a regional representative data set; The sleeping posture status is used as the label and the regional representative data set is used as the feature. A decision tree is constructed using random forest to output the patient's sleeping posture status.

2. The sleeping posture detection system based on human body pressure distribution according to claim 1, characterized in that: The specific steps of random forest analysis are: Step B1, let the regional representative data set be D, containing m samples, each sample j has k features: cj1, cj2, cj3, ..., cjk, and let the target variable be Tj, Tj represents the sleeping state of the patient mapped by sample j through the comparison set; Step B2: normalize and preprocess the data to ensure the accuracy of the model. 70% of the data set D is randomly divided into a training set Dtrain and 30% is randomly divided into a test set Dtest. The training set is used to build the model and the test set is used to verify the model. The training set contains p samples and the test set contains q samples, where p+q=m. Step B3, construct W decision trees, each tree Uw is constructed independently, for each tree, a sample set of size p is extracted from the training set Dtrain by sampling with replacement, and at each split node, square root k features are randomly selected from k features to find the best split; Step B4, each tree Uw generates a model Kw based on its training data, and for a given test sample c, each tree Uw outputs a prediction result Tw(c); Step B5, output all tree prediction outputs , ; The average of all tree prediction outputs is taken as the prediction result.

3. The sleeping posture detection system based on human body pressure distribution according to claim 2, characterized in that: The patient's personalized sleeping position database specifically includes pressure data corresponding to various sleeping positions based on the patient's various sleeping position simulation records and the contour area range of the patient's various sleeping positions simulated on the mattress based on the boundary curve, and also includes the patient's weight data recorded by the mattress detection when the patient lies flat.

4. The sleeping posture detection system based on human body pressure distribution according to claim 1, characterized in that: The specific analysis of evaluating the patient's sleep quality throughout the night is as follows: Monitor the patient's sleep throughout the night in real time, analyze the patient's pressure data and contour area throughout the night based on the data compliance range of the patient's different sleeping positions in the patient's personalized sleeping position database, mark the number of times the pressure data and contour area exceed the peak value of the data compliance range of different sleeping positions as the number of sleeping position changes throughout the night, and obtain the duration of each sleeping position; Through fuzzy logic, fuzzy reasoning is performed on the duration of each sleeping position and the number of times the sleeping position is changed throughout the night to obtain the patient's whole-night sleep quality assessment value, and then the patient's whole-night sleep monitoring report is generated. The whole-night sleep monitoring report includes the patient's whole-night sleep quality assessment value, the patient's various sleeping positions throughout the night, and the duration of each sleeping position.

5. The sleeping posture detection system based on human body pressure distribution according to claim 4, characterized in that: The specific analysis of the fuzzy reasoning of the duration of each sleeping posture and the number of sleeping posture changes throughout the night by fuzzy logic is as follows: The duration of each sleeping posture and the number of changes in sleeping posture throughout the night are divided into different fuzzy sets, and fuzzy rules are established. The specific fuzzy rules are as follows: the duration of each sleeping posture is proportional to the evaluation value of the whole night's sleep quality, and the number of changes in sleeping posture throughout the night is inversely proportional to the evaluation value of the whole night's sleep quality; Fuzzy reasoning is performed based on the established fuzzy rules and the fuzzy sets corresponding to the duration of each sleeping posture and the number of times the sleeping posture is changed throughout the night, so as to obtain a fuzzy set of the whole night sleep quality evaluation value. Then, the whole night sleep quality evaluation value is obtained by defuzzifying the fuzzy set of the whole night sleep quality evaluation value.

Citation Information

Patent Citations

  • Non-sleep-interference sleeping posture and sleeping behavior testing identification method

    CN104732250A

  • Light intensity type high-sensitivity pressure sensor and sleep state monitoring system and method

    CN113143212A

  • Human body sleeping posture pressure distribution test method and device and mattress recommendation system

    CN115844377A

  • Sleep state and sleep disease detection system based on human body pressure distribution image

    CN116807405A

  • Artificial intelligece-based posture discrimination device using body pressure sensors and method thereof

    US20230355166A1