Next Article in Journal
THz-TDS Reflection Measurement of Coating Thicknesses at Non-Perpendicular Incidence: Experiment and Simulation
Previous Article in Journal
CosG: A Graph-Based Contrastive Learning Method for Fact Verification
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A People-Counting and Speed-Estimation System Using Wi-Fi Signals

1
School of Physics and Information Engineering, Fuzhou University, Fuzhou 350000, China
2
Department of Electrical and Computer Engineering, Dalhousie University, Halifax, NS B3J 1Z1, Canada
*
Author to whom correspondence should be addressed.
Sensors 2021, 21(10), 3472; https://doi.org/10.3390/s21103472
Submission received: 28 January 2021 / Revised: 23 April 2021 / Accepted: 5 May 2021 / Published: 16 May 2021
(This article belongs to the Section Sensor Networks)

Abstract

:
Counting the number of people and estimating their walking speeds are essential in crowd control and flow. In this work, we propose a system that uses prevalent Wi-Fi signals to identify the number of people entering and leaving a room through a door. It selects the best subcarrier of Wi-Fi signals and applies the Hampel filter to remove outlier information first. Then, it employs a double threshold method to determine the start and end times of entering or leaving. Afterward, it compares the detected signals with the precollected database using the dynamic time-warping algorithm and determines the number of people. It uses a variance threshold method to identify the states of entering or leaving. It also employs a nonlinear fitting approach to calculate the walking speeds. The experiments show that, in a large empty laboratory, the accuracy rates in determining the number of people are 100% for one person, 81% for two persons, and 95% for three persons. In a small office, the accuracy rates for detecting the number of people are 98% for one or two persons, 82% for three persons, 93% for four, and 75% for five persons. For the walking speed estimation, the accuracy rate for a speed error of less than 0.2410 m/s is 75% for a single person.

1. Introduction

Counting people and determining their walking speeds and directions can find applications in many areas. For example, in a smart home, lighting, heating, and cooling can be controlled based on the number of people counted in a room. In a shopping mall, consumption habits and preferences can be analyzed based on the number of people and the time they stay in an area. Public places, such as subways, bus stops, railway stations, passenger flows, and traffic, can be managed and diverted based on crowd densities.
The traditional methods of counting people, including manual counting or infrared imaging, are time consuming, expensive, and sometimes impractical, especially in densely populated areas. Optical image processing with machine learning capability has been introduced and used in various scenarios [1,2,3,4]. However, image-based methods have a few disadvantages, such as performance dependence on optical sensors, potentially large blind areas, and relatively low accuracy in complex environments due to the similarity of multiple objects and the occlusion of targets. Radio-based counting methods then emerged. Some radio methods require people to carry active devices, which emit radio frequency (RF) signals for processing and extracting information [5,6,7]; they can often be inconvenient and impractical. Other radio methods are passive: they do not require users to carry devices, but they need to deploy a wireless sensor network in advance, which can be expensive and challenging with operation overheads.
Fortunately, wireless networks for cellular and internet communications have become widespread and prevalent in recent years. Wi-Fi routers and signals are available in most homes and offices. Wi-Fi signals propagate everywhere and are reflected or scattered by objects and human bodies. Therefore, they carry information about people and their surroundings, and they can be utilized for sensing and detecting human behaviors and activities. For example, they can be used to recognize different human postures and gestures [8,9,10,11,12], to identify people [13,14], to recognize object shapes [15], and to track locations of humans and animals [16,17]. They can also be used to estimate the respiratory rate of a person [18,19,20,21,22] by examining amplitude changes and phase shifts of the channel state information (CSI) of Wi-Fi signals.
In people counting (the topic of this paper), a few methods using the WiFi signals are developed. Seifeldin M et al. proposed the Nuzzer system [23]. The system uses the variance of a received WiFi signal strength to estimate the number of people. Xi et al. proposed the FCC system [24]. The system analyzes the relationship between the number of active people in a region and the channel state information (CSI) it receives. It measures the percentage of non-zero elements in the CSI matrix. Then it uses the gray model theory to relate the percentage with the number of people, obtain its growth curve, and find the number of people [25]. Depatla et al. analyze the absorption loss and multipath resulted from blockage and reflection by a human body [26]. Then they develop a mathematical model that is used to estimate the number of people. Fadel Adib and Dina Katabi [27] apply the principle of inverse synthetic aperture radar and use the multiple input multiple output interference techniques to eliminate the reflected signals of stationary targets. They then propose a method that can identify moving targets and estimate the number of targets. Yang et al. propose a first door-monitoring system by analyzing the WiFi signals [28].
However, all of these methods require training with prior knowledge of training data, which may not always be available and feasible. For this reason, we propose a Wi-Fi signal-based human flow detection method, which requires no data training but a predeveloped sample database. Moreover, Wi-Fi signals can also estimate the walking speeds of a person. The main technical contributions of this paper are summarized as follows:
(a)
A double threshold technique is proposed to detect the start and end times of entering or leaving a room. It overcomes the issues of inaccuracy and large computational expenditures that are associated with the conventional manual algorithm described in [29] and the sliding variance method.
(b)
An estimation method is developed for the walking speeds of a person with a nonlinear curve-fitting technique.
(c)
A detection method is developed to determine the number of people entering or leaving a room. Unlike the deep learning algorithm, such as the door monitoring method presented in [28], this method requires no data training, but a predeveloped sample database.
(d)
A variance method is proposed to determine the states of entering or leaving. It utilizes the differences between the signal variances inside and outside a room—a feature that has not been explored or reported in the literature so far. It leads to a relatively simple computation algorithm that requires only one receiving antenna (unlike the two-antenna approach presented in [28]).

