Temperature control method of temperature control bed and temperature control bed
By combining infrared thermal imaging and temperature control devices, the pixel changes between the user and the quilt are analyzed, and the temperature of the temperature-controlled bed is dynamically adjusted. This solves the problem that a single temperature sensor cannot accurately judge the user's thermal perception, and improves the temperature control effect and user comfort of the temperature-controlled bed.
Patent Information
- Application Number
- CN202511116769.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-11
- Publication Date
- 2025-10-17
AI Technical Summary
Existing temperature-controlled beds use a single temperature sensor to detect the bed surface temperature, which is unable to accurately determine the actual thermal sensation of an individual user, resulting in poor temperature control effects.
Using an infrared thermal imaging device and a temperature control device, the system periodically obtains mattress temperature data and infrared images, analyzes the pixel changes between the user and the quilt, and dynamically adjusts the mattress temperature to match the user's actual thermal sensation.
The temperature control of the temperature-controlled bed is accurate and flexible, and it can respond to the user's actions of lifting or covering the quilt in time, providing a more comfortable sleeping environment.
Smart Images

Figure CN120788362A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present disclosure relates to the technical field of home furnishing, and particularly relates to a temperature control method of a temperature-controlled bed and the temperature-controlled bed. BACKGROUND
[0002] With the improvement of living standards, users' requirements for sleep quality are also increasing. Therefore, in the related art, a temperature-controlled bed is proposed, which mainly detects the bed surface temperature through a single temperature sensor and controls the temperature of the temperature-controlled bed according to the bed surface temperature. However, the single temperature sensor can only obtain the overall temperature information of the bed surface, and it is difficult to determine the actual thermal sensation of the individual user, thereby resulting in poor temperature control effect. SUMMARY
[0003] Therefore, the present disclosure provides a temperature control method of a temperature-controlled bed and the temperature-controlled bed to solve the problem of poor temperature control effect of the temperature-controlled bed.
[0004] In a first aspect, the present disclosure provides a temperature control method of a temperature-controlled bed, the temperature-controlled bed comprising a mattress, a temperature adjusting device, and an infrared thermal imaging device, the infrared thermal imaging device being arranged above the mattress; the method comprising:
[0005] periodically obtaining target temperature data of a detection object on the mattress;
[0006] controlling the temperature adjusting device based on the target temperature data;
[0007] obtaining a current infrared image and a previous infrared image collected by the infrared thermal imaging device;
[0008] analyzing the action of the detection object on the quilt based on the pixel change between the detection object and the quilt in the current infrared image and the previous infrared image;
[0009] controlling the temperature adjusting device based on the action to adjust the temperature of the temperature-controlled bed.
[0010] In the method, the actual thermal perception of the detection object can be known by periodically acquiring the target temperature data of the detection object on the mattress. Then, the temperature adjusting device is controlled based on the target temperature data, so that the temperature of the mattress can be dynamically adjusted according to the actual thermal perception of the detection object. The action of the detection object on the quilt can be captured in a timely and accurate manner by analyzing the pixel change of the detection object and the quilt between the current infrared image and the previous infrared image, so that the temperature of the temperature control bed can be adjusted based on the action of the detection object on the quilt, so as to ensure that the temperature adjustment matches the actual thermal perception of the detection object, thereby effectively improving the temperature control effect of the temperature control bed.
[0011] In an optional embodiment, the action of the detection object on the quilt is obtained based on the pixel change of the detection object and the quilt between the current infrared image and the previous infrared image, including:
[0012] The pixel change rate of the detection object and the quilt is obtained based on the pixel change of the detection object and the quilt between the current infrared image and the previous infrared image.
[0013] The action analysis result of the detection object on the quilt is obtained based on the comparison result of the pixel change rate and the preset change rate threshold.
[0014] The area change of the uncovered area of the detection object by the quilt is determined based on the size of the uncovered area of the detection object by the quilt in the current infrared image and the previous infrared image.
[0015] The action of the detection object on the quilt is determined based on the action analysis result and the area change.
[0016] In the method, the pixel change rate is calculated based on the pixel change of the detection object and the quilt between the current infrared image and the previous infrared image, so that the pixel change rate can reflect the change of the quilt covering state of the detection object from the previous infrared image to the current infrared image. Then, the pixel change rate is compared with the preset change rate threshold, so as to assist in judging the actual action of the detection object on the quilt and improving the accuracy of the action recognition of the detection object on the quilt. The area change is determined according to the size of the uncovered area of the detection object by the quilt in the current infrared image and the previous infrared image, so as to present the relative state change of the detection object and the quilt from another dimension, thereby supplementing the basis for analyzing the action of the detection object on the quilt. The action of the detection object on the quilt is determined by combining the action analysis result and the area change, so as to more comprehensively and accurately recognize the action of the detection object on the quilt.
[0017] In an alternative embodiment, the pixel change rate of the detection object and the quilt is obtained based on the pixel change of the detection object and the quilt between the current infrared image and the previous infrared image, comprising:
[0018] performing target detection on the current infrared image to obtain a first area of the detection object and the quilt in the current infrared image;
[0019] performing target detection on the previous infrared image to obtain a second area of the detection object and the quilt in the previous infrared image;
[0020] obtaining the pixel change rate of the detection object and the quilt based on the difference between the pixel number of the first area and the pixel number of the second area.
[0021] In the method, target detection is performed on the current infrared image and the previous infrared image respectively to obtain a first area of the detection object and the quilt in the current infrared image and a second area of the detection object and the quilt in the previous infrared image, and then the pixel numbers of the first area and the second area are calculated, and the pixel change rate is calculated based on the difference between the pixel numbers of the first area and the second area, so that the change of the area occupied by the detection object and the quilt in the previous infrared image and the current infrared image can be intuitively presented in a quantitative form, so as to accurately determine the action change of the detection object to the quilt.
[0022] In an alternative embodiment, the action of the detection object to the quilt is determined based on the action analysis result and the area change, comprising:
[0023] if the action analysis result indicates that the detection object moves the quilt, and the area change indicates that the area of the uncovered area of the detection object by the quilt increases, it is determined that the action is that the detection object lifts the quilt;
[0024] if the action analysis result indicates that the detection object moves the quilt, and the area change indicates that the area of the uncovered area of the detection object by the quilt decreases, it is determined that the action is that the detection object covers the quilt.
[0025] In the method, when the action analysis result indicates that the detection object moves the quilt, and the area change indicates that the area of the uncovered area of the detection object by the quilt increases, it is determined that the detection object lifts the quilt. When the action analysis result indicates that the detection object moves the quilt, and the area of the uncovered area of the detection object decreases, it is determined that the detection object covers the quilt. Therefore, the error of single factor determination can be effectively avoided, and the accuracy and reliability of the lifting and covering actions of the quilt are improved.
[0026] In an optional implementation, the temperature adjusting device comprises a heating device and a ventilation device; and the adjusting the temperature adjusting device based on the target temperature data comprises:
[0027] if the target temperature data is less than a first preset temperature value, adjusting the heating device to increase the temperature of the mattress;
[0028] if the target temperature data is greater than a second preset temperature value, adjusting the ventilation device to decrease the temperature of the mattress, the first preset temperature value being less than the second preset temperature value.
[0029] In the method, the temperature adjusting device comprises a heating device and a ventilation device, which can meet the requirement of increasing or decreasing the temperature of the mattress in different scenarios. When the target temperature data is less than the first preset temperature value, the heating device is adjusted to increase the temperature of the mattress, so as to increase the temperature when the detected object feels cold, and create a warm and comfortable sleeping environment. When the target temperature data is greater than the second preset temperature value, the ventilation device is adjusted to decrease the temperature of the mattress, so as to effectively dissipate heat when the detected object feels hot.
[0030] In an optional implementation, the adjusting the heating device comprises:
[0031] controlling the heating device to start up and adjusting the heating power of different heating areas of the heating device to initial power corresponding to the heating areas, when the heating device is not started up;
[0032] controlling the heating device to increase the heating power of each of the heating areas, when the heating device is in a started-up state.
[0033] In the method, when the target temperature data is less than the second preset temperature value, the heating device is controlled to start up and the power of different heating areas is adjusted to initial power corresponding to the heating areas, when the heating device is not started up, so as to adapt to the temperature requirement of the detected object for different heating areas. When the heating device is in a started-up state, the heating device is controlled to increase the power of each of the heating areas. Therefore, when the target temperature data represents that the detected object feels cold, the temperature of each of the heating areas is gradually increased, so as to improve the temperature control effect of the temperature control bed.
[0034] In an optional implementation, the adjusting the ventilation device comprises:
[0035] controlling the ventilation device to start up, when the ventilation device is not started up;
[0036] When the ventilation device is in the starting state, the ventilation device is controlled to increase the air outlet wind speed and increase the number of open air outlets.
[0037] In the method, when the target temperature data is greater than the second preset temperature value, the ventilation device is controlled to start when the ventilation device is not started, so that heat dissipation can be performed by the ventilation device to reduce the temperature of the mattress. When the ventilation device is in the starting state, the ventilation device is controlled to increase the air outlet wind speed and increase the number of open air outlets, so that the ventilation intensity can be dynamically adjusted according to the target temperature data, and the flexibility and adaptability of temperature control of the temperature control bed are enhanced, so as to improve the temperature control effect of the temperature control bed.
[0038] In an optional embodiment, the temperature adjusting device is controlled based on the action condition to adjust the temperature of the temperature control bed, comprising:
[0039] If the action condition indicates that the detection object lifts the quilt and the heating device is in the starting state, the heating power of the heating device is reduced, and the temperature adjusting device is controlled based on the target temperature data within a first preset time period.
[0040] If the action condition indicates that the detection object covers the quilt and the ventilation device is in the starting state, the air outlet wind speed of the ventilation device is reduced, and the temperature adjusting device is controlled based on the target temperature data within a second preset time period.
[0041] In the method, when the action condition indicates that the detection object lifts the quilt and the heating device is in the starting state, the heating power of the heating device is reduced and the temperature adjusting device is controlled, so as to avoid overheating of the temperature control bed. When the action condition indicates that the detection object covers the quilt and the ventilation device is in the starting state, the air outlet wind speed of the ventilation device is reduced and the temperature adjusting device is controlled, so as to avoid excessive cooling of the temperature control bed, so that the temperature adjustment is more in line with the actual needs of the detection object, thereby better maintaining a comfortable temperature environment.
[0042] In an optional embodiment, the temperature control bed further comprises a temperature detection device arranged on the surface of the mattress, and the periodic acquisition of the target temperature data of the detection object on the mattress comprises:
[0043] Periodically acquiring first temperature data of a plurality of regions of the mattress collected by the temperature detection device and a target infrared image collected by the infrared thermal imaging device;
[0044] Based on the average value of the first temperature data, a first average temperature is obtained.
[0045] perform temperature analysis on the detection object based on the target infrared image to obtain second temperature data of multiple regions of the detection object;
[0046] obtain a second average temperature based on an average value of the second temperature data;
[0047] perform weighted summation on the first average temperature and the second average temperature to obtain the target temperature data.
[0048] In the method, the first temperature data of multiple regions of the mattress collected by the comprehensive temperature detection device and the second temperature data of multiple regions of the mattress collected by the infrared thermal imaging device are combined to determine the target temperature data of the detection object. On the one hand, the accuracy of temperature detection of the detection object can be improved by combining two temperature detection methods. On the other hand, the target temperature data is determined by the weighted summation result of the first average temperature of the first temperature data and the second average temperature of the second temperature data, which can eliminate local temperature fluctuation interference, thereby accurately reflecting the overall temperature condition of the detection object, so that the target temperature data is more in line with the overall temperature condition of the detection object, to further improve the accuracy of temperature adjustment of the temperature control bed.
[0049] In an alternative embodiment, the temperature control bed comprises:
[0050] a mattress;
[0051] a temperature adjustment device arranged in the mattress;
[0052] an infrared thermal imaging device arranged above the mattress;
[0053] a temperature control device configured to perform the temperature control method of the temperature control bed according to the first aspect or any one of the alternative embodiments thereof.
[0054] The beneficial effects of the temperature control bed correspond to the beneficial effects of the temperature control method of the temperature control bed, which will not be repeated here. BRIEF DESCRIPTION OF DRAWINGS
[0055] In order to more clearly illustrate the technical solutions in the specific embodiments of the present disclosure or the prior art, the drawings needed in the specific embodiments or prior art description will be briefly introduced. Obviously, the drawings in the following description are some embodiments of the present disclosure, and those skilled in the art can also obtain other drawings according to these drawings without creative labor.
[0056] Figure 1 is a flowchart of a temperature control method of a temperature control bed according to an embodiment of the present disclosure;
[0057] Figure 2is a flowchart of a temperature control method of a second temperature control bed according to an embodiment of the present disclosure;
[0058] Figure 3 is a flowchart of a temperature control method of a third temperature control bed according to an embodiment of the present disclosure;
[0059] Figure 4 is a flowchart of a temperature control method of a fourth temperature control bed according to an embodiment of the present disclosure
[0060] Figure 5 is a structural block diagram of a temperature control device according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0061] To make the objects, technical solutions, and advantages of the embodiments of the present disclosure clearer, the technical solutions in the embodiments of the present disclosure will be described clearly and completely below with reference to the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are some but not all of the embodiments of the present disclosure. Based on the embodiments in the present disclosure, all other embodiments obtained by a person of ordinary skill in the art without creative work fall within the protection scope of the present disclosure.
[0062] With the improvement of living standards, users' requirements for sleep quality are also increasing. Therefore, a temperature control bed is proposed in the related art. The temperature control bed mainly detects the bed surface temperature through a single temperature sensor and controls the temperature of the temperature control bed according to the bed surface temperature. However, the single temperature sensor can only obtain the overall temperature information of the bed surface and cannot accurately determine the actual thermal feeling of the individual user, thereby resulting in poor temperature control effect.
[0063] Therefore, according to an embodiment of the present disclosure, a temperature control method of a temperature control bed is provided. It should be noted that the steps shown in the flowchart of the drawings can be executed in a computer system such as a group of computer executable instructions, and although the logical order is shown in the flowchart, in some cases, the steps shown or described herein can be executed in an order different from that shown herein.
[0064] In the present embodiment, a temperature control method of a temperature control bed is provided, which can be used in a temperature control bed. The temperature control bed includes a mattress, a temperature adjusting device, and an infrared thermal imaging device. The infrared thermal imaging device is arranged above the mattress and is used to collect infrared images of the mattress area. In addition, the temperature control bed also includes a temperature control device, which is connected with the temperature adjusting device and the infrared thermal imaging device. The temperature control method of the present embodiment is specifically used for the temperature control device of the temperature control bed, Figure 1 is a flowchart of a temperature control method of a temperature control bed according to an embodiment of the present disclosure, as shown in Figure 1 the flowchart includes the following steps:
[0065] Step S101, periodically acquire target temperature data of the detection object on the mattress.
[0066] Optionally, the period of acquiring the target temperature data of the detection object on the mattress can be 30s, or 50s, which is not limited herein.
[0067] The detection object is a user on the bed. In actual application, a thermistor array can be arranged on the temperature-controlled bed, and the target temperature data of the detection object is detected by the thermistor array. Alternatively, the target temperature data of the detection object is detected by an infrared image collected by an infrared thermal imaging device. Alternatively, the target temperature data of the detection object is obtained by combining the temperature data detected by the thermistor array and the infrared thermal imaging device. Alternatively, a thermocouple is arranged on the temperature-controlled bed, and the target temperature data of the detection object is detected by the thermocouple. The acquisition method of the target temperature data is not limited herein.
[0068] Step S102, control the temperature adjusting device based on the target temperature data.
[0069] Optionally, the temperature adjusting device includes a heating device and a ventilation device. In addition, the temperature adjusting device can also use a refrigeration device, a radiation temperature control device, etc., which is not limited herein.
[0070] Specifically, the heating device is a heating pad, and the ventilation device is a ventilation system. When the target temperature data represents heat, the ventilation device is controlled. When the target temperature data represents cold, the heating device is controlled.
[0071] Step S103, acquire a current infrared image and a previous infrared image collected by the infrared thermal imaging device.
[0072] The infrared thermal imaging device is arranged above the mattress, and the infrared thermal imaging device is used to collect the infrared image of the mattress.
[0073] In actual application, the infrared image collected by the infrared thermal imaging device can be periodically acquired, and the infrared image acquired in the previous period is taken as the current infrared image, and the infrared image acquired in the last period is taken as the previous infrared image. The acquisition period of the infrared image can be the same as or different from the acquisition period of the target temperature data.
[0074] Optionally, the acquisition period of the infrared image ranges from 0.5s to 1s, which can be adjusted according to actual conditions.
[0075] Step S104, analyze the action of the detection object on the quilt based on the pixel change between the detection object and the quilt in the current infrared image and the previous infrared image.
[0076] Specifically, the pixel change condition can be a pixel change rate of the detection object and the quilt between the current infrared image and the previous infrared image, or a pixel number change condition of the detection object and the quilt between the current infrared image and the previous infrared image.
[0077] Specifically, the action condition of the detection object on the quilt includes lifting the quilt, covering the quilt and not moving the quilt. It can be understood that if the detection object moves the quilt, for example, lifts the quilt or covers the quilt, the pixel area of the detection object and the quilt in the infrared image will change significantly. Therefore, if the current infrared image has a significant change in pixels compared with the previous infrared image, it indicates that the detection object is likely to have the behavior of lifting the quilt or covering the quilt, at this time, it is determined that the detection object moves the quilt, and the detection object can further determine whether the detection object lifts the quilt or covers the quilt by combining the size of the area not covered by the quilt of the detection object from the previous infrared image to the current infrared image.
[0078] If the current infrared image has no change compared with the previous infrared image, it is determined that the detection object does not move the quilt. If the current infrared image has a small change in pixels compared with the previous infrared image, the pixel change is considered as a slight change of the detection object in the normal sleep state, and it is determined that the detection object does not move the quilt.
[0079] In step S105, the temperature adjusting device is controlled based on the action condition to adjust the temperature of the temperature-controlled bed.
[0080] It can be understood that when the action condition of the detection object on the quilt is lifting the quilt or covering the quilt, it indicates that the actual thermal feeling of the detection object does not match the bed surface temperature, at this time, the temperature adjusting device needs to be controlled to meet the body feeling needs of the detection object.
[0081] Specifically, when the action condition of the detection object on the quilt is lifting the quilt, if the working state of the temperature adjusting device is a heating state, it indicates that the detection object may lift the quilt due to overheating caused by the quilt, at this time, the temperature adjusting device is controlled to reduce the heating power. When the action condition of the detection object on the quilt is covering the quilt, if the working state of the temperature adjusting device is a cooling state (such as a refrigeration state or a ventilation state), it indicates that the detection object may cover the quilt due to excessive cooling of the bed surface, at this time, the temperature adjusting device is controlled to reduce the refrigeration power or reduce the air outlet wind speed to avoid excessive cooling of the bed surface.
[0082] The temperature control method of the temperature-controlled bed provided by the embodiment can obtain the actual thermal perception of the detection object by periodically obtaining the target temperature data of the detection object on the mattress. Then, the temperature adjusting device is controlled based on the target temperature data, so that the temperature of the mattress can be dynamically adjusted according to the actual thermal perception of the detection object. The action of the detection object is analyzed by analyzing the pixel change between the detection object and the quilt in the current infrared image and the previous infrared image collected by the infrared thermal imaging device, so that the action of the detection object on the quilt can be captured in a timely and accurate manner. Finally, the temperature of the temperature-controlled bed is adjusted by controlling the temperature adjusting device based on the action, so that the temperature adjustment can be matched with the thermal perception demand of the detection object, thereby effectively improving the temperature control effect of the temperature-controlled bed.
[0083] In some optional embodiments, the periodically obtaining the target temperature data of the detection object on the mattress in the step S101 comprises:
[0084] The step a1 periodically obtains the first temperature data of the plurality of regions of the mattress collected by the temperature detection device and the target infrared image collected by the infrared thermal imaging device.
[0085] In actual application, because the temperatures corresponding to different regions of the human body are different, the mattress can be divided into a plurality of regions according to the corresponding regions of the head, the torso and the legs of the detection object on the mattress in the normal sleep condition, so as to independently control the temperature of each region.
[0086] Optionally, the period for obtaining the first temperature data of the plurality of regions of the mattress collected by the temperature detection device can be 30s or 50s, which is not limited herein.
[0087] The temperature detection device is a thermistor array composed of a plurality of thermistors.
[0088] Specifically, the thermistors are uniformly distributed on the surface of the mattress, and each thermistor corresponds to a region on the mattress. Based on the relationship between the resistance value and the temperature of the thermistor, the first temperature data of the plurality of regions is obtained.
[0089] The first temperature data T of the jth region is obtained by the following formula: j
[0090] T j =A+Bln(R j )+C(ln(R j )) 3 , j = 1, 2, …, m
[0091] A, B and C are characteristic parameters of the thermistor, and A, B and C are obtained by calibration. R j R is the resistance value of the thermistor, and m is the number of the thermistor.
[0092] Specifically, the infrared thermal imaging device collects the target infrared image of the detection object through the quilt in real time to obtain the body temperature distribution image information of the detection object through the quilt.
[0093] Step a2, based on the average value of the first temperature data, the first average temperature is obtained.
[0094] Specifically, the first temperature data is averaged, and the formula the first average temperature is obtained
[0095] Step a3, based on the target infrared image, the temperature of the detection object is analyzed to obtain the second temperature data of the multiple regions of the detection object.
[0096] Optionally, the multiple regions include three regions of the head, the torso and the legs.
[0097] Specifically, the target infrared image contains multiple pixels, and the second temperature data of the multiple regions of the detection object is obtained by analyzing the radiation brightness of different pixels in the target infrared image. According to the relationship between the spectral radiation brightness of black body radiation and the wavelength and temperature in Planck's law, the second temperature data of the i-th region can be calculated by the following formula:
[0098]
[0099] wherein, is the spectral radiation brightness of the j-th region, c1 is the first radiation constant, c1 = 3.7418 x 10 -16 W·m 2 , c2 is the second radiation constant, c2 = 1.4388 x 10 -2 m·K, λ i is the wavelength of the infrared thermal imaging device, and n is the number of regions.
[0100] Based on the above formula, the second temperature data T i is obtained by back calculation under the condition that the spectral radiation brightness of different regions and the wavelength of the infrared thermal imaging device are known.
[0101] Step a4, based on the average value of the second temperature data, the second average temperature is obtained.
[0102] Specifically, the second temperature data is averaged, and the formula the first average temperature is obtained
[0103] Step a5, the first average temperature and the second average temperature are weighted and summed to obtain the target temperature data.
[0104] Specifically, the first average temperature and the second average temperature are subjected to a weighted summation process to obtain target temperature data wherein a is a weighting coefficient corresponding to the first average temperature, b is a weighting coefficient corresponding to the second average temperature, and a+b=1.
[0105] Optionally, a=0.6 and b=0.4. The specific values of a and b can be calibrated through experiments.
[0106] The temperature control method of the temperature-controlled bed provided in this embodiment is used to determine the target temperature data of the detection object by comprehensively collecting the first temperature data of the multiple regions of the mattress by the temperature detection device and the second temperature data of the multiple regions of the mattress by the infrared thermal imaging device. On the one hand, the accuracy of the temperature detection of the detection object can be improved by comprehensively using two temperature detection methods. On the other hand, the target temperature data is determined by the weighted summation result of the first average temperature of the first temperature data and the second average temperature of the second temperature data, which can eliminate the interference of local temperature fluctuations and accurately reflect the overall temperature condition of the detection object, so that the target temperature data is more consistent with the overall temperature condition of the detection object, thereby further improving the accuracy of the temperature adjustment of the temperature-controlled bed.
[0107] In this embodiment, a second temperature control method of a temperature-controlled bed is also provided and can be used in the temperature-controlled bed. The temperature-controlled bed includes a mattress, a temperature adjustment device, and an infrared thermal imaging device. The infrared thermal imaging device is arranged above the mattress and is used to collect infrared images of the regions of the mattress. In addition, the temperature-controlled bed also includes a temperature control device, which is connected with the temperature adjustment device and the infrared thermal imaging device. The temperature control method of this embodiment is specifically used for the temperature control device of the temperature-controlled bed. Figure 2 is a flowchart of the second temperature control method of the temperature-controlled bed according to the embodiment of the present application, as shown in Figure 2 the flowchart includes the following steps:
[0108] In step S201, the target temperature data of the detection object on the mattress is periodically obtained. For details, please refer to the related description of step S101 above, which will not be described in detail here.
[0109] In step S202, the temperature adjustment device is controlled based on the target temperature data. For details, please refer to the related description of step S102 above, which will not be described in detail here.
[0110] In step S203, the current infrared image and the previous infrared image collected by the infrared thermal imaging device are obtained. For details, please refer to the related description of step S103 above, which will not be described in detail here.
[0111] Step S204, based on the pixel change condition of the detection object and the quilt between the current infrared image and the previous infrared image, the action condition of the detection object on the quilt is analyzed and obtained.
[0112] Specifically, the step S204 includes:
[0113] Step S2041, based on the pixel change condition of the detection object and the quilt between the current infrared image and the previous infrared image, the pixel change rate of the detection object and the quilt is obtained.
[0114] Optionally, the pixel change condition can be the change condition of the number of pixels, or the area change condition of the pixel area, or the change condition of the pixel color brightness.
[0115] Specifically, the current infrared image is input into the target detection model, and the number of pixels of the detection object and the quilt in the current infrared image is detected. The previous infrared image is input into the target detection model, and the number of pixels of the detection object and the quilt in the previous infrared image is detected. By comparing the number of pixels of the current infrared image and the previous infrared image, the pixel change rate of the detection object and the quilt is obtained.
[0116] Step S2042, based on the comparison result of the pixel change rate and the preset change rate threshold, the action analysis result of the detection object on the quilt is obtained.
[0117] The action analysis result includes one of moving the quilt and not moving the quilt.
[0118] Optionally, the preset change rate threshold Pthresh has a value range of 5% to 15%, which can be adjusted according to actual conditions, and is not limited herein.
[0119] Specifically, if the pixel change rate is greater than the preset change rate threshold, it is determined that the detection object moves the quilt, and at this time, the action of lifting the quilt or covering the quilt can occur. If the pixel change rate is less than or equal to the preset change rate threshold, it is determined that the detection object does not move the quilt, and it is considered that the detection object is in a normal sleep state with small activities.
[0120] Step S2043, based on the size of the uncovered area of the detection object in the current infrared image and the previous infrared image, the area change condition of the uncovered area of the detection object by the quilt is determined.
[0121] The uncovered area by the quilt is the exposed area of the detection object.
[0122] Specifically, if it is detected that the exposed region of the body of the detection object in the current infrared image is greater than the uncovered region of the quilt in the previous infrared image, the uncovered region of the body of the detection object increases. If it is detected that the exposed region of the body of the detection object in the current infrared image is less than the uncovered region of the quilt in the previous infrared image, the uncovered region of the body of the detection object decreases. If it is detected that the exposed region of the body of the detection object in the current infrared image is equal to the uncovered region of the quilt in the previous infrared image, the uncovered region of the body of the detection object remains unchanged.
[0123] In step S2044, the action of the detection object on the quilt is determined based on the action analysis result and the region change condition.
[0124] Specifically, the action of the detection object on the quilt includes lifting the quilt and covering the quilt.
[0125] Specifically, if it is detected that the detection object moves the quilt and the uncovered region of the body of the detection object increases, the detection object performs the action of lifting the quilt. If it is detected that the detection object moves the quilt and the uncovered region of the body of the detection object decreases, the detection object performs the action of covering the quilt. If it is detected that the detection object does not move the quilt and the uncovered region of the body of the detection object remains unchanged, the action of the detection object on the quilt remains unchanged.
[0126] In step S205, the temperature adjusting device is controlled based on the action to adjust the temperature of the temperature-controlled bed. For details, refer to the description of step S105 above, which will not be repeated here.
[0127] The temperature control method of the temperature-controlled bed provided in the embodiment can calculate the pixel change rate based on the pixel change condition of the detection object and the quilt between the current infrared image and the previous infrared image, so as to reflect the change condition of the quilt covering state of the detection object from the previous infrared image to the current infrared image by using the pixel change rate. Furthermore, the pixel change rate is compared with the preset change rate threshold, which can assist in judging the actual action of the detection object on the quilt and improving the accuracy of the action recognition of the detection object on the quilt. The size of the uncovered region of the detection object in the current infrared image and the previous infrared image is determined to determine the region change condition, which presents the relative state change of the detection object and the quilt from another dimension, and thus can provide a basis for analyzing the action of the detection object on the quilt. The action of the detection object on the quilt is determined based on the action analysis result and the region change condition, which can more comprehensively and accurately recognize the action of the detection object on the quilt.
[0128] In some optional embodiments, the pixel change rate of the detection object and the quilt based on the pixel change condition of the detection object and the quilt between the current infrared image and the previous infrared image in step S2041 includes:
[0129] Step b1, target detection is performed on the current infrared image to obtain a first region of the detection object and the quilt in the current infrared image.
[0130] Specifically, the current infrared image is input into the target detection model to detect the first region of the detection object and the quilt in the current infrared image. The first region is a region covered by the detection object and the quilt in the current infrared image.
[0131] Step b2, target detection is performed on the previous infrared image to obtain a second region of the detection object and the quilt in the previous infrared image.
[0132] Specifically, the previous infrared image is input into the target detection model to detect the second region of the detection object and the quilt in the previous infrared image. The second region is a region covered by the detection object and the quilt in the previous infrared image.
[0133] Optionally, the target detection model can be a YOLOv5 (You Only Look Once version 5) model, or a YOLOv6 model and a Cascade R-CNN (Cascade Region-based Convolutional Neural Network) model, which are not limited herein.
[0134] Specifically, the model loss of the target detection model is represented by the following formula:
[0135] L = λ cls L cls + λ reg L reg + λ conf L conf
[0136] Wherein, L is the model loss of the target detection model, L cls is the classification loss of the target detection model, λ cls is the weight coefficient corresponding to the classification loss, L reg is the regression loss of the target detection model, λ reg is the weight coefficient corresponding to the regression loss, L conf is the confidence loss of the target detection model, λ conf is the weight coefficient corresponding to the confidence loss, and each weight coefficient is determined by training and optimization of the target detection model. The classification loss L cls adopts a cross-entropy loss function to measure the difference between the predicted category and the true category. The regression loss L regA complete intersection over union (CIoU) loss function is used to improve the regression accuracy of the bounding box of the target (i.e., the detected object and the quilt). A confidence loss L conf The target detection model is used to evaluate the accuracy of the judgment of the presence or absence of a target.
[0137] In step b3, the pixel change rate of the detected object and the quilt is obtained based on the difference between the number of pixels in the first region and the number of pixels in the second region.
[0138] Specifically, the pixel change rate of the detected object and the quilt is obtained based on the ratio of the difference value to a preset pixel quantity threshold. The preset pixel quantity threshold is related to the number of pixels of the mattress in the infrared image.
[0139] The pixel change rate is calculated using the following formula:
[0140]
[0141] Where P change is the pixel change rate, N t is the number of pixels of the detected object and the quilt in the first region in the current infrared image, N t-1 is the number of pixels of the detected object and the quilt in the second region in the previous infrared image, and N max is a preset pixel quantity threshold.
[0142] For example, the detected object and the quilt occupy 10,000 pixels in the first region in the current infrared image, so N t = 10,000. The detected object and the quilt occupy 8,000 pixels in the second region in the previous infrared image, so N t-1 = 8,000. The number of pixels of the mattress in the infrared image is 20,000, so N max = 20,000.
[0143] The temperature control method of the temperature-controlled bed provided in this embodiment includes target detection on the current infrared image and the previous infrared image to obtain the first region of the detected object and the quilt in the current image and the second region in the previous infrared image, and then calculating the number of pixels in the first region and the second region. The pixel change rate is calculated based on the difference between the number of pixels in the first region and the number of pixels in the second region. Thus, the change in the area occupied by the detected object and the quilt in the previous infrared image and the current infrared image can be intuitively presented in a quantitative form, so as to accurately judge the movement change of the detected object on the quilt.
[0144] In some optional embodiments, the determining of the action of the detection object on the quilt based on the action analysis result and the area change condition in the step S2044 comprises: if the action analysis result indicates that the detection object moves the quilt and the area change condition indicates that the area of the area not covered by the quilt of the detection object increases, it is determined that the action is that the detection object lifts the quilt; if the action analysis result indicates that the detection object moves the quilt and the area change condition indicates that the area of the area not covered by the quilt of the detection object decreases, it is determined that the action is that the detection object covers the quilt.
[0145] It can be understood that if the action analysis result indicates that the detection object moves the quilt and the area change condition indicates that the area of the area not covered by the quilt of the detection object increases, i.e. the area of the exposed area of the detection object increases, it is determined that the action is that the detection object lifts the quilt. If the action analysis result indicates that the detection object moves the quilt and the area change condition indicates that the area of the area not covered by the quilt of the detection object decreases, i.e. the area of the covered area of the detection object increases, it is determined that the action is that the detection object covers the quilt. If the action analysis result indicates that the detection object moves the quilt and the area change condition indicates that the area does not increase or decrease, it is considered that the detection object is in a normal sleep state with slight changes and is not determined as an action behavior.
[0146] The temperature control method of the temperature-controlled bed provided in the embodiment determines that the detection object lifts the quilt when the action analysis result indicates that the detection object moves the quilt and the area change condition indicates that the area of the area not covered by the quilt of the detection object increases. The temperature control method determines that the detection object covers the quilt when the action analysis result indicates that the detection object moves the quilt and the area of the area not covered by the quilt of the detection object decreases. Therefore, errors caused by single factor judgment can be effectively avoided, and the accuracy and reliability of the identification of the action of lifting the quilt and covering the quilt are improved.
[0147] In the embodiment, a third temperature control method of a temperature-controlled bed is also provided and can be used in the temperature-controlled bed. The temperature-controlled bed comprises a mattress, a temperature adjusting device, and an infrared thermal imaging device. The infrared thermal imaging device is arranged above the mattress and is used to collect infrared images of the mattress area. In addition, the temperature-controlled bed further comprises a temperature control device, which is connected with the temperature adjusting device and the infrared thermal imaging device. The temperature control method of the embodiment is specifically used for the temperature control device of the temperature-controlled bed. Figure 3 FIG. 3 is a flowchart of the third temperature control method of the temperature-controlled bed according to the embodiment of the present application, as shown in the figure, the flowchart comprises the following steps: Figure 3
[0148] In step S301, target temperature data of a detection object on the mattress is periodically acquired. The related description of the step S101 can be referred to, and will not be described in detail here.
[0149] At step S302, the temperature adjusting device is controlled based on the target temperature data.
[0150] In some optional embodiments, the temperature adjusting device comprises a heating device and a ventilation device.
[0151] Optionally, the heating device is a heating pad.
[0152] Specifically, the controlling of the temperature adjusting device based on the target temperature data in step S302 comprises:
[0153] At step S3021, if the target temperature data is less than a first preset temperature value, the heating device is controlled to increase the temperature of the mattress.
[0154] Specifically, when it is detected that the target temperature data is less than the first preset temperature value, it indicates that the detection object is in a cold state, and at this time, the heating device is started, and the power of different heating areas of the heating device is controlled.
[0155] In some optional embodiments, the controlling of the heating device comprises: in the case that the heating device is not started, controlling the heating device to start, and adjusting the heating power of different heating areas of the heating device to the initial power corresponding to the heating area; in the case that the heating device is in a started state, controlling the heating device to increase the heating power of each heating area.
[0156] Specifically, in the case that the heating device is in a started state and the heating power of the heating area does not reach a preset maximum power threshold, the heating device is controlled to increase the heating power of the heating area.
[0157] Optionally, the heating power can be increased by increasing the power gear according to a preset power gear, or the heating power can be increased by a preset power value each time.
[0158] Exemplarily, taking the first preset temperature value as 28℃, different heating areas of the heating device include a head area, a trunk area and a leg area corresponding to the detection object, the initial power corresponding to the head area is 20W, the initial power corresponding to the trunk area is 50W, and the initial power corresponding to the leg area is 80W. When the target temperature data is less than 28℃, the heating device is started, and the initial power of the heating area corresponding to the head area, the trunk area and the leg area of the heating device is respectively configured as 20W, 50W and 80W. Therefore, the temperature demand of the detection object for different heating areas can be adapted. The target temperature data is collected in real time with a period of 30s, if the target temperature data is still lower than 28℃, the heating power of each heating area is increased by one grade according to the preset power grade, and it is ensured that the heating power of each heating area does not exceed the preset power threshold 150W. When the target temperature data is greater than or equal to 28℃, the current heating power of the heating device is maintained. Therefore, when the target temperature data represents that the detection object feels cold, the temperature of each heating area can be gradually increased to improve the temperature control effect of the temperature control bed.
[0159] In step S3022, if the target temperature data is greater than the second preset temperature value, the ventilation device is regulated to reduce the temperature of the mattress, and the first preset temperature value is less than the second preset temperature value.
[0160] Optionally, the first preset temperature value is 28℃, and the second preset temperature value is 32℃. The first preset temperature value and the second preset temperature value can be appropriately adjusted according to the environment where the detection object is located, which is not limited herein.
[0161] Specifically, when it is detected that the target temperature data is greater than the second preset temperature value, it indicates that the detection object is in a hot state, and the ventilation device is started to regulate the air outlet of the ventilation device.
[0162] In some optional embodiments, the above regulation of the ventilation device includes: controlling the ventilation device to start in the case that the ventilation device is not started; and controlling the ventilation device to increase the air outlet speed and increase the number of opened air outlets of the ventilation device in the case that the ventilation device is in the started state.
[0163] Specifically, the air outlet speed of the ventilation device is controlled to be increased in the case that the ventilation device is in the started state and the ventilation device does not reach the maximum air outlet speed. In addition, the number of opened air outlets of the ventilation device is increased in the case that the ventilation device does not open all the air outlets.
[0164] Optionally, the air outlet wind speed of the ventilation device can be divided in advance to obtain a plurality of preset air outlet wind speed levels, and the higher the preset air outlet wind speed level is, the greater the air outlet wind speed is. Further, in the case that the ventilation device is in the starting state and the ventilation device does not reach the maximum air outlet wind speed (i.e. the highest preset air outlet wind speed level), the air outlet wind speed is increased by increasing the air outlet wind speed level of the ventilation device. Alternatively, in the case that the ventilation device is in the starting state and the ventilation device does not reach the maximum air outlet wind speed, the air outlet wind speed of the ventilation device is controlled according to the preset wind speed value, which is not limited herein.
[0165] Exemplarily, taking 32℃ as the second preset temperature value, when the target temperature data is greater than 32℃, the ventilation device is started, wherein the ventilation device includes 4 air outlets. First, 2 side air outlets of the ventilation device are opened, and the wind speed is 3m / s. Therefore, heat dissipation can be achieved by using the ventilation device to reduce the bed surface temperature. The target temperature data is collected in real time at a period of 30s, and if the target temperature data is still greater than 32℃, 2 air outlets are increased and the air outlet wind speed of each air outlet is increased according to the preset air outlet wind speed level. The air outlet wind speed of each air outlet is increased by one level according to the preset air outlet wind speed level. The 4 side air outlets are configured with 3 air outlet wind speed levels, and the air outlet wind speed of the 3 air outlet wind speed levels is 1.5m / s, 3m / s and 4.5m / s respectively. The maximum wind speed of each air outlet does not exceed the preset wind speed value of 4.5m / s.
[0166] Understandably, when the target temperature data is less than the first preset temperature value, the heating device is controlled to increase the mattress temperature, so that the temperature can be increased when the detected object feels cold, and a warm and comfortable sleep environment can be created. When the target temperature data is greater than the second preset temperature value, the ventilation device is controlled to reduce the mattress temperature, so that effective heat dissipation can be achieved when the detected object feels hot.
[0167] In step S303, the current infrared image and the previous infrared image collected by the infrared thermal imaging device are obtained. For details, please refer to the related description of step S103, which will not be repeated here.
[0168] In step S304, the action of the detected object on the quilt is analyzed based on the pixel change between the detected object and the quilt in the current infrared image and the previous infrared image. For details, please refer to the related description of step S204, which will not be repeated here.
[0169] In step S305, the temperature adjusting device is controlled based on the action to adjust the temperature of the temperature-controlled bed.
[0170] In some optional embodiments, the temperature adjusting device is controlled based on the action to adjust the temperature of the temperature-controlled bed in step S305, which includes:
[0171] In step S3051, if the action situation indicates that the detection object has lifted the quilt and the heating device is in the starting state, the heating power of the heating device is reduced, and the temperature adjustment device is suspended from being controlled based on the target temperature data within a first preset time length.
[0172] In step S3052, if the action situation indicates that the detection object has covered the quilt and the ventilation device is in the starting state, the air outlet wind speed of the ventilation device is reduced, and the temperature adjustment device is suspended from being controlled based on the target temperature data within a second preset time length.
[0173] The first preset time length and the second preset time length can be the same or different. Optionally, the first preset time length and the second preset time length are 1 min, which can be adjusted according to actual conditions.
[0174] As a specific application example, when it is detected that the detection object has lifted the quilt, it indicates that the detection object feels hot. If the heating device is in the starting state at this time, the heating power of the heating device is immediately reduced to 50% of the current heating level, and the temperature adjustment is restored after 1 min. If the ventilation device is in the starting state, the current air outlet wind speed is maintained, and the temperature is reduced preferentially through natural heat dissipation. When it is detected that the detection object has covered the quilt, it indicates that the detection object feels cold. If the ventilation device is in the starting state at this time, the air outlet wind speed is reduced to 1.5 m / s, and the temperature adjustment is restored after 1 min to reduce excessive cooling of the covered area of the quilt by the air flow.
[0175] The temperature control method of the temperature-controlled bed provided in this embodiment reduces the power of the heating device and suspends the control of the temperature adjustment device when the action situation indicates that the detection object has lifted the quilt and the heating device is in the starting state, thereby avoiding overheating of the temperature-controlled bed. When the action situation indicates that the detection object has covered the quilt and the ventilation device is in the starting state, the air outlet wind speed of the ventilation device is reduced and the control of the temperature adjustment device is suspended, thereby avoiding excessive cooling of the temperature-controlled bed, so that the temperature adjustment is more in line with the actual needs of the detection object, thereby better maintaining a comfortable temperature environment.
[0176] The temperature-controlled bed provided in this embodiment also includes a mattress, a temperature adjustment device, an infrared thermal imaging device, and a temperature control device. The temperature adjustment device is arranged in the mattress, and the temperature adjustment device includes a heating device and a ventilation device. The infrared thermal imaging device is arranged above the mattress, and the infrared thermal imaging device is used to collect infrared images of the detection object and the quilt to obtain body temperature distribution information of the detection object through the quilt. The temperature control device is connected to the infrared thermal imaging device and the temperature adjustment device, respectively, and the temperature control device is used to execute the temperature control method of the temperature-controlled bed of any one of the above embodiments.
[0177] As one of the specific application examples, taking the first preset temperature as 28℃, the second preset temperature value as 32℃, the heating device as a heating pad, and the different heating areas of the heating pad corresponding to the head area, the torso area, and the leg area of the detection object, and the ventilation device as a ventilation system, and the ventilation system including four side ventilation openings, for example, referring to Figure 4 The temperature control method of the present disclosure mainly includes the following processes: when the target temperature data is detected to be less than 28℃, the heating pad is started; in order to adapt to the temperature requirements of the detection object for different heating areas, the initial power of the heating pad corresponding to the heating areas of the head area, the torso area, and the leg area is respectively configured as 20W, 50W, and 80W, and the power level of each heating area of the head area, the torso area, and the leg area is different by 30W. Further, the target temperature data is re-acquired after 30s, and if the target temperature data is still less than 28℃, the heating power of the three areas of the heating pad is increased by one level according to the preset power level, and it is ensured that the heating power of the three areas does not exceed the preset power threshold of 150W. Continue to acquire the target temperature data with a period of 30s, when the target temperature data is detected to be greater than or equal to 28℃ and less than 32℃, the current heating power of the heating pad is maintained. When the target temperature data is detected to be greater than or equal to 32℃, the ventilation system is started, and the four side air outlets of the ventilation system are configured with three air outlet levels. First, two side air outlets of the ventilation device are opened, and the initial air speed is 3m / s. Further, the target temperature data is re-acquired after 30s, and if the target temperature data is still greater than 32℃, two side air outlets are added and the air outlet level of the four side air outlets is increased by one level, and it is ensured that the maximum air speed of the four side air outlets does not exceed the preset air speed value of 4.5m / s. Continue to acquire the target temperature data with a period of 30s, when the target temperature data is detected to be less than 32℃, the current air outlet speed of the ventilation system is maintained.
[0178] As one of the optional embodiments, the temperature adjusting device is located inside the mattress, and the temperature adjusting device includes a heating device and a ventilation device, and the temperature adjusting device is used to adjust the temperature of the temperature-controlled bed under the regulation of the temperature control device.
[0179] Optionally, the heating device is a heating pad.
[0180] Optionally, the ventilation device is provided with a plurality of air outlets, for example, four air outlets.
[0181] As one of the optional embodiments, the temperature-controlled bed further includes a temperature detection device, and the temperature detection device is arranged on the surface of the mattress and used to acquire first temperature data of a plurality of areas of the mattress. The temperature control device is connected with the temperature detection device to obtain the first temperature data acquired by the temperature detection device.
[0182] Optionally, the temperature detection device is a thermistor array composed of multiple thermistors, and the thermistors are evenly distributed on the surface of the mattress. The mattress is divided into multiple areas, and each thermistor corresponds to an area on the mattress.
[0183] The present disclosure also provides a temperature control device. Figure 5 , Figure 5 This is a structural block diagram of a temperature control device provided by an optional embodiment of the present disclosure, such as Figure 5 As shown, the temperature control device includes: one or more processors 501, a memory 502, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. The various components utilize different buses to communicate with each other and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the temperature control device, including instructions stored in or on the memory to display graphical information of a GUI on an external input / output device (such as a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple temperature control devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 5 A processor 501 is taken as an example.
[0184] Processor 501 may be a central processing unit, a network processor, or a combination thereof. Processor 501 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit, a programmable logic device, or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic, or any combination thereof.
[0185] The memory 502 stores instructions that can be executed by at least one processor 501, so as to enable the at least one processor 501 to implement the temperature control method shown in the above embodiment.
[0186] The memory 502 can include a program storage area and a data storage area, where the program storage area can store an operating system, at least one application required by a function, and the data storage area can store data created according to the use of the temperature control device, etc. In addition, the memory 502 can include a high-speed random access memory, and can also include a non-transitory memory, such as at least one magnetic disk storage device, a flash memory device, or other non-transitory solid-state memory device. In some optional embodiments, the memory 502 can optionally include a memory disposed remotely relative to the processor 501, which can be connected to the temperature control device through a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof.
[0187] The memory 502 can include a volatile memory, such as a random access memory; the memory can also include a non-volatile memory, such as a flash memory, a hard disk, or a solid-state disk; and the memory 502 can also include a combination of the above-mentioned kinds of memories.
[0188] The temperature control device further includes an input device 503 and an output device 504. The processor 501, the memory 502, the input device 503, and the output device 504 can be connected through a bus or other means, Figure 5 For example, by way of example, through a bus connection.
[0189] The input device 503 can receive inputted digital or character information, and generate key signal inputs related to the user settings and function controls of the temperature control device, such as a touch screen, a keypad, a mouse, a trackpad, a touchpad, a pointing stick, one or more mouse buttons, a trackball, a joystick, etc. The output device 504 can include a display device, an auxiliary lighting device (e.g., an LED), a tactile feedback device (e.g., a vibration motor), etc. The above-mentioned display device includes, but is not limited to, a liquid crystal display, a light-emitting diode, a display, and a plasma display. In some optional embodiments, the display device can be a touch screen.
[0190] The embodiments of the present disclosure further provide a computer readable storage medium, and the method according to the embodiments of the present disclosure can be implemented in hardware, firmware, or recorded in a storage medium, or be implemented as computer code originally stored in a remote storage medium or a non-transitory machine readable storage medium and downloaded through a network and stored in a local storage medium, so that the method described herein can be processed by such software on a storage medium using a general purpose computer, a special purpose processor, or programmable or special purpose hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only memory, a random access memory, a flash memory, a hard disk or a solid state disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that the computer, processor, microprocessor controller or programmable hardware includes a storage component that can store or receive software or computer code, when the software or computer code is accessed and executed by the computer, processor or hardware, the temperature control method of the temperature control bed shown in the above embodiments is implemented.
[0191] Part of the present disclosure can be applied as a computer program product, for example, computer program instructions, when executed by a computer, through the operation of the computer, the method and / or technical solutions according to the present disclosure can be called or provided. Those skilled in the art should understand that the form of computer program instructions in computer readable medium includes but is not limited to source file, executable file, installation package file, etc., accordingly, the way of computer program instructions executed by computer includes but is not limited to: the computer directly executes the instructions, or the computer compiles the instructions and then executes the corresponding compiled program, or the computer reads and executes the instructions, or the computer reads and installs the instructions and then executes the corresponding installed program. Here, the computer readable medium can be any available computer readable storage medium or communication medium accessible to the computer.
[0192] Although the embodiments of the present disclosure are described in conjunction with the accompanying drawings, various modifications and changes can be made by those skilled in the art without departing from the spirit and scope of the present disclosure, and such modifications and changes fall within the scope defined by the appended claims.
Claims
1. A temperature control method for a temperature-controlled bed, characterized in that: The temperature-controlled bed includes a mattress, a temperature regulating device, and an infrared thermal imaging device, wherein the infrared thermal imaging device is arranged above the mattress; the method includes: periodically acquiring target temperature data of a detection object on the mattress; regulating the temperature adjustment device based on the target temperature data; Acquiring a current infrared image and a previous infrared image captured by the infrared thermal imaging device; Based on pixel changes between the detection object and the quilt in the current infrared image and the previous infrared image, analyzing and obtaining the movement of the detection object with respect to the quilt; The temperature adjustment device is controlled based on the action status to adjust the temperature of the temperature-controlled bed.
2. The temperature control method according to claim 1, characterized in that: The analyzing and obtaining the movement of the detection object with respect to the quilt based on the pixel changes between the detection object and the quilt in the current infrared image and the previous infrared image includes: Obtaining pixel change rates of the detection object and the quilt based on pixel changes of the detection object and the quilt between the current infrared image and the previous infrared image; Obtaining an analysis result of the detection object's action on the quilt based on a comparison result of the pixel change rate and a preset change rate threshold; Determining a change in the area of the detected object not covered by the quilt based on the size of the area of the detected object not covered by the quilt in the current infrared image and the previous infrared image; Based on the action analysis result and the area change, the action of the detection object on the quilt is determined.
3. The temperature control method according to claim 2, characterized in that: The obtaining of pixel change rates of the detection object and the quilt based on pixel change of the detection object and the quilt between the current infrared image and the previous infrared image includes: Performing target detection on the current infrared image to obtain a first area of the detection object and the quilt in the current infrared image; Performing target detection on the previous infrared image to obtain a second region of the detection object and the quilt in the previous infrared image; A pixel change rate between the detection object and the quilt is obtained based on a difference between the number of pixels in the first area and the number of pixels in the second area.
4. The temperature control method according to claim 2, characterized in that: The determining, based on the motion analysis result and the area change, the motion of the detection object with respect to the quilt includes: If the motion analysis result indicates that the detected subject has moved the quilt, and the area change indicates that the area of the detected subject not covered by the quilt has increased, then the motion is determined to be that the detected subject has lifted the quilt. If the action analysis result indicates that the detection object moves the quilt, and the area change indicates that the area of the detection object not covered by the quilt decreases, then it is determined that the action is that the detection object covers the quilt.
5. The temperature control method according to claim 1, wherein: The temperature regulating device includes a heating device and a ventilation device; and regulating the temperature regulating device based on the target temperature data includes: If the target temperature data is less than a first preset temperature value, regulating the heating device to increase the temperature of the mattress; If the target temperature data is greater than a second preset temperature value, the ventilation device is regulated to lower the temperature of the mattress, and the first preset temperature value is less than the second preset temperature value.
6. The temperature control method according to claim 5, characterized in that: The regulating and controlling of the heating device includes: When the heating device is not started, controlling the heating device to start, and adjusting the heating power of different heating areas of the heating device to the initial power corresponding to the heating area; When the heating device is in the activated state, the heating device is controlled to increase the heating power of each heating area.
7. The temperature control method according to claim 5, characterized in that: The regulating and controlling of the ventilation device includes: When the ventilation device is not started, controlling the ventilation device to start; When the ventilation device is in the starting state, the ventilation device is controlled to increase the air outlet speed and increase the number of open air outlets of the ventilation device.
8. The temperature control method according to claim 1, wherein: The controlling the temperature regulating device based on the action condition to regulate the temperature of the temperature-controlled bed includes: If the action condition indicates that the detected subject has lifted the quilt and the heating device is in an activated state, reducing the heating power of the heating device and suspending the regulation of the temperature adjustment device based on the target temperature data for a first preset time period; If the action condition indicates that the detection object covers the quilt and the ventilation device is in the started state, the air outlet speed of the ventilation device is reduced, and the regulation of the temperature adjustment device based on the target temperature data is suspended within a second preset time period.
9. The temperature control method according to claim 1, wherein: The temperature-controlled bed further includes a temperature detection device, which is disposed on the surface of the mattress. The periodic acquisition of target temperature data of the detection object on the mattress includes: periodically acquiring first temperature data of multiple areas of the mattress collected by the temperature detection device and target infrared images collected by the infrared thermal imaging device; obtaining a first average temperature based on an average value of the first temperature data; performing temperature analysis on the detection object based on the target infrared image to obtain second temperature data of multiple areas of the detection object; obtaining a second average temperature based on an average value of the second temperature data; A weighted sum is performed on the first average temperature and the second average temperature to obtain the target temperature data.
10. A temperature-controlled bed, characterized in that: The temperature-controlled bed comprises: Mattress; a temperature regulating device, disposed in the mattress; an infrared thermal imaging device, disposed above the mattress; A temperature control device, used to execute the temperature control method of the temperature-controlled bed according to any one of claims 1 to 9.
Citation Information
Cited By
Non-invasive sleep behavior monitoring system based on infrared machine vision
CN121489405A
