Gesture recognition method, device, storage medium and electronic device
Through the layered processing and instability detection of the radar sensor, the gesture waving movement is recognized, which solves the problem of false triggering in the gesture recognition of the radar sensor and improves the recognition accuracy and robustness.
Patent Information
- Application Number
- CN202410679704.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-29
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2044-05-29
AI Technical Summary
When using radar sensors for gesture recognition, there is a problem of false triggering. For example, when a human body approaches or passes quickly, it is easily recognized as a gesture, which affects the application experience.
By controlling the radar to transmit signals at a preset frame rate and receive echo signals, the echo signals are processed hierarchically according to the radar type, the speed characteristics of the target are extracted, and non-stability detection is performed to determine the gesture waving action.
It effectively eliminates interfering movements such as human walking and running, improves the recognition accuracy of gestures and waving movements, and improves the application experience.
Smart Images

Figure CN118277773B
Abstract
Description
Technical Field
[0001] The present application relates to the field of information technology, and in particular to a gesture recognition method, device, storage medium, and electronic device. Background Art
[0002] With the rapid development of smart homes and wearable devices in recent years, there is a need for contactless, natural interaction methods that minimize user reliance on input devices, such as air gestures. Air gestures, which allow users to naturally express their interaction intentions using their fingers and wrists, offer advantages such as a wide interaction space, greater flexibility, and a better interactive experience. They are gaining increasing popularity in the field of human-computer interaction. Among them, contactless gesture recognition based on radar sensors holds broad application prospects in areas such as smart homes due to its advantages such as low power consumption, lack of light dependence, and low risk of privacy leakage.
[0003] However, in actual applications, when using radar sensors for gesture recognition, there are still robustness issues such as false triggering. For example, if a person passes by or runs quickly close to the radar, it can be easily recognized as a waving gesture, which deteriorates the application experience. Summary of the Invention
[0004] The embodiments of the present application provide a gesture recognition method, device, storage medium, and electronic device, which can improve the accuracy of recognizing gesture waving actions.
[0005] In a first aspect, an embodiment of the present application provides a gesture recognition method, comprising:
[0006] When there is a target within the gesture monitoring range, controlling the radar to transmit a signal at a first preset frame rate and receive an echo signal;
[0007] Performing hierarchical processing on the echo signal according to the type of the radar;
[0008] Perform feature extraction based on the hierarchical processing result to obtain the speed feature of the target;
[0009] performing instability detection on the presence of the target according to the velocity characteristics;
[0010] When the detection result meets the preset conditions, it is determined that a gesture waving action exists.
[0011] In the gesture recognition method provided in the embodiment of the present application, the hierarchical processing of the echo signal according to the type of the radar includes:
[0012] When the radar is a Doppler radar, performing STFT processing on the echo signal after performing static component filtering;
[0013] When the radar is an FMCW radar or a stepped frequency radar, the echo signal is subjected to static component filtering and then a range-dimensional discrete Fourier transform is performed, and then all range bins within a preset distance range are subjected to STFT processing respectively.
[0014] In the gesture recognition method provided in the embodiment of the present application, the feature extraction based on the layered processing result to obtain the speed feature of the target includes:
[0015] Get the energy peak of all STFT output results under each STFT segmentation window;
[0016] The speeds corresponding to the energy peaks are combined into a speed data stream according to the order of the STFT segmented windows;
[0017] The velocity data stream is subjected to one-dimensional median filtering and then slope filtering to obtain an acceleration value data stream.
[0018] In the gesture recognition method provided in the embodiment of the present application, the performing instability detection on the presence of the target according to the speed feature includes:
[0019] Counting a first cumulative number of times that the acceleration value in the acceleration value data stream exceeds a preset acceleration threshold within a current time window;
[0020] When the first accumulated number of times is greater than or equal to a first preset number of times, determining that an unstable motion target is detected within the current time window;
[0021] When the first accumulated number of times is less than the first preset number of times, it is determined that no non-stable motion target is detected within the current time window.
[0022] In the gesture recognition method provided in the embodiment of the present application, the hierarchical processing of the echo signal according to the type of the radar includes:
[0023] When the radar is a Doppler radar, the echo signal is subjected to static component filtering and then high-pass filtering and low-pass filtering are performed respectively to generate a high-speed data stream and a low-speed data stream;
[0024] When the radar is an FMCW radar or a stepped frequency radar, the echo signal is subjected to static component filtering and then a range-dimensional discrete Fourier transform is performed. Then, all range bins within a preset distance range are subjected to high-pass filtering and low-pass filtering respectively to generate several high-speed data streams and several low-speed data streams with additional distance information.
[0025] In the gesture recognition method provided in the embodiment of the present application, the feature extraction based on the layered processing result to obtain the speed feature of the target includes:
[0026] Energy mutation coefficients are calculated for the high-speed data stream and the low-speed data stream respectively to obtain a first energy mutation coefficient data stream and a second energy mutation coefficient data stream.
[0027] In the gesture recognition method provided in the embodiment of the present application, the performing instability detection on the presence of the target according to the speed feature includes:
[0028] Counting a second cumulative number of times that the energy mutation coefficient in the first energy mutation coefficient data stream or the second energy mutation coefficient data stream exceeds a preset mutation threshold within a current time window;
[0029] When the second accumulated number is greater than or equal to a second preset number, determining that an unstable motion target is detected within the current time window;
[0030] When the second accumulated number is less than the second preset number, it is determined that no non-stable motion target is detected within the current time window.
[0031] In a second aspect, an embodiment of the present application provides a gesture recognition device, comprising:
[0032] a transmitting unit, configured to control the radar to transmit signals at a first preset frame rate and receive echo signals when a target is present within the gesture monitoring range;
[0033] a stratification unit, configured to perform stratification processing on the echo signal according to the type of the radar;
[0034] an extraction unit, configured to perform feature extraction based on the hierarchical processing result to obtain a velocity feature of the target;
[0035] a detection unit, configured to perform instability detection on the presence of the target according to the velocity characteristics;
[0036] The recognition unit is used to determine that a gesture waving action exists when the detection result meets a preset condition.
[0037] In a third aspect, the present application provides a storage medium storing a plurality of instructions suitable for loading by a processor to execute any of the above-mentioned gesture recognition methods.
[0038] In a fourth aspect, the present application provides an electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements any of the above-described gesture recognition methods when executing the computer program.
[0039] In summary, the gesture recognition method provided in the embodiments of the present application employs the following steps: when a target is present within the gesture monitoring range, the radar is controlled to transmit signals at a first preset frame rate and receive echo signals; the echo signals are subjected to layered processing according to the radar type; feature extraction is performed based on the layered processing results to obtain the target's velocity characteristics; the target's presence is detected for instability based on the velocity characteristics; and when the detection results meet preset conditions, the presence of a waving gesture is determined. This solution can effectively identify waving gestures by performing instability detection on the target's presence, eliminating interfering movements such as human walking and running, thereby improving the accuracy of identifying waving gestures. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0041] Figure 1 This is an application scenario diagram of the gesture recognition method provided in an embodiment of the present application.
[0042] Figure 2 This is a flow chart of the gesture recognition method provided in an embodiment of the present application.
[0043] Figure 3 Schematic diagram of the structure of the gesture recognition device provided in an embodiment of the present application.
[0044] Figure 4 It is a structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0045] Exemplary embodiments will be described in detail herein, with examples illustrated in the accompanying drawings. In the following description, when referring to the drawings, identical numerals in different figures represent identical or similar elements, unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
[0046] It should be noted that, in this document, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprising a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element. In addition, components, features, and elements with the same name in different embodiments of the present application may have the same meaning or different meanings, and their specific meanings need to be determined by their explanation in the specific embodiment or further combined with the context of the specific embodiment.
[0047] It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application.
[0048] In the subsequent description, the use of suffixes such as "module", "component" or "unit" to represent elements is only for the purpose of facilitating the description of the present application and has no specific meaning. Therefore, "module", "component" or "unit" can be used interchangeably.
[0049] In the description of this application, it should be noted that the terms "upper," "lower," "left," "right," "inner," and "outer," etc., indicating orientations or positional relationships, are based on the orientations or positional relationships shown in the accompanying drawings and are intended solely to facilitate the description of this application and simplify the description. They are not intended to indicate or imply that the devices or components referred to must have a specific orientation, be constructed, or operate in a specific orientation. Therefore, they should not be construed as limitations on this application. Furthermore, terms such as "first" and "second," etc., are used for descriptive purposes only and should not be construed as indicating or implying relative importance.
[0050] Contactless gesture recognition based on radar sensors has broad application prospects in fields such as smart homes due to its advantages such as low power consumption, no light dependence and low privacy leakage risk.
[0051] However, in actual applications, when using radar sensors for gesture recognition, there are still robustness issues such as false triggering. For example, if a person passes by or runs quickly close to the radar, it can be easily recognized as a waving gesture, which deteriorates the application experience.
[0052] Based on this, the embodiments of the present application provide a gesture recognition method, device, storage medium and electronic device. Specifically, the gesture recognition device can be integrated into an electronic device, which can be a server or a terminal. The terminal can include a mobile phone, a wearable smart device, a tablet computer, a laptop computer, and a personal computer (PC). The server can be an independent physical server, a server cluster or a distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms.
[0053] For example, see Figure 1 , Figure 1 1 is an application scenario diagram of the gesture recognition method provided in an embodiment of the present application. In this application scenario, an electronic device 1000 and a target 2000 may be included. It should be noted that a radar may be integrated into the electronic device 1000.
[0054] During the specific implementation process, the electronic device 1000 can monitor the gesture monitoring range through the radar. When the target 2000 exists within the gesture monitoring range, the radar can be controlled to transmit a signal at a first preset frame rate and receive an echo signal; the electronic device 1000 then performs layered processing on the echo signal according to the type of radar; then, the electronic device 1000 can perform feature extraction based on the layered processing result to obtain the speed feature of the target 2000; thereafter, the electronic device 1000 performs instability detection on the existence of the target 2000 based on the speed feature; finally, when the electronic device 1000 determines that the detection result meets the preset conditions, it can be determined that a gesture waving action exists.
[0055] The following will describe the technical solutions of this application in detail through specific embodiments. It should be noted that the order of description of the following embodiments does not limit the priority order of the embodiments.
[0056] See also Figure 2 , Figure 2 : is a flow chart of the gesture recognition method provided in the embodiment of the present application. The specific process of the gesture recognition method can be as follows:
[0057] 101. When there is a target within the gesture monitoring range, control the radar to transmit signals at a first preset frame rate and receive echo signals.
[0058] Specifically, the radar may transmit a signal at a second preset frame rate, and then receive an echo signal, thereby determining whether there is a target within the gesture monitoring range based on the echo signal.
[0059] In the specific implementation process, the gesture monitoring range can be set according to the actual situation, and the embodiment of the present application does not limit it. It should be noted that the specific implementation method of determining whether there is a target within the gesture monitoring range based on the echo signal varies depending on the type of radar.
[0060] For example, if the radar is a Doppler radar, the radar can filter the static components of the echo signal sampling data in the slow time dimension. Then, an N-point Fast Fourier Transform (FFT) is performed on the static component filtered signal in the slow time dimension to obtain a velocity spectrum, which can be used to perform target detection in the velocity spectrum. If a target exceeding a preset energy threshold is detected within a preset speed range in the velocity spectrum, it is determined that the target is within the range of gesture monitoring. Otherwise, it is determined that the target is not within the range of gesture monitoring.
[0061] For example, if the radar is a frequency modulated continuous wave (FMCW) radar or a stepped frequency radar, the radar receives and samples the received echo signal to obtain echo signals at M different frequencies. Then, the echo signals at M different frequencies are respectively subjected to static component filtering in the slow time dimension, and a distance dimension FFT is performed to obtain a distance spectrum to perform target detection in the distance spectrum. If a target is detected within the preset distance range in the distance spectrum, it is determined that a target exists within the distance range of gesture monitoring. Otherwise, it is determined that no target exists within the distance range of gesture monitoring.
[0062] During the specific implementation process, the preset speed range and the preset distance range can be set according to actual conditions, and the embodiments of the present application do not limit them.
[0063] In some embodiments, when a target is present within the gesture monitoring range, the radar is controlled to transmit signals at a first preset frame rate and receive echo signals. When a target is not present within the gesture monitoring range, the radar is controlled to transmit signals at a second preset frame rate to monitor the presence of a target within the gesture monitoring range in real time.
[0064] It should be noted that the signal transmitted by the radar at the first preset frame rate is a high-frame-rate periodic signal, while the signal transmitted by the radar at the second preset frame rate is a low-frame-rate periodic signal. It is understood that the second preset frame rate is used to monitor the presence of a target in the gesture monitoring range in real time. Therefore, the second preset frame rate only needs to be sufficient for monitoring and does not need to be too high to save power. The first preset frame rate is used to identify possible gestures after detecting a target, so a higher frame rate is required to obtain more accurate data.
[0065] In some embodiments, the second preset frame rate can be set to 1-20 Hz. The first preset frame rate can be designed based on the radar's operating frequency band and the maximum speed of supported gesture waving. For example, if the maximum speed of supported gesture waving is 2 m / s, then in the 60 GHz frequency band, the first preset frame rate can be set to greater than 1600 Hz.
[0066] 102. Perform layered processing on the echo signal according to the type of radar.
[0067] The layered processing refers to speed layering. In practice, to extract the target's speed characteristics and reduce interference from non-gesture waving movements, the echo signal needs to be layered. Speed layering involves dividing the echo signal into different speed variations to better identify gesture waving movements.
[0068] In one embodiment, the echo signals may be layered in a slow time dimension by using a short-time discrete Fourier transform (STFT) based on the type of radar.
[0069] For example, when the radar is a Doppler radar, the echo signal is subjected to static component filtering and then STFT processing is performed.
[0070] Specifically, the sampling data of the echo signal can be high-pass filtered in the slow time dimension to filter out the static component signal. Then, a time segmentation operation is performed on the filtered data stream, that is, every data, divide it into a segmented window containing Q consecutive data, where The value is 1. 、 、 or , is the rounding operation. Then, the data in each segment window is executed Point discrete Fourier transform, where Not less than You can also first perform a time window segmentation operation similar to the above scheme on the sampling data of the echo signal in the slow time dimension, subtract the arithmetic mean of the data in each segment window, and then perform Point discrete Fourier transform.
[0071] For another example, when the radar is an FMCW radar or a stepped frequency radar, the echo signal can be statically filtered and then a range-dimensional discrete Fourier transform can be performed, and then STFT processing can be performed on all range bins within a preset distance range.
[0072] Specifically, after receiving and sampling the received echo signal, M echo sampling signals of different frequencies can be obtained, and then the static component filtering of the echo sampling signals of M different frequencies can be performed on the slow time dimension, and then the distance dimension discrete Fourier transform can be performed, and then all the distance bins within the preset distance range can be processed by STFT. For example, if there are K distance bins (also called range gates or range bins) within the preset distance range, then the STFT processing of each distance bin within the preset distance range can be performed by performing a similar time segmentation operation on the kth distance bin in the slow time dimension, and then performing the STFT operation on the data within each segment window. Point discrete Fourier transform, where Not less than It should be noted that the segmentation windows of all range bins are aligned in time, where k = 1, 2, 3, ..., K.
[0073] Among them, STFT can decompose the echo signal into components of different frequencies by performing time-frequency analysis on the echo signal and show the changing trends of these components over time. Specifically, STFT applies a sliding window to the echo signal and calculates the Fourier transform of the signal within each window, thereby obtaining a series of frequency-time matrices. These matrices can reflect the frequency distribution of the echo signal at different time points. Using STFT for speed stratification can accurately extract the speed characteristics generated by gesture waving movements and reduce the interference caused by non-gesture waving movements. In this way, during the gesture recognition process, it can focus more on identifying the gesture movement itself, improving the accuracy and robustness of gesture waving movement recognition.
[0074] In another embodiment, the velocity may be divided into two relatively coarse velocity layers in the slow time dimension by filtering based on the type of radar, thereby reducing computational complexity.
[0075] For example, when the radar is a Doppler radar, the echo signal is subjected to static component filtering and then high-pass filtering and low-pass filtering are performed respectively to generate a high-speed data stream and a low-speed data stream.
[0076] For another example, when the radar is an FMCW radar or a stepped frequency radar, the echo signal is filtered for its static components before a range-dimensional discrete Fourier transform is performed. High-pass filtering and low-pass filtering are then performed on all range bins within a preset range, generating a number of high-speed data streams and a number of low-speed data streams containing additional range information. It is understood that the number of high-speed and low-speed data streams is the same, equal to the number of range bins within the preset range. For example, the number of high-speed and low-speed data streams can be K, where K is an integer greater than 2.
[0077] Among them, the cutoff frequency of the high-pass filter needs to be designed in combination with the radar operating frequency band and the minimum speed of the supported gesture waving action. For example, in the 60GHz frequency band, the typical value of the cutoff frequency should be greater than 400Hz, and the filter order is a 2nd or 4th order IIR high-pass filter. The cutoff frequency of the low-pass filter needs to be designed in combination with the radar operating frequency band and the maximum speed of the supported human micro-motion and slow movement. For example, in the 60GHz frequency band, the typical value of the cutoff frequency can be set to less than 400Hz, and the filter order is a 2nd or 4th order IIR high-pass filter. It should be noted that the embodiments of the present application do not limit the specific cutoff frequency of the filter.
[0078] 103. Feature extraction is performed based on the hierarchical processing results to obtain the speed characteristics of the target.
[0079] In one embodiment, when using the STFT to perform velocity stratification on the echo signal in the slow time dimension, the velocity characteristics can be characterized by calculating acceleration values. Specifically, the energy peaks of all STFT output results within each STFT segmented window can be obtained; the velocities corresponding to the energy peaks are organized into a velocity data stream in the order of the STFT segmented windows; and the velocity data stream is subjected to one-dimensional median filtering and then slope filtering to obtain an acceleration value data stream.
[0080] The transfer function of the slope filter that performs slope filtering can be or , 、 、 and is a constant, When the N value is given, the slope filter mentioned above has the best linear regression fitting characteristics, which is especially suitable for extracting the slope (acceleration value) from the speed value under noise disturbance. The N value can be selected as 3, 4, 5, 6, 7, and the constant and It is a dimension conversion constant. Median filtering can remove abnormal speed values that change suddenly and reduce the impact of various interferences and noises.
[0081] In another embodiment, when filtering is used to perform velocity stratification of echo signals in the slow time dimension, the energy mutation coefficient can be used to characterize velocity characteristics. It is understood that when a close-range target moves rapidly, the energy of the echo signal exhibits significant and dramatic fluctuations, especially when it rapidly enters the field of view (FOV) of a close-range radar from outside the FOV. Therefore, the energy mutation phenomenon can be used to characterize velocity characteristics. In other words, velocity characteristics can be characterized by calculating the energy mutation coefficient. Specifically, the energy mutation coefficient can be calculated for the high-speed data stream and the low-speed data stream, respectively, to obtain a first energy mutation coefficient data stream and a second energy mutation coefficient data stream. For example, when the radar is a Doppler radar, the energy mutation coefficient calculation results in a first energy mutation coefficient data stream and a second energy mutation coefficient data stream. For another example, when the radar is an FMCW radar or a stepped frequency radar, the energy mutation coefficient calculation results in K first energy mutation coefficient data streams and K second energy mutation coefficient data streams.
[0082] The energy mutation coefficient refers to the ratio of the energy of a data stream to the energy at the previous moment. It reflects the speed of energy change and indirectly reflects the speed of gesture waving. To reduce the impact of noise and interference, necessary filtering and smoothing operations are required when calculating the energy mutation coefficient.
[0083] In some embodiments, the energy of each element in the data stream (high-speed data stream or low-speed data stream) can be calculated, and the energy value can be low-pass filtered to reduce noise, the logarithm of the low-pass filtered output result can be calculated, and the obtained logarithm value can be slope filtered to obtain the first energy mutation coefficient data stream or the second energy mutation coefficient data stream. The transfer function of the low-pass filter can be , the transfer function of the slope filter can be or , 、 、 、 、 and is a constant, .
[0084] 104. Perform instability detection on the target based on its velocity characteristics.
[0085] When waving a hand gesture at close range to the radar, its radial acceleration is proportional to the square of the speed of the gesture and inversely proportional to the distance from the radar. It can reach several times the acceleration due to gravity. This is a characteristic of the human body that is difficult to perform at a distance from the radar in daily life. The waving hand gesture is an unstable action with high acceleration characteristics.
[0086] Specifically, when acceleration values are used to characterize velocity characteristics, the first cumulative number of times that the acceleration values in the acceleration value data stream exceed the preset acceleration threshold within the current time window can be counted; when the first cumulative number is greater than or equal to the first preset number, it is determined that an unstable action target is detected within the current time window; when the first cumulative number is less than the first preset number, it is determined that no unstable action target is detected within the current time window.
[0087] Using acceleration to identify gestures, especially those at close range, offers advantages over using velocity directly in preventing false triggers. For the same target waving speed, radial acceleration at greater distances from the radar is lower than at closer distances. This potentially provides a level of distance filtering, eliminating false triggers caused by distant movements, such as walking or running. This significantly improves gesture recognition and eliminates false triggers, particularly for Doppler radars without direct distance resolution capabilities.
[0088] The energy of the echo signal of a hand gesture waving at close range to the radar has obvious and violent fluctuation characteristics, especially when it quickly enters the FOV range from outside the radar FOV range at close range. Therefore, the energy mutation phenomenon can be used to detect hand gesture waving.
[0089] Specifically, the second cumulative number of times that the energy mutation coefficient in the first energy mutation coefficient data stream or the second energy mutation coefficient data stream exceeds the preset mutation threshold within the current time window can be counted; when the second cumulative number is greater than or equal to the second preset number, it is determined that an unstable action target is detected within the current time window; when the second cumulative number is less than the second preset number, it is determined that no unstable action target is detected within the current time window.
[0090] It should be noted that the non-stable action target is the potential waving gesture.
[0091] 105. When the detection result meets the preset conditions, it is determined that there is a gesture waving action.
[0092] Human targets that pass or run quickly at close range from the radar have a high degree of similarity to hand gestures in terms of their speed characteristics represented by acceleration values or energy mutation coefficients. To further improve the ability to detect false touches and exclude human targets that pass or run quickly at close range from the radar, it is necessary to detect hand gestures over a continuous time interval. Whether the detection results meet the preset conditions can be specifically as follows:
[0093] For example, time windows T0, T1, and T2 can be set to form a continuous time interval T, and the presence of the target is detected as unstable at T0, T1, and T2 respectively. If no unstable motion target is detected in T0 and T2, and an unstable motion target is detected in T1, it is determined that a gesture waving is detected in T. Among them, the starting time of T2 is not earlier than T1, the starting time of T1 is not earlier than T0, the end time of T0 is not later than the end time of T1, and the end time of T1 is not later than T2. The setting of the values of T0, T1, and T2 can be pre-set according to the gesture waving detection range of the actually deployed radar, the radar frame rate, and the FOV characteristics of the radar, and the embodiments of the present application do not limit them.
[0094] In some embodiments, when the radar is a Puller radar, the second energy mutation data stream derived from the low-speed data stream can be selected in the time windows T0 and T2 to perform instability judgment on the existence of the target, and the acceleration data stream or the first energy mutation data stream derived from the high-speed data stream can be selected in the time window T1 to perform instability judgment on the existence of the target. If there is no unstable motion target in the time windows T0 and T2, and an unstable motion target is detected in the time window T1, it is determined that a gesture waving action is detected in T.
[0095] In another embodiment, when the radar is an FMCW radar or a stepped frequency radar, all second energy mutation data streams derived from low-speed data streams can be selected in time windows T0 and T2 to determine the presence of a target for instability, while acceleration data streams or first energy mutation data streams derived from high-speed data streams can be selected in time window T1 to determine the presence of a target for instability. If no unstable motion targets are present in any of the second energy mutation data streams participating in the detection in time windows T0 and T2, and an unstable motion target is detected in time window T1, then it is determined that a gesture has been detected in T.
[0096] In addition, when the radar is an FMCW radar or a stepped frequency radar, an additional distance screening condition can be added to perform a joint judgment of gesture waving based on K first energy mutation coefficient data streams generated by using K high-speed data streams and K second energy mutation coefficient data streams generated by K low-speed data streams, thereby further improving the accuracy of detecting gesture waving movements.
[0097] Specifically, it can be assumed that the second energy mutation data stream participating in the detection in time windows T0 and T2 is generated by the low-speed data stream of the distance bin numbered x, and the first energy mutation data stream participating in the detection in time window T1 is generated by the high-speed data stream of the distance bin numbered y, and x>y. Among them, there are a total of G groups of energy mutation data stream combinations that meet the above distance combination relationship. Each energy mutation data stream combination performs an instability judgment on the existence of the target according to the above-mentioned gesture waving action detection strategy. If a gesture waving action is found in more than Cb energy mutation data stream combinations within the same continuous time interval T, it is determined that a gesture waving is detected. Among them, Cb is related to the distance resolution of the radar and the preset gesture response distance. The value of Cb can usually be set to be greater than 3.
[0098] In summary, the gesture recognition method provided in the embodiment of the present application adopts the following method: when a target exists within the gesture monitoring range, the radar is controlled to transmit a signal at a first preset frame rate and receive an echo signal; the echo signal is subjected to hierarchical processing according to the type of radar; feature extraction is performed based on the hierarchical processing result to obtain the speed characteristics of the target; the presence of the target is detected for instability based on the speed characteristics; when the detection result meets the preset conditions, it is determined that a gesture waving action exists. This solution can effectively identify gesture waving actions by performing instability detection on the presence of the target and eliminating interfering actions such as human walking and running, thereby improving the accuracy of identifying gesture waving actions. In addition, this solution does not rely on model training data sets and complex machine learning inference operations, and is suitable for lightweight deployment applications.
[0099] To facilitate better implementation of the gesture recognition method provided in the embodiment of the present application, the embodiment of the present application also provides a gesture recognition device. The meanings of the terms are the same as those in the above-mentioned gesture recognition method, and the specific implementation details can be referred to the description in the method embodiment.
[0100] See also Figure 3 , Figure 3 Schematic diagram of the structure of the gesture recognition device provided by the embodiment of the present application. The gesture recognition device may include a transmitting unit 201, a layering unit 202, an extraction unit 203, a detection unit 204 and a recognition unit 205.
[0101] The transmitting unit 201 is configured to control the radar to transmit signals at a first preset frame rate and receive echo signals when a target is present within the gesture monitoring range;
[0102] a stratification unit 202 for performing stratification processing on the echo signal according to the type of radar;
[0103] An extraction unit 203 is used to perform feature extraction based on the hierarchical processing result to obtain the speed feature of the target;
[0104] a detection unit 204 for detecting the presence of a target based on its velocity characteristics;
[0105] The recognition unit 205 is configured to determine that a waving gesture exists when the detection result meets a preset condition.
[0106] The specific implementation of each of the above units can be found in the above-mentioned embodiment of the gesture recognition method, and will not be described in detail here.
[0107] In summary, the gesture recognition device provided in the embodiments of the present application can employ a method where, when a target is present within the gesture monitoring range, the transmitting unit 201 controls the radar to transmit signals at a first preset frame rate and receive echo signals. The stratification unit 202 performs stratification processing on the echo signals based on the radar type. The extraction unit 203 performs feature extraction based on the stratification processing results to obtain the target's velocity characteristics. The detection unit 204 performs instability detection on the target's presence based on the velocity characteristics. When the detection result meets preset conditions, the recognition unit 205 determines the presence of a waving gesture. This solution can effectively identify waving gestures by performing instability detection on the target's presence, eliminating interfering movements such as human walking and running, thereby improving the accuracy of gesture waving recognition. Furthermore, this solution does not rely on model training datasets or complex machine learning inference operations, making it suitable for lightweight deployment applications.
[0108] The embodiment of the present application also provides an electronic device, in which the gesture recognition device of the embodiment of the present application can be integrated, such as Figure 4 , which shows a schematic diagram of the structure of the electronic device involved in the embodiment of the present application, specifically:
[0109] The electronic device may include components such as a radio frequency (RF) circuit 601, a memory 602 including one or more computer-readable storage media, an input unit 603, a display unit 604, a sensor 605, an audio circuit 606, a wireless fidelity (WiFi) module 607, a processor 608 including one or more processing cores, and a power supply 609. It will be understood by those skilled in the art that Figure 4 The electronic device structure shown in the figure does not constitute a limitation of the electronic device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange components differently.
[0110] The RF circuit 601 can be used to receive and transmit signals during information transmission or calls. Specifically, it receives downlink information from the base station and transmits it to one or more processors 608 for processing. It also transmits uplink data to the base station. Typically, the RF circuit 601 includes, but is not limited to, an antenna, at least one amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, a low-noise amplifier (LNA), a duplexer, and the like. Furthermore, the RF circuit 601 can communicate with the network and other devices via wireless communication. Wireless communication can utilize any communication standard or protocol, including but not limited to Global System of Mobile Communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, and Short Messaging Service (SMS).
[0111] Memory 602 can be used to store software programs and modules. Processor 608 executes various functional applications and information processing by running the software programs and modules stored in memory 602. Memory 602 may primarily include a program storage area and a data storage area. The program storage area may store an operating system and at least one application required for a function (such as sound playback or image playback). The data storage area may store data generated based on the use of the electronic device (such as audio data and a phone book). Memory 602 may also include high-speed random access memory (RAM) and non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, memory 602 may also include a memory controller to provide access to memory 602 by processor 608 and input unit 603.
[0112] The input unit 603 can be used to receive digital or character input and generate keyboard, mouse, joystick, optical, or trackball signal input related to user settings and function control. Specifically, in one embodiment, the input unit 603 may include a touch-sensitive surface and other input devices. A touch-sensitive surface, also known as a touch display or touchpad, can detect user touch operations on or near it (for example, operations performed on or near the touch-sensitive surface using a finger, stylus, or any other suitable object or accessory) and drive corresponding connected devices according to a pre-set program. Optionally, the touch-sensitive surface may include a touch detection device and a touch controller. The touch detection device detects the user's touch position and detects signals generated by the touch operation, transmitting the signals to the touch controller. The touch controller receives the touch information from the touch detection device, converts it into touch point coordinates, and then transmits it to the processor 608. The touch controller can also receive and execute commands from the processor 608. Furthermore, touch-sensitive surfaces can be implemented using various types of technologies, including resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch-sensitive surface, the input unit 603 may also include other input devices. Specifically, other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as a volume control key, a switch key, etc.), a trackball, a mouse, a joystick, and the like.
[0113] The display unit 604 can be used to display information input by the user or information provided to the user, as well as various graphical user interfaces of the electronic device. These graphical user interfaces can be composed of graphics, text, icons, videos, and any combination thereof. The display unit 604 may include a display panel. Optionally, the display panel may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc. Further, the touch-sensitive surface may cover the display panel. When the touch-sensitive surface detects a touch operation on or near it, it is transmitted to the processor 608 to determine the type of touch event. The processor 608 then provides corresponding visual output on the display panel according to the type of touch event. Although in Figure 4 In the embodiment, the touch-sensitive surface and the display panel are used as two independent components to realize input and output functions, but in some embodiments, the touch-sensitive surface and the display panel can be integrated to realize input and output functions.
[0114] The electronic device may also include at least one sensor 605, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor. The ambient light sensor may adjust the brightness of the display panel according to the brightness of the ambient light, and the proximity sensor may turn off the display panel and / or backlight when the electronic device is moved to the ear. As a type of motion sensor, the gravity acceleration sensor can detect the magnitude of acceleration in all directions (generally three axes) and can detect the magnitude and direction of gravity when stationary. It can be used for applications that recognize the posture of the mobile phone (such as switching between horizontal and vertical screens, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors that the electronic device may also be configured with, such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., they will not be described in detail here.
[0115] Audio circuit 606, speakers, and microphones provide an audio interface between the user and the electronic device. Audio circuit 606 converts received audio data into electrical signals and transmits them to the speaker, which then converts them into sound signals for output. The microphone, on the other hand, converts collected sound signals into electrical signals, which are then received by audio circuit 606 and converted into audio data. The audio data is then processed by output processor 608 and transmitted via RF circuit 601 to, for example, another electronic device. Alternatively, the audio data is output to memory 602 for further processing. Audio circuit 606 may also include an earphone jack to allow communication between external headphones and the electronic device.
[0116] WiFi is a short-range wireless transmission technology. Electronic devices can help users send and receive emails, browse web pages, and access streaming media through WiFi modules 607. It provides users with wireless broadband Internet access. Figure 4 , a WiFi module 607 is shown, but it is understandable that it is not a necessary component of the electronic device and can be omitted as needed without changing the essence of the invention.
[0117] Processor 608 is the control center of the electronic device, connecting all parts of the phone using various interfaces and circuits. By running or executing software programs and / or modules stored in memory 602 and accessing data stored in memory 602, it performs various functions of the electronic device and processes data, thereby providing overall monitoring of the phone. Optionally, processor 608 may include one or more processing cores; preferably, processor 608 may integrate an application processor and a modem processor, where the application processor primarily handles the operating system, user interface, and application programs, while the modem processor primarily handles wireless communications. It is understood that the modem processor may not be integrated into processor 608.
[0118] The electronic device also includes a power supply 609 (e.g., a battery) for supplying power to various components. Preferably, the power supply can be logically connected to the processor 608 via a power management system, thereby enabling the power management system to manage charging, discharging, and power consumption. The power supply 609 can also include any of one or more DC or AC power supplies, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and other components.
[0119] Although not shown, the electronic device may further include a camera, a Bluetooth module, etc., which will not be described in detail here. Specifically, in this embodiment, the processor 608 in the electronic device will load the executable files corresponding to the processes of one or more application programs into the memory 602 according to the following instructions, and the processor 608 will run the application programs stored in the memory 602 to implement various functions, such as:
[0120] When there is a target within the gesture monitoring range, controlling the radar to transmit a signal at a first preset frame rate and receive an echo signal;
[0121] Perform hierarchical processing on echo signals according to the type of radar;
[0122] Perform feature extraction based on the hierarchical processing results to obtain the target's speed features;
[0123] Perform non-stability detection on the target based on its velocity characteristics;
[0124] When the detection result meets the preset conditions, it is determined that a gesture waving action exists.
[0125] In summary, the electronic device provided in the embodiments of the present application can control the radar to transmit signals at a first preset frame rate and receive echo signals when a target is present within the gesture monitoring range; perform layered processing on the echo signals according to the radar type; perform feature extraction based on the layered processing results to obtain the target's velocity characteristics; perform instability detection on the target's presence based on the velocity characteristics; and determine the presence of a waving gesture when the detection result meets preset conditions. This solution can improve the accuracy of identifying waving gestures.
[0126] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, please refer to the detailed description of the gesture recognition method above, and will not be repeated here.
[0127] It should be noted that, with respect to the gesture recognition method in the embodiments of the present application, those skilled in the art will appreciate that all or part of the process of implementing the gesture recognition method in the embodiments of the present application can be accomplished by controlling related hardware through a computer program. The computer program can be stored in a computer-readable storage medium, such as a memory of an electronic device, and executed by at least one processor in the electronic device. During execution, the process may include the process of the embodiment of the gesture recognition method.
[0128] For the gesture recognition device of the embodiments of the present application, its various functional modules can be integrated into a single processing chip, each module can exist physically separately, or two or more modules can be integrated into a single module. The aforementioned integrated modules can be implemented in the form of hardware or software functional modules. If the integrated modules are implemented in the form of software functional modules and sold or used as independent products, they can also be stored in a computer-readable storage medium.
[0129] To this end, an embodiment of the present application provides a storage medium storing a plurality of instructions that can be loaded by a processor to execute the steps of any of the gesture recognition methods provided in the embodiments of the present application. The storage medium can be a magnetic disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), or the like.
[0130] The above describes in detail the gesture recognition method, device, storage medium, and electronic device provided by the present application. Specific examples are used herein to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only intended to help understand the core idea of the present application. At the same time, for those skilled in the art, based on the idea of the present application, there may be changes in the specific implementation methods and application scope. In summary, the contents of this specification should not be understood as limiting the present application.
Claims
1. A gesture recognition method, characterized in that: include: When there is a target within the gesture monitoring range, the radar is controlled to transmit a signal at a first preset frame rate and receive an echo signal; Depending on the type of radar, the echo signal is velocity-stratified in the slow time dimension by using STFT or filtering; Perform feature extraction based on the speed stratification result to obtain the speed feature of the target; Performing instability detection on the target according to the speed feature, wherein the instability detection refers to determining whether there is an unstable action target in the current time window according to the cumulative number of times the speed feature exceeds a preset threshold in a time window, and the unstable action target is a potential hand gesture waving action; When the detection result meets the preset condition, it is determined that there is a gesture waving action.
2. The gesture recognition method according to claim 1, characterized in that: According to the type of radar, STFT is used to perform velocity stratification of the echo signal in the slow time dimension, including: When the radar is a Doppler radar, performing STFT processing on the echo signal after static component filtering; When the radar is an FMCW radar or a stepped frequency radar, the echo signal is subjected to static component filtering and then a range-dimensional discrete Fourier transform is performed, and then all range bins within a preset range are subjected to STFT processing respectively.
3. The gesture recognition method according to claim 2, characterized in that: The feature extraction based on the speed stratification result to obtain the speed feature of the target includes: Get the energy peak of all STFT output results under each STFT segmentation window; The speeds corresponding to the energy peaks are combined into a speed data stream according to the sequence of the STFT segmented windows; The velocity data stream is subjected to one-dimensional median filtering and then slope filtering to obtain an acceleration value data stream.
4. The gesture recognition method according to claim 3, characterized in that: The performing instability detection on the existence of the target according to the cumulative number of times that the speed feature exceeds a preset threshold in the current time window to determine whether there is an unstable action target in the current time window includes: Counting a first cumulative number of times that the acceleration values in the acceleration value data stream exceed a preset acceleration threshold within a current time window; When the first accumulated number of times is greater than or equal to a first preset number of times, determining that a non-stable motion target is detected within the current time window; When the first accumulated number of times is less than the first preset number of times, it is determined that no non-stable motion target is detected within the current time window.
5. The gesture recognition method according to claim 1, characterized in that: According to the type of radar, the echo signal is velocity-stratified in the slow time dimension by filtering, including: When the radar is a Doppler radar, high-pass filtering and low-pass filtering are respectively performed on the echo signal after static component filtering to generate a high-speed data stream and a low-speed data stream; When the radar is an FMCW radar or a stepped frequency radar, the echo signal is subjected to static component filtering and then a distance-dimensional discrete Fourier transform is performed, and then all distance bins within a preset distance range are subjected to high-pass filtering and low-pass filtering respectively to generate a number of high-speed data streams and a number of low-speed data streams with additional distance information.
6. The gesture recognition method according to claim 5, characterized in that: The feature extraction based on the speed stratification result to obtain the speed feature of the target includes: The energy mutation coefficients of the high-speed data stream and the low-speed data stream are calculated respectively to obtain a first energy mutation coefficient data stream and a second energy mutation coefficient data stream. The energy mutation coefficient refers to the ratio of the energy of a data stream to the energy at a previous moment.
7. The gesture recognition method according to claim 6, characterized in that: The performing instability detection on the existence of the target according to the cumulative number of times that the speed feature exceeds a preset threshold in the current time window to determine whether there is an unstable action target in the current time window includes: Counting a second cumulative number of times that the energy mutation coefficient in the first energy mutation coefficient data stream or the second energy mutation coefficient data stream exceeds a preset mutation threshold within the current time window; When the second accumulated number is greater than or equal to a second preset number, determining that a non-stable motion target is detected within the current time window; When the second accumulated number of times is less than the second preset number of times, it is determined that no non-stable motion target is detected within the current time window.
8. A gesture recognition device, characterized in that: include: A transmitting unit, used to control the radar to transmit a signal at a first preset frame rate and receive an echo signal when a target exists within the gesture monitoring range; A stratification unit, used for performing velocity stratification of the echo signal in a slow time dimension by using STFT or filtering according to the type of the radar; An extraction unit, used for performing feature extraction based on the velocity stratification result to obtain the velocity feature of the target; a detection unit, configured to perform instability detection on the existence of the target according to the speed feature, wherein the instability detection refers to determining whether there is an unstable action target in the current time window according to the cumulative number of times that the speed feature exceeds a preset threshold in a time window, and the unstable action target is a potential hand gesture waving action; The recognition unit is used to determine that there is a gesture waving action when the detection result meets the preset conditions.
9. A storage medium, characterized in that: The storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to execute the gesture recognition method according to any one of claims 1 to 7.
10. An electronic device, characterized in that: The method comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the gesture recognition method according to any one of claims 1 to 7 when executing the computer program.
