CN115968080A - Night lamp control method and device based on radar, radar and storage medium - Google Patents

Night lamp control method and device based on radar, radar and storage medium Download PDF

Info

Publication number
CN115968080A
CN115968080A CN202310257170.7A CN202310257170A CN115968080A CN 115968080 A CN115968080 A CN 115968080A CN 202310257170 A CN202310257170 A CN 202310257170A CN 115968080 A CN115968080 A CN 115968080A
Authority
CN
China
Prior art keywords
cloud data
point cloud
preset
radar
user
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.)
Pending
Application number
CN202310257170.7A
Other languages
Chinese (zh)
Inventor
周晓玲
彭诚诚
程毅
赵洛伟
李彦龙
秦屹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Whst Co Ltd
Original Assignee
Whst Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Whst Co Ltd filed Critical Whst Co Ltd
Priority to CN202310257170.7A priority Critical patent/CN115968080A/en
Publication of CN115968080A publication Critical patent/CN115968080A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Abstract

The application provides a night lamp control method and device based on a radar, the radar and a storage medium, wherein the method comprises the following steps: acquiring an echo signal obtained by detecting a surface area of a bed body by a radar; judging whether a user enters a sleep state or not according to the echo signal, and extracting point cloud data from the echo signal if the user enters the sleep state; if the signal-to-noise ratio of the point cloud data meets a preset body movement condition and the height value of each point in the point cloud data meets a preset rising judgment condition, judging that the user has a rising action; if the user has the action of getting up, then control night-light work is in the first state, otherwise control night-light work is in the second state, and above-mentioned method just controls the night-light and opens when monitoring the action of getting up, can avoid the user to sleep the condition that the small amplitude action leads to the night-light spurious triggering in-process to optimize user's experience.

Description