2. Materials and Methods

Figure 1 is the overall flowchart of the proposed method. The scenario under consideration is a room with a door, and people enter or leave the room through the door. Wireless routers are inside the room and placed close to the door. The subcarriers from the Wi-Fi router are collected, and one of them is selected for further processing. A filter is used to remove the outliers of the selected subcarrier. A threshold method is then applied to detect the starting and end times of entering or leaving a room through the door. The dynamic time warping (DTW) algorithm is used to compare and analyze the detected signals with a preconstructed database. The number of people going through the door is then determined. After this, a variance method is employed to decide whether a person is entering or leaving. If it is a single person, the speed is also being estimated.
The mainstream Wi-Fi system uses 802.11 a/g/n that employs orthogonal frequency division multiplexing (OFDM). It divides the bandwidth of 20 MHz into 56 subcarrier bands. These subcarriers carry the channel state information (CSI) in their amplitudes and phases. When encountering an object, these carriers experience different frequency-dependent scattering, which leads to signal multipath propagation and fading; they result in the changes in the received CSI amplitudes and phases that are associated with the object. The changed information can be used and processed for the detection of the object. In other words, the Wi-Fi routers and signals commonly available in a room are utilized for the sensing and counting of people entering and leaving through a door. In the following subsections, we elaborate on the proposed system.

2.1. Selection and Filtering of the Subcarriers

In the proposed algorithm, we select the subcarrier with the largest variance for detection processing. Because it has a largest variance, the chosen subcarrier is more sensitive to the changes in the CSI than other subcarriers. In the scenario we consider, the frequency response of a subcarrier can be expressed as follows:
CSI i = k = 0 K r k e j 2 π f i τ k
where K is the number of signal multipath, rk is the signal path amplitude through path k, fi is the frequency of the subcarrier with the largest variance, and τk is the signal travel time through path k. Figure 2 shows an example of the subcarrier that has the largest variance, and it is the 15th subcarrier.
The signal of the 15th subcarrier is then sent to the Hampel filter [30] to remove the outliers, which have significantly different values from the other neighboring CSI measurements. Although the CSI signal is not normally distributed for a long period, it is approximately distributed within a short time. Therefore, we use the Hampel filter. We tried other filters, such as the median filter; they do not work as well as the Hampel.This comparison indirectly verifies the appropriateness of the use of the Hampel filter. Figure 3 shows the normalized signal after the filter, and the outlier is removed. In comparison to the signal of Figure 2 before the filtering, the signal of Figure 3 is much cleaner.

2.2. Determination of the Start and End Times

