Human body existence detection method and device, readable storage medium and terminal equipment

Through distance-dimensional fast Fourier transform and consistency calculation, the problem of low human presence detection efficiency of FMCW millimeter wave radar is solved, efficient human presence detection is achieved, and the adaptability and resource utilization of the detection method are improved.

CN118778045AActive Publication Date: 2024-10-15SHENZHEN RUIJIE INTELLIGENT CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202410958111.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-17
Publication Date
2024-10-15
Estimated Expiration
2044-07-17

AI Technical Summary

Technical Problem

Existing FMCW millimeter-wave radar requires three-dimensional fast Fourier transform when detecting human presence, which results in long calculation time, high computing power consumption, and low efficiency.

Method used

The distance-dimensional fast Fourier transform is used and the consistency degree of the fast Fourier transform spectrum signal and the reference spectrum signal is calculated to determine the human body presence detection result, which reduces the computational complexity.

Benefits of technology

It improves the efficiency of human presence detection, saves resources and computing power, improves the adaptability of detection methods, and expands the application scenarios of FMCW millimeter wave radar.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure FT_1
    Figure FT_1
  • Figure FT_2
    Figure FT_2
  • Figure FT_3
    Figure FT_3
Patent Text Reader

Abstract

The invention belongs to the technical field of human body detection, and particularly relates to a human body existence detection method and device, a computer readable storage medium and terminal equipment. The method comprises the following steps: acquiring a target radar intermediate frequency signal; wherein the target radar intermediate frequency signal is a radar intermediate frequency signal at the current moment; performing distance dimension fast Fourier transform on the target radar intermediate frequency signal to obtain a target fast Fourier transform spectrum signal; calculating the consistency degree of the target fast Fourier transform spectrum signal and a reference spectrum signal; wherein the reference spectrum signal is a fast Fourier transform spectrum signal obtained at a reference moment, and the reference moment is before the current moment; and based on the consistency degree, determining a human body existence detection result at the current moment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the technical field of human body detection, and in particular, relates to a method, apparatus, computer-readable storage medium and terminal device for detecting the presence of a human body. Background Art

[0002] With the development of smart technology, smart homes have gradually entered thousands of households, bringing many conveniences to people's lives. In the field of smart homes, frequency-modulated continuous wave (FMCW) millimeter wave radar has many close-range human presence detection application scenarios. For example, when a human body is detected next to a smart toilet, the lid remains open. For another example, when a human body is detected near a smart desk lamp, the light is turned on actively.

[0003] At present, when using FMCW millimeter-wave radar for human presence detection, it is usually necessary to perform three-dimensional fast Fourier transform calculation on the radar signal, which will consume a lot of time and computing power, resulting in low efficiency of the human presence detection method. Summary of the invention

[0004] In view of this, the embodiments of the present application provide a human presence detection method, apparatus, computer-readable storage medium and terminal device to solve the problem of low efficiency of human presence detection methods in the prior art.

[0005] A first aspect of an embodiment of the present application provides a method for detecting the presence of a human body, which may include: Acquire a target radar intermediate frequency signal; wherein the target radar intermediate frequency signal is a radar intermediate frequency signal at a current moment; Performing a range-dimensional fast Fourier transform on the target radar intermediate frequency signal to obtain a target fast Fourier transform spectrum signal; Calculating the consistency between the target fast Fourier transform spectrum signal and the reference spectrum signal; wherein the reference spectrum signal is a fast Fourier transform spectrum signal obtained at a reference time, and the reference time is before the current time; Based on the consistency level, a human presence detection result at the current moment is determined.

[0006] A second aspect of the embodiments of the present application provides a human presence detection device, which may include: A radar intermediate frequency signal acquisition module, used to acquire a target radar intermediate frequency signal; wherein the target radar intermediate frequency signal is a radar intermediate frequency signal at the current moment; A fast Fourier transform module is used to perform a range-dimensional fast Fourier transform on the target radar intermediate frequency signal to obtain a target fast Fourier transform spectrum signal; A consistency calculation module, used to calculate the consistency between the target fast Fourier transform spectrum signal and the reference spectrum signal; wherein the reference spectrum signal is a fast Fourier transform spectrum signal obtained at a reference time, and the reference time is before the current time; The detection result determination module is used to determine the human presence detection result at the current moment based on the consistency degree.

[0007] A third aspect of an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps of any of the above-mentioned human presence detection methods are implemented.

[0008] The fourth aspect of an embodiment of the present application provides a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of any one of the above-mentioned human presence detection methods when executing the computer program.

[0009] A fifth aspect of an embodiment of the present application provides a computer program product. When the computer program product is run on a terminal device, the terminal device executes the steps of any one of the above-mentioned human presence detection methods.

[0010] Compared with the prior art, the embodiments of the present application have the following beneficial effects: the embodiments of the present application obtain the target radar intermediate frequency signal; wherein the target radar intermediate frequency signal is the radar intermediate frequency signal at the current moment; the target radar intermediate frequency signal is subjected to a distance-dimensional fast Fourier transform to obtain a target fast Fourier transform spectrum signal; the consistency degree between the target fast Fourier transform spectrum signal and the reference spectrum signal is calculated; wherein the reference spectrum signal is a fast Fourier transform spectrum signal obtained at a reference moment, and the reference moment is before the current moment; based on the consistency degree, the human presence detection result at the current moment is determined. Through the embodiments of the present application, the radar intermediate frequency signal can be subjected to a distance-dimensional fast Fourier transform, and the consistency degree between the spectrum signal obtained after the fast Fourier transform and the reference spectrum signal obtained in the previous period of time is calculated. According to the consistency degree, the human presence detection result can be determined. Compared with the existing solution that requires a three-dimensional fast Fourier transform, the embodiments of the present application only need to perform a one-dimensional fast Fourier transform, which can greatly improve the efficiency of the human presence detection method, help save resources and computing power, and improve the scene adaptability of the human presence detection method. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0012] Figure 1 This is a flow chart of an embodiment of a method for detecting the presence of a human body in an embodiment of the present application; Figure 2 It is a schematic diagram of radar detection signal and radar echo signal; Figure 3 is a schematic diagram of a difference sequence between a fast Fourier transform spectrum signal and a reference spectrum signal at a certain moment; Figure 4 This is a structural diagram of an embodiment of a human presence detection device in an embodiment of the present application; Figure 5 This is a schematic block diagram of a terminal device in an embodiment of the present application. DETAILED DESCRIPTION

[0013] In order to make the purpose, features, and advantages of the invention of this application more obvious and easy to understand, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the embodiments described below are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0014] It should be understood that when used in this specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof.

[0015] It should also be understood that the terms used in this application specification are only for the purpose of describing specific embodiments and are not intended to limit the application. As used in this application specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.

[0016] It should be further understood that the term “and / or” used in the specification and appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0017] As used in this specification and the appended claims, the term "if" may be interpreted as "when" or "upon" or "in response to determining" or "in response to detecting," depending on the context. Similarly, the phrases "if it is determined" or "if [described condition or event] is detected" may be interpreted as meaning "upon determination" or "in response to determining" or "upon detection of [described condition or event]" or "in response to detecting [described condition or event]," depending on the context.

[0018] In addition, in the description of the present application, the terms "first", "second", "third", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.

[0019] With the development of smart technology, smart homes have gradually entered thousands of households, bringing many conveniences to people's lives. In the field of smart homes, frequency-modulated continuous wave (FMCW) millimeter wave radar has many close-range human presence detection application scenarios. For example, when a human body is detected next to a smart toilet, the toilet lid is kept open; for another example, when a human body is detected near a smart desk lamp, the light is turned on actively.

[0020] At present, when using FMCW millimeter-wave radar for human presence detection, it is usually necessary to calculate the three-dimensional fast Fourier transform of the radar signal. The calculation process involves multiple filtering and predictions, which will consume a lot of time and computing power, resulting in low efficiency of the human presence detection method.

[0021] In view of this, the embodiments of the present application provide a human presence detection method, apparatus, computer-readable storage medium and terminal device to solve the problem of low efficiency of human presence detection methods in the prior art.

[0022] It should be noted that the executor of the method of the present application is a terminal device, specifically, it may include but is not limited to common smart home devices such as smart desk lamps, smart toilets, smart beds, smart door locks, smart sofas, etc.

[0023] See also Figure 1 , an embodiment of a method for detecting the presence of a human body in an embodiment of the present application may include: Step S101: Acquire target radar intermediate frequency signal.

[0024] Among them, the target radar intermediate frequency signal is the radar intermediate frequency signal at the current moment.

[0025] In the embodiment of the present application, the terminal device may be pre-equipped with an FMCW millimeter wave radar for real-time close-range detection; when performing close-range detection, the FMCW millimeter wave radar may be used to transmit a radar detection signal to the monitoring area according to a preset detection cycle; at the same time, the feedback radar echo signal may also be collected, such as Figure 2 By mixing the currently collected radar echo signal and the currently transmitted radar detection signal, an intermediate frequency signal can be obtained; based on the intermediate frequency signal, the distance information between each object in the monitoring area and the FMCW millimeter wave radar can be determined.

[0026] In an embodiment of the present application, at the current moment, a group of radar detection signals can be transmitted to the monitoring area by using an FMCW millimeter-wave radar; wherein a group of radar detection signals can include a preset number of individual radar detection signals; at the same time, a group of radar echo signals can also be collected, and a group of radar echo signals can also include the same number of individual radar echo signals as the radar detection signals; wherein, the specific value of the preset number can be concretized and situationally set according to actual needs, and the present application does not limit this; here, the specific value of the preset number can preferably be set to 32, that is, a group of radar detection signals can include 32 radar detection signals, and a group of radar echo signals can include 32 radar echo signals.

[0027] Afterwards, the radar echo signal collected at the current moment can be mixed with the radar detection signal emitted at the current moment to obtain the radar intermediate frequency signal at the current moment (called the target radar intermediate frequency signal).

[0028] In a specific implementation of an embodiment of the present application, in order to facilitate analysis, the target radar intermediate frequency signal can also be filtered to obtain the filtered target radar intermediate frequency signal, and subsequent human presence detection can be performed based on the filtered target radar intermediate frequency signal.

[0029] Step S102: performing a range-dimensional fast Fourier transform on the target radar intermediate frequency signal to obtain a target fast Fourier transform spectrum signal.

[0030] In an embodiment of the present application, a range-dimensional fast Fourier transform may be performed on the target radar intermediate frequency signal, thereby converting the target radar intermediate frequency signal from a time domain signal into a frequency domain signal to obtain a target fast Fourier transform spectrum signal.

[0031] By fast Fourier transforming the target spectrum signal, the characteristics of the target radar intermediate frequency signal in the frequency domain and the distance dimension information can be efficiently analyzed while saving computing power and time.

[0032] Step S103: Calculate the consistency between the target fast Fourier transform spectrum signal and the reference spectrum signal.

[0033] Normally, radar detection signals can pass through non-metallic obstacles (such as ceramic toilet seats, plastic or wooden shells, etc.) and will spontaneously decay in the air.

[0034] If at a certain moment (for example, the first second), there is no human body in the monitoring area, the collected radar echo signal is usually a noise signal, or a severely attenuated signal obtained after multipath reflection from distant obstacles. Therefore, when there is no human body in the monitoring area, the radar echo signal has a large difference in the change trend at each frequency point and is more random. If there is still no human body in the monitoring area after a short period of time (for example, the 1.5th second), the fast Fourier transform spectrum signal obtained in the 1.5th second will also be a noise signal or a severely attenuated signal. The fast Fourier transform spectrum signal will also have the problem of large difference in change trend and strong randomness. If the fast Fourier transform spectrum signal obtained in the first second is subtracted from the fast Fourier transform spectrum signal obtained in the 1.5th second, the obtained sequences will be disorganized and have poor consistency with each other. Figure 3 As shown; if there is a human body in the monitoring area at both the 1st second and the 1.5th second, the radar echo signals collected at the two moments will usually be stronger, and the changing trends of the radar echo signals at each frequency point are similar, showing obvious consistency; if the fast Fourier transform spectrum signal obtained at the 1st second is subtracted from the fast Fourier transform spectrum signal obtained at the 1.5th second, the obtained sequences will be more similar, showing obvious consistency.

[0035] In the embodiment of the present application, the fast Fourier transform spectrum signal obtained in a period of time before the current moment (referred to as the reference moment) can be selected as the reference spectrum signal, and the consistency between the target fast Fourier transform spectrum signal and the reference spectrum signal can be calculated. Since the fast Fourier transform spectrum signals obtained at the two moments will show a more obvious consistency (higher consistency) only when there is a human body in the monitoring area at both the reference moment and the current moment, the human body presence detection result can be determined based on the consistency of the fast Fourier transform spectrum signals obtained at the two moments.

[0036] In the embodiment of the present application, the target fast Fourier transform spectrum signal A preset number of transformed spectrum data sequences may be included in , each transformed spectrum data sequence It is obtained by fast Fourier transform of a radar intermediate frequency signal, which can be recorded as ;in, for The number of transformed spectrum data sequences contained in, that is, the number of radar detection signals included in a group of radar detection signals.

[0037] Specifically, since a group of radar detection signals includes various radar detection signals, corresponding intermediate frequency signals can be obtained; by performing fast Fourier transform on each intermediate frequency signal, various transformation spectrum data sequences can be obtained; and based on the various transformation spectrum data sequences, the target fast Fourier transform spectrum signal can be constructed.

[0038] For example, a group of radar detection signals includes 32 radar detection signals; based on this, 32 intermediate frequency signals can be obtained, and the 32 intermediate frequency signals are subjected to fast Fourier transform respectively to obtain the corresponding transform spectrum data sequences (a total of 32 transform spectrum data sequences), and based on the 32 transform spectrum data sequences, the target fast Fourier transform spectrum signal can be constructed.

[0039] Each transformation spectrum data sequence can include individual transformation spectrum data, each of which is the spectrum energy corresponding to a range gate, denoted as ;in, is the number of range gates that the FMCW millimeter-wave radar can detect, The specific value of can be determined by the detection range of the FMCW millimeter wave radar.

[0040] For example, the distance resolution of FMCW millimeter-wave radar is 10 cm, and a total of 64 range gates can be detected, that is, is 64; therefore, it can be seen that the maximum distance that the FMCW millimeter wave radar can detect is 640 cm (10 cm * 64), so the transformation spectrum data sequence The spectrum energy corresponding to 64 range gates can be included, denoted as ,in, for The spectral energy corresponding to the 10th centimeter, for The spectral energy corresponding to the 20th centimeter in the... for The spectral energy corresponding to the 640th cm.

[0041] In an embodiment of the present application, a moment before the current moment can be used as a reference moment, and the fast Fourier transform spectrum signal obtained at the reference moment can be used as a reference spectrum signal, and any transform spectrum data sequence in the reference spectrum signal can also be used as a reference spectrum data sequence in the reference spectrum signal.

[0042] For example, 0.5 seconds before the current moment can be used as the reference moment, and the fast Fourier transform spectrum signal obtained at the reference moment can be used as the reference spectrum signal; since the reference spectrum signal includes 32 transform spectrum data sequences, the first transform spectrum data sequence among the 32 transform spectrum data sequences can be used as the reference spectrum data sequence in the reference spectrum signal.

[0043] Here, the transformed spectrum data corresponding to the preset detection distance in the reference spectrum data sequence can also be used as the reference spectrum data; wherein the detection distance can be specific and situational according to actual needs and the performance of the radar, and this application does not limit this. For example, the detection distance can be 1 meter, and if the distance resolution of the FMCW millimeter wave radar is 10 centimeters, the first 10 transformed spectrum data in the reference spectrum data sequence can be used as the reference spectrum data.

[0044] Similarly, the transformed spectrum data corresponding to the detection distance in the transformed spectrum data sequence can also be used as effective spectrum data.

[0045] In the embodiment of the present application, the difference between the effective spectrum data and the reference spectrum data in each transformed spectrum data sequence in the target fast Fourier transform spectrum signal can be calculated respectively to obtain a corresponding difference sequence.

[0046] Afterwards, the differences between the corresponding maximum spectrum data and minimum spectrum data in each difference sequence can be calculated respectively to obtain each spectrum data difference; wherein the maximum spectrum data is the maximum value of each difference in the difference sequence, and the minimum spectrum data is the minimum value of each difference in the difference sequence.

[0047] Here, the differences between the various spectral data can also be summed to obtain the target sum; in addition, the difference between the target maximum spectral data and the target minimum spectral data can also be calculated to obtain the target difference; wherein the target maximum spectral data is the maximum value among the various maximum spectral data, and the target minimum spectral data is the minimum value among the various minimum spectral data.

[0048] Based on the target difference and the target sum, the degree of consistency between the target fast Fourier transform spectrum signal and the reference spectrum signal can be determined; specifically, the ratio between the target sum and the target difference can be calculated, and then the degree of consistency between the target fast Fourier transform spectrum signal and the reference spectrum signal can be determined based on the ratio.

[0049] If the ratio is larger, it means that the difference between the target fast Fourier transform spectrum signal and the reference spectrum signal is larger, that is, the consistency between the target fast Fourier transform spectrum signal and the reference spectrum signal is smaller; if the ratio is smaller, it means that the difference between the target fast Fourier transform spectrum signal and the reference spectrum signal is smaller, that is, the consistency between the target fast Fourier transform spectrum signal and the reference spectrum signal is greater.

[0050] For ease of understanding, the calculation process of the consistency degree between the target fast Fourier transform spectrum signal and the reference spectrum signal in the present application will be described below in conjunction with specific embodiments.

[0051] In this embodiment, a group of radar detection signals may include 32 radar detection signals, that is, N is 32; the distance resolution of the FMCW millimeter wave radar is 10 cm, and a total of 64 range gates can be detected; that is, the target fast Fourier transform spectrum signal ; Each transformed spectrum data sequence can include the spectrum energy corresponding to 64 range gates; that is, .

[0052] Here, the detection distance can be set to 1 meter. Based on this, the spectral energy corresponding to the first 10 range gates in each transformed spectrum data sequence can be set as the effective spectrum data. For example, for the first transformed spectrum data sequence In terms of In as effective spectrum data.

[0053] In addition, 0.5 seconds before the current moment can be used as a reference moment, and the fast Fourier transform spectrum signal obtained at the reference moment can be used as a reference spectrum signal; and any transform spectrum data sequence in the reference spectrum signal can be used as a reference spectrum data sequence; for example, the first transform spectrum data sequence of the reference spectrum signal can be used as a reference spectrum data sequence, denoted as , since the detection distance is 1 meter, we can The first 10 transformed spectrum data (i.e., ) as reference spectrum data.

[0054] Afterwards, the differences between the effective spectrum data and the reference spectrum data in each transformed spectrum data sequence in the target fast Fourier transform spectrum signal can be calculated respectively to obtain the corresponding difference sequence.

[0055] Take the first transform spectrum data sequence in the target fast Fourier transform spectrum signal For example, we can calculate In and In The difference between In and In The difference between... Calculate In and In The absolute value of the difference between The corresponding difference sequence is calculated as follows: , in, for The corresponding difference sequence. The other transformed spectrum data sequences in the target fast Fourier transformed spectrum signal can be calculated according to the above method to obtain the difference sequences.

[0056] Afterwards, the difference between the corresponding maximum spectrum data and minimum spectrum data in each difference sequence can be calculated to obtain each spectrum data difference, wherein the maximum spectrum data is the maximum value of each difference in the difference sequence, and the minimum spectrum data is the minimum value of each difference in the difference sequence.

[0057] Transform spectrum data sequence The corresponding difference sequence For example, if The maximum value of each difference is , the minimum value is , then you can Determined as The maximum spectrum data ,Will Determined as Minimum spectrum data ; Afterwards, the maximum spectral data can be calculated With minimum spectrum data The difference between them, get the difference sequence The corresponding spectral data difference .

[0058] The other transformed spectrum data sequences in the target fast Fourier transform spectrum signal can be calculated according to the above method to obtain the spectrum data difference, that is, , , .

[0059] Afterwards, the difference values ​​of each spectrum data can be summed to obtain the target sum. The specific calculation formula is:

[0060] in, For the goal and is the transformed spectrum data sequence The corresponding difference sequence The maximum spectrum data, is the transformed spectrum data sequence The corresponding difference sequence The minimum spectrum data.

[0061] Here, the maximum value and the minimum value of each maximum spectrum data can also be determined, and the maximum value can be determined as the target maximum spectrum data, and the minimum value can be determined as the target minimum spectrum data. , target minimum spectrum data After that, the target maximum spectrum data can be calculated With the target minimum spectrum data The difference between the two gets the target difference .

[0062] Based on goals and Difference from target , determine the degree of consistency; specifically, the target and Difference from target The ratio between ,Afterwards, the consistency degree between the target fast Fourier transform spectrum signal and the reference spectrum signal can be determined according to the ratio.

[0063] In a specific implementation, The reciprocal of is taken as the value of the consistency degree.

[0064] Step S104: Determine the human presence detection result at the current moment based on the consistency degree.

[0065] In an embodiment of the present application, if the degree of consistency is less than or equal to a preset degree threshold, it can be considered that the degree of consistency between the target fast Fourier transform spectrum signal and the reference spectrum signal is small. At this time, it can be determined that the human body presence detection result at the current moment is that there is no human body.

[0066] If the consistency degree is greater than the degree threshold, it can be considered that the consistency degree between the target fast Fourier transform spectrum signal and the reference spectrum signal is relatively large. At this time, it can be determined that the human body presence detection result at the current moment is that a human body exists.

[0067] Among them, the above-mentioned degree threshold can be specifically set according to actual needs, and this application does not limit this.

[0068] Accordingly, human presence detection can be performed efficiently and conveniently without performing complex three-dimensional fast Fourier transform, thereby greatly saving computing power and cost, and reducing the performance requirements for the processor, so that the human presence detection method of the embodiment of the present application has stronger usability, and can help expand the application scenarios of FMCW millimeter-wave radar (such as human micro-motion detection, human standing detection), and improve the scene adaptability of FMCW millimeter-wave radar.

[0069] In an embodiment of the present application, the reference spectrum signal can also be updated based on a preset time interval; wherein the update time interval can be specific and situational according to actual needs, and the present application does not limit this.

[0070] Specifically, each reference spectrum signal update time may be determined according to a preset time interval, and at each reference spectrum signal update time, a fast Fourier transform spectrum signal obtained at the corresponding reference spectrum signal update time may be determined as the reference spectrum signal. For example, the updating time interval may be 0.4 seconds, that is, the reference spectrum signal is updated every 0.4 seconds; accordingly, it can be determined that the updating times of the reference spectrum signals for updating the reference spectrum signal are 0.4 seconds, 0.8 seconds, 1.2 seconds, etc. At 0.4 seconds, the radar intermediate frequency signal obtained at 0.4 seconds may be subjected to a distance-dimensional fast Fourier transform to obtain a fast Fourier transform spectrum signal, and the fast Fourier transform spectrum signal may be determined as the reference spectrum signal; at 0.8 seconds, the radar intermediate frequency signal obtained at 0.8 seconds may be subjected to a distance-dimensional fast Fourier transform to obtain a fast Fourier transform spectrum signal, and the fast Fourier transform spectrum signal may be determined as the reference spectrum signal; at 1.2 seconds, the radar intermediate frequency signal obtained at 1.2 seconds may be subjected to a distance-dimensional fast Fourier transform to obtain a fast Fourier transform spectrum signal, and the fast Fourier transform spectrum signal may be determined as the reference spectrum signal... Based on this, it can be ensured that timely and valuable reference spectrum signals are provided for the target radar intermediate frequency signals.

[0071] In a specific implementation of the embodiment of the present application, the human body detection state can also be determined according to the human body presence detection result; specifically, if the human body presence detection result at the current moment is that a human body exists, the human body detection state can be determined to be the first state; wherein the first state is a state in which a human body exists; if the human body presence detection result at the current moment is that a human body does not exist, the human body detection state can be determined to be the second state; wherein the second state is a state in which a human body does not exist; and according to the human body detection state, the terminal device can perform corresponding operations; for example, if the terminal device is a smart desk lamp, if the human body detection state is that a human body exists, the desk lamp can be automatically turned on; if the human body detection state is that a human body does not exist, the desk lamp can be automatically turned off. For another example, if the terminal device is a smart toilet, if the human body detection state is that a human body exists, the toilet lid can be automatically opened; if the human body detection state is that a human body does not exist, the toilet lid can be automatically closed.

[0072] In another specific implementation of the embodiment of the present application, if the human body detection state changes too frequently, it may cause the operation of the terminal device to be too abrupt, thereby affecting the user experience. Therefore, in order to maintain a relatively stable human body detection state, a timer can also be set here, and the timer can keep timing within a preset period after each reset; during this period, the human body detection state can be kept in a certain state, so that the jump of the human body detection state can be reduced. If the human body presence detection result at the current moment is that the human body exists, the timer can be reset, and the human body detection state can be determined as the first state; if the human body presence detection result at the current moment is that the human body does not exist, and the timer keeps timing, it can be said that the human body was detected a short time before the current moment, and it can be considered that the detection of the absence of the human body may be a misjudgment, and the human body detection state can be kept in the first state; if the human body presence detection result at the current moment is that the human body does not exist, but the timer does not count, it can be said that the human body was not detected a short time before the current moment, and at this time, the human body detection state can be determined as the second state. Accordingly, each time the presence of a human body is detected, the human body detection state can be kept in the first state for a period of time, reducing the frequent jumps of the human body detection state and improving the user experience.

[0073] In summary, the embodiment of the present application obtains the target radar intermediate frequency signal; wherein the target radar intermediate frequency signal is the radar intermediate frequency signal at the current moment; the target radar intermediate frequency signal is subjected to a distance-dimensional fast Fourier transform to obtain a target fast Fourier transform spectrum signal; the consistency between the target fast Fourier transform spectrum signal and the reference spectrum signal is calculated; wherein the reference spectrum signal is a fast Fourier transform spectrum signal obtained at a reference moment, and the reference moment is before the current moment; based on the consistency, the human presence detection result at the current moment is determined. Through the embodiment of the present application, the radar intermediate frequency signal can be subjected to a distance-dimensional fast Fourier transform, and the consistency between the spectrum signal obtained after the fast Fourier transform and the reference spectrum signal obtained a period of time before is calculated. According to the consistency, the human presence detection result can be determined. Compared with the existing solution that requires a three-dimensional fast Fourier transform, the embodiment of the present application only needs to perform a one-dimensional fast Fourier transform, which can greatly improve the efficiency of the human presence detection method, help save resources and computing power, and improve the scene adaptability of the human presence detection method.

[0074] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application. Corresponding to the human presence detection method described in the above embodiment, Figure 4A structural diagram of an embodiment of a human presence detection device provided in an embodiment of the present application is shown.

[0075] In an embodiment of the present application, a human presence detection device may include: The radar intermediate frequency signal acquisition module 401 is used to acquire the target radar intermediate frequency signal; wherein the target radar intermediate frequency signal is the radar intermediate frequency signal at the current moment; A fast Fourier transform module 402 is used to perform a range-dimensional fast Fourier transform on the target radar intermediate frequency signal to obtain a target fast Fourier transform spectrum signal; The consistency calculation module 403 is used to calculate the consistency between the target fast Fourier transform spectrum signal and the reference spectrum signal; wherein the reference spectrum signal is a fast Fourier transform spectrum signal obtained at a reference time, and the reference time is before the current time; The detection result determination module 404 is used to determine the human presence detection result at the current moment based on the consistency level.

[0076] In a specific implementation of the embodiment of the present application, the radar intermediate frequency signal acquisition module includes: The radar echo signal acquisition submodule is used to obtain the radar echo signal collected at the current moment; The mixing processing submodule is used to mix the radar echo signal collected at the current moment with the radar detection signal emitted at the current moment to obtain the target radar intermediate frequency signal.

[0077] In a specific implementation of the embodiment of the present application, the target fast Fourier transform spectrum signal includes various transform spectrum data sequences, each of the transform spectrum data sequences includes various transform spectrum data, the reference spectrum signal includes a reference spectrum data sequence, the reference spectrum data sequence includes various reference spectrum data, and the reference spectrum data is spectrum data corresponding to a preset detection distance in the reference spectrum data sequence; The consistency degree calculation module includes: A difference calculation submodule, used to respectively calculate the difference between the effective spectrum data in each of the transformed spectrum data sequences and the reference spectrum data to obtain a corresponding difference sequence; wherein the effective spectrum data is the transformed spectrum data in the transformed spectrum data sequence corresponding to the detection distance; The consistency level determination submodule is used to determine the consistency level based on each of the difference value sequences.

[0078] In a specific implementation of the embodiment of the present application, the consistency level determination submodule includes: A spectrum data difference calculation unit, used to calculate the difference between the corresponding maximum spectrum data and minimum spectrum data in each difference sequence, to obtain each spectrum data difference; wherein the maximum spectrum data is the maximum value of each difference in the difference sequence, and the minimum spectrum data is the minimum value of each difference in the difference sequence; A difference summing unit, used for summing the differences of each of the spectrum data to obtain a target sum; A target difference calculation unit, used for calculating the difference between the target maximum spectrum data and the target minimum spectrum data to obtain a target difference; wherein the target maximum spectrum data is the maximum value of each of the maximum spectrum data, and the target minimum spectrum data is the minimum value of each of the minimum spectrum data; A consistency level determination unit is used to determine the consistency level based on the target difference and the target sum.

[0079] In a specific implementation of the embodiment of the present application, the detection result determination module includes: A human body non-existence determination submodule, configured to determine that the human body presence detection result at the current moment is that a human body does not exist if the consistency degree is less than or equal to a preset degree threshold; The human body presence determination submodule is used to determine that the human body presence detection result at the current moment is that a human body exists if the consistency degree is greater than the degree threshold.

[0080] In a specific implementation of the embodiment of the present application, the device further includes: A state determination first module is used to reset the timer if the human body presence detection result at the current moment is that a human body is present, and determine the human body detection state as a first state; wherein the timer keeps timing within a preset period after being reset, and the first state is a state in which a human body is present; A second state determination module, configured to determine the human body detection state as the first state if the human body presence detection result at the current moment is that no human body exists and the timer keeps timing; The third state determination module is used to determine the human body detection state as the second state if the human body presence detection result at the current moment is that there is no human body and the timer is not timing; wherein the second state is a state where no human body is detected.

[0081] In a specific implementation of the embodiment of the present application, the device further includes: An update time determination module, used to determine the update time of each reference spectrum signal based on a preset time interval; The reference spectrum signal updating module is used to update the reference spectrum signal at each reference spectrum signal updating moment.

[0082] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices, modules and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0083] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments. Figure 5 A schematic block diagram of a terminal device provided in an embodiment of the present application is shown. For ease of explanation, only the parts related to the embodiment of the present application are shown.

[0084] like Figure 5 As shown, the terminal device 5 of this embodiment includes: a processor 50, a memory 51, and a computer program 52 stored in the memory 51 and executable on the processor 50. When the processor 50 executes the computer program 52, the steps in the above-mentioned human presence detection method embodiments are implemented, for example Figure 1 Alternatively, when the processor 50 executes the computer program 52, the functions of each module / unit in the above-mentioned device embodiments are realized, for example Figure 4 Functions of modules 401 to 404 are shown.

[0085] Exemplarily, the computer program 52 may be divided into one or more modules / units, which are stored in the memory 51 and executed by the processor 50 to complete the present application. The one or more modules / units may be a series of computer program instruction segments capable of completing specific functions, which are used to describe the execution process of the computer program 52 in the terminal device 5.

[0086] Those skilled in the art will understand that Figure 5 It is only an example of the terminal device 5 and does not constitute a limitation of the terminal device 5. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the terminal device 5 may also include input and output devices, network access devices, buses, etc.

[0087] The processor 50 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0088] The memory 51 may be an internal storage unit of the terminal device 5, such as a hard disk or memory of the terminal device 5. The memory 51 may also be an external storage device of the terminal device 5, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the terminal device 5. Further, the memory 51 may include both an internal storage unit of the terminal device 5 and an external storage device. The memory 51 is used to store the computer program and other programs and data required by the terminal device 5. The memory 51 may also be used to temporarily store data that has been output or is to be output.

[0089] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0090] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0091] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0092] In the embodiments provided in the present application, it should be understood that the disclosed devices / terminal equipment and methods can be implemented in other ways. For example, the device / terminal equipment embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0093] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0094] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0095] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable storage medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable storage medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable storage media do not include electric carrier signals and telecommunication signals.

[0096] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A method for detecting the presence of a human body, characterized in that: include: Acquire a target radar intermediate frequency signal; wherein the target radar intermediate frequency signal is a radar intermediate frequency signal at a current moment; Performing a range-dimensional fast Fourier transform on the target radar intermediate frequency signal to obtain a target fast Fourier transform spectrum signal; Calculating the consistency between the target fast Fourier transform spectrum signal and the reference spectrum signal; wherein the reference spectrum signal is a fast Fourier transform spectrum signal obtained at a reference time, and the reference time is before the current time; Based on the consistency level, a human presence detection result at the current moment is determined.

2. The method for detecting human presence according to claim 1, characterized in that: The step of obtaining the target radar intermediate frequency signal comprises: Get the radar echo signal collected at the current moment; The radar echo signal collected at the current moment is mixed with the radar detection signal emitted at the current moment to obtain the target radar intermediate frequency signal.

3. The method for detecting human presence according to claim 2, characterized in that: The target fast Fourier transform spectrum signal includes various transform spectrum data sequences, each of which includes various transform spectrum data, the reference spectrum signal includes a reference spectrum data sequence, the reference spectrum data sequence includes various reference spectrum data, and the reference spectrum data is spectrum data corresponding to a preset detection distance in the reference spectrum data sequence; The calculating the consistency degree between the target fast Fourier transform spectrum signal and the reference spectrum signal comprises: Calculating the difference between the effective spectrum data in each of the transformed spectrum data sequences and the reference spectrum data respectively to obtain a corresponding difference sequence; wherein the effective spectrum data is the transformed spectrum data in the transformed spectrum data sequence corresponding to the detection distance; Based on each of the difference value sequences, the degree of consistency is determined.

4. The method for detecting human presence according to claim 3, characterized in that: The determining the consistency degree based on each of the difference value sequences comprises: Calculate the difference between the corresponding maximum spectrum data and minimum spectrum data in each difference sequence respectively to obtain each spectrum data difference; wherein the maximum spectrum data is the maximum value of each difference in the difference sequence, and the minimum spectrum data is the minimum value of each difference in the difference sequence; Summing the differences of the spectral data to obtain a target sum; Calculate the difference between the target maximum spectrum data and the target minimum spectrum data to obtain a target difference; wherein the target maximum spectrum data is the maximum value of each of the maximum spectrum data, and the target minimum spectrum data is the minimum value of each of the minimum spectrum data; Based on the target difference and the target sum, the degree of consistency is determined.

5. The method for detecting human presence according to claim 1, characterized in that: The determining of the human presence detection result at the current moment based on the consistency degree includes: If the consistency level is less than or equal to a preset level threshold, determining that the human body presence detection result at the current moment is that there is no human body; If the consistency level is greater than the level threshold, it is determined that the human body presence detection result at the current moment is that a human body exists.

6. The method for detecting human presence according to claim 5, characterized in that: After determining the human presence detection result at the current moment based on the consistency degree, the method further includes: If the human body presence detection result at the current moment is that a human body exists, the timer is reset, and the human body detection state is determined to be a first state; wherein the timer keeps timing within a preset period after being reset, and the first state is a state in which a human body exists; If the human body presence detection result at the current moment is that no human body exists and the timer keeps timing, the human body detection state is determined to be the first state; If the human body presence detection result at the current moment is that there is no human body and the timer is not counting, the human body detection state is determined to be a second state; wherein the second state is a state in which no human body is detected.

7. The method for detecting human presence according to any one of claims 1 to 6, characterized in that: Also includes: Based on a preset time interval, determining the update time of each reference spectrum signal; At each reference spectrum signal update moment, the reference spectrum signal is updated.

8. A human presence detection device, characterized in that: include: A radar intermediate frequency signal acquisition module, used to acquire a target radar intermediate frequency signal; wherein the target radar intermediate frequency signal is a radar intermediate frequency signal at the current moment; A fast Fourier transform module is used to perform a range-dimensional fast Fourier transform on the target radar intermediate frequency signal to obtain a target fast Fourier transform spectrum signal; A consistency calculation module, used to calculate the consistency between the target fast Fourier transform spectrum signal and the reference spectrum signal; wherein the reference spectrum signal is a fast Fourier transform spectrum signal obtained at a reference time, and the reference time is before the current time; The detection result determination module is used to determine the human presence detection result at the current moment based on the consistency degree.

9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the human presence detection method according to any one of claims 1 to 7 are implemented.

10. A terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the human presence detection method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Human body presence sensing method

    CN109347895A

  • Life body detection method, terminal and storage medium

    CN113721213A

  • Human body posture recognition method using millimeter wave radar and storage medium

    CN114578306A

  • FMCW radar human body tumble detection method based on time-varying distance Doppler features

    CN116243304A

  • Human body interaction recognition system based on three-dimensional radar

    CN117111020A