Night lamp control method and device based on radar, radar and storage medium
Technical Field
The application relates to the technical field of radars, in particular to a night light control method and device based on a radar, the radar and a storage medium.
Background
Smart home products are receiving more and more attention, and a small night light is one of them. The intelligent illumination control system can sense the illumination intensity in the environment and realize automatic control through voice control, infrared induction or a radar sensor and the like. The product provides convenience for customers to find things or see the surrounding environment clearly in dark environment, and the occurrence of many accidents can be reduced without touching black to find the switch of the illuminating lamp.
At present, the small night lamp on the market has some defects. The night light is just opened to the head of a bed about the bedroom, is used for the condition such as people get up after falling asleep and drink water or go to the bathroom more often, in order to provide better use experience for the user, need be when people get up. For a voice-controlled small night light, if more than one person is in the bedroom at rest, the voice control may disturb others; for the infrared sensing small night lamp, the sensor is required to be aligned to the direction of the bed, when a person lies on the bed for rest, the infrared sensor can detect the existence of the person, and if the switch is controlled according to the infrared intensity, a proper threshold value is difficult to select to judge whether the person is in a nightmare or getting up; to radar sensor control's little night-light, its on-off control mainly relies on the intensity of radar received signal when the human activity, if the people just stands up, does not get up, also can trigger little night-light and shine, and this can seriously influence user's sleep quality.
Disclosure of Invention
The application provides a night light control method and device based on a radar, the radar and a storage medium, and aims to solve the problem that a small night light is mistakenly triggered in the prior art.
In a first aspect, the present application provides a radar-based night light control method, including:
acquiring an echo signal obtained by detecting a surface area of a bed body by a radar;
judging whether a user enters a sleep state or not according to the echo signal, and extracting point cloud data from the echo signal if the user enters the sleep state;
acquiring a signal-to-noise ratio of the point cloud data and a height value of each point in the point cloud data, and judging that the user has a rising action if the signal-to-noise ratio of the point cloud data meets a preset physical movement condition and the height value of each point in the point cloud data meets a preset rising judgment condition;
and if the user has the rising action, controlling the night lamp to work in a first state, otherwise, controlling the night lamp to work in a second state.
In a second aspect, the present application provides a radar-based night light control apparatus, comprising:
the echo signal acquisition module is used for acquiring an echo signal obtained by detecting the surface area of the bed body by a radar;
the point cloud data extraction module is used for judging whether a user enters a sleep state according to the echo signal, and extracting point cloud data from the echo signal if the user enters the sleep state;
the getting-up motion monitoring module is used for acquiring the signal to noise ratio of the point cloud data and the height value of each point in the point cloud data, and if the signal to noise ratio of the point cloud data meets a preset body motion condition and the height value of each point in the point cloud data meets a preset getting-up judgment condition, judging that the user has a getting-up motion;
and the night lamp control module is used for controlling the night lamp to work in the first state if the user has a rising action, otherwise, controlling the night lamp to work in the second state.
In a third aspect, the present application provides a radar comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the method according to any one of the possible implementation manners of the first aspect.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements the steps of the method according to any one of the possible implementation manners of the first aspect.
The embodiment of the application provides a night light control method and device based on a radar, the radar and a storage medium, the method can acquire an echo signal obtained by detecting a surface area of a bed body by the radar, judge whether a user enters a sleep state or not according to the echo signal, and extract point cloud data from the echo signal if the user enters the sleep state; acquiring a signal-to-noise ratio of the point cloud data and a height value of each point in the point cloud data, and judging that the user has a rising action if the signal-to-noise ratio of the point cloud data meets a preset physical movement condition and the height value of each point in the point cloud data meets a preset rising judgment condition; if the user has a rising action, the night lamp is controlled to work in a first state, otherwise, the night lamp is controlled to work in a second state. Through the method, the embodiment can accurately monitor the user rising after the user falls asleep, can accurately control the night lamp to be started, can avoid the condition of false triggering, and optimizes the user experience.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
FIG. 1 is a flow chart of an implementation of a method for controlling a radar-based night light provided by an embodiment of the present application;
FIG. 2 is a state diagram of a single frame wake up flag, a wake up flag, and a small night light provided by an embodiment of the present application;
FIG. 3 is a schematic diagram of a radar-based night light control apparatus according to an embodiment of the present disclosure;
fig. 4 is a schematic diagram of a radar provided in an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
To make the objects, technical solutions and advantages of the present application more clear, the following description is made by way of specific embodiments with reference to the accompanying drawings.
Referring to fig. 1, it shows a flowchart of an implementation of the method for controlling a night light based on radar according to the embodiment of the present application, which is detailed as follows:
s101: and acquiring an echo signal obtained by detecting the surface area of the bed body by the radar.
In particular, the subject of this embodiment is a radar that includes a conventional radar detection module and night light that wirelessly detect objects and determine their spatial location, and the radar detection module is communicatively coupled to the night light.
In this embodiment, the radar detection module can be erected above the central axis of the bed body, and also can be arranged at a position where the bedside table and the like can detect the surface area of the bed body, so as to detect the environment of the surface area of the bed body downwards and receive the reflected echo signal.
In a possible implementation manner, before S101, the method provided in this embodiment further includes:
acquiring the ambient light intensity in real time;
and if the ambient illumination intensity is smaller than a preset illumination threshold value, starting to acquire an echo signal obtained by the radar in the detection of the surface area of the bed body.
Specifically, the radar further comprises a photosensitive sensor, the photosensitive sensor is used for collecting the ambient light intensity in a target area, the target area is the area where the bed body is located, and the target area can be a bedroom for example. When monitoring that ambient illumination intensity is greater than or equal to preset illumination threshold light Thre, photosensitive sensor explains that light is brighter in the bedroom, consequently sets up light value to 0, and control night-light keeps off-state, if monitor that ambient illumination intensity is less than preset illumination threshold light Thre, then set up light value to 1, when light value =1, radar detection module is to the bed surface regional transmission detection signal, control night-light entering by radar control's stage simultaneously.
S102: and judging whether the user enters a sleep state or not according to the echo signal, and if the user enters the sleep state, extracting point cloud data from the echo signal.
In a possible embodiment, the specific implementation flow of S102 includes:
extracting human body sleep characteristics in the echo signals, wherein the human body sleep characteristics comprise respiration amplitude, respiration frequency, heartbeat amplitude and heartbeat frequency;
and judging whether the user enters a sleep state or not based on the human sleep characteristics.
In the present embodiment, the frame period may be 2s. Human sleep characteristics include, but are not limited to, respiratory rate, heartbeat rate, respiratory amplitude, heartbeat amplitude, and the like. Wherein, the breathing frequency is used for expressing the number of breaths per minute, the unit is times/minute, and the typical value is 0 to 30; the heart beat frequency is used for expressing the times of heart beats per minute, and the unit is times/minute, and the typical value is 50 to 120; the respiratory amplitude represents the amplitude of the body fluctuation of the person as it breathes; the heart beat amplitude is the amplitude of the heart beat.
In a possible implementation manner, the specific implementation flow of S102 includes:
s201: calculating a sleep staging index of the current sleep detection period based on the respiratory frequency, the heartbeat frequency and the body movement mark corresponding to each frame of echo signals in the current sleep detection period;
s202: and judging the current state of the user according to the sleep staging index of the current sleep detection period, wherein the state comprises a sleep state and a waking state.
Specifically, the body motion flag is used to indicate whether the human body is moving, and a typical value is 0 or 1, where 0 indicates no body motion and 1 indicates body motion.
After the sleep characteristics of the human body are obtained, the radar detection module calculates the sleep staging index of each sleep detection period according to the preset sleep detection period. For example, the preset sleep detection period may be 30s or 1 minute, etc. After the sleep staging index of the current sleep detection period is acquired, whether the user is in a sleep state or an awake state in the current sleep detection period is judged based on the sleep staging index, if the sleep state is set to be 1, the falllaselepflag is set to be 0, and if the awake state is set to be 0.
After monitoring that the lightValue =1 and the fallAsleepFlag =1, the radar detection module starts a night induction function and controls a night lamp based on the signal-to-noise ratio of the point cloud data and the height value of each point in the point cloud data; when lightValue =1 and falllaselepflag =0, then the night light is maintained in the second state.
As a specific example, the first state of the nightlight may be an on state and, correspondingly, the second state may be an off state. The first state of the night light may also be a state in which the night light operates at a first brightness, and correspondingly, the second state may be a state in which the night light operates at a second brightness. Wherein the first brightness is greater than the second brightness.
In a possible implementation manner, the specific implementation flow of S201 includes:
calculating the standard deviation of the respiratory frequency of each frame, the standard deviation of the heartbeat frequency of each frame and the mean value of the body movement signs of each frame in the current sleep detection period;
calculating a sleep staging index of the current sleep detection period based on a sleep staging index calculation formula;
the sleep staging index calculation formula is as follows:
Figure SMS_1
wherein the content of the first and second substances,
Figure SMS_2
represents the sleep staging factor, < > >>
Figure SMS_3
The standard deviation of the breathing frequency is indicated,
Figure SMS_4
represents a standard deviation of the heartbeat frequency>
Figure SMS_5
Means for indicating a sign of physical activity>
Figure SMS_6
Respectively, are preset coefficients.
In some embodiments of the present invention, the,
Figure SMS_7
. In other embodiments, of course>
Figure SMS_8
Other values are also possible.
Specifically, another implementation flow of S102 may further include: determining whether the user is in a sleep state in the current sleep detection period based on the breathing frequency, the heartbeat frequency, the breathing amplitude, the heartbeat amplitude, the body movement amplitude and the in-bed sign corresponding to each frame of echo signal in the current sleep detection period;
if the respiratory amplitude of each frame of the current sleep detection period is smaller than the preset respiratory amplitude threshold value, the heartbeat amplitude of each frame of the current sleep detection period is smaller than the preset heartbeat amplitude threshold value, the body motion amplitude of each frame of the current sleep detection period is smaller than the preset body motion amplitude threshold value, the standard deviation of the heartbeat frequency of the current sleep detection period is smaller than the preset heartbeat frequency threshold value, the standard deviation of the respiratory frequency of the current sleep detection period is smaller than the preset respiratory frequency threshold value, and the in-bed mark of each frame of the current sleep detection period is 1, judging that the user in the sleep state in the current sleep detection period, and otherwise, judging that the user in the waking state in the current sleep detection period.
Specifically, the in-bed mark is used for indicating whether a human body is detected in the surface area of the bed body, and the typical value is 0 or 1,0 indicates that a person is not in the bed, and 1 indicates that the person is in the bed.
S103: and acquiring the signal-to-noise ratio of the point cloud data and the height value of each point in the point cloud data, and judging that the user has a rising action if the signal-to-noise ratio of the point cloud data meets a preset body movement condition and the height value of each point in the point cloud data meets a preset rising judgment condition.
And the radar calculates the height value of the corresponding point according to the distance and angle information of each point in the point cloud data.
In a possible embodiment, the specific implementation flow of S103 includes:
and if the signal-to-noise ratio of the current frame point cloud data is greater than a preset signal-to-noise ratio threshold value, and the ratio of points with the height values greater than the preset height threshold value in the current frame point cloud data in the frame point cloud data is greater than a first preset ratio, judging that the user has a rising action.
Specifically, when a human body has body movement, the signal-to-noise ratio of the point cloud data is increased, and the larger the body movement amplitude is, the larger the signal-to-noise ratio is. In addition, the actions of a person at night are mainly divided into rising and turning over, when the person turns over, the distribution of the point cloud in the space height dimension is concentrated, and the distribution range and the average value of the point cloud height can not be obviously changed before and after the person turns over. When the person changes from a lying state to a sitting state, the distribution of the point cloud in height becomes dispersed, and the average height value also changes significantly.
Based on this, the embodiment comprehensively judges whether the rising action occurs or not through two indexes. On the first hand, the radar analyzes the signal-to-noise ratio of single-frame point cloud data, when the signal-to-noise ratio of the point cloud data is larger than a preset signal-to-noise ratio threshold, the radar judges that large-amplitude action is possible to occur, moveFlag is set to be 1, and when the signal-to-noise ratio judges that a user does not perform large-amplitude action, the moveFlag is set to be 0. And in the second aspect, the distribution condition of the point cloud in the height dimension is analyzed, and the state that the person lies down or sits up is judged. And if the ratio of the points with the height values larger than the preset height threshold value in the point cloud data in the frame of point cloud data is larger than a first preset ratio, the person is considered to have a rising action, and if not, the person is judged to be lying down.
Wherein the first preset ratio is 95%, and the preset height threshold value can be 0.3m to 0.5m. For example, if the height values of 95% of the points in the frame of point cloud data are all less than 0.3m, it is determined that the person lies down, if the heights of 95% of the points in the frame of point cloud data are all greater than 0.5m, it is determined that there is a rising motion, getupsflag is set to 1 when it is determined that there is a rising motion, and getupsflag is set to 0 when it is determined that there is no rising motion.
When moveFlag =1 and getUpFlag =1, it is comprehensively determined that there is a rising action by the user.
Specifically, the further implementation process of S103 includes:
if the signal-to-noise ratio of the current frame point cloud data is not greater than a preset signal-to-noise ratio threshold value, continuously acquiring the signal-to-noise ratio of the point cloud data and the height value of each point;
if the signal-to-noise ratio of the current frame point cloud data is greater than a preset signal-to-noise ratio threshold, monitoring whether the ratio of points with the height value greater than the preset height threshold in the current frame point cloud data in the frame point cloud data is greater than a first preset ratio or not;
and if the ratio of the points with the height values larger than the preset height threshold value in the current frame point cloud data in the frame point cloud data is larger than a first preset ratio, judging that the user has a rising action.
As another possible embodiment, another method for determining whether there is a rising motion for the user in S103 may include:
if the signal-to-noise ratio of the current frame point cloud data is greater than a preset signal-to-noise ratio threshold value and the average height values of all the points of the current frame point cloud data are greater than a preset height upper limit, judging that the rising action exists in the current frame point cloud data;
and if the ratio of the number of frames of the point cloud data with the rising action in the current rising detection period to the total number of frames of the point cloud data in the current rising detection period is greater than a second preset ratio, judging that the rising action exists in the user.
Specifically, the rising detection cycle duration may be 10s.
In a possible embodiment, the specific implementation process of S103 further includes:
if the signal-to-noise ratio of the current frame point cloud data is greater than a preset signal-to-noise ratio threshold value, and the ratio of points with the height values greater than the preset height threshold value in the current frame point cloud data in the frame point cloud data is greater than a first preset ratio, judging that the rising action exists in the current frame point cloud data;
and if the ratio of the number of frames of the point cloud data with the rising action in the current rising detection period to the total number of frames of the point cloud data in the current rising detection period is greater than a second preset ratio, judging that the rising action exists in the user.
Specifically, as shown in fig. 2, if it is determined that there is a standing-up motion in the current frame point cloud data, the single-frame standing-up flag is set to 1, if the signal-to-noise ratio of the current frame point cloud data is greater than the preset signal-to-noise ratio threshold, and the ratio of points in the current frame point cloud data whose height is greater than the second height threshold in the frame point cloud data is greater than the first preset ratio, it is determined that there is a standing-up motion in the current frame point cloud data, and when there is a standing-up motion in the current frame point cloud data, the single-frame standing-up flag is set to-1, and if neither of the above two conditions is satisfied, the single-frame standing-up flag is set to 0.
Specifically, if the ratio of the number of frames of the point cloud data with the rising motion in the current rising detection period to the total number of frames of the point cloud data in the current rising detection period is greater than a second preset ratio, it is determined that the rising motion exists for the user, and the rising flag is set to 1, otherwise, the rising flag is set to 0. When the mark of standing up is 1, control little night-light state and be 1 to keep predetermineeing and to revise little night-light state for 0 after the illumination duration, otherwise control little night-light state and be 0, little night-light work in the first state when little night-light state is 1, little night-light work in the second state when little night-light state is 0.
In this embodiment, in order to guarantee the accuracy of the monitoring of the getting-up action, avoid the error that single frame analysis caused, whether the user has the action of getting-up is judged comprehensively to this embodiment through the multiframe point cloud data of a detection cycle of getting-up to realize improving the beneficial effect of the monitoring accuracy of the action of getting-up.
In a possible implementation manner, before S103, the method provided in this embodiment further includes:
and acquiring a distance value of a point with the minimum distance value in the current frame point cloud data, and determining the preset signal-to-noise ratio threshold corresponding to the current frame point cloud data based on an interval where the distance value of the point with the minimum distance value in the current frame point cloud data is located.
In this embodiment, the farther the distance between the radar and the person is, the smaller the signal-to-noise ratio is, so that the preset signal-to-noise ratio threshold corresponding to the interval can be determined according to the interval where the distance value of the point with the minimum distance in the current frame point cloud data is located, and the distance value where the interval is located is inversely proportional to the preset signal-to-noise ratio threshold.
Illustratively, the intervals may include
Figure SMS_9
、/>
Figure SMS_10
、/>
Figure SMS_11
And each distance interval corresponds to a preset signal-to-noise ratio threshold, and the accuracy of monitoring the large-amplitude movement can be improved by acquiring the preset signal-to-noise ratio threshold corresponding to each frame of point cloud data.
S104: if the user has a rising action, the night lamp is controlled to work in a first state, otherwise, the night lamp is controlled to work in a second state.
In a possible implementation manner, after S104, the method provided in this embodiment further includes:
and the night lamp enters the first state, and the night lamp works in the second state after the illumination time is preset in the first state.
When night-light work in first state, the radar stops to the bed body surface transmission detection signal, switches into the second state when the night-light after, continues to carry out step S101 to step S104, realizes the action of getting up response function of night-light.
For example, the preset illumination time period may be 30s, 1 minute, 2 minutes, or the like.
It can be known from the foregoing embodiment that, in the night light control method based on radar according to the embodiment of the present application, whether a user enters a sleep state can be determined according to the echo signal, and if the user enters the sleep state, point cloud data is extracted from the echo signal; if the signal-to-noise ratio of the point cloud data meets a preset body movement condition and the height value of each point in the point cloud data meets a preset rising judgment condition, judging that the user has a rising action; if the user has the action of getting up, then control night-light work is in the first state, otherwise control night-light work is in the second state, and above-mentioned method judges through some cloud SNR and altitude value whether the user has the action of getting up, just controls the night-light and opens when monitoring the action of getting up to can guarantee the accuracy of night-light control, can avoid the user to sleep the condition that the in-process small amplitude action leads to night-light spurious triggering again, optimize user's experience.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
The following are apparatus embodiments of the present application, and for details not described in detail therein, reference may be made to the corresponding method embodiments described above.
Fig. 3 is a schematic structural diagram of a radar-based night light control device provided in an embodiment of the present application, and for convenience of description, only the portions related to the embodiment of the present application are shown, and the details are as follows:
as shown in fig. 3, the radar-based night light control apparatus 100 includes:
the echo signal acquiring module 110 is configured to acquire an echo signal obtained by detecting a surface area of a bed body by a radar;
a point cloud data extraction module 120, configured to determine whether a user enters a sleep state according to the echo signal, and extract point cloud data from the echo signal if the user enters the sleep state;
the rising action monitoring module 130 is configured to obtain a signal-to-noise ratio of the point cloud data and a height value of each point in the point cloud data, and determine that a rising action exists in the user if the signal-to-noise ratio of the point cloud data meets a preset physical movement condition and the height value of each point in the point cloud data meets a preset rising judgment condition;
and the night lamp control module 140 is used for controlling the night lamp to work in a first state if the user has a rising action, otherwise, controlling the night lamp to work in a second state.
In one possible implementation, the rising movement monitoring module 130 includes:
and if the signal-to-noise ratio of the current frame point cloud data is greater than a preset signal-to-noise ratio threshold value, and the ratio of points with the height values greater than the preset height threshold value in the current frame point cloud data in the frame point cloud data is greater than a first preset ratio, judging that the user has a rising action.
In one possible implementation, the rising movement monitoring module 130 further includes:
if the signal-to-noise ratio of the current frame point cloud data is greater than a preset signal-to-noise ratio threshold value, and the ratio of points with the height values greater than the preset height threshold value in the current frame point cloud data in the frame point cloud data is greater than a first preset ratio, judging that the rising action exists in the current frame point cloud data;
and if the ratio of the number of frames of the point cloud data with the rising action in the current rising detection period to the total number of frames of the point cloud data in the current rising detection period is greater than a second preset ratio, judging that the rising action exists in the user.
In one possible implementation, the radar-based night light control apparatus 100 further includes:
and the signal-to-noise ratio threshold calculation module is used for acquiring the distance value of the point with the minimum distance value in the current frame point cloud data and determining the preset signal-to-noise ratio threshold corresponding to the current frame point cloud data based on the section where the distance value of the point with the minimum distance value in the current frame point cloud data is located.
In one possible implementation, the radar-based night light control apparatus 100 further includes a light intensity monitoring module for:
acquiring the ambient light intensity in real time;
and if the ambient illumination intensity is smaller than a preset illumination threshold value, starting to acquire an echo signal obtained by the radar in the detection of the surface area of the bed body.
In one possible implementation, the point cloud data extraction module 120 includes:
extracting human body sleep characteristics in the echo signals, wherein the human body sleep characteristics comprise respiration amplitude, respiration frequency, heartbeat amplitude and heartbeat frequency;
and judging whether the user enters a sleep state or not based on the human sleep characteristics.
In one possible implementation, the radar-based night light control apparatus 100 further includes:
and the second night lamp module is used for entering the night lamp into the first state, presetting the lighting time and then controlling the night lamp to work in the second state.
The embodiment of the application provides a night light control device based on a radar, which can judge whether a user enters a sleep state according to an echo signal, and if the user enters the sleep state, point cloud data are extracted from the echo signal; if the signal-to-noise ratio of the point cloud data meets a preset body movement condition and the height value of each point in the point cloud data meets a preset rising judgment condition, judging that the user has a rising action; if the user has the action of getting up, then control night-light work is in the first state, otherwise control night-light work is in the second state, and above-mentioned method just controls the night-light and opens when monitoring the action of getting up, can avoid the user to sleep the condition that the small amplitude action leads to the night-light spurious triggering in-process to optimize user's experience.
Fig. 4 is a schematic diagram of a radar provided in an embodiment of the present application. As shown in fig. 4, the radar 4 of this embodiment includes: a processor 40, a memory 41 and a computer program 42 stored in said memory 41 and executable on said processor 40. The processor 40, when executing the computer program 42, implements the steps in the various embodiments of the radar-based nightlight control method described above, such as steps S101-S104 shown in fig. 1. Alternatively, the processor 40, when executing the computer program 42, implements the functions of the modules/units in the above-mentioned device embodiments, such as the functions of the modules 110 to 140 shown in fig. 3.
Illustratively, the computer program 42 may be partitioned into one or more modules/units, which are stored in the memory 41 and executed by the processor 40 to implement the scheme provided herein. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution of the computer program 42 in the radar 4.
The radar 4 may include, but is not limited to, a processor 40, a memory 41. Those skilled in the art will appreciate that fig. 4 is merely an example of radar 4 and does not constitute a limitation of radar 4 and may include more or fewer components than shown, or some components in combination, or different components, e.g., the radar may also include input-output devices, network access devices, buses, etc.
The Processor 40 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 41 may be an internal storage unit of the radar 4, such as a hard disk or a memory of the radar 4. The memory 41 may also be an external storage device of the radar 4, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the radar 4. Further, the memory 41 may also include both an internal memory unit and an external memory device of the radar 4. The memory 41 is used for storing the computer program and other programs and data required by the radar. The memory 41 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the technical solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/radar and method may be implemented in other ways. For example, the above-described apparatus/radar embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions in actual implementation, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow of the method according to the above embodiments may be implemented by a computer program, which may be stored in a computer readable storage medium and executed by a processor, so as to implement the steps of the embodiments of the radar-based night light control method. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, read-Only Memory (ROM), random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain other components which may be suitably increased or decreased as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media which may not include electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
Furthermore, features of the embodiments shown in the drawings of the present application or of the various embodiments mentioned in the present description are not necessarily to be understood as embodiments independent of each other. Rather, each feature described in one example of one embodiment can be combined with one or more other desired features from other embodiments to yield yet further embodiments, which are not described in text or with reference to the accompanying drawings.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not depart from the spirit and scope of the embodiments of the present application, and they should be construed as being included in the present application.

Claims (10)

1. A night lamp control method based on radar is characterized by comprising the following steps:
acquiring an echo signal obtained by detecting a surface area of a bed body by a radar;
judging whether a user enters a sleep state or not according to the echo signal, and if the user enters the sleep state, extracting point cloud data from the echo signal;
acquiring a signal-to-noise ratio of the point cloud data and a height value of each point in the point cloud data, and judging that the user has a rising action if the signal-to-noise ratio of the point cloud data meets a preset physical movement condition and the height value of each point in the point cloud data meets a preset rising judgment condition;
and if the user has the rising action, controlling the night lamp to work in a first state, otherwise, controlling the night lamp to work in a second state.
2. The radar-based night light control method of claim 1, wherein if the signal-to-noise ratio of the point cloud data meets a preset physical activity condition and the height value of each point in the point cloud data meets a preset rising judgment condition, it is determined that a rising action exists for the user, and the method comprises:
and if the signal-to-noise ratio of the current frame point cloud data is greater than a preset signal-to-noise ratio threshold value, and the ratio of points with the height values greater than the preset height threshold value in the current frame point cloud data in the frame point cloud data is greater than a first preset ratio, judging that the user has a rising action.
3. The radar-based night-light control method of claim 2, wherein if the signal-to-noise ratio of the current frame point cloud data is greater than a preset signal-to-noise ratio threshold, and the ratio of the points in the current frame point cloud data with the height value greater than the preset height threshold in the frame point cloud data is greater than a first preset ratio, it is determined that the user has a rising action, and the method includes:
if the signal-to-noise ratio of the current frame point cloud data is greater than a preset signal-to-noise ratio threshold value, and the ratio of points with the height values greater than the preset height threshold value in the current frame point cloud data in the frame point cloud data is greater than a first preset ratio, judging that the rising action exists in the current frame point cloud data;
and if the ratio of the number of frames of the point cloud data with the rising action in the current rising detection period to the total number of frames of the point cloud data in the current rising detection period is greater than a second preset ratio, judging that the rising action exists in the user.
4. The radar-based night light control method of claim 2, wherein before determining that the user has a rising movement if the signal-to-noise ratio of the current frame point cloud data is greater than a preset signal-to-noise ratio threshold and the ratio of the points with the height value greater than the preset height threshold in the current frame point cloud data is greater than a first preset ratio, the method further comprises:
and obtaining the distance value of the point with the minimum distance value in the current frame point cloud data, and determining the preset signal-to-noise ratio threshold corresponding to the current frame point cloud data based on the section where the distance value of the point with the minimum distance value in the current frame point cloud data is located.
5. The method for controlling a night light based on radar of claim 1, wherein before the obtaining the echo signal detected by the radar on the surface area of the bed body, the method further comprises:
acquiring the ambient light intensity in real time;
and if the ambient illumination intensity is smaller than a preset illumination threshold value, starting to acquire an echo signal obtained by the radar through detection on the surface area of the bed body.
6. The radar-based night light control method of claim 1, wherein the determining whether the user is in a sleep state based on the echo signal comprises:
extracting human body sleep characteristics in the echo signals, wherein the human body sleep characteristics comprise respiration amplitude, respiration frequency, heartbeat amplitude and heartbeat frequency;
and judging whether the user enters a sleep state or not based on the human sleep characteristics.
7. The radar-based nightlight control method of claim 1, wherein after the controlling the nightlight to operate in the first state, the method further comprises:
and the night lamp enters the first state, and the night lamp works in the second state after the illumination time is preset in the first state.
8. A radar-based night light control apparatus, comprising:
the echo signal acquisition module is used for acquiring an echo signal obtained by detecting the surface area of the bed body by a radar;
the point cloud data extraction module is used for judging whether a user enters a sleep state according to the echo signal, and extracting point cloud data from the echo signal if the user enters the sleep state;
the rising action monitoring module is used for acquiring the signal to noise ratio of the point cloud data and the height value of each point in the point cloud data, and judging that the user has a rising action if the signal to noise ratio of the point cloud data meets a preset body movement condition and the height value of each point in the point cloud data meets a preset rising judgment condition;
and the night lamp control module is used for controlling the night lamp to work in a first state if the user has the rising action, otherwise, controlling the night lamp to work in a second state.
9. A radar comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor when executing the computer program performs the steps of the method of any one of claims 1 to 7.
10. A computer-readable storage medium, having a computer program stored thereon, where the computer program is adapted, when executed by a processor, to carry out the steps of the method for radar-based nightlight control as claimed in any one of claims 1 to 7.
CN202310257170.7A 2023-03-17 2023-03-17 Night lamp control method and device based on radar, radar and storage medium Pending CN115968080A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310257170.7A CN115968080A (en) 2023-03-17 2023-03-17 Night lamp control method and device based on radar, radar and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310257170.7A CN115968080A (en) 2023-03-17 2023-03-17 Night lamp control method and device based on radar, radar and storage medium

Publications (1)

Publication Number Publication Date
CN115968080A true CN115968080A (en) 2023-04-14

Family

ID=87353384

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310257170.7A Pending CN115968080A (en) 2023-03-17 2023-03-17 Night lamp control method and device based on radar, radar and storage medium

Country Status (1)

Country Link
CN (1) CN115968080A (en)

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101867460A (en) * 2009-04-14 2010-10-20 华为技术有限公司 Signal-to-noise ratio acquisition device, method and communication equipment
CN104540305A (en) * 2015-01-16 2015-04-22 上海镭芯微电子有限公司 Induction illumination device
CN105302304A (en) * 2015-10-23 2016-02-03 广东小天才科技有限公司 Method and apparatus for automatically starting illumination apparatus and intelligent watch
JP2016075615A (en) * 2014-10-08 2016-05-12 三菱電機株式会社 Target detection device
CN108317459A (en) * 2018-01-25 2018-07-24 孙学川 A kind of intelligence night-light
CN109892903A (en) * 2019-03-21 2019-06-18 广东比铉智能科技有限公司 Intelligent pressure induction type mattress system and its application method
CN110632849A (en) * 2019-08-23 2019-12-31 珠海格力电器股份有限公司 Intelligent household appliance, control method and device thereof and storage medium
CN113883668A (en) * 2021-09-13 2022-01-04 Tcl空调器(中山)有限公司 Sleep-aiding method and device for air conditioner, air conditioner and storage medium
CN113947867A (en) * 2021-09-23 2022-01-18 宁波溪棠信息科技有限公司 Method, system, electronic device and storage medium for detecting abnormal target behaviors
CN113945915A (en) * 2021-10-18 2022-01-18 四川启睿克科技有限公司 Method and device for detecting falling by millimeter wave radar
CN114176521A (en) * 2021-12-09 2022-03-15 森思泰克河北科技有限公司 Sleep staging method and device based on radar information and terminal
CN114699046A (en) * 2022-04-25 2022-07-05 深圳市华屹医疗科技有限公司 Sleep monitoring method, monitor and monitoring system
CN115345908A (en) * 2022-10-18 2022-11-15 四川启睿克科技有限公司 Human body posture recognition method based on millimeter wave radar
WO2023286677A1 (en) * 2021-07-15 2023-01-19 パナソニックIpマネジメント株式会社 Information processing device, information processing method, and program

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101867460A (en) * 2009-04-14 2010-10-20 华为技术有限公司 Signal-to-noise ratio acquisition device, method and communication equipment
JP2016075615A (en) * 2014-10-08 2016-05-12 三菱電機株式会社 Target detection device
CN104540305A (en) * 2015-01-16 2015-04-22 上海镭芯微电子有限公司 Induction illumination device
CN105302304A (en) * 2015-10-23 2016-02-03 广东小天才科技有限公司 Method and apparatus for automatically starting illumination apparatus and intelligent watch
CN108317459A (en) * 2018-01-25 2018-07-24 孙学川 A kind of intelligence night-light
CN109892903A (en) * 2019-03-21 2019-06-18 广东比铉智能科技有限公司 Intelligent pressure induction type mattress system and its application method
CN110632849A (en) * 2019-08-23 2019-12-31 珠海格力电器股份有限公司 Intelligent household appliance, control method and device thereof and storage medium
WO2023286677A1 (en) * 2021-07-15 2023-01-19 パナソニックIpマネジメント株式会社 Information processing device, information processing method, and program
CN113883668A (en) * 2021-09-13 2022-01-04 Tcl空调器(中山)有限公司 Sleep-aiding method and device for air conditioner, air conditioner and storage medium
CN113947867A (en) * 2021-09-23 2022-01-18 宁波溪棠信息科技有限公司 Method, system, electronic device and storage medium for detecting abnormal target behaviors
CN113945915A (en) * 2021-10-18 2022-01-18 四川启睿克科技有限公司 Method and device for detecting falling by millimeter wave radar
CN114176521A (en) * 2021-12-09 2022-03-15 森思泰克河北科技有限公司 Sleep staging method and device based on radar information and terminal
CN114699046A (en) * 2022-04-25 2022-07-05 深圳市华屹医疗科技有限公司 Sleep monitoring method, monitor and monitoring system
CN115345908A (en) * 2022-10-18 2022-11-15 四川启睿克科技有限公司 Human body posture recognition method based on millimeter wave radar

Similar Documents

Publication Publication Date Title
US20190034713A1 (en) Method and apparatus for health and safety momitoring of a subject in a room
US10417901B2 (en) Electronic device and control method thereof
CN110192862B (en) Radar-based non-contact human body respiration detection method and device
CN109961058B (en) Non-contact fall detection method and device
CN111372363A (en) Control method and device of lamp, storage medium and lamp
TW201517870A (en) Apparatus based on image for detecting heart rate activity and method thereof
CN107703779B (en) Method and device for controlling opening and closing of function by identifying whether wearable equipment is worn or not
CN106782544A (en) Interactive voice equipment and its output intent
CN105813558A (en) System and method for determining sleep stage based on sleep cycle
CN203898284U (en) Living anomaly detection device for old people
CN113925475A (en) Non-contact human health monitoring device and method
CN107865644B (en) Pulse wave measurement device, pulse wave measurement method, program, and recording medium
CN106551679A (en) A kind of mobile terminal and the temp measuring method based on mobile terminal
CN111081375A (en) Early warning method and system for health monitoring
CN109567767A (en) A kind of intelligence infant nursing automatic reminding system and method
CN108010579A (en) Health monitoring system
CN114569101A (en) Non-contact heart rate detection method and device and electronic equipment
CN115968080A (en) Night lamp control method and device based on radar, radar and storage medium
US20240049974A1 (en) Systems, apparatus and methods for acquisition, storage and analysis of health and environmental data
KR20170008944A (en) Light control system using EEG
CN108502692B (en) The adjustable staircase of pedal spacing
CN115120236A (en) Emotion recognition method and device, wearable device and storage medium
CN116234110A (en) Night lamp control method and device based on radar, radar and storage medium
CN114492656A (en) Fatigue degree monitoring system based on computer vision and sensor
CN110874560A (en) Image detection method and image detection device for selecting representative image of user

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20230414