In order to reduce the influence of the environment, the CSI signal is normalized before we determine the start and end times. Figure 4a shows the result of normalization. The signal after the filter, x(n), is further windowed and segmented with the function w(n). It becomes yi(n):
y i ( n ) = w ( n ) x [ ( i 1 ) n s + n ] ,   1 n L ,   1 i f n ,
where yi(n) represents the segmented and windowed signal, xi(n) represents the signal after the filter, w(n) represents the window function, ns represents the segment length, n represents the segment shift number, L represents the total number of segments, and fn represents the number of segments in each packet.
The short-term energy expression of each segment is calculated with the following equation:
E ( i ) = n = 0 L 1 y i 2 ( n ) , 1 i f n
where E(i) represents the energy of the signal. Figure 4b shows the short-term energy of the segmented signal.
The following double threshold method is proposed to detect the start and end times of entering or leaving the room. Assume that the wireless routers are inside, by the door: entering is considered walking from outside the door, past the routers, and into the room; leaving is considered walking from inside the room, past the routers, and out of the room. The Wi-Fi signals inside a room are more concentrated and sensitive to environmental changes (including human walking) than those out of the room and outside the room.
When a person goes past the door, the received Wi-Fi signal will experience a large disturbance. Two threshold values are then preselected to determine the start and end times of entering or leaving: a high threshold amp1 corresponds to a person’s passing by the routers and initiates the crowd counting process. A smaller threshold amp2 determines the start and the end time of the entering or leaving. In other words, once the signal reaches above amp1, the proposed method searches to both the left and right sides of amp1 in time to find the time instances at which the signal strengths are equal to amp2. The time instant on the left side of amp1 (or before the time of amp1) that equals amp2 is the start time. The time instant on the right side of amp1 (or after the time of amp1) that equals amp2 is the end time. Moreover, the minimum time of entering and leaving is preselected. If the time difference between the start and the end time is less than the minimum time, the signal detected is considered an interference signal and ignored. Initially, we take amp1 to be equal to one-half of the maximum value of amp and amp2 to be equal to one-eighth of the maximum value of amp. They are then adjusted manually during the process of developing the database. The computational algorithm for the double threshold method is shown below (Algorithm 1).
Figure 5 shows the result of applying the double threshold method that leads to determining the start and end times for entering or leaving a room. Note that the normalization is applied to the short-term energy to remove the adverse effects of the relative differences among different data packets.
Algorithm 1: Determination of the start and end times.
  Input: amp, amp1, amp2,
   Output: v_Begin, v_End
   for n = 1: length(amp)
     switch status
     case {0, 1}
       If amp(n) > amp1
       Identify the entering and leaving stage;
       else if amp(n) > amp2
       May be the entering and leaving stage;
   else
           No one entering and leaving;
        End if
   case 2
        if amp(n) > amp2
      Keep entering and leaving stage;
        else
      entering and leaving stage will end;
        else
          End of entering and leaving stage;
         End if
   case 3
        Record the current stage and look for the next stage
     End switch
   end for

2.3. Determination of the Number of People

Once the start and end times are determined, the signals detected between the start and end times are processed to find the number of people. The processing is conducted in comparison with a signal database, which has been developed in advance. The database is assumed to have been developed for eight scenarios: one person entering, one person leaving, two persons entering, two persons leaving, three persons entering, three people leaving, one person entering and leaving with a child, and persons carrying a child.
The similarity between the detected signals and the database is measured and used to determine the number of people. However, the length of the signal detected and analyzed can be different from that of the database since it changes with time. If a simple reduction or extension of signal length is applied, the results are not accurate. To address this issue, we adapt the dynamic time warping (DTW) algorithm. The DTW algorithm is proposed in [31], and it is used to solve the problem of uneven speaking speeds in the speech recognition of isolated words. Here, we adapt the DWT for measuring similarity between the length-varying signal collected and the database.
More specifically, the DTW is an optimization algorithm. In application to our case, it is used to find the minimum Euclidean distance between the signal data received and the sample data in the database:
D = min i = 1 L d [ x ( i ) , R k ( i ) ]     k = 1 , 2 , , N ,
where x(t) represents the signal (the signal between start time and end time), R k ( i ) represents the kth data set of the database, and L represents the total number of the segments in the database. N is the number of the datasets. Finding the number of persons is to search for the number of people that give the minimum Euclidean distance or smallest D of (4).

2.4. Determination of the State of Entering and Leaving

Once the number of people is determined, their state of entering or leaving needs to be decided. A variance threshold method is developed to carry out the task. The CSI signal strength received is shown in Figure 6a when a person is leaving and in Figure 6b when a person is entering. Since the Wi-Fi routers are placed inside a room, the signal inside is more cluttered than outside, mainly due to the signal multipath. Therefore, the signal variance inside is larger than that outside. As a result, the variance threshold method shown below is proposed to determine the state of entering or leaving. More specifically, the following formula is used for judging the state of entering or leaving:
If   v t 1 v T & v t + 1 < v T entering If   v t 1 v T & v t + 1 > v T leaving
where vt−1 represents the variance of the interval signal in the previous segment and vt+1 represents the variance of the gap signal in the next period. vT represents the threshold that is the mean value of vt−1 and vt+1.

2.5. Determination of the Velocity

The walking speed of a person has an impact on the number of data packets received.
Their relationship is measured during the development of the database. The result is shown in Figure 7 in our case. In this paper, the method of curve fitting of a rational function is used. The fitting algorithm took 0.33 s in this paper. The following is the curve-fitting equation for the speed estimation:
u = p 1 L + p 2 ,   p 1 = 162.7 ,   p 2 = 6.01
where u represents the speed of entering or leaving, p1 and p2 are the fitting constants, and L represents the number of data packets received between the start and end times. The MATLAB toolkit is used linear fitting. Once (6) is obtained, it is used to determine the walking speed. Then, (6) is used to determine the walking speed.

3. Results

We conducted the experiments using the above method. They are elaborated as follows.
We used the Wi-Fi transmitter of a desktop equipped with an Intel 5300 NIC. It had one antenna and broadcasts packets into the air. We used the receiver of a desktop equipped with an Intel 5300 NIC. It had three antennas, which formed a uniform linear array. We used a Linux 802.11n CSI Tool [32] to collect the CSI measurements. We employed channel 13 at 2.4 GHz. The transmission rate of packets was set to 100 Hz. We used MATLAB to process the CSI data.
We conducted the experiments in the two indoor environments: a large empty laboratory and a small office room with furniture and students, as shown in Figure 8 and Figure 9. The transmitter and receiver were placed on both sides of the door at a distance of about 1.2 m apart. There are many desks, chairs, and equipment in the laboratory. Seven volunteers (three males and four females) participated in the experiment. They walked through the door, as shown in Figure 10.

3.1. Detection of Passing Directions: Entering or Leaving (Exiting)

In the case of a large empty laboratory, we tested for two persons entering and leaving 100 times, and three persons 103 times. The accuracy of entering is 100% for two persons and 100% for three persons. The accuracy of exiting is 100% for two persons and 100% for three persons. For comparison purposes, the Door-Monitor’s [28] accuracy is also shown in Figure 11. The signal outside the door is weak due to the attenuation by the walls. Walking by humans causes a smaller CSI signal variance than that inside the door. By utilizing the difference, the proposed algorithm is robust. Unlike the method of Reference [28] that uses the two (or more) antennas and the phase difference between them, the proposed method is independent of the number of antennas and can work with a single antenna.
In the case of a small office room with furniture and students, we tested for two persons entering and leaving 103 times, three persons 100 times, four persons 103 times, and five persons 102 times. The accuracy of entering is 100% for two persons, 96% for three persons, 100% for four persons, and 100% for five persons. The accuracy of exiting is 100% for two persons, 98% for three persons, 100% for four persons, and 100% for five persons. For comparison purposes, the Door-Monitor’s [28] accuracy is also shown in Figure 12.

3.2. Determination of the Number of People

In the case of the large empty laboratory, we tested for one person entering or leaving 100 times, two persons 100 times, and three persons 103 times. The accuracy is 100% for one person, 81% for two persons, and 95% for three persons.
Table 1 presents the test results for the number of people in the large empty laboratory. For instance, the fourth column shows that, for the 103 tests of the three-person cases, the result is five tests showing one person (incorrect) and 98 tests showing three persons (correct).
In the case of the small office, we tested the cases of one person 101 times, two persons 103 times, three persons 100 times, four persons 103 times, and five persons 100 times. The accuracy is 98% for one person, 98% for two persons, 82% for three persons,93.2% for four persons, and 75% for five persons.
Table 2 presents the test results for the number of people in the small office. For instance, the fifth column shows that, for the 100 tests of the three-person cases, the result is 10 tests showing two persons (incorrect), three tests showing one person (incorrect), five tests showing four persons (incorrect), and 82 tests showing three persons (correct).
The above test results are applicable for either people entering or leaving. The proposed algorithm can decide the passing directions (whether it is entering or leaving) and then the number of people. It can account for the situation where the number of people entering is different from the number of people leaving. The results of the determination of the number of people entering or leaving are almost identical since the detection of the passing directions is virtually 100% accurate.

3.3. Estimation of the Walking Speed

We tested the case of one person entering and leaving the room 26 times. The cumulative density function for the speed estimation accuracy is shown in Figure 13. As can be seen, the accuracy rate for the speed error of less than 0.241 m/s is 75%. For the speed error over 0.7 m/s, the accuracy rate is 100%.

3.4. Impact of the Sizes of the Objects Carried

In many situations, persons entering or leaving a room may be carrying children or objects. Therefore, it is useful to investigate the impact of children and objects on the detection accuracy. Along this line, we tested the following cases: an adult walking with a child, holding a child, dragging a suitcase of size 40 cm × 26 cm × 50 cm, and carrying a carton box on their shoulders. We conducted 10 tests for each case. The results are shown in Figure 14. Our proposed method performs better than the conventional SVM in these scenarios. Note that the SVM has the previous filtering steps and is given the same conditions as those for the proposed method. For example, the SVM approach uses the same predeveloped database. In such a way, we can compare the proposed method and the SVM approach fairly.
From Figure 14, we can see that dragging an object (either a person or an object) has a higher accuracy than holding an object. This is perhaps due to the spatial separation between the person and the object, and the object being dragged is larger than the object being held.

3.5. Impact of the Disturbance

In order to verify the stability of the algorithm, we considered the influence of people walking indoors on the accuracy of number recognition. The result was shown in Figure 15. If the room is undisturbed, the average identification rate is 95%. The recognition rate is 88% when someone else is moving in the room.

4. Conclusions

Counting the number of people entering and leaving a room provides important information in human traffic control and flow analysis. Few papers used CSI signals to estimate the number of people entering and leaving a room. We found only one relevant paper that has been published so far [28]. It uses a deep learning approach and requires training with a lot of data. Our method does not need training. It only requires the predeveloped sample database. In addition, at least two receiving antennas are used in [28] with higher cost and complexity. The proposed method, however, only needs one receiving antenna. It also computes the walking speed.
The experiments show that, in a large empty laboratory, the accuracy rates in determining the number of people are 100% for one person, 81% for two persons, and 95% for three persons. In a small office, the accuracy rates for detecting the number of people are 98% for one or two persons, 82% for three persons, 93% for four persons, and 75% for five persons. For the walking speed estimation, the accuracy rate for the speed error of less than 0.2410 m/s is 75% for a single person. A group of five people may be considered as a reasonably extreme case due to the size of the door. If more than five people enter or leave the door and they are close to each other, the proposed method will present the result of five people. If they are not close to each other, the proposed method will count them separately.
The proposed algorithm is at the laboratory research stage and is not ready for real use yet. However, the ultimate goal is to make it ready for real use and to embed it in the Wi-Fi router—this paper is the first step development and verification of an algorithm. Its real-time implementation and counting multiple persons entering and leaving simultaneously are topics of future research.

Author Contributions

Conceptualization, L.T. and L.C.; methodology, L.T.; software, L.T.; validation, L.T., Z.C. and Z.X.; investigation, L.T.; resources, Z.X.; data curation, L.C.; writing—original draft preparation, Z.X.; writing—review and editing, L.T.; visualization, L.T.; supervision, L.C.; project administration, Z.C.; funding acquisition, Z.C. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported in part by the National Natural Science Foundation of China (NSFC) No. 61401100 and 62071125, the Natural Science Foundation of Fujian Province under grant #2018J01805, the Department of Education of Fujian Province under Youth Research Project #JAT190011, and Fuzhou University under Scientific Research Project #GXRC-18074.

Institutional Review Board Statement

Not applicable for studies not involving humans or animals.

Informed Consent Statement

Informed consent was obtained from all subjects involved in the study.

Data Availability Statement

Not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Kim, M.; Kim, W.; Kim, C. Estimating the number of people in crowded scenes by MID based foreground segmentation and head-shoulder detection. In Proceedings of the 19th international Conference on Pattern Recognition, Tampa, FL, USA, 8–12 December 2008; pp. 1–4. [Google Scholar]
  2. Chan, A.B.; Liang, Z.-S.J.; Vasconcelos, N. Privacy preserving crowd monitoring: Counting people without people models or tracking. In Proceedings of the 2008 IEEE Conference on Computer Vision and Pattern Recognition, Anchorage, AK, USA, 23–28 June 2008; pp. 1–7. [Google Scholar]
  3. Idrees, H.; Saleemi, I.; Seibert, C.; Shah, M. Multi-source Multi-scale Counting in Extremely Dense Crowd Images. In Proceedings of the 2013 IEEE Conference on Computer Vision and Pattern Recognition, Portland, OR, USA, 23–28 June 2013; pp. 2547–2554. [Google Scholar]
  4. Subburaman, V.B.; Descamps, A.; Carincotte, C. Counting People in the Crowd Using a Generic Head Detector. In Proceedings of the 2012 IEEE Ninth International Conference on Advanced Video and Signal-Based Surveillance, Beijing, China, 18–21 September 2012; pp. 470–475. [Google Scholar]
  5. Kannan, P.G.; Venkatagiri, S.P.; Chan, M.C.; Ananda, A.L.; Peh, L.-S. Low cost crowd counting using audio tones. In Proceedings of the 10th ACM Conference on Recommender Systems, Toronto, ON, Canada, 6–9 November 2012; pp. 155–168. [Google Scholar]
  6. Weppner, J.; Lukowicz, P. Bluetooth based collaborative crowd density estimation with mobile phones. In Proceedings of the 2013 IEEE International Conference on Pervasive Computing and Communications (PerCom), San Diego, CA, USA, 18–22 March 2013; pp. 193–200. [Google Scholar]
  7. Ni, L.M.; Liu, Y.; Lau, Y.C.; Patil, A.P. LANDMARC: Indoor location sensing using active RFID. In Proceedings of the First IEEE International Conference on Pervasive Computing and Communications, Fort Worth, TX, USA, 26 March 2003; pp. 407–415. [Google Scholar]
  8. Zheng, X.; Wang, J.; Shangguan, L.; Zhou, Z.; Liu, Y. Smokey: Ubiquitous smoking detection with commercial WiFi infrastructures. In Proceedings of the IEEE INFOCOM 2016—The 35th Annual IEEE International Conference on Computer Communications, San Francisco, CA, USA, 10–14 April 2016; pp. 1–9. [Google Scholar]
  9. Duan, S.; Yu, T.; He, J. WiDriver: Driver Activity Recognition System Based on WiFi CSI. Int. J. Wirel. Inf. Netw. 2018, 25, 146–156. [Google Scholar] [CrossRef]
  10. Feng, C.; Arshad, S.; Liu, Y. MAIS: Multiple activity identification system using channel state information of WiFi signals. In Transactions on Petri Nets and Other Models of Concurrency XV; Springer Science and Business Media LLC: Cham, Switzerland, 2017; pp. 419–432. [Google Scholar]
  11. Guo, L.; Wang, L.; Liu, J.; Zhou, W.; Lu, B. HuAc: Human Activity Recognition Using Crowdsourced WiFi Signals and Skeleton Data. Wirel. Commun. Mob. Comput. 2018, 2018, 6163475. [Google Scholar] [CrossRef]
  12. Jiang, W.; Miao, C.; Ma, F.; Yao, S.; Wang, Y.; Yuan, Y.; Xue, H.; Song, C.; Ma, X.; Koutsonikolas, D.; et al. Towards Environment Independent Device Free Human Activity Recognition. In Proceedings of the 24th Annual International Conference on Mobile Computing and Networking, New Delhi, India, 29 October–2 November 2018; pp. 289–304. [Google Scholar]
  13. Zhang, J.; Wei, B.; Hu, W.; Kanhere, S.S. WiFi-ID: Human Identification Using WiFi Signal. In Proceedings of the 2016 International Conference on Distributed Computing in Sensor Systems (DCOSS), Washington, DC, USA, 26–25 May 2016; pp. 75–82. [Google Scholar]
  14. Zeng, Y.; Pathak, P.H.; Mohapatra, P. WiWho: WiFi-based person identification in smart spaces. In Proceedings of the 2016 15th ACM/IEEE International Conference on Information Processing in Sensor Networks (IPSN), Vienna, Austria, 28 April 2016; pp. 1–12. [Google Scholar]
  15. Ali, K.; Liu, A.X.; Wang, W.; Shahzad, M. Keystroke Recognition Using WiFi Signals. In Proceedings of the 21st Annual International Conference on Mobile Computing and Networking, Paris, France, 7–11 September 2015; pp. 90–102. [Google Scholar]
  16. Kotaru, M.; Joshi, K.; Bharadia, D.; Katti, S. SpotFi: Decimeter level localization using WiFi. In Proceedings of the ACM SIGCOMM Computer Communication Review, London, UK, 17–21 August 2015; Volume 45, pp. 269–282. [Google Scholar]
  17. Xu, C.; Firner, B.; Moore, R.S.; Zhang, Y.; Trappe, W.; Howard, R.; Zhang, F.; An, N. Scpl: Indoor device-free multi-subject counting and localization using radio signal strength. In Proceedings of the 2013 ACM/IEEE International Conference on Information Processing in Sensor Networks (IPSN), Philadelphia, PA, USA, 8–11 April 2013; pp. 79–90. [Google Scholar]
  18. Wang, X.; Yang, C.; Mao, S. PhaseBeat: Exploiting CSI Phase Data for Vital Sign Monitoring with Commodity WiFi Devices. In Proceedings of the 2017 IEEE 37th International Conference on Distributed Computing Systems (ICDCS), Atlanta, GA, USA, 5–8 June 2017; pp. 1230–1239. [Google Scholar]
  19. Liu, J.; Chen, Y.; Wang, Y.; Chen, X.; Cheng, J.; Yang, J. Monitoring Vital Signs and Postures During Sleep Using WiFi Signals. IEEE Internet Things J. 2018, 5, 2071–2084. [Google Scholar] [CrossRef]
  20. Wang, H.; Zhang, D.; Ma, J.; Wang, Y.; Wang, Y.; Wu, D.; Gu, T.; Xie, B. Human respiration detection with Commodity WiFi Devices: Do user location and body orientation matter? In Proceedings of the 2016 ACM International Joint Conference on Pervasive and Ubiquitous Computing (UbiComp 2016), Heidelberg, Germany, 12–16 September 2016; pp. 25–36. [Google Scholar]
  21. Zhang, D.; Hu, Y.; Chen, Y.; Zeng, B. BreathTrack: Tracking Indoor Human Breath Status via Commodity WiFi. IEEE Internet Things J. 2019, 6, 3899–3911. [Google Scholar] [CrossRef]
  22. Lee, S.; Park, Y.-D.; Suh, Y.-J.; Jeon, S. Design and implementation of monitoring system for breathing and heart rate pattern using WiFi signals. In Proceedings of the 2018 15th IEEE Annual Consumer Communications & Networking Conference (CCNC), Las Vegas, NV, USA, 12–15 January 2018; pp. 1–7. [Google Scholar]
  23. Seifeldin, M.; Saeed, A.; Kosba, A.E.; El-Keyi, A.; Youssef, M. Nuzzer: A Large-Scale Device-Free Passive Localization System for Wireless Environments. IEEE Trans. Mob. Comput. 2013, 12, 1321–1334. [Google Scholar] [CrossRef] [Green Version]
  24. Xi, W.; Zhao, J.; Li, X.-Y.; Zhao, K.; Tang, S.; Liu, X.; Jiang, Z. Electronic frog eye: Counting crowd using WiFi. In Proceedings of the IEEE INFOCOM 2014—IEEE Conference on Computer Communications, Toronto, ON, Canada, 27 April–2 May 2014; pp. 361–369. [Google Scholar]
  25. Liu, S.; Lin, Y. Grey Information: Theory and Practical Applications; Springer Science & Business Media: Berlin, Germany, 2006; Volume 37, p. 189. [Google Scholar]
  26. Depatla, S.; Muralidharan, A.; Mostofi, Y. Mostofi Occupancy estimation using only WiFi power measurements. IEEE J. Sel. Areas Commun. 2015, 33, 1381–1393. [Google Scholar] [CrossRef]
  27. Adib, F.; Katabi, D. See through walls with WiFi! In Proceedings of the ACM Sigcomm 2013 Conference on Sigcomm, Hong Kong, China, 12–16 August 2013; pp. 75–86. [Google Scholar]
  28. Yang, Y.; Cao, J.; Liu, X.; Liu, X. Door-Monitor: Counting In-and-Out Visitors with COTS WiFi Devices. IEEE Internet Things J. 2019, 7, 1704–1717. [Google Scholar] [CrossRef]
  29. Wang, F.; Feng, J.; Zhao, Y.; Zhang, X.; Zhang, S.; Han, J. Joint Activity Recognition and Indoor Localization with WiFi Fingerprints. IEEE Access 2019, 7, 80058–80068. [Google Scholar] [CrossRef]
  30. Davies, L.; Gather, U. The identifification of multiple outliers. J. Am. Stat. Assoc. 1993, 88, 782–792. [Google Scholar] [CrossRef]
  31. Sakoe, H.; Chiba, S. Dynamic programming algorithm optimization for spoken word recognition. IEEE Trans. Acoust. Speech Signal Process. 1978, 26, 43–49. [Google Scholar] [CrossRef] [Green Version]
  32. Halperin, D.; Hu, W.; Sheth, A.; Wetherall, D. Predictable 802.11 packet delivery from wireless channel measurements. ACM SIGCOMM Comput. Commun. Rev. 2010, 40, 159–170. [Google Scholar] [CrossRef]
Figure 1. The overall flowchart of the proposed algorithm.
Figure 1. The overall flowchart of the proposed algorithm.
Sensors 21 03472 g001
Figure 2. The signal before the filtering.
Figure 2. The signal before the filtering.
Sensors 21 03472 g002
Figure 3. The signal after the Hampel filtering.
Figure 3. The signal after the Hampel filtering.
Sensors 21 03472 g003
Figure 4. (a) The normalized signal. (b) The short-time energy of the normalized signal.
Figure 4. (a) The normalized signal. (b) The short-time energy of the normalized signal.
Sensors 21 03472 g004
Figure 5. Determination of the start and end times of entering or leaving.
Figure 5. Determination of the start and end times of entering or leaving.
Sensors 21 03472 g005
Figure 6. The interval between entering and leaving. (a) Leaving the room. (b) Entering the room.
Figure 6. The interval between entering and leaving. (a) Leaving the room. (b) Entering the room.
Sensors 21 03472 g006
Figure 7. The curve-fitting relationship of velocity versus the number of data packets received.
Figure 7. The curve-fitting relationship of velocity versus the number of data packets received.
Sensors 21 03472 g007
Figure 8. Experiment with a large empty laboratory.
Figure 8. Experiment with a large empty laboratory.
Sensors 21 03472 g008
Figure 9. Experimental setup with a small office room.
Figure 9. Experimental setup with a small office room.
Sensors 21 03472 g009
Figure 10. Participants walking through the door.
Figure 10. Participants walking through the door.
Sensors 21 03472 g010
Figure 11. Accuracy of passing direction detection at a large empty laboratory. (a) Enter. (b) Exit.
Figure 11. Accuracy of passing direction detection at a large empty laboratory. (a) Enter. (b) Exit.
Sensors 21 03472 g011
Figure 12. Accuracy of passing direction detection at small office room. (a) Enter. (b) Exit.
Figure 12. Accuracy of passing direction detection at small office room. (a) Enter. (b) Exit.
Sensors 21 03472 g012
Figure 13. The cumulative density function of the speed detection accuracy.
Figure 13. The cumulative density function of the speed detection accuracy.
Sensors 21 03472 g013
Figure 14. Accuracy in determining the number of persons entering or leaving the room with a child or objects carried.
Figure 14. Accuracy in determining the number of persons entering or leaving the room with a child or objects carried.
Sensors 21 03472 g014
Figure 15. Movement of other people as disturbance.
Figure 15. Movement of other people as disturbance.
Sensors 21 03472 g015
Table 1. Test results of the numbers of persons in the case of a large laboratory.
Table 1. Test results of the numbers of persons in the case of a large laboratory.
ActualOne Person
(100 Tests)
Two Persons
(100 Tests)
Three Persons
(103 Tests)
Detected
One person100195
Two persons0810
Three persons0098
Table 2. The test results for the number of persons in the case of a small office.
Table 2. The test results for the number of persons in the case of a small office.
ActualOne PersonTwo PersonsThree PersonsFour PersonsFive Persons
Detected
One person990300
Two persons01011070
Three persons208200
Four persons0259625
Five persons000075
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Tian, L.; Chen, L.; Xu, Z.; Chen, Z. A People-Counting and Speed-Estimation System Using Wi-Fi Signals. Sensors 2021, 21, 3472. https://doi.org/10.3390/s21103472

AMA Style

Tian L, Chen L, Xu Z, Chen Z. A People-Counting and Speed-Estimation System Using Wi-Fi Signals. Sensors. 2021; 21(10):3472. https://doi.org/10.3390/s21103472

Chicago/Turabian Style

Tian, Liping, Liangqin Chen, Zhimeng Xu, and Zhizhang (David) Chen. 2021. "A People-Counting and Speed-Estimation System Using Wi-Fi Signals" Sensors 21, no. 10: 3472. https://doi.org/10.3390/s21103472

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop