CN112001286A - Neck pillow height adjustment method and device for sleeping posture recognition processing based on pressure image - Google Patents
Neck pillow height adjustment method and device for sleeping posture recognition processing based on pressure image Download PDFInfo
- Publication number
- CN112001286A CN112001286A CN202010820060.3A CN202010820060A CN112001286A CN 112001286 A CN112001286 A CN 112001286A CN 202010820060 A CN202010820060 A CN 202010820060A CN 112001286 A CN112001286 A CN 112001286A
- Authority
- CN
- China
- Prior art keywords
- pressure
- height
- human body
- lying
- pillow
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V40/00—Recognition of biometric, human-related or animal-related patterns in image or video data
- G06V40/20—Movements or behaviour, e.g. gesture recognition
-
- A—HUMAN NECESSITIES
- A47—FURNITURE; DOMESTIC ARTICLES OR APPLIANCES; COFFEE MILLS; SPICE MILLS; SUCTION CLEANERS IN GENERAL
- A47G—HOUSEHOLD OR TABLE EQUIPMENT
- A47G9/00—Bed-covers; Counterpanes; Travelling rugs; Sleeping rugs; Sleeping bags; Pillows
- A47G9/10—Pillows
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01C—MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
- G01C9/00—Measuring inclination, e.g. by clinometers, by levels
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01L—MEASURING FORCE, STRESS, TORQUE, WORK, MECHANICAL POWER, MECHANICAL EFFICIENCY, OR FLUID PRESSURE
- G01L5/00—Apparatus for, or methods of, measuring force, work, mechanical power, or torque, specially adapted for specific purposes
- G01L5/0028—Force sensors associated with force applying means
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F17/00—Digital computing or data processing equipment or methods, specially adapted for specific functions
- G06F17/10—Complex mathematical operations
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Mathematical Physics (AREA)
- General Health & Medical Sciences (AREA)
- Health & Medical Sciences (AREA)
- Data Mining & Analysis (AREA)
- Mathematical Optimization (AREA)
- Analytical Chemistry (AREA)
- Databases & Information Systems (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Mathematical Analysis (AREA)
- Computational Mathematics (AREA)
- Algebra (AREA)
- Otolaryngology (AREA)
- Pulmonology (AREA)
- Chemical & Material Sciences (AREA)
- Pure & Applied Mathematics (AREA)
- Radar, Positioning & Navigation (AREA)
- Remote Sensing (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Psychiatry (AREA)
- Social Psychology (AREA)
- Human Computer Interaction (AREA)
- Multimedia (AREA)
- Image Processing (AREA)
- Measurement Of The Respiration, Hearing Ability, Form, And Blood Characteristics Of Living Organisms (AREA)
Abstract
本发明提供一种基于压力图像进行睡姿识别的颈枕高度调节方法及装置,高度调节方法包括初步判断人体姿势、识别人体俯躺及仰躺和建立头颈部高度随姿势变化模型;高度调节装置包括枕头外皮、压力传感器、横板、侧板、电动推杆、固定柱、转轴、控制单元、羽绒填充层、电源模块和压力传感器阵列,电源模块提供传感器及控制器电源,压力传感器阵列收集人体压力图像,压力传感器接收头部压力数据,控制单元综合分析人体压力图像信息和头部压力数据,并通过控制电动推杆使侧板转动,改变颈枕高度。上述装置及方法精简了特征计算,提高了对俯躺和仰躺的识别速度及精度,实现了通过压力图像识别睡姿调节颈枕高度保护人体的目的。
The present invention provides a method and device for adjusting the height of a neck pillow for sleeping posture recognition based on a pressure image. The device includes pillow skin, pressure sensor, horizontal plate, side plate, electric push rod, fixed column, rotating shaft, control unit, down filling layer, power module and pressure sensor array. The power module provides sensor and controller power, and the pressure sensor array collects Human body pressure image, the pressure sensor receives the head pressure data, the control unit comprehensively analyzes the human body pressure image information and the head pressure data, and controls the electric push rod to rotate the side plate to change the height of the neck pillow. The above-mentioned device and method simplifies feature calculation, improves the recognition speed and accuracy of prone and supine lying, and achieves the purpose of recognizing the sleeping posture through pressure images and adjusting the height of the neck pillow to protect the human body.
Description
技术领域technical field
本发明涉及睡姿识别技术,特别涉及一种基于压力图像进行睡姿识别处理的颈枕高度调节方法及装置。The invention relates to a sleeping posture recognition technology, in particular to a method and a device for adjusting the height of a neck pillow for performing sleeping posture recognition processing based on a pressure image.
背景技术Background technique
越来越多的研究表明仰卧枕高和侧卧枕高与病人颈椎病的产生成正相关。枕头高度的不恰当会增加脊椎负担并且影响休息质量。而在根据身姿调节枕高保护颈椎的产品中,现有的睡姿识别技术主要有通过摄像头采集的图像识别和对压力传感器的压力识别。通过摄像头采集的图像进行识别,难以忽略实际情况中被子等物品的影响和夜光光线弱的影响,且产品安装难度大、影响房屋美观。通过压力传感器识别的方法解决了被子遮挡和夜间较暗的问题,但现有算法往往存在识别模式多但精度低和运算速度较慢等缺点。More and more studies have shown that supine pillow height and side pillow height are positively correlated with the occurrence of cervical spondylosis. Improper pillow height will increase the burden on the spine and affect the quality of rest. In the products that adjust the pillow height according to the body posture to protect the cervical spine, the existing sleeping posture recognition technology mainly includes image recognition through the camera and pressure recognition on the pressure sensor. For identification through the images collected by the camera, it is difficult to ignore the influence of quilts and other items and the influence of weak night light in the actual situation, and the installation of the product is difficult and affects the beauty of the house. The method of pressure sensor recognition solves the problems of quilt occlusion and dark night, but the existing algorithms often have shortcomings such as many recognition modes but low accuracy and slow operation speed.
发明内容SUMMARY OF THE INVENTION
因此为了进一步提高效果和效率,本发明提供了一种精简的睡姿识别方法。在睡姿识别方法中,针对睡眠中俯仰躺及不同侧躺的倾斜程度,通过计算压力传感器压力密度变化,结合人体在不同姿势下的压力分布信息和最佳枕高信息,提出了一种基于压力图像处理的睡姿识别方法,并得到了最佳枕高与不同睡姿的关系。Therefore, in order to further improve the effect and efficiency, the present invention provides a simplified sleeping posture recognition method. In the sleeping posture recognition method, according to the inclination of lying on one's back and lying on different sides during sleep, by calculating the pressure density change of the pressure sensor, combined with the pressure distribution information and the optimal pillow height information of the human body in different postures, a new method based on Sleeping position recognition method based on pressure image processing, and obtained the relationship between the optimal pillow height and different sleeping positions.
一种基于压力图像进行睡姿识别处理的颈枕高度调节方法,其包括以下步骤:A method for adjusting the height of a neck pillow for sleeping posture recognition processing based on a pressure image, comprising the following steps:
步骤S1:确定最佳枕高和调节方式;Step S1: determine the optimal pillow height and adjustment method;
建立最佳枕高预测函数Y:Establish the optimal pillow height prediction function Y:
其中,Y1为无颈椎病时的最佳枕高、Y2为有颈椎病时的最佳枕高、Y3为仰躺枕高、Y4为侧躺枕高、C为有无颈椎病,C为0代表无颈椎病,C为1代表有颈椎病、λ为颈枕高度调节度、F为调节方式函数;Among them, Y 1 is the best pillow height when there is no cervical spondylosis, Y 2 is the best pillow height when there is cervical spondylosis, Y 3 is the pillow height when lying on the back, Y 4 is the pillow height when lying on the side, and C is whether there is cervical spondylosis , C is 0 for no cervical spondylosis, C is 1 for cervical spondylosis, λ is the degree of adjustment of the height of the cervical pillow, and F is the adjustment function;
用户可通过改变调节时间ts和幂次γ选择调节方式函数F:The user can select the adjustment mode function F by changing the adjustment time t s and the power γ:
x为高度调节过程中调节到当前高度所用时间,ts为高度调节所用总时间,为常数;x is the time used to adjust to the current height during the height adjustment process, and t s is the total time used for height adjustment, which is a constant;
步骤S2:初步判断人体俯仰躺和侧躺;Step S2: Preliminarily determine whether the human body is lying on its back and lying on its side;
S21、由M*W个压力传感器组成的压力检测阵列收集人体在床上的压力信息,将获得的压力值转换为0-255的灰度值,转换表达式为:S21. The pressure detection array composed of M*W pressure sensors collects the pressure information of the human body on the bed, and converts the obtained pressure value into a gray value of 0-255, and the conversion expression is:
其中,N为压力传感器压力值,Nmax为压力最大值,Nmin为压力最小值,P为灰度值;Among them, N is the pressure value of the pressure sensor, N max is the maximum pressure value, N min is the minimum pressure value, and P is the gray value;
S22、计算压力密度ρ:S22. Calculate the pressure density ρ:
其中Ni为压力值,Pij为压力点个数;where Ni is the pressure value, and P ij is the number of pressure points;
引入双阈值K1、K2,当压力图像的压力密度ρ大于K1时,人体为俯仰躺,若压力图像的压力密度ρ小于K2时,人体为侧躺;Double thresholds K 1 and K 2 are introduced. When the pressure density ρ of the pressure image is greater than K 1 , the human body is lying on its back; if the pressure density ρ of the pressure image is less than K 2 , the human body is lying on its side;
步骤S3:识别人体俯躺和仰躺;Step S3: Recognize that the human body is lying on its back and lying on its back;
通过基于局部对称性和灰度统计特征的压力密集区域定位方法对压力密集区域进行定位,将压力密度大的区域进行中心对称变换,然后与原图像加权平均得到变换图像,获得标准差C1:The pressure-intensive area is located by the pressure-intensive area localization method based on local symmetry and grayscale statistical features, and the center-symmetric transformation is performed on the area with high pressure density, and then the transformed image is obtained by weighted averaging with the original image, and the standard deviation C 1 is obtained:
式中,Mi为检测窗口中的每个统计点,每个点记为1,Nij为该点压力值;In the formula, M i is each statistical point in the detection window, each point is denoted as 1, and N ij is the pressure value of the point;
遍历各区域位置信息得到中心位置信息,将上下两个标准差最大的情况进行标记,得到两定位范围,对定位范围进行比较,即:Traverse the location information of each area to obtain the center location information, mark the situation with the largest standard deviation of the upper and lower two, obtain two positioning ranges, and compare the positioning ranges, namely:
式中,S上、S下分别为距离头部中心Z最近的检测窗口区域和最远的检测窗口区域,a为上部分面积所占上下两部分面积比例,当a大于K6且S上和S下的距离d小于K7时人体为仰躺姿势,其余为俯躺姿势,其中d为S上和S下中心位置间的距离,K6为0.6,K7与上半身长H2相等;In the formula, S up and S are respectively the detection window area closest to the head center Z and the farthest detection window area, and a is the ratio of the upper and lower parts to the upper and lower areas. When a is greater than K 6 and S and the When the distance d under S is less than K 7 , the human body is in a supine position, and the rest are in a prone position, wherein d is the distance between the upper and lower central positions of S, K 6 is 0.6, and K 7 is equal to the upper body length H2;
步骤S4:建立头颈部高度随姿势变化模型,根据上述步骤检测的人体姿势调节最佳枕高。Step S4 : establishing a model for changing the height of the head and neck with posture, and adjusting the optimal pillow height according to the human posture detected in the above steps.
优选地,在所述S2中:Preferably, in said S2:
当压力图像的压力密度ρ介于K1和K2之间时,不能准确区分人体处于俯仰躺还是侧躺,此时人体为俯仰躺、未完全侧躺或已侧躺,通过引入压力图像的平衡度标准来判断人体姿势所处状态;When the pressure density ρ of the pressure image is between K 1 and K 2 , it is impossible to accurately distinguish whether the human body is lying on its back or on its side. Balance standard to judge the state of human body posture;
设定阈值K3、K4,对压力图像进行底帽变换去除噪声影响,同时选取若干灰度值大于K5的压力灰度图位置点,选取该点附近n*n个点进行平均差计算,平均差C3为Set the thresholds K 3 and K 4 , and perform bottom hat transformation on the pressure image to remove the influence of noise. At the same time, select a number of pressure gray image location points whose gray value is greater than K 5 , and select n*n points near the point to calculate the average difference , the average difference C3 is
式中,Pp为n*n个点灰度值的平均值,Pij为位置为(i,j)处的灰度值,当C3开始大于梯度阈值K3时,该点值为轮廓点,对各个轮廓点的位置进行统计,此时压力图像的平衡度B为:In the formula, P p is the average value of the gray value of n*n points, P ij is the gray value at the position (i, j), when C 3 begins to be greater than the gradient threshold K 3 , the point value is the contour point, the position of each contour point is counted, and the balance degree B of the pressure image at this time is:
B=|∑Li-∑Ri| (8)B=|∑L i -∑R i | (8)
式中,Li为中心线左边轮廓点,Ri为中心线右边轮廓点;In the formula, Li is the contour point on the left side of the center line, and Ri is the contour point on the right side of the center line;
构造影响函数r:Construct the influence function r:
当r处于0到K3时为仰俯躺,当r处于K4到0时为侧躺,当r处于其它值时人体为未完全侧躺状态。When r is from 0 to K 3 , it is lying on the back, when r is from K 4 to 0, it is lying on the side, and when r is at other values, the human body is not completely lying on the side.
优选地,当人体为仰躺姿势且时间t内压力密度变化缓慢时枕部高度为Y1;当人体为仰躺姿势且压力密度快速减小时,检测人体是否为侧躺,如果在时间t内人体仍为侧躺且压力密度变化缓慢,将枕高调整到Y2,如果在时间t内人体为俯躺且压力密度变化缓慢,将枕高调整到最低值Y3;当人体为侧躺姿势且时间t内压力密度变化缓慢时枕部高度为Y2;当人体为侧躺姿势且压力密度快速增大时,检测人体是否为仰躺,如果在时间t内人体仍为仰躺且压力密度变化缓慢,将枕高调整到Y1,如果在时间t内人体为俯躺且压力密度变化缓慢,将枕高调整到最低值Y3。Preferably, when the human body is in a supine position and the pressure density changes slowly within the time t, the height of the occiput is Y 1 ; when the human body is in a supine position and the pressure density decreases rapidly, it is detected whether the human body is lying on the side, if within the time t, the occipital height is Y 1 ; The human body is still lying on the side and the pressure density changes slowly, adjust the pillow height to Y 2 , if the human body is lying on the side and the pressure density changes slowly within the time t, adjust the pillow height to the lowest value Y 3 ; when the human body is in the side lying position And the occipital height is Y 2 when the pressure density changes slowly within the time t; when the human body is in a side lying position and the pressure density increases rapidly, it is detected whether the human body is lying on the back, if the human body is still lying on the back and the pressure density is still within the time t. If the change is slow, adjust the pillow height to Y 1 , if the person is prone to lie down and the pressure density changes slowly during time t, adjust the pillow height to the lowest value Y 3 .
一种基于压力图像进行睡姿识别处理的颈枕高度调节方法的颈枕高度调节装置,其包括枕头外皮、压力传感器、横板、侧板、电动推杆、固定柱、转轴、控制单元、羽绒填充层、电源模块、蓝牙模块和压力传感器阵列,所述电动推杆连接固定柱和侧板,所述固定柱连接横板,所述控制单元连接电动推杆、压力传感器和压力传感器阵列,所述电源模块向传感器及控制器提供电源,所述压力传感器阵列收集人体压力图像进行人体睡姿识别,所述压力传感器接收头部压力数据进行头部位置识别,所述控制单元综合分析人体压力图像信息和头部压力数据,并通过控制电动推杆使侧板转动,改变颈枕高度。A neck pillow height adjustment device for a neck pillow height adjustment method for sleeping posture recognition processing based on a pressure image, comprising a pillow skin, a pressure sensor, a horizontal plate, a side plate, an electric push rod, a fixed column, a rotating shaft, a control unit, a down Filling layer, power module, Bluetooth module and pressure sensor array, the electric push rod is connected to the fixed column and the side plate, the fixed column is connected to the horizontal plate, the control unit is connected to the electric push rod, the pressure sensor and the pressure sensor array, so The power module provides power to the sensor and the controller, the pressure sensor array collects human body pressure images for human sleep posture recognition, the pressure sensor receives head pressure data for head position recognition, and the control unit comprehensively analyzes the human body pressure images information and head pressure data, and by controlling the electric push rod to rotate the side plate to change the height of the neck pillow.
优选地,所述控制单元根据不同压力传感器压力大小确定头部中心位置,装置高度l与压力传感器压力N成负相关,装置高度与电动推杆长度L成正相关,函数式如下:Preferably, the control unit determines the center position of the head according to the pressure of different pressure sensors, the device height l is negatively correlated with the pressure sensor pressure N, and the device height is positively correlated with the electric push rod length L, and the function formula is as follows:
l=αN+βL (12)l=αN+βL (12)
其中,α、β为相关系数,其中α为正β为负。Among them, α and β are correlation coefficients, where α is positive and β is negative.
本发明与现有技术相比具有如下优点:Compared with the prior art, the present invention has the following advantages:
(1)通过分析人体不同姿势的压力分布来识别睡姿的方法,解决了被子遮挡及夜间光线较暗影响睡姿识别的问题;(1) The method of identifying the sleeping posture by analyzing the pressure distribution of different postures of the human body solves the problem that the quilt occlusion and the dark light at night affect the sleeping posture recognition;
(2)在压力密度对睡姿识别相对模糊的范围,引入了包括平衡度的构造函数来精确识别;(2) In the range where the pressure density is relatively ambiguous for the recognition of sleeping posture, a constructor including the balance degree is introduced to accurately recognize it;
(3)通过俯仰躺的上下压力分布范围不同的情况,引入了标准差判断,精简了特征计算;(3) The standard deviation judgment is introduced to simplify the feature calculation through the situation that the upper and lower pressure distribution ranges of the up and down lie are different;
(4)最后通过睡姿与有无颈椎病的最佳枕高模型实现了通过压力图像识别睡姿的颈椎保护。(4) Finally, through the optimal pillow height model of sleeping posture and cervical spondylosis, the cervical vertebra protection through pressure image recognition of sleeping posture is realized.
附图说明Description of drawings
图1是本发明压力检测阵列图;Fig. 1 is the pressure detection array diagram of the present invention;
图2a是本发明平衡度的轮廓点示意图;Fig. 2a is the outline point schematic diagram of the balance degree of the present invention;
图2b是本发明构造函数的取值范围示意图;Fig. 2b is the value range schematic diagram of the constructor of the present invention;
图3是本发明实施例装置示意图;3 is a schematic diagram of an apparatus according to an embodiment of the present invention;
图4是本发明的流程图;Fig. 4 is the flow chart of the present invention;
图5是本发明执行睡姿识别的示例性过程图;以及FIG. 5 is an exemplary process diagram of the present invention performing sleep posture recognition; and
图6a、6b和6c是本发明三种躺姿压力示意图。Figures 6a, 6b and 6c are schematic diagrams of three types of lying posture pressures of the present invention.
附图标记:Reference number:
枕头外皮10、压力传感器20、横板21、侧板22、电动推杆23、固定柱24、转轴25、控制单元26、羽绒填充层27、电源模块28、蓝牙模块29和压力传感器阵列30。
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
需要注意的为,除非另有说明,本申请使用的技术术语或者科学术语应当为本发明所属领域技术人员所理解的通常意义。It should be noted that, unless otherwise specified, the technical or scientific terms used in this application should have the usual meanings understood by those skilled in the art to which the present invention belongs.
为实现智能调节头颈部承托高度的思想,本发明提供了一种基于压力图像识别睡姿的颈椎保护方法及装置。流程如图4。In order to realize the idea of intelligently adjusting the support height of the head and neck, the present invention provides a cervical vertebra protection method and device for recognizing sleeping posture based on a pressure image. The process is shown in Figure 4.
步骤S1:确定最佳枕高和调节方式;Step S1: determine the optimal pillow height and adjustment method;
具体地,在步骤S1中,根据用户输入信息包括有无颈椎病C、右手掌宽R、肩颧距S1、身高H1、上半身长H2、肩宽S2、颈枕高度调节度λ、调节方式F、仰躺压力信息N等确定最佳枕高和调节方式。在建确定最佳枕高过程中,根据东南大学论文《睡枕高度、个体数据与颈椎病的相关性研究》中提到的人体右手掌宽、肩颧距、身高及体重与最佳枕高均有一定联系,且对应的相关系数分别为0.607、0.603、0.345、0.378的结论确定枕高模型。应用结论中提高的无颈椎病正常人最佳枕高的“同身寸”数据为右手掌宽,可根据回归方程式:Specifically, in step S1, the information input by the user includes whether there is cervical spondylosis C, right palm width R, shoulder - zygomatic distance S1, height H1, upper body length H2 , shoulder width S2, neck pillow height adjustment degree λ, adjustment Mode F, lying pressure information N, etc. determine the optimal pillow height and adjustment mode. In the process of determining the optimal pillow height, according to the relationship between the right palm width, shoulder-zygomatic distance, height and weight and the optimal pillow height of the human body mentioned in the paper "Sleeping Pillow Height, Individual Data and Cervical Spondylosis" of Southeast University There is a certain relationship, and the corresponding correlation coefficients are 0.607, 0.603, 0.345, 0.378 to determine the pillow height model. In the application conclusion, the best pillow height for normal people without cervical spondylosis is the width of the right palm, which can be calculated according to the regression equation:
Y1=1.558+0.807R (1)Y 1 =1.558+0.807R (1)
有颈椎病患者最佳枕高的“同身寸”数据为肩颧距,可根据回归方程式:The "same body size" data of the best pillow height for patients with cervical spondylosis is the shoulder-zygomatic distance, which can be calculated according to the regression equation:
Y2=2.001+0.726S1 (2)Y 2 =2.001+0.726S 1 (2)
其中,Y1为无颈椎病时的最佳枕高,Y2为有颈椎病时的最佳枕高。由此得到有颈椎病患者和无颈椎病患者的最佳枕高的个体化预测值。Among them, Y 1 is the best pillow height when there is no cervical spondylosis, and Y 2 is the best pillow height when there is cervical spondylosis. From this, individualized predictive values of optimal pillow height were obtained in patients with and without cervical spondylosis.
进一步地,根据人体是否有颈椎病设定适用于本人的λ值和调节方式函数F。将最佳枕高个体化预测值结合调节方式函数建立函数:Further, according to whether the human body has cervical spondylosis or not, the λ value and the adjustment method function F suitable for the person are set. The optimal pillow height individualized prediction value is combined with the adjustment mode function to establish a function:
其中,Y3为仰躺枕高、Y4为侧躺枕高、C为有无颈椎病,C为0代表无颈椎病,C为1代表有颈椎病、λ为颈枕高度调节度、F为调节方式函数。Among them, Y 3 is the height of the pillow lying on the back, Y 4 is the height of the pillow lying on the side, C is whether there is cervical spondylosis, C is 0 for no cervical spondylosis, C is 1 for cervical spondylosis, λ is the adjustment degree of cervical pillow height, F is the adjustment function.
设置不同的调节方式函数F可以提供不同的调节方式。可选的,将F设置成幂次函数,用户可通过改变调节时间ts和幂次γ选择自己舒适的调节方式:Setting different adjustment methods function F can provide different adjustment methods. Optionally, set F as a power function, and users can choose their own comfortable adjustment method by changing the adjustment time t s and the power γ:
x为高度调节过程中调节到当前高度所用时间,ts为高度调节所用总时间,为常数;x is the time used to adjust to the current height during the height adjustment process, and t s is the total time used for height adjustment, which is a constant;
步骤S2:初步判断人体姿势;Step S2: Preliminarily determine the posture of the human body;
S21、如图1所示,由M*W个压力传感器组成的压力检测阵列收集人体在床上的压力信息,将压力信息转换为压力图像和灰度图像。将获得的压力值转换为0-255的灰度值,转换表达式为:S21. As shown in FIG. 1, a pressure detection array composed of M*W pressure sensors collects the pressure information of the human body on the bed, and converts the pressure information into a pressure image and a grayscale image. Convert the obtained pressure value to a grayscale value of 0-255, the conversion expression is:
具体方法为:The specific method is:
其中,N为压力传感器压力值,Nmax为压力最大值,Nmin为压力最小值,P为灰度值。Among them, N is the pressure value of the pressure sensor, N max is the maximum pressure value, N min is the minimum pressure value, and P is the gray value.
S22、计算压力密度并引入双阈值K1、K2,压力密度ρ的计算方法为:S22. Calculate the pressure density and introduce the double thresholds K 1 and K 2 . The calculation method of the pressure density ρ is:
其中,Ni为压力值,Pij为压力点个数。Among them, Ni is the pressure value, and P ij is the number of pressure points.
进一步地,图6为三种躺姿压力示意图,图6a为侧躺、图6b为仰躺、图6c为俯躺,该图示意压力传感器受力情况,其中颜色越深表示压力越大,人体俯躺或仰躺受力面积大于人体侧躺受力面积,而人体质量不变,因此人体俯躺或仰躺的压力密度小于侧躺压力密度。当压力图像的压力密度ρ大于K1时,此时人体为俯仰躺,若压力图像的压力密度ρ小于K2时,此时人体为侧躺;而当压力图像的压力密度ρ介于K1和K2之间时,人体为俯仰躺、未完全侧躺或已侧躺状态。其中K1和K2的值由仰躺压力信息S确定,S值获得方式为记录人体平躺时的压力分布信息,即用户标准平躺时的压力密度,由该信息计算压力密度。可选地,K1小于1.2倍的S,K2介于1.5倍的S和2倍的S之间。Further, Fig. 6 is a schematic diagram of three kinds of lying posture pressure, Fig. 6a is lying on the side, Fig. 6b is lying on the back, Fig. 6c is lying on the prone, this figure shows the stress situation of the pressure sensor, wherein the darker the color, the greater the pressure, the human body. The force-bearing area of lying down or lying on your back is larger than the force-bearing area of lying on your side, but the mass of the human body remains unchanged, so the pressure density of lying on your stomach or lying on your back is smaller than that of lying on your side. When the pressure density ρ of the pressure image is greater than K 1 , the human body is lying on its back; if the pressure density ρ of the pressure image is less than K 2 , the human body is lying on the side; and when the pressure density ρ of the pressure image is between K 1 Between K2 and K2, the human body is lying on its back, not completely lying on its side, or already lying on its side. The values of K 1 and K 2 are determined by the supine pressure information S, and the S value is obtained by recording the pressure distribution information when the human body is lying flat, that is, the pressure density when the user is lying on a standard flat surface, and calculating the pressure density from this information. Optionally, K1 is less than 1.2 times S and K2 is between 1.5 times S and 2 times S.
进一步地,为更精确的判断人体姿势所处状态,引入压力图像的平衡度标准。Further, in order to more accurately judge the state of the human body posture, the balance standard of the pressure image is introduced.
S23、具体地,首先根据上半身长H2和肩宽S2确定灰度图像对称轴。以压力传感器20受力最大位置为中心Z,以上半身长H2为距离,当与Z距离为H2的位置有压力信息时,记录该位置并计算各个位置距离,当所有记录位置中两点间的距离和肩宽S2最接近时,将标记两点,两点中心到Z的线即为对称轴。S23. Specifically, first determine the symmetry axis of the grayscale image according to the upper body length H2 and the shoulder width S2. Taking the maximum force position of the
设定阈值K3、K4,对压力图像进行底帽变换去除一定噪声影响,接着选取若干灰度值大于K5的压力灰度图位置点,选取该点附近n*n个点进行平均差计算,平均差C3为Set the thresholds K 3 and K 4 , perform bottom hat transformation on the pressure image to remove certain noise effects, and then select a number of pressure gray image location points with gray values greater than K 5 , and select n*n points near the point to average the difference Calculated, the average difference C3 is
式中,Pp为n*n个点灰度值的平均值,Pij为位置为(i,j)处的灰度值,当C3开始大于梯度阈值K3时,该点值为轮廓点。对各个轮廓点的位置进行统计,此时压力图像的平衡度B为:In the formula, P p is the average value of the gray value of n*n points, P ij is the gray value at the position (i, j), when C 3 begins to be greater than the gradient threshold K 3 , the point value is the contour point. The position of each contour point is counted, and the balance B of the pressure image is:
B=|∑Li-∑Ri| (8)B=|∑L i -∑R i | (8)
式中,Li为中心线左边轮廓点,Ri为中心线右边轮廓点。In the formula, Li is the contour point on the left side of the center line, and Ri is the contour point on the right side of the center line.
平衡度B含有俯仰躺、未完全侧躺或已侧躺三种情况下的数据信息,如图2a平衡度的轮廓点示意图所示,该图示意人体未完全侧躺时中心线两侧受力下轮廓点。进一步地构造影响函数r:The balance degree B contains the data information in three situations: lying on your back, not completely lying on your side, or lying on your side, as shown in the schematic diagram of the contour points of the balance degree in Figure 2a, which shows that the human body is not completely lying on its side and the force on both sides of the center line lower contour point. Further construct the influence function r:
如图2b所示,当r处于0到K3时为仰俯躺,当r处于K4到0时为侧躺,当r处于其它值时人体为未完全侧躺状态,K3和K4取值与B相关,K5的取值与K1和K2相关。As shown in Figure 2b, when r is from 0 to K 3 , it is lying on its back, when r is from K 4 to 0, it is lying on its side, and when r is at other values, the human body is not completely lying on its side, K 3 and K 4 The value is related to B, and the value of K5 is related to K1 and K2 .
进一步地,通过以上过程可以初步判断人体姿势,即仰俯躺和侧躺。Further, through the above process, the posture of the human body can be preliminarily determined, that is, lying on one's back and lying on one's side.
步骤S3:识别人体俯躺及仰躺;Step S3: Recognize that the human body is lying on its back and lying on its back;
具体地,在步骤S3中,在步骤S2初步判断人体姿势后,对得到的仰俯躺进行判断分析得到仰俯躺信息,过程如图5睡姿识别示意图所示。Specifically, in step S3, after the human body posture is preliminarily determined in step S2, the obtained reclining and reclining information is obtained by judging and analyzing, and the process is shown in the schematic diagram of sleeping posture recognition in FIG. 5 .
具体地,在判断人体仰俯躺信息过程中,通过基于局部对称性和灰度统计特征的压力密集区域定位方法对压力密集区域进行定位。首先压力密度大的区域灰度值变化大,因此该区域标准差较大。在俯躺和仰躺压力信息中,均有上下两个压力密度大的区域,该区域具有较好的上下对称性,所以将该区域进行上下对称变换,然后与原图像加权平均得到变换图像,对变换图像计算标准差,标准差处于峰值的区域为要识别的压力密度大的区域。需要说明的是,计算标准差之前需对无压力信息的位置赋均值,具体的,参考头部位置Z、身高H1、肩宽S2和对称轴,以对称轴为中心建立大小为H1*S2的检测区域,计算该区域均值并把压力小于10的位置赋均值。标准差C1的计算过程为:Specifically, in the process of judging the information about the body's upside-down and downsides, the pressure-intensive area is located by a pressure-intensive area location method based on local symmetry and grayscale statistical features. First of all, the gray value of the area with high pressure density changes greatly, so the standard deviation of this area is large. In the lying and lying pressure information, there are upper and lower regions with high pressure density, and this region has good upper and lower symmetry, so this region is transformed up and down symmetrically, and then the transformed image is obtained by weighted averaging with the original image. The standard deviation is calculated for the transformed image, and the area where the standard deviation is at the peak is the area with high pressure density to be identified. It should be noted that the mean value should be assigned to the position without pressure information before calculating the standard deviation. Specifically, referring to the head position Z, height H1, shoulder width S2 and the symmetry axis, the size is H1*S centered on the symmetry axis. The detection area of 2 , calculate the average value of this area and assign the average value to the position where the pressure is less than 10. The standard deviation C1 is calculated as:
式中,Mi为检测窗口中的每个统计点,每个点记为1,Nij为该点压力值,统计窗口大小为变成为肩宽S2的方形区域。筛选标准差最大的几个区域作为候选区域。In the formula, M i is each statistical point in the detection window, each point is denoted as 1, N ij is the pressure value of the point, and the size of the statistical window is a square area that becomes the shoulder width S 2 . The regions with the largest standard deviation were selected as candidate regions.
遍历各区域位置信息得到中心位置信息,将每个处于波峰的标准差最大的情况进行标记。结合各个标记位置的距离得到两定位范围,对定位范围和距离分别进行比较得到俯躺或仰躺信息,即:Traverse the position information of each area to obtain the center position information, and mark each case where the standard deviation of the peak is the largest. Combining the distances of each marked position to obtain two positioning ranges, and comparing the positioning ranges and distances respectively, the lying or lying information is obtained, namely:
式中,S上、S下分别为距离头部中心Z最近的检测窗口区域和最远的检测窗口区域。如图6c俯躺和图6b仰躺压力示意图所示,俯躺及仰躺示意图中上方方框为S上,下方方框为S下,a为上部分面积所占上下两部分面积和的比例。当a大于K6且S上和S下的距离d小于K7时人体为仰躺姿势,其余为俯躺姿势。d为S上和S下中心位置间的距离,K6的值和K7的值与人体体重分布有关,这里取K6为0.6,取K7为上半身长H2的值。In the formula, S- up and S- down are the detection window area closest to the head center Z and the farthest detection window area, respectively. As shown in Fig. 6c and Fig. 6b the pressure diagram of lying on the back, the upper box is S -up , the lower box is S- down , and a is the ratio of the area of the upper part to the sum of the area of the upper and lower parts. . When a is greater than K 6 and the distance d between the upper and lower sides of S is smaller than K 7 , the human body is in the supine position, and the rest are in the prone position. d is the distance between the upper and lower central positions of S, the value of K 6 and K 7 are related to the body weight distribution, here K 6 is taken as 0.6, and K 7 is taken as the value of the upper body length H2.
在识别人体俯躺及仰躺姿势的实施例中,压力图像的像素数量等于压力传感器数量,像素数量为500*280。请参阅图6b,其中图6b含有三个处于波峰的标准差,记为C11、C12和C13,大小分别为26.49,33.37和37.11,最大距离为C11和C13的距离,距离d大小为158。C11为S上,C13为S下,S上的范围为24002,S下的范围为12907,a为0.65,上半身长H2为244,由此得到姿势为仰躺。In the embodiment of recognizing the prone and supine postures of the human body, the number of pixels of the pressure image is equal to the number of pressure sensors, and the number of pixels is 500*280. Please refer to Fig. 6b, wherein Fig. 6b contains three standard deviations at the peaks, denoted as C 11 , C 12 and C 13 , the sizes are 26.49, 33.37 and 37.11 respectively, the maximum distance is the distance of C 11 and C 13 , the distance d The size is 158. C 11 is S up , C 13 is S down , the range on S is 24002, the range below S is 12907, a is 0.65, and the upper body length H2 is 244, so the posture is lying on the back.
图6c含有两个处于波峰的标准差,记为C21和C22,大小分别为33.98和35.06,最大距离为C21和C22的距离,距离d大小为274。C21为S上,C22为S下,S上的范围为19317,S下的范围为22172,a为0.47,上半身长H2为244,由此得到姿势为俯躺。Figure 6c contains two standard deviations at the peaks, denoted as C 21 and C 22 , whose magnitudes are 33.98 and 35.06, respectively, the maximum distance is the distance between C 21 and C 22 , and the distance d is 274. C 21 is S up , C 22 is S down , the range on S is 19317, the range below S is 22172, a is 0.47, and the upper body length H2 is 244, so the posture is prone.
S上和S下的位置如图6b和图6c所示。The positions above S and below S are shown in Fig. 6b and Fig. 6c.
S4:建立头颈部高度随姿势变化模型;S4: Establish a model of head and neck height changes with posture;
具体地,在步骤S4中,根据上述步骤检测的人体姿势,即侧躺、俯躺和仰躺调节最佳枕高。Specifically, in step S4, the optimal pillow height is adjusted according to the human body postures detected in the above steps, that is, lying on the side, lying on the prone, and lying on the back.
当人体为仰躺姿势且时间t内压力密度变化缓慢时枕部高度为Y1,当人体为仰躺姿势且压力密度快速减小时,检测人体是否为侧躺,如果在时间t内人体仍为侧躺且压力密度变化缓慢,将枕高调整到Y2,如果在时间t内人体为俯躺且压力密度变化缓慢,将枕高调整到最低值Y3。当人体为侧躺姿势且时间t内压力密度变化缓慢时枕部高度为Y2,当人体为侧躺姿势且压力密度快速增大时,检测人体是否为仰躺,如果在时间t内人体仍为仰躺且压力密度变化缓慢,将枕高调整到Y1,如果在时间t内人体为俯躺且压力密度变化缓慢,将枕高调整到最低值Y3。When the human body is in the supine position and the pressure density changes slowly within the time t, the height of the occiput is Y 1 . When the human body is in the supine position and the pressure density decreases rapidly, it is detected whether the human body is lying on the side. When lying on the side and the pressure density changes slowly, adjust the pillow height to Y 2 . If the human body is prone and the pressure density changes slowly within the time t, adjust the pillow height to the lowest value Y 3 . When the human body is in the side lying position and the pressure density changes slowly within the time t, the height of the occiput is Y 2 . When the human body is in the side lying position and the pressure density increases rapidly, it is detected whether the human body is lying on its back. In order to lie on the back and the pressure density changes slowly, adjust the pillow height to Y 1 . If the person is prone to lie on the stomach and the pressure density changes slowly within the time t, adjust the pillow height to the lowest value Y 3 .
进一步地,一个调整头颈部高度的装置实施例如图3所示,结构包括枕头外皮10、压力传感器20、横板21、侧板22、电动推杆23、固定柱24、转轴25、控制单元26、羽绒填充层27、电源模块28、蓝牙模块29和压力传感器阵列30等。Further, an embodiment of the device for adjusting the height of the head and neck is shown in FIG. 3, the structure includes a
在调整头颈部高度的装置中,电源模块28连接压力传感器20、电动推杆23、控制单元26、蓝牙模块29和压力传感器阵列30等,电源模块28提供传感器及控制器电源,压力传感器阵列30收集人体压力图像,压力传感器20接收头部压力数据,蓝牙模块29传输蓝牙数据与手机等终端交互,控制单元26综合分析压力传感器26信息及压力图像信息。电动推杆23连接固定柱24和侧板22,固定柱24连接横板21。控制单元26连接电动推杆23、压力传感器20和压力传感器阵列30,压力传感器阵列30接收人体压力信息并将信息传入控制单元26进行人体睡姿识别。压力传感器20接收头部压力数据并传入控制单元26进行头部位置识别。In the device for adjusting the height of the head and neck, the
控制单元26通过控制电动推杆23长度引发侧板22在转轴25连接下转动。侧板22转动使装置内部受力结构变化进而改变受力情况下装置高度。当颈枕高度需要增高时,头部中心位置附近的电动推杆23伸长引发转轴25转动和侧板22向外翻转,羽绒填充层27升高使颈枕升高。反之颈枕降低。其中控制单元26根据不同压力传感器压力大小确定头部中心位置,装置高度与压力传感器压力负相关,装置高度与电动推杆23长度成正相关。具体地可按下式:The
l=αN+βL (12)l=αN+βL (12)
其中,l为装置高度,N为压力值,L为电动推杆长度,α、β为相关系数,其中α为正β为负。Among them, l is the height of the device, N is the pressure value, L is the length of the electric push rod, α and β are the correlation coefficients, where α is positive and β is negative.
以上所述各实施例仅用于说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应该理解:其依然能对前述实施例所记载的技术方案进行修改,或者对其中部分或全部技术特征进行等同替换;而这些修改或替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。The above-mentioned embodiments are only used to illustrate the technical solutions of the present invention, but not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that it can still be used for the foregoing implementations. The technical solutions described in the examples are modified, or some or all of the technical features thereof are equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.
Claims (5)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010820060.3A CN112001286B (en) | 2020-08-14 | 2020-08-14 | Neck pillow height adjustment method and device for sleeping posture recognition processing based on pressure image |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010820060.3A CN112001286B (en) | 2020-08-14 | 2020-08-14 | Neck pillow height adjustment method and device for sleeping posture recognition processing based on pressure image |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112001286A true CN112001286A (en) | 2020-11-27 |
CN112001286B CN112001286B (en) | 2022-07-08 |
Family
ID=73473745
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010820060.3A Active CN112001286B (en) | 2020-08-14 | 2020-08-14 | Neck pillow height adjustment method and device for sleeping posture recognition processing based on pressure image |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112001286B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114569118A (en) * | 2022-05-06 | 2022-06-03 | 慕思健康睡眠股份有限公司 | Sleeping posture detection system and method |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103689965A (en) * | 2014-01-10 | 2014-04-02 | 林水龙 | Pillow with adjustable height |
CN203934951U (en) * | 2014-05-06 | 2014-11-12 | 张紫娟 | A kind of height-adjustable pillow |
CN106056116A (en) * | 2016-05-31 | 2016-10-26 | 河北工业大学 | Fuzzy rough set-based sleeping posture pressure image recognition method |
CN209595380U (en) * | 2019-01-30 | 2019-11-08 | 深圳航伴科技有限责任公司 | The pillow of automatic adjusument height |
CN110432724A (en) * | 2019-08-28 | 2019-11-12 | 南通金露智能设备有限公司 | A kind of change with sleeping position and the pillow of automatic controlled height |
KR20200073909A (en) * | 2018-12-16 | 2020-06-24 | 박홍제 | Height adjustable smart pillow |
-
2020
- 2020-08-14 CN CN202010820060.3A patent/CN112001286B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103689965A (en) * | 2014-01-10 | 2014-04-02 | 林水龙 | Pillow with adjustable height |
CN203934951U (en) * | 2014-05-06 | 2014-11-12 | 张紫娟 | A kind of height-adjustable pillow |
CN106056116A (en) * | 2016-05-31 | 2016-10-26 | 河北工业大学 | Fuzzy rough set-based sleeping posture pressure image recognition method |
KR20200073909A (en) * | 2018-12-16 | 2020-06-24 | 박홍제 | Height adjustable smart pillow |
CN209595380U (en) * | 2019-01-30 | 2019-11-08 | 深圳航伴科技有限责任公司 | The pillow of automatic adjusument height |
CN110432724A (en) * | 2019-08-28 | 2019-11-12 | 南通金露智能设备有限公司 | A kind of change with sleeping position and the pillow of automatic controlled height |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114569118A (en) * | 2022-05-06 | 2022-06-03 | 慕思健康睡眠股份有限公司 | Sleeping posture detection system and method |
Also Published As
Publication number | Publication date |
---|---|
CN112001286B (en) | 2022-07-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2019179378A1 (en) | Bedding and method for adjusting bedding | |
US20110019026A1 (en) | Image processing system | |
CN104471589B (en) | Patient Interface Identification System | |
CN104008364B (en) | Face identification method | |
Huang et al. | Multimodal sleeping posture classification | |
CN108244874B (en) | Automatic adjusting bed | |
KR101197863B1 (en) | A potable device for skin diagnosis and computer recordable medium storing a method thereof | |
CN111881898B (en) | Human Pose Detection Method Based on Monocular RGB Image | |
CN111291701B (en) | Sight tracking method based on image gradient and ellipse fitting algorithm | |
CN112001286B (en) | Neck pillow height adjustment method and device for sleeping posture recognition processing based on pressure image | |
CN113749467A (en) | Sleep improvement method and intelligent mattress | |
CN108814123A (en) | A kind of soft or hard adjustable intelligent bed body with anti-sound of snoring function | |
CN106056116A (en) | Fuzzy rough set-based sleeping posture pressure image recognition method | |
CN111657723A (en) | Intelligent pillow capable of adaptively adjusting height based on sleeping posture and control method thereof | |
CN105956512A (en) | Air conditioner temperature automatic regulating system and air conditioner temperature automatic regulating method based on machine vision | |
CN114187166A (en) | Image processing method, intelligent terminal and storage medium | |
JP2010186274A (en) | Sunglasses wearing detection apparatus | |
US20110019741A1 (en) | Image processing system | |
CN111481024B (en) | Method for automatically adjusting intelligent pillow and intelligent pillow thereof | |
CN117671739A (en) | User identity recognition method and device | |
KR102495889B1 (en) | Method for detecting facial wrinkles using deep learning-based wrinkle detection model trained according to semi-automatic labeling and apparatus for the same | |
JP2008123216A (en) | Authentication system and method | |
CN113688718B (en) | A non-interference adaptive sleeping posture recognition method based on pillow finite element analysis | |
CN107943527A (en) | The method and its system of electronic equipment is automatically closed in sleep | |
JP4738914B2 (en) | Monitoring system, monitoring method, and monitoring program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |