Wireless sensing method and device, electronic equipment and storage medium

By combining smoothing the algorithm results of Wi-Fi signals and status switching indicator marks, the problem that perception results in the prior art are susceptible to external environment interference, and the accuracy of wireless perception is significantly improved.

CN119300073AActive Publication Date: 2025-01-10NEW H3C TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

In the existing Wi-Fi perception scheme, the algorithm results are easily disturbed by external environment, resulting in abnormal and misjudgment of perception results.

Method used

By smoothing the algorithm results of wireless signals, comparing the smoothing algorithm results at the current and historical moments, combining the status switching indicator marks, accidental interference is eliminated, and the final perceived result is determined.

Benefits of technology

It reduces the impact of external environmental interference on perceived results and improves the accuracy of wireless perception results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119300073A_ABST
    Figure CN119300073A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a wireless sensing method and device, electronic equipment and a storage medium, and relates to the technical field of networks, and the method comprises the steps: determining a first algorithm result through employing a wireless signal at a current moment; smoothing the first algorithm result by using a continuous first number of algorithm results to obtain a first smoothing algorithm result; determining a first temporary sensing result according to the first algorithm result or the first smoothing algorithm result, wherein the first temporary sensing result indicates a first state; comparing the first smoothing algorithm result with a second smoothing algorithm result at a historical moment to obtain a first state switching indication mark at the current moment; and if the third number of continuous temporary sensing results are all in the first state and the third number of continuous state switching indication marks are all indicated to be switched to the first state, determining that the final sensing result at the current moment is indicated to be the first state. According to the scheme, the influence of external environment interference on the sensing result can be reduced, and the accuracy of the wireless sensing result is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of network technology, and in particular to a wireless sensing method, device, electronic device and storage medium. Background Art

[0002] Wireless (Wi-Fi) sensing is a technology that uses Wi-Fi signals to perform sensing tasks. Wi-Fi presence sensing is a Wi-Fi sensing technology that uses Wi-Fi signals to sense whether there are objects in the network environment. In the current Wi-Fi presence sensing scheme, the algorithm result indicating whether there is an object is calculated using the obtained Wi-Fi signals such as the Channel State Information (CSI) signal; the algorithm result is compared with the threshold to obtain the final sensing result, which has two states, namely the state where the object exists and the state where the object does not exist.

[0003] In the above Wi-Fi presence sensing solutions, the sensing results are obtained based on the current algorithm results. The algorithm results are easily affected by the external environment. When the algorithm results are occasionally abnormal, the sensing results will also be abnormal, resulting in misjudgment of the sensing. Summary of the invention

[0004] The purpose of the embodiments of the present application is to provide a wireless sensing method, device, electronic device and storage medium to reduce the impact of external environmental interference on the sensing results and improve the accuracy of the wireless sensing results. The specific technical solutions are as follows:

[0005] In a first aspect, an embodiment of the present application provides a wireless sensing method, the method comprising:

[0006] Determine the first algorithm result of wireless sensing at the current moment by using the wireless signal at the current moment;

[0007] Using a first number of algorithm results at a current moment and before the current moment, smoothing the first algorithm result to obtain a first smoothed algorithm result;

[0008] Determine a first temporary perception result at a current moment according to the first algorithm result or the first smoothing algorithm result, where the first temporary perception result indicates a first state;

[0009] Comparing the first smoothing algorithm result and the second smoothing algorithm result to obtain a first state switching indication mark at the current moment, the second smoothing algorithm result is a smoothing algorithm result at a historical moment, there are a second number of smoothing algorithm results between the moment when the second smoothing algorithm result is determined and the current moment, and the first smoothing algorithm result and the second smoothing algorithm result are obtained based on the same smoothing algorithm;

[0010] If the third consecutive number of temporary perception results at the current moment and before the current moment all indicate the first state, and the third consecutive number of state switch indication marks at the current moment and before the current moment all indicate switching to the first state, then it is determined that the final perception result at the current moment indicates the first state.

[0011] In some embodiments, the step of smoothing the first algorithm result using a first number of consecutive algorithm results at the current moment and before the current moment to obtain a first smoothed algorithm result includes:

[0012] A first number of algorithm results before and at the current moment are weighted to obtain a first smoothing algorithm result.

[0013] In some embodiments, the sum of the weights corresponding to the first number of consecutive algorithm results is 1;

[0014] Among the first number of consecutive algorithm results, the weight corresponding to the second algorithm result is less than the weight corresponding to the third algorithm result, and the determination time of the second algorithm result is earlier than the determination time of the third algorithm result.

[0015] In some embodiments, the step of determining the first temporary perception result at the current moment according to the first algorithm result or the first smoothing algorithm result includes:

[0016] Compare the first algorithm result with a first perception threshold; if the first algorithm result is greater than the first perception threshold, determine that the first temporary perception result at the current moment indicates a state where an object exists; if the first algorithm result is less than or equal to the first perception threshold, determine that the first temporary perception result indicates a state where an object does not exist; or,

[0017] Compare the first smoothing algorithm result with the second perception threshold; if the first smoothing algorithm result is greater than the second perception threshold, determine that the first temporary perception result at the current moment indicates a state in which an object exists; if the first smoothing algorithm result is less than or equal to the second perception threshold, determine that the first temporary perception result indicates a state in which an object does not exist.

[0018] In some embodiments, the step of comparing the first smoothing algorithm result and the second smoothing algorithm result to obtain the first state switching indication mark at the current moment includes:

[0019] Calculating the difference between the first smoothing algorithm result and the second smoothing algorithm result;

[0020] If the difference is greater than the first switching threshold, determining that the first state switching indication mark at the current moment indicates switching to a state where an object exists;

[0021] If the difference is less than a second switching threshold, it is determined that the first state switching indication mark indicates switching to a state where no object exists; the second switching threshold is less than the first switching threshold, and the sum of the first switching threshold and the second switching threshold is 0;

[0022] If the difference is less than or equal to the first switching threshold, and the difference is greater than or equal to the second switching threshold, it is determined that the first state switching indication mark indicates a non-switching state.

[0023] In some embodiments, the method further comprises:

[0024] If the third consecutive number of temporary perception results do not all indicate the first state, or / and, the third consecutive number of state switch indication marks do not all indicate switching to the first state, then it is determined that the final perception result indicates the second state, and the second state is the state indicated by the final perception result at the previous moment.

[0025] In some embodiments, after determining the final perception result, the method further includes:

[0026] Clear the fourth algorithm result, the second smoothing algorithm result, the second state switching indication mark and the second temporary perception result, the fourth algorithm result is the algorithm result with the earliest determination time among the first number of consecutive algorithm results, the second state switching indication mark is the state switching indication mark with the earliest determination time among the third number of consecutive state switching indication marks, and the second temporary perception result is the temporary perception result with the earliest determination time among the third number of consecutive temporary perception results.

[0027] In a second aspect, an embodiment of the present application provides a wireless sensing device, the device comprising:

[0028] A first determination module, used to determine a first algorithm result of wireless sensing at the current moment by using the wireless signal at the current moment;

[0029] A smoothing processing module, used to use a first number of algorithm results at a current moment and before the current moment to perform smoothing on the first algorithm result to obtain a first smoothed algorithm result;

[0030] A second determination module is used to determine a first temporary perception result at a current moment according to the first algorithm result or the first smoothing algorithm result, where the state indicated by the first temporary perception result is a first state;

[0031] a comparison module, configured to compare the first smoothing algorithm result and the second smoothing algorithm result to obtain a first state switching indication mark at a current moment, wherein the second smoothing algorithm result is a smoothing algorithm result at a historical moment, there are a second number of smoothing algorithm results between a determination moment of the second smoothing algorithm result and a current moment, and the first smoothing algorithm result and the second smoothing algorithm result are obtained based on the same smoothing algorithm;

[0032] The third determination module is used to determine that the final perception result at the current moment indicates the first state if the third number of consecutive temporary perception results at the current moment and before the current moment all indicate the first state, and the third number of consecutive state switch indication marks at the current moment and before the current moment all indicate switching to the first state.

[0033] In some embodiments, the smoothing processing module is specifically used to perform weighted processing on a first number of consecutive algorithm results at a current moment and before the current moment to obtain a first smoothing algorithm result.

[0034] In some embodiments, the sum of the weights corresponding to the first number of consecutive algorithm results is 1; among the first number of consecutive algorithm results, the weight corresponding to the second algorithm result is less than the weight corresponding to the third algorithm result, and the determination time of the second algorithm result is earlier than the determination time of the third algorithm result.

[0035] In some embodiments, the second determining module is specifically configured to:

[0036] Compare the first algorithm result with a first perception threshold; if the first algorithm result is greater than the first perception threshold, determine that the first temporary perception result at the current moment indicates a state where an object exists; if the first algorithm result is less than or equal to the first perception threshold, determine that the first temporary perception result indicates a state where an object does not exist;

[0037] Or, compare the first smoothing algorithm result with a second perception threshold; if the first smoothing algorithm result is greater than the second perception threshold, determine that the first temporary perception result at the current moment indicates a state in which an object exists; if the first smoothing algorithm result is less than or equal to the second perception threshold, determine that the first temporary perception result indicates a state in which an object does not exist.

[0038] In some embodiments, the comparison module is specifically used to:

[0039] Calculating the difference between the first smoothing algorithm result and the second smoothing algorithm result;

[0040] If the difference is greater than the first switching threshold, determining that the first state switching indication mark at the current moment indicates switching to a state where an object exists;

[0041] If the difference is less than a second switching threshold, it is determined that the first state switching indication mark indicates switching to a state where no object exists; the second switching threshold is less than the first switching threshold, and the sum of the first switching threshold and the second switching threshold is 0;

[0042] If the difference is less than or equal to the first switching threshold, and the difference is greater than or equal to the second switching threshold, it is determined that the first state switching indication mark indicates a non-switching state.

[0043] In some embodiments, the third determination module is also used to determine that the final perception result indication is a second state if the third consecutive number of temporary perception results do not all indicate the first state, or / and the third consecutive number of state switch indication marks do not all indicate switching to the first state, and the second state is the state indicated by the final perception result at the previous moment.

[0044] In some embodiments, the apparatus further comprises:

[0045] A clearing module is used to clear the fourth algorithm result, the second smoothing algorithm result, the second state switching indication mark and the second temporary perception result after determining the final perception result, the fourth algorithm result is the algorithm result with the earliest determination time among the first number of consecutive algorithm results, the second state switching indication mark is the state switching indication mark with the earliest determination time among the third number of consecutive state switching indication marks, and the second temporary perception result is the temporary perception result with the earliest determination time among the third number of consecutive temporary perception results.

[0046] In a third aspect, an embodiment of the present application provides an electronic device, comprising a processor and a machine-readable storage medium, wherein the machine-readable storage medium stores machine-executable instructions that can be executed by the processor, and the processor is prompted by the machine-executable instructions to implement any wireless sensing method provided in the first aspect.

[0047] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, any wireless sensing method provided in the first aspect is implemented.

[0048] In a fifth aspect, an embodiment of the present application provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute any wireless sensing method provided in the first aspect.

[0049] Beneficial effects of the embodiments of the present application:

[0050] In the technical solution provided by the embodiment of the present application, after the algorithm result corresponding to the wireless perception is obtained, the algorithm result is smoothed to reduce the influence of accidental interference. After the smoothing algorithm result is obtained by smoothing, the smoothing algorithm result at the current moment is compared with the smoothing algorithm result at the historical moment to determine whether the state indicated by the perception result is switched from the state of the existence of the object to the state of the non-existence of the object, or from the state of the non-existence of the object to the state of the existence of the object, that is, to determine the state switching indication mark. If multiple temporary perception results all indicate a certain state, such as the first state, and multiple state switching indication marks all indicate switching to the first state, then the perception result caused by the influence of accidental interference is eliminated as the first state, and the current final perception result is determined to be the first state. Combined with the setting of the smoothing process and the state switching indication mark, the influence of accidental interference is greatly reduced, the influence of external environmental interference on the perception results is reduced, and the accuracy of the wireless perception results is improved.

[0051] Of course, implementing any product or method of the present application does not necessarily require achieving all of the advantages described above at the same time. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, 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, and for ordinary technicians in this field, other embodiments can also be obtained based on these drawings.

[0053] Figure 1 A schematic diagram of a first flow chart of a wireless sensing method provided in an embodiment of the present application;

[0054] Figure 2 A schematic diagram of a first implementation flow of step S14 provided in an embodiment of the present application;

[0055] Figure 3 A schematic diagram of a second implementation flow of step S14 provided in an embodiment of the present application;

[0056] Figure 4 A second flow chart of the wireless sensing method provided in the embodiment of the present application;

[0057] Figure 5 A third flow chart of the wireless sensing method provided in the embodiment of the present application;

[0058] Figure 6 A schematic diagram of the structure of a wireless sensing device provided in an embodiment of the present application;

[0059] Figure 7A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0060] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field based on the present application belong to the scope of protection of the present application.

[0061] Wireless (Wi-Fi) sensing is a technology that uses Wi-Fi signals to perform sensing tasks. Wi-Fi sensing technology uses the ubiquitous Wi-Fi infrastructure and ubiquitous Wi-Fi signals in the environment to achieve factual monitoring and perception of the wireless network environment. Wi-Fi signals can reflect, penetrate and bend on the surface of objects during propagation. Through proper signal processing, Wi-Fi signals can be used to sense the surrounding environment, detect obstacles and interpret target motion. Currently, Wi-Fi sensing has been successfully applied to a wide range of residential, enterprise, indoor and outdoor applications, such as gesture control, fall detection, tracking, imaging, activity recognition, vital signs monitoring and other applications.

[0062] The IEEE Wi-Fi Awareness Working Group is responsible for the standardization of Wi-Fi Awareness and Integrated Sensing and Communication (ISAC). The current IEEE 802.11bf specifies standard modifications to the IEEE 802.11 physical layer (PHY) and media access control (MAC) layer, which not only enhances the perception capability but also makes deployment more convenient. It is worth noting that the IEEE 802.11bf revision only modifies the MAC layer for bands below 7 GHz, while modifies both the PHY layer and the MAC layer for the 60 GHz band. By defining specific standard support, the reliability and efficiency of Wi-Fi Awareness can be improved, promoting further innovation and enabling more applications.

[0063] Currently, the IEEE802.11bf standard has not yet been finalized, but it has already specified the perception method and process between access points (AP) and stations (STA), and has defined the key technologies of the MAC layer and PHY layer. The industry has begun to explore and research perception based on Wi-Fi 6 and Wi-Fi 7, in order to bring Wi-Fi perception services to the market as soon as possible.

[0064] In the current Wi-Fi sensing algorithm, the obtained Wi-Fi signals such as CSI signals are used to calculate the algorithm result indicating whether an object exists; the algorithm result is compared with the threshold to obtain the final sensing result, which has two states, namely, the existence of the object and the absence of the object. The object can be a person, an animal, a robot or other movable objects.

[0065] This Wi-Fi sensing algorithm has unsatisfactory sensing performance when subject to external interference. For example, in a glass room conference room, when there is no one inside the glass room and someone is passing by outside, the Wi-Fi signal penetrates the glass room and shines on the person outside, thereby interfering with the signal transmission inside the glass room. The sensing device uses the above Wi-Fi sensing algorithm and is prone to misjudging that there is someone in the glass room. For another example, when a person is located in a remote Wi-Fi signal blind spot in the room and the Wi-Fi signal cannot shine on the person, the sensing device uses the above Wi-Fi sensing algorithm and is prone to misjudging that there is no one in the room.

[0066] It can be seen that in the above-mentioned Wi-Fi perception algorithm, the algorithm result is easily affected by the external environment. When the algorithm result is occasionally abnormal, the perception result will also be abnormal, resulting in perception misjudgment.

[0067] To solve the above problems, the present application provides a wireless sensing method, which can be applied to electronic devices such as access controllers (AC) or servers that can execute sensing algorithms. For ease of understanding and explanation, the following description is based on electronic devices as the execution subject, which is not limiting. Figure 1 As shown, the wireless sensing method comprises the following steps:

[0068] Step S11, using the wireless signal at the current moment, determining the first algorithm result of wireless sensing at the current moment;

[0069] Step S12, using a first number of consecutive algorithm results at the current moment and before the current moment, smoothing the first algorithm result to obtain a first smoothed algorithm result;

[0070] Step S13, determining a first temporary perception result at the current moment according to the first algorithm result or the first smoothing algorithm result, where the first temporary perception result indicates a first state;

[0071] Step S14, comparing the first smoothing algorithm result and the second smoothing algorithm result to obtain a first state switching indication mark at the current moment, the second smoothing algorithm result is a smoothing algorithm result at a historical moment, there are a second number of smoothing algorithm results between the determination moment of the second smoothing algorithm result and the current moment, and the first smoothing algorithm result and the second smoothing algorithm result are obtained based on the same smoothing algorithm;

[0072] Step S15, if the third number of consecutive temporary perception results at the current moment and before the current moment all indicate the first state, and the third number of consecutive state switch indication marks at the current moment and before the current moment all indicate switching to the first state, then it is determined that the final perception result at the current moment indicates the first state.

[0073] In the technical solution provided by the embodiment of the present application, after the algorithm result corresponding to the wireless perception is obtained, the algorithm result is smoothed to reduce the influence of accidental interference. After the smoothing algorithm result is obtained by smoothing, the smoothing algorithm result at the current moment is compared with the smoothing algorithm result at the historical moment to determine whether the state indicated by the perception result is switched from the state of the existence of the object to the state of the non-existence of the object, or from the state of the non-existence of the object to the state of the existence of the object, that is, to determine the state switching indication mark. If multiple temporary perception results all indicate a certain state, such as the first state, and multiple state switching indication marks all indicate switching to the first state, then the perception result caused by the influence of accidental interference is eliminated as the first state, and the current final perception result is determined to be the first state. Combined with the setting of the smoothing process and the state switching indication mark, the influence of accidental interference is greatly reduced, the influence of external environmental interference on the perception results is reduced, and the accuracy of the wireless perception results is improved.

[0074] In the above step S11, the AP in the wireless (Wi-Fi) network can collect wireless signals in real time, and the wireless signals can carry CSI data. The electronic device obtains the wireless signal from the AP. The electronic device is pre-configured with relevant Wi-Fi sensing algorithms, such as the wireless boundary (WiBorder) algorithm, the wireless detection (WiDetect) algorithm, and the wireless routing (RoFi) algorithm, etc., and the specific Wi-Fi sensing algorithm is not limited.

[0075] After acquiring the wireless signal, the electronic device uses a pre-configured Wi-Fi perception algorithm to process the data carried by the wireless signal to obtain an algorithm result of wireless perception at the current moment, that is, a first algorithm result.

[0076] For example, at time t0, the electronic device obtains wireless signal 0 from the AP, processes wireless signal 0 using a pre-configured Wi-Fi sensing algorithm, and obtains algorithm result 0 at time t0; at time t1, the electronic device obtains wireless signal 1 from the AP, processes wireless signal 1 using a pre-configured Wi-Fi sensing algorithm, and obtains algorithm result 1 at time t1.

[0077] In the above step S12, the first number can be set according to actual needs, for example, the first number K can be 8, 9, 10, 15, 20, etc. To improve smoothness, the first number can be set to a larger value; to improve calculation efficiency, the first number can be set to a smaller value.

[0078] After obtaining the first algorithm result at the current moment, the electronic device can obtain the continuous (first number - 1) algorithm results before the current moment, and obtain the first number of algorithm results in total by combining the first algorithm result. The electronic device uses the first number of algorithm results to smooth the first algorithm result at the current moment, and the algorithm result obtained after smoothing is the first smoothed algorithm result at the current moment. The continuous first number of algorithm results are obtained based on the same Wi-Fi awareness algorithm, such as based on the above-mentioned pre-configured Wi-Fi awareness algorithm.

[0079] In an embodiment of the present application, if there are less than (first number - 1) algorithm results before the current moment, the electronic device can use all the algorithm results before the current moment and the first algorithm result to smooth the first algorithm result, and the algorithm result obtained after smoothing is used as the first smoothed algorithm result at the current moment.

[0080] For example, the first number is 10, 10-1=9. At time t0, the electronic device obtains algorithm result 0. There is no algorithm result before time t0, and the electronic device can directly use algorithm result 0 as the smoothing algorithm result 0. At time t1, the electronic device obtains algorithm result 1. Before time t1, the algorithm results obtained by the electronic device include algorithm result 0. The number of algorithm results is 1, 1<9, and the electronic device uses algorithm results 0 to algorithm result 1 to smooth algorithm result 1 to obtain the smoothing algorithm result 1 at time t1.

[0081] At time t2, the electronic device obtains algorithm result 2. Before time t2, the algorithm results obtained by the electronic device include algorithm result 0 and algorithm result 1. The number of algorithm results is 2, and 2<9. The electronic device uses algorithm results 0 to algorithm results 2 to smooth algorithm result 2 to obtain the smoothed algorithm result 2 at time t1.

[0082] Similarly, the electronic device obtains smoothing algorithm results 2 to 8 at times t2 to t8 respectively.

[0083] At time t9, the electronic device obtains algorithm result 9. Before time t9, the algorithm results obtained by the electronic device include algorithm results 0 to 8, and the number of algorithm results is 9, 9=9. Then the electronic device uses algorithm results 0 to 9 to smooth algorithm result 9 and obtains smoothed algorithm result 9 at time t9.

[0084] In t 10 At time t, the electronic device obtains the algorithm result 10. 10 Before time t, the algorithm results obtained by the electronic device include algorithm results 0 to 9, and the number of algorithm results 10>9. Then t 10 The nine consecutive algorithm results before time t are algorithm results 1 to algorithm results 9. The electronic device uses algorithm results 1 to algorithm results 9 and algorithm result 10 to perform smoothing on algorithm result 10 to obtain t 10 The smoothing algorithm result at the moment is 10. The same applies to the subsequent steps.

[0085] In the embodiment of the present application, the electronic device may smooth the algorithm result in any of the following ways.

[0086] Mode 1, using a weighted processing algorithm to perform smoothing on the algorithm result, may specifically be: the electronic device performs weighted processing on a first number of consecutive algorithm results at the current moment and before the current moment to obtain a first smoothing algorithm result.

[0087] In the embodiment of the present application, the electronic device can use the following formula (1) to smooth the first algorithm result at the current moment to obtain the first smoothing algorithm result at the current moment.

[0088]

[0089] Among them, SAR N is the smoothing algorithm result at the current moment, that is, the first smoothing algorithm result, N is the sequence number of the algorithm result at the current moment (that is, the first algorithm result), K is the first number, W i is the weight corresponding to the algorithm result i, AR i is the algorithm result i, and the algorithm result N is the algorithm result at the current moment (ie, the first algorithm result).

[0090] In the embodiment of the present application, the weights corresponding to the various algorithm results may be the same, such as the weights corresponding to the various algorithm results are 1 / K, and the smoothing process can be understood as averaging the multiple algorithm results. The weights of the various algorithm results may also be different. In addition, the sum of the weights of the K algorithm results may be 1 or may not be 1, and this is not limited.

[0091] To improve the rationality of the smoothing process, the weight corresponding to the second algorithm result is less than the weight corresponding to the third algorithm result in the first number of consecutive algorithm results before and at the current moment, and the determination time of the second algorithm result is earlier than the determination time of the third algorithm result. The second algorithm result and the third algorithm result can be any two algorithm results in the first number of consecutive algorithm results, and the second algorithm result can be the first algorithm result. In this case, the closer the determination time of the algorithm result is to the current moment, the greater the weight corresponding to the algorithm result, that is, W N-K+1 <W N-K+2 < <W N-1 <W N For example, if K is 10, the weights of the 10 algorithm results are sorted from farthest to closest to the current moment, and 0.19 is the weight corresponding to the first algorithm result at the current moment.

[0092] The closer the determination time of an algorithm result is to the current time, the greater the correlation between the algorithm result and the first algorithm result. The weight is allocated according to the distance between the determination time and the current time, which improves the rationality of the smoothing process.

[0093] Method 2 uses other smoothing filtering algorithms such as Gaussian smoothing algorithm and Savitzky-Golay filtering algorithm to smooth the algorithm results.

[0094] In the embodiment of the present application, the electronic device may also use other smoothing filtering algorithms to smooth the result of the first algorithm, which does not serve as a limitation.

[0095] In the above step S13, the first temporary perception result is a temporary perception result at the current moment. The temporary perception result is a temporary perception result, which includes two states: a state where an object exists and a state where an object does not exist.

[0096] In an embodiment of the present application, the electronic device can determine the first temporary perception result at the current moment based on the first algorithm result at the current moment, and can also determine the first temporary perception result at the current moment based on the first smoothing algorithm result at the current moment.

[0097] When the electronic device determines the first temporary perception result according to the first algorithm result, the above step S13 can be executed after step S11 or step S12; when the electronic device determines the first temporary perception result according to the first smoothing algorithm result, the above step S13 can be executed after step S12.

[0098] In an embodiment of the present application, if the electronic device determines a first temporary perception result based on a first algorithm result, the above step S13 may be: comparing the first algorithm result with a first perception threshold; if the first algorithm result is greater than the first perception threshold, determining that the first temporary perception result indicates a state in which an object exists, that is, the first state is a state in which an object exists; if the first algorithm result is less than or equal to the first perception threshold, determining that the first temporary perception result indicates a state in which an object does not exist, that is, the first state is a state in which an object does not exist.

[0099] If the electronic device determines the first temporary perception result based on the first smoothing algorithm result, the above step S13 may be: comparing the first smoothing algorithm result with the second perception threshold; if the first smoothing algorithm result is greater than the second perception threshold, determining that the first temporary perception result indicates a state where an object exists, that is, the first state is a state where an object exists; if the first smoothing algorithm result is less than or equal to the second perception threshold, determining that the first temporary perception result indicates a state where an object does not exist, that is, the first state is a state where an object does not exist.

[0100] The first perception threshold and the second perception threshold can be set according to actual needs. The first perception threshold and the second perception threshold can be the same or different.

[0101] For example, the first perception threshold and the second perception threshold are both expressed as Th sense , Temporary Sensing Result (TSR N ) includes two states: 0 and 1, 0 indicates that the object does not exist, and 1 indicates that the object exists.

[0102] When the electronic device determines the first temporary perception result according to the first algorithm result, at time t0, the electronic device obtains algorithm result 0 (such as AR0). sense , then the electronic device can set the temporary sensing result 0 at time t0 to 1, that is, TSR0 = 1, TSR0 represents the temporary sensing result 0; if AR0 ≤ Th sense , the electronic device can set the temporary sensing result 0 at time t0 to 0, that is, TSR0 = 0. Similarly, the electronic device sets the temporary sensing results at other times, which will not be repeated here.

[0103] When the electronic device determines the first temporary perception result according to the first smoothing algorithm result, at time t0, the electronic device obtains smoothing algorithm result 0 (such as SAR0) according to algorithm result 0. sense , then the electronic device can set the temporary sensing result 0 (such as TSR0) at time t0 to 1, that is, TSR0 = 1; if SAR0 ≤ Th sense, the electronic device can set the temporary sensing result 0 at time t0 to 0, that is, TSR0 = 0. Similarly, the electronic device sets the temporary sensing results at other times, which will not be repeated here.

[0104] In the above step S14, the second number can be set according to actual needs. For example, the second number Q can be 8, 9, 10, 15, 20, etc. The second smoothing algorithm result is a smoothing algorithm result at a historical moment. The first smoothing algorithm result and the second smoothing algorithm result are obtained based on the same smoothing algorithm. To facilitate subsequent processing, the second smoothing algorithm result, the first smoothing algorithm result, and the second number of smoothing algorithm results between the second smoothing algorithm result and the first smoothing algorithm result are obtained based on the same smoothing algorithm. The smoothing algorithm can be any smoothing algorithm in the above step S12.

[0105] In the embodiment of the present application, the second number Q may be less than or equal to K-2, where K is the first number. In this case, the second smoothing algorithm result is: a smoothing algorithm result corresponding to a certain algorithm result based on which the first smoothing algorithm result is calculated. At this time, the second smoothing algorithm result is associated with the first smoothing algorithm result, and the second smoothing algorithm result can be used to improve the accuracy of determining the state switching indication mark.

[0106] The first state switching indicator is the state switching indicator at the current moment. The state switching indicator indicates the switching of the state of the object existing or not existing, and the state switching indicator may include three types, namely: switching from the state of the object existing to the state of the object not existing, switching from the state of the object not existing to the state of the object existing, and the unswitched state.

[0107] The electronic device compares the first smoothing algorithm result at the current moment with the second smoothing algorithm result at the historical moment, and obtains the state switching indication mark at the current moment, that is, the first state switching indication mark according to the comparison result. The first state switching indication mark can be any one of the above three state switching indication marks.

[0108] In the embodiment of the present application, the electronic device may implement the above step S14 in any of the following ways.

[0109] Method 1: The electronic device uses Figure 2 The process steps shown implement the above-mentioned step S14.

[0110] Step S21, calculate the absolute value of the difference between the first smoothing algorithm result and the second smoothing algorithm result; if the absolute value is greater than the third switching threshold, execute step S22; if the absolute value is less than or equal to the third switching threshold, execute step S23.

[0111] Step S22, determining that the first state switching indication mark at the current moment indicates switching to the first state;

[0112] Step S23, determining that the first state switching indication mark at the current moment indicates an unswitched state.

[0113] In the embodiment of the present application, the electronic device pre-sets a third switching threshold Th trans The electronic device calculates the absolute value of the difference between the result of the first smoothing algorithm and the result of the second smoothing algorithm according to the following formula (2).

[0114] U1=|SAR N -SAR M | (2)

[0115] Among them, U1 is the absolute value of the difference between the first smoothing algorithm result and the second smoothing algorithm result, SAR N is the result of the first smoothing algorithm, SAR M is the second smoothing algorithm result. N and M are the serial numbers of the first smoothing algorithm result and the second smoothing algorithm result respectively, NM-1=Q, and Q is the second number.

[0116] If U1>Th trans , then: if the first state is a state where an object exists, the electronic device can determine the first state switching indication mark TS N The indication is switched from a state where the object does not exist to a state where the object exists; if the first state is a state where the object does not exist, the electronic device may determine a first state switching indication mark TS N The indication is to switch from the state where the object exists to the state where the object does not exist. trans , the electronic device can determine the first state switching indication mark TS N Indicates the unswitched state.

[0117] In the embodiment of the present application, the electronic device can quickly determine the first state switching indication mark in combination with the third switching threshold and the first state.

[0118] Method 2: The electronic device uses Figure 3 The process steps shown implement the above-mentioned step S14.

[0119] Step S31, calculate the difference between the result of the first smoothing algorithm and the result of the second smoothing algorithm; if the difference is greater than the first switching threshold, execute step S32; if the difference is less than the second switching threshold, execute step S33; if the difference is less than or equal to the first switching threshold, and the difference is greater than or equal to the second switching threshold, execute step S34. Among them, the second switching threshold is less than the first switching threshold, and the sum of the first switching threshold and the second switching threshold is 0. The first switching threshold can be the same as the third switching threshold, or it can be different.

[0120] Step S32, determining that the first state switching indication mark at the current moment indicates switching to a state where an object exists;

[0121] Step S33: determine that the first state switching indication mark at the current moment indicates switching to a state where the object does not exist.

[0122] Step S34, determining that the first state switching indication mark at the current moment indicates an unswitched state.

[0123] In the embodiment of the present application, the electronic device may pre-set a first switching threshold and a second switching threshold. The first switching threshold and the second switching threshold are two opposite values. For example, the first switching threshold is Th trans , the second switching threshold is -Th trans .

[0124] The electronic device calculates the difference between the result of the first smoothing algorithm and the result of the second smoothing algorithm according to the following formula (3).

[0125] U2=SAR N -SAR M (3)

[0126] Among them, U2 is the difference between the result of the first smoothing algorithm and the result of the second smoothing algorithm, SAR N is the result of the first smoothing algorithm, SAR M is the result of the second smoothing algorithm. N and M are the serial numbers of the first smoothing algorithm result and the second smoothing algorithm result respectively, NM-1=Q, and Q is the second number.

[0127] If U2>Th trans , the electronic device can determine the first state switching indication mark TS N Indicates switching from a state where the object does not exist to a state where the object exists; if U2<-Th trans , the electronic device can determine the first state switching indication mark TS N Indicates a switch from a state where an object exists to a state where an object does not exist. trans ≤U2≤Th trans, the electronic device can determine the first state switching indication mark TS N Indicates the unswitched state.

[0128] In the embodiment of the present application, the electronic device can more accurately determine the first state switching indication mark by combining the first switching threshold and the second switching threshold.

[0129] In the above step S15, the third number can be set according to actual needs. For example, the third number P can be 8, 9, 10, 15, 20, etc. In the embodiment of the present application, the third number P can be less than or equal to K, where K is the first number. In this case, the third number of consecutive temporary perception results is: temporary perception results corresponding to the multiple algorithm results based on which the first smoothing algorithm result is calculated. At this time, these multiple temporary perception results are related, and the accuracy of determining the final perception result at the current moment can be improved by using these multiple temporary perception results.

[0130] In the embodiment of the present application, the electronic device detects whether all the following conditions are met:

[0131] Condition 1: the third consecutive temporary sensing results are all in the first state;

[0132] Condition 2: A third number of state switching indication marks in succession all indicate switching to the first state.

[0133] If the above two conditions are met, the electronic device can determine that the final perception result at the current moment is the first state.

[0134] For example, the third number P=3. At time t5, if the electronic device determines that the temporary perception result TSR5 at time t5 indicates a state where an object exists. The electronic device determines that the three temporary perception results at times t3 to t5 all indicate a state where an object exists, and the three state switching indication marks at times t3 to t5 all indicate switching from a state where an object does not exist to a state where an object exists, then the final perception result SR5 at time t5 is determined to indicate a state where an object exists, that is, SR5=TSR5.

[0135] At time t5, if the electronic device determines that the temporary perception result TSR5 at time t5 indicates a state where the object does not exist. If the electronic device determines that the three temporary perception results at time t3 to t5 all indicate a state where the object does not exist, and the three state switching indication marks at time t3 to t5 all indicate switching from a state where the object exists to a state where the object does not exist, then the final perception result SR5 at time t5 is determined to indicate a state where the object does not exist, that is, SR5 = TSR5.

[0136] In the embodiment of the present application, if the electronic device detects that any one or more of the above conditions 1 to 2 are not met, that is, the third consecutive number of temporary perception results do not fully indicate the first state, or / and the third consecutive number of state switching indication marks do not fully indicate switching to the first state, then the electronic device can determine that the final perception result indicates the second state, and the second state is the state indicated by the final perception result at the previous moment. The second state can be the same as the first state, or different from the first state.

[0137] For example, the third number P = 3. At time t5, the electronic device determines that the temporary sensing result TSR5 at time t5 indicates a state in which an object exists.

[0138] If there is a temporary perception result among the temporary perception results at time t3 to t4 indicating a state where an object does not exist, such as the temporary perception result TSR3 at time t3 indicating a state where an object does not exist, and the temporary perception result TSR4 at time t4 indicating a state where an object exists, then the three temporary perception results at time t3 to t5 do not all indicate a state where an object exists, and thus it is determined that the final perception result SR5 at time t5 is the final perception result SR4 at time t4, that is, SR5=SR4.

[0139] If there is a state switching indication mark in the state switching indication marks at times t3 to t5 indicating an unswitched state, or indicating a switch to a state where an object does not exist, such as the state switching indication mark at times t3 and / or t4 indicating an unswitched state, then it is determined that the final perception result SR5 at time t5 is the final perception result SR4 at time t4, that is, SR5=SR4.

[0140] In an embodiment of the present application, in order to facilitate the determination of whether the above conditions 1 to 2 are met, -1, 0, and 1 can be used to represent the switching state (i.e., the value of the state switching indication mark), and 0 and 1 can be used to represent the state indicated by the perception result. Based on the mathematical characteristics of -1, 0, and 1, it is possible to quickly determine whether the above conditions 1 to 2 are met.

[0141] For the switching state:

[0142] In one example, the state switching indication mark TS N = -1, indicating that the state of the object existing is switched to the state of the object not existing; state switching indication mark TS N =0, indicating no switching state; state switching indication mark TS N =1, indicating switching from a state where the object does not exist to a state where the object exists.

[0143] The electronic device calculates the product of the third number P of state switching indication marks in a row; if the product is 1, it means that the above condition 2 is satisfied. The electronic device calculates the sum of the third number P of state switching indication marks in a row; if the sum is -P, it means that the above condition 2 is satisfied. Otherwise, the electronic device may determine that the above condition 2 is not satisfied.

[0144] In another example, the state switching indicator TS N =1, indicating switching from the state where the object exists to the state where the object does not exist; state switching indication flag TS N =0, indicating no switching state; state switching indication mark TS N =-1, indicating switching from a state where the object does not exist to a state where the object exists.

[0145] The electronic device calculates the sum of the third number P of state switching indication marks in a row; if the sum is -P, it means that the above condition 2 is satisfied. The electronic device calculates the product of the third number P of state switching indication marks in a row; if the product is 1, it means that the above condition 2 is satisfied. Otherwise, the electronic device may determine that the above condition 2 is not satisfied.

[0146] Status of the perception result indication:

[0147] In an example, a perception result of 1 indicates a state where an object exists; a perception result of 0 indicates a state where an object does not exist.

[0148] The electronic device calculates the product of the third number P of consecutive temporary sensing results; if the product is 1, it means that the first state is a state where the object exists, and the above condition 1 is satisfied. The electronic device calculates the sum of the third number P of consecutive switching states; if the sum is 0, it means that the first state is a state where the object does not exist, and the above condition 1 is satisfied. Otherwise, the electronic device may determine that the above condition 1 is not satisfied.

[0149] In another example, the perception result is 0, indicating a state where the object exists; and the perception result is 1, indicating a state where the object does not exist.

[0150] The electronic device calculates the sum of the third number P of consecutive temporary sensing results; if the sum is 0, it means that the first state is a state where the object exists, and the above condition 1 is satisfied. The electronic device calculates the product of the third number P of consecutive switching states; if the product is 1, it means that the first state is a state where the object does not exist, and the above condition 1 is satisfied. Otherwise, the electronic device may determine that the above condition 1 is not satisfied.

[0151] In some embodiments, in order to save storage space of electronic devices, the present application also provides a wireless sensing method, such as Figure 4 As shown, the following steps may be included:

[0152] Step S41, using the wireless signal at the current moment, determining the first algorithm result of wireless sensing at the current moment;

[0153] Step S42, using a first number of consecutive algorithm results at the current moment and before the current moment, smoothing the first algorithm result to obtain a first smoothed algorithm result;

[0154] Step S43, determining a first temporary perception result at the current moment according to the first algorithm result or the first smoothing algorithm result, where the first temporary perception result indicates a first state;

[0155] Step S44, comparing the first smoothing algorithm result and the second smoothing algorithm result to obtain a first state switching indication mark at the current moment, the second smoothing algorithm result is a smoothing algorithm result at a historical moment, there are a second number of smoothing algorithm results between the determination moment of the second smoothing algorithm result and the current moment, and the first smoothing algorithm result and the second smoothing algorithm result are obtained based on the same smoothing algorithm;

[0156] Step S45, if the third number of consecutive temporary perception results at the current moment and before the current moment all indicate the first state, and the third number of consecutive state switching indication marks at the current moment and before the current moment all indicate switching to the first state, then determine that the final perception result at the current moment indicates the first state;

[0157] Step S46, clear the fourth algorithm result, the second smoothing algorithm result, the second state switching indication mark and the second temporary perception result, the fourth algorithm result is the algorithm result with the earliest determination time among the first number of consecutive algorithm results, the second state switching indication mark is the state switching indication mark with the earliest determination time among the third number of consecutive state switching indication marks, and the second temporary perception result is the temporary perception result with the earliest determination time among the third number of consecutive temporary perception results.

[0158] The above steps S41 to S45 are the same as the above steps S11 to S15 and will not be described in detail here.

[0159] In the above step S46, the electronic device obtains the algorithm result with the earliest determination time among the first number of consecutive algorithm results described in step S42, that is, the fourth algorithm result, obtains the second smoothing algorithm result in step S44, obtains the state switching indication mark with the earliest determination time among the third number of consecutive state switching indication marks in step S45, that is, the second state switching indication mark, and obtains the temporary perception result with the earliest determination time among the third number of consecutive temporary perception results in step S45, that is, the second temporary perception result. The fourth algorithm result, the second smoothing algorithm result, the second state switching indication mark, and the second temporary perception result are information that will no longer be used in the next perception process, and the electronic device clears the fourth algorithm result, the second smoothing algorithm result, the second state switching indication mark, and the second temporary perception result to save storage space of the electronic device.

[0160] The following is combined with Figure 5 The wireless sensing process shown in the figure is a detailed description of the wireless sensing method provided in the embodiment of the present application. Among them, the first number K = 10, the second number Q = 10-2 = 8, and the third number P = 5. In the embodiment of the present application, the subscripts of the algorithm result AR, the temporary sensing result TSR, the smoothing algorithm result SAR, the switching state TS, and the final sensing result SR are integers greater than or equal to 0, and the larger the subscript, the later the corresponding time.

[0161] Step S51, initializing the first perception threshold Th sense and the first switching threshold Th trans .

[0162] Step S52, calculating the temporary sensing result TSR.

[0163] The electronic device uses the wireless signal reported by the AP at the current moment to calculate the algorithm result AR of wireless perception at the current moment. N ;AR N With Th sense In comparison, if AR N >Th sense , then TSR N Set to 1, that is, TSR N =1; if AR N ≤Th sense , then TSR N Set to 0, that is, TSR N = 0. The electronic device saves the temporary perception result TSR at the current moment N .TSR N =1, indicating that the object exists; TSR N =0, indicating that the object does not exist.

[0164] Step S53, smoothing the algorithm result to obtain a smoothed algorithm result SAR.

[0165] Electronic devices using AR N-9 ~AR N These 10 algorithm results have important implications for AR N Perform smoothing to obtain the smoothing algorithm result SAR N The electronic device saves the smoothing algorithm result SAR at the current moment N .

[0166] In the embodiment of the present application, the electronic device can use weighted processing to N Smoothing is performed. The closer the determination time of the algorithm result AR is to the current time, the greater the weight corresponding to the algorithm result AR is, that is, W N-9 <W N-8 < <W N-1 <W N .W i is the weight corresponding to the algorithm result i, i=N-9, N-8, …, N.

[0167] Step S54, determining the state switching indication mark.

[0168] Electronic equipment calculates the smoothing algorithm result poor SAR diff =SAR N -SAR N-9 ,SAR N With SAR N-9 There are 8 smoothing algorithm results SAR. If SAR diff >Th trans , then the state switching indication mark TS N Set to 1, TS N =1; if SAR diff <-Th trans , then the state switching indication mark TS N Set to -1, that is, TS N = -1; otherwise, the state switching indication mark TS N Set to 0, that is, TS N = 0. TS N =1, indicating switching from a non-existent object to an existing object; TS N = -1, indicating switching from an existing object to a non-existent object; TS N =0, indicating that the state is not switched. The electronic device saves the current state switching indication mark TS N .

[0169] Step S55, using the temporary sensing result TSR and the state switching indication mark TS to perform sensing determination, the specific determination rules are as follows:

[0170] like and (Case 1), the electronic device can determine the final perception result SR at the current moment N =TSR N =1, that is, the object exists.

[0171] like and (Case 2), the electronic device can determine the final perception result SR at the current moment N =TSR N =0, that is, the object does not exist.

[0172] Otherwise (case 3), the final perception result SR at the current moment can be determined N =SR N-1 .

[0173] After step S55 is completed, the electronic device can clear the AR N-9 SAR N-9 TS N-4 and TSR N-4 Afterwards, the electronic device may re-execute step S52 to perform the next wireless sensing process.

[0174] In the embodiment of the present application, the combination of smoothing processing and the setting of the state switching indication mark greatly reduces the impact of accidental interference, reduces the impact of external environmental interference on the perception results, and improves the accuracy of the wireless perception results.

[0175] Corresponding to the above wireless sensing method, the embodiment of the present application also provides a wireless sensing device, such as Figure 6 As shown, the device comprises:

[0176] A first determination module 61 is used to determine a first algorithm result of wireless sensing at the current moment by using the wireless signal at the current moment;

[0177] A smoothing processing module 62, configured to perform smoothing processing on the first algorithm result by using a first number of consecutive algorithm results at a current moment and before the current moment, to obtain a first smoothed algorithm result;

[0178] A second determination module 63 is used to determine a first temporary perception result at a current moment according to the first algorithm result or the first smoothing algorithm result, where the first temporary perception result indicates a first state;

[0179] A comparison module 64 is used to compare the first smoothing algorithm result and the second smoothing algorithm result to obtain a first state switching indication mark at the current moment, the second smoothing algorithm result is a smoothing algorithm result at a historical moment, there are a second number of smoothing algorithm results between the determination moment of the second smoothing algorithm result and the current moment, and the first smoothing algorithm result and the second smoothing algorithm result are obtained based on the same smoothing algorithm;

[0180] The third determination module 65 is used to determine that the final perception result at the current moment indicates the first state if the third number of consecutive temporary perception results at the current moment and before the current moment all indicate the first state, and the third number of consecutive state switch indication marks at the current moment and before the current moment all indicate switching to the first state.

[0181] In some embodiments, the smoothing processing module 62 may be specifically configured to perform weighted processing on a first number of consecutive algorithm results at a current moment and before the current moment to obtain a first smoothing algorithm result.

[0182] In some embodiments, the sum of the weights corresponding to a first number of consecutive algorithm results is 1; among the first number of consecutive algorithm results, the weight corresponding to the second algorithm result is less than the weight corresponding to the third algorithm result, and the determination time of the second algorithm result is earlier than the determination time of the third algorithm result.

[0183] In some embodiments, the second determining module 63 may be specifically configured to:

[0184] Compare the first algorithm result with the first perception threshold; if the first algorithm result is greater than the first perception threshold, determine that the first temporary perception result at the current moment indicates a state in which the object exists; if the first algorithm result is less than or equal to the first perception threshold, determine that the first temporary perception result indicates a state in which the object does not exist;

[0185] Or, compare the first smoothing algorithm result with the second perception threshold; if the first smoothing algorithm result is greater than the second perception threshold, determine that the first temporary perception result at the current moment indicates a state in which an object exists; if the first smoothing algorithm result is less than or equal to the second perception threshold, determine that the first temporary perception result indicates a state in which an object does not exist.

[0186] In some embodiments, the comparison module 64 may be specifically configured to:

[0187] Calculating the difference between the first smoothing algorithm result and the second smoothing algorithm result;

[0188] If the difference is greater than the first switching threshold, determining that the first state switching indication mark at the current moment indicates switching to a state where an object exists;

[0189] If the difference is less than the second switching threshold, it is determined that the first state switching indication mark at the current moment indicates switching to a state where no object exists; the second switching threshold is less than the first switching threshold, and the sum of the first switching threshold and the second switching threshold is 0;

[0190] If the difference is less than or equal to the first switching threshold, and the difference is greater than or equal to the second switching threshold, it is determined that the first state switching indication mark indicates a non-switching state.

[0191] In some embodiments, the third determination module 65 can also be used to determine that the final perception result indication is the second state if a third consecutive number of temporary perception results do not fully indicate the first state, or / and a third consecutive number of state switch indication marks do not fully indicate switching to the first state, and the second state is the state indicated by the final perception result at the previous moment.

[0192] In some embodiments, the wireless sensing device may further include:

[0193] A clearing module is used to clear the fourth algorithm result, the second smoothing algorithm result, the second state switching indication mark and the second temporary perception result after determining the final perception result, the fourth algorithm result is the algorithm result with the earliest determination time among the first number of consecutive algorithm results, the second state switching indication mark is the state switching indication mark with the earliest determination time among the third number of consecutive state switching indication marks, and the second temporary perception result is the temporary perception result with the earliest determination time among the third number of consecutive temporary perception results.

[0194] In the technical solution provided by the embodiment of the present application, after the algorithm result corresponding to the wireless perception is obtained, the algorithm result is smoothed to reduce the influence of accidental interference. After the smoothing algorithm result is obtained by smoothing, the smoothing algorithm result at the current moment is compared with the smoothing algorithm result at the historical moment to determine whether the state indicated by the perception result is switched from the state of the existence of the object to the state of the non-existence of the object, or from the state of the non-existence of the object to the state of the existence of the object, that is, to determine the state switching indication mark of the perception result. If multiple temporary perception results all indicate a certain state, such as the first state, and multiple state switching indication marks all indicate switching to the first state, then the perception result caused by the influence of accidental interference is eliminated as the first state, and the current final perception result is determined to be the first state. Combined with the setting of the smoothing process and the state switching indication mark, the influence of accidental interference is greatly reduced, the influence of external environmental interference on the perception results is reduced, and the accuracy of the wireless perception results is improved.

[0195] Corresponding to the above wireless sensing method, the embodiment of the present application also provides an electronic device, such as Figure 7As shown, it includes a processor 71 and a machine-readable storage medium 72, wherein the machine-readable storage medium 72 stores machine-executable instructions that can be executed by the processor 71, and the processor 71 is prompted by the machine-executable instructions to implement any of the wireless sensing methods described above.

[0196] In the embodiment of the present application, the electronic device may further include a communication bus and a communication interface, and the communication interface, the processor 71 and the machine-readable storage medium 72 are connected via the communication bus.

[0197] The communication bus may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0198] The communication interface is used for communication between the above electronic device and other devices.

[0199] The machine-readable storage medium may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk storage. Optionally, the machine-readable storage medium may also be at least one storage device located away from the aforementioned processor.

[0200] The processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0201] In another embodiment provided in the present application, a computer-readable storage medium is provided, in which a computer program is stored. When the computer program is executed by a processor, any of the wireless sensing methods described above is implemented.

[0202] In another embodiment provided by the present application, a computer program product including instructions is also provided, which, when executed on a computer, enables the computer to execute any of the wireless sensing methods described above.

[0203] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive Solid State Disk (SSD)), etc.

[0204] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including 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, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0205] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device, electronic device, storage medium and program product embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.

[0206] The above description is only a preferred embodiment of the present application and is not intended to limit the protection scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application are included in the protection scope of the present application.

Claims

1. A wireless sensing method, characterized in that: The method comprises: Determine the first algorithm result of wireless sensing at the current moment by using the wireless signal at the current moment; Using a first number of algorithm results at a current moment and before the current moment, smoothing the first algorithm result to obtain a first smoothed algorithm result; Determine a first temporary perception result at a current moment according to the first algorithm result or the first smoothing algorithm result, where the first temporary perception result indicates a first state; Comparing the first smoothing algorithm result and the second smoothing algorithm result to obtain a first state switching indication mark at the current moment, the second smoothing algorithm result is a smoothing algorithm result at a historical moment, there are a second number of smoothing algorithm results between the moment when the second smoothing algorithm result is determined and the current moment, and the first smoothing algorithm result and the second smoothing algorithm result are obtained based on the same smoothing algorithm; If the third consecutive number of temporary perception results at the current moment and before the current moment all indicate the first state, and the third consecutive number of state switch indication marks at the current moment and before the current moment all indicate switching to the first state, then it is determined that the final perception result at the current moment indicates the first state.

2. The method according to claim 1, characterized in that: The step of smoothing the first algorithm result by using a first number of consecutive algorithm results at the current moment and before the current moment to obtain a first smoothed algorithm result includes: A first number of algorithm results before and at the current moment are weighted to obtain a first smoothing algorithm result.

3. The method according to claim 2, characterized in that The sum of the weights corresponding to the first number of consecutive algorithm results is 1; Among the first number of consecutive algorithm results, the weight corresponding to the second algorithm result is less than the weight corresponding to the third algorithm result, and the determination time of the second algorithm result is earlier than the determination time of the third algorithm result.

4. The method according to claim 1, characterized in that: The step of determining the first temporary perception result at the current moment according to the first algorithm result or the first smoothing algorithm result includes: Compare the first algorithm result with a first perception threshold; if the first algorithm result is greater than the first perception threshold, determine that the first temporary perception result at the current moment indicates a state where an object exists; if the first algorithm result is less than or equal to the first perception threshold, determine that the first temporary perception result indicates a state where an object does not exist; or, Compare the first smoothing algorithm result with the second perception threshold; if the first smoothing algorithm result is greater than the second perception threshold, determine that the first temporary perception result at the current moment indicates a state in which an object exists; if the first smoothing algorithm result is less than or equal to the second perception threshold, determine that the first temporary perception result indicates a state in which an object does not exist.

5. The method according to claim 1, characterized in that The step of comparing the first smoothing algorithm result and the second smoothing algorithm result to obtain the first state switching indication mark at the current moment includes: Calculating the difference between the first smoothing algorithm result and the second smoothing algorithm result; If the difference is greater than the first switching threshold, determining that the first state switching indication mark at the current moment indicates switching to a state where an object exists; If the difference is less than a second switching threshold, it is determined that the first state switching indication mark indicates switching to a state where no object exists; the second switching threshold is less than the first switching threshold, and the sum of the first switching threshold and the second switching threshold is 0; If the difference is less than or equal to the first switching threshold, and the difference is greater than or equal to the second switching threshold, it is determined that the first state switching indication mark indicates a non-switching state.

6. The method according to claim 1, characterized in that The method further comprises: If the third consecutive number of temporary perception results do not all indicate the first state, or / and, the third consecutive number of state switch indication marks do not all indicate switching to the first state, then it is determined that the final perception result indicates the second state, and the second state is the state indicated by the final perception result at the previous moment.

7. The method according to any one of claims 1 to 6, characterized in that: After determining the final perception result, the method further includes: Clear the fourth algorithm result, the second smoothing algorithm result, the second state switching indication mark and the second temporary perception result, the fourth algorithm result is the algorithm result with the earliest determination time among the first number of consecutive algorithm results, the second state switching indication mark is the state switching indication mark with the earliest determination time among the third number of consecutive state switching indication marks, and the second temporary perception result is the temporary perception result with the earliest determination time among the third number of consecutive temporary perception results.

8. A wireless sensing device, characterized in that: The device comprises: A first determination module, used to determine a first algorithm result of wireless sensing at the current moment by using the wireless signal at the current moment; A smoothing processing module, used to use a first number of algorithm results at a current moment and before the current moment to perform smoothing on the first algorithm result to obtain a first smoothed algorithm result; A second determination module is used to determine a first temporary perception result at a current moment according to the first algorithm result or the first smoothing algorithm result, where the state indicated by the first temporary perception result is a first state; a comparison module, configured to compare the first smoothing algorithm result and the second smoothing algorithm result to obtain a first state switching indication mark at a current moment, wherein the second smoothing algorithm result is a smoothing algorithm result at a historical moment, there are a second number of smoothing algorithm results between a determination moment of the second smoothing algorithm result and a current moment, and the first smoothing algorithm result and the second smoothing algorithm result are obtained based on the same smoothing algorithm; The third determination module is used to determine that the final perception result at the current moment indicates the first state if the third number of consecutive temporary perception results at the current moment and before the current moment all indicate the first state, and the third number of consecutive state switch indication marks at the current moment and before the current moment all indicate switching to the first state.

9. The device according to claim 8, characterized in that The smoothing processing module is specifically used to perform weighted processing on a first number of consecutive algorithm results at a current moment and before the current moment to obtain a first smoothing algorithm result.

10. The device according to claim 9, characterized in that The sum of the weights corresponding to the first number of consecutive algorithm results is 1; among the first number of consecutive algorithm results, the weight corresponding to the second algorithm result is less than the weight corresponding to the third algorithm result, and the determination time of the second algorithm result is earlier than the determination time of the third algorithm result.

11. The device according to claim 8, characterized in that The second determining module is specifically used to: Compare the first algorithm result with a first perception threshold; if the first algorithm result is greater than the first perception threshold, determine that the first temporary perception result at the current moment indicates a state where an object exists; If the first algorithm result is less than or equal to the first perception threshold, determining that the first temporary perception result indicates a state where an object does not exist; Or, compare the first smoothing algorithm result with a second perception threshold; if the first smoothing algorithm result is greater than the second perception threshold, determine that the first temporary perception result at the current moment indicates a state in which an object exists; if the first smoothing algorithm result is less than or equal to the second perception threshold, determine that the first temporary perception result indicates a state in which an object does not exist.

12. The device according to claim 8, characterized in that The comparison module is specifically used for: Calculating the difference between the first smoothing algorithm result and the second smoothing algorithm result; If the difference is greater than the first switching threshold, determining that the first state switching indication mark at the current moment indicates switching to a state where an object exists; If the difference is less than a second switching threshold, it is determined that the first state switching indication mark indicates switching to a state where no object exists; the second switching threshold is less than the first switching threshold, and the sum of the first switching threshold and the second switching threshold is 0; If the difference is less than or equal to the first switching threshold, and the difference is greater than or equal to the second switching threshold, it is determined that the first state switching indication mark indicates a non-switching state.

13. The device according to claim 8, characterized in that The third determination module is also used to determine that the final perception result indication is a second state if the third consecutive number of temporary perception results do not all indicate the first state, or / and the third consecutive number of state switch indication marks do not all indicate switching to the first state, and the second state is the state indicated by the final perception result at the previous moment.

14. The device according to any one of claims 8 to 13, characterized in that: The device also includes: A clearing module is used to clear the fourth algorithm result, the second smoothing algorithm result, the second state switching indication mark and the second temporary perception result after determining the final perception result, the fourth algorithm result is the algorithm result with the earliest determination time among the first number of consecutive algorithm results, the second state switching indication mark is the state switching indication mark with the earliest determination time among the third number of consecutive state switching indication marks, and the second temporary perception result is the temporary perception result with the earliest determination time among the third number of consecutive temporary perception results.

15. An electronic device, characterized in that: The method comprises a processor and a machine-readable storage medium, wherein the machine-readable storage medium stores machine-executable instructions that can be executed by the processor, and the processor is prompted by the machine-executable instructions to implement the method described in any one of claims 1 to 7.

16. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Sensing identification method and device based on wireless communication signal

    CN107968689A

  • User experience optimization method and device and storage medium

    CN116744384A

  • Mobility-aware access control

    US20210051558A1

  • Detection method, apparatus, and device

    US20240201324A1

  • Wireless sensing method, communication device, and storage medium

    WO2024040962A1