The ability to estimate the total number of people in an area can be useful for several applications. For instance, smart buildings can optimize the energy consumption based on the number of people in the building [1, 2]. Retails can better plan their business by assessing which parts of the store get more visitors . Smart cities can better plan the resources by estimating which areas of the city are more crowded .
A survey of the literature indicates that the problem of crowd counting has been investigated by researchers from computer-vision, wireless networking, and environmental science communities. In computer-vision, for instance, photographic images of an area are used to identify the number of people present in the area[5, 6, 7]. However, these methods 1) require a network of cameras to be installed in the area of interest and as such have a high deployment cost, 2) cannot work in the dark, 3) cannot work behind walls, and 4) pose privacy issues. Researchers in the environmental science community utilize the characteristics of the area of interest such as temperature, concentration of carbon dioxide, and dew point to identify the number of people in the area [8, 9, 10, 11]. However, sensing the environment in this manner requires a direct access to the area of interest and cannot be used in areas occluded by walls or in areas where access is restricted. Furthermore, they require installing specialized sensors.
The ability of radio frequency (RF) signals to penetrate through objects, such as walls, combined with the ubiquity of wireless devices, such as WiFi routers, provide a great potential for imaging [12, 13, 14], tracking 
, and occupancy estimation using RF signals. Crowd counting based on wireless devices can be mainly classified into (i) device-based active and (ii) device-free passive methods. The device-based active methods rely on people to carry a communication device[16, 17], which can limit their applicability. For this reason, there has recently been a considerable interest in device-free methods, which do not require people to carry any device. Instead, device-free methods rely on the interaction of the wireless signals with the people in the area of interest.
uses the variance of the WiFi received signal strength indicator (RSSI) to estimate up topeople. In this approach, an extensive prior learning phase with different number of people is used. Furthermore, the approach requires a large number of wireless nodes ( Rx and Tx).  simultaneously estimates the number and the location of up to people with wireless nodes.  uses differential channel state information (CSI) to classify the number of people. The method has an extensive calibration phase and is only tested with up to people.  counts up to people, using CSI measurements at subcarriers and with WiFi links located in the area. The method requires an extensive training phase with experiments and up to people walking in the same area a priori.  counts up to
people in an area using only the RSSI measurements of a single WiFi link by deriving a probability density function (PDF) of the received signal strength. While the approach in does not require extensive prior calibrations, such as having different number of people walk in the area, there is still a need to make measurements when a small number of people stand on the Line of Sight (LOS) link a priori. Furthermore,  relies on labeling the dips of the received signal, which can be prone to errors in behind-wall scenarios due to the high attenuation by the walls.
In summary, great progress has been made towards crowd counting with WiFi signals. However, all the aforementioned work are on counting in the same room where the transceivers are located and do not count through walls. In other words, to the best of our knowledge, there is no work in the literature that has demonstrated through-wall counting. Furthermore, utilizing the existing work for the through-wall scenarios does not work. For instance, we tested  in our through-wall settings and observed errors of up to people when people were present. Our previous approach , on the other hand, relies on the dip values which can be highly attenuated and thus prone to measurement errors in through-wall settings. In summary, through-wall counting is a considerably challenging problem as the walls can heavily attenuate the signal, making the corresponding estimation problem more challenging, which is the main motivation for this paper. Moreover, most existing work on non-through wall counting have a demanding calibration phase that can be as involved as the main experiments. For instance, , , and  require running multiple experiments where up to people walk in the area of interest. However, extensive calibration may not be feasible in through wall scenarios. In this paper, our proposed approach has a small calibration phase that does not have to be in the same environment. Finally, even when counting in non-behind wall settings, several existing work require a number of links for counting. For instance,  and  have utilized and links respectively in areas with a comparable size to ours. In this paper, we show how to count up to people from behind walls with only one link. Furthermore, we only utilize RSSI measurements for counting, which can be easily measured in any WiFi card, or can be implemented on any general wireless transceiver such as a Bluetooth device.
We next summarize our key contributions:
We show that the effect of a single person on the WiFi link can be modeled using a process that we refer to as a “Renewal-type” random process.
We then show that the inter-event times carry vital information on the total number of people, and are more robust to the attenuation caused by the walls (as compared to the dip values), enabling a high-accuracy estimation through walls. More specifically, we use theories from Renewal process literature to model the effect of people as a superposition of “Renewal-type” processes. We then derive the Probability Mass Function (PMF) of the inter-event times based on this model, and use it to estimate the number of people using a maximum likelihood (ML) estimator. It is noteworthy that no existing work has shown the relationship between inter-event times and the total number of people.
We extensively validate our framework using real experiments in five different areas on our campus, three classrooms, a conference room, and a hallway (see Fig. 6, 8, 9, 11, and 12). More specifically, we show that we can estimate up to and including people with an error of people or less % of the time and with an error of person or less % of the time. Our experiments further include areas with different wall materials, such as concrete, plaster, and wood, to validate the robustness of our approach.
The rest of the paper is organized as following. In Section II, we summarize our motion model and discuss the impact of the movement of the people on wireless channel measurements. In Section III, we then propose our framework to estimate the total number of people by using properties of the inter-event times. In Section IV, we thoroughly validate our framework using several experiments in five different areas on our campus. We conclude in Section V.
Ii Problem Setup
Consider an area that is enclosed by walls, such as a room, where people are walking. Fig. 1 shows an example of this. Our goal is then to estimate the number of people walking in this area, using only RSSI measurements of WiFi nodes that are located outside of the area. In this section, we first summarize the motion model of people and then briefly discuss the impact of movement of people on wireless measurements.
Ii-a Motion Model
In this paper, we assume that people are walking casually in the area of interest. In , we proposed a simple motion model to model the casual motion of people. In this paper, we adopt this model in our theoretical derivations. We next briefly summarize this motion model.
Consider the motion of a single person in the workspace of Fig. 1. Let and denote the position of the person along x and y-axis respectively at time instant . Furthermore, let represent the heading of the motion w.r.t the x-axis and at time instant , as indicated in Fig. 1.111Throughout this paper, we use time instant to refer to for notational convenience, where is the time step. For the sake of mathematical simplicity, , and are assumed to only take discrete values. The following model then captures a casual walk :
where , and is the discretization step size for the heading angle. Given the heading direction, the position dynamics is then given by the following:
where is the speed of the person, and is the time step. Equation (1) basically describes a casual walk in which a person maintains her/his direction for a while, after which she/he may switch to a new direction. When a person reaches the boundary of , she/he is furthermore assumed to reflect off of the boundary, similar to a ray of light. Equation (2) can then be extended to account for the boundary behavior. We refer the readers to 
for the corresponding expression for the sake of brevity. Based on this simple dynamics, the motion can be modeled as a discrete-time Markov chain, as shown in. We adopt this motion model in this paper and use the properties of the underlying Markov chain in the subsequent sections. We note that during our experiments, we simply ask people to walk casually, without any specific instruction, and the aforementioned model is only used for the purpose of mathematical derivations.
Ii-B Impact of People on Wireless Measurements
Consider the scenario shown in Fig. 1, where multiple people are walking inside a building. A pair of WiFi nodes are located outside of the building. The WiFi transmitter (Tx) transmits wireless signals that interact with the walking people and the static objects in the area of interest, and are then received by the receiver (Rx). In general, properly capturing the interaction of the people with the transmitted signal requires detailed wave modeling to capture several propagation phenomena. In , it was shown that the two main phenomena of LOS blockage and multipath suffice to capture the impact of walking people on a wireless transmission. We next briefly summarize these two impacts:
(i)LOS Blocking: When people are along the line joining the Tx and Rx (i.e., the LOS link), the received power measurements are significantly attenuated.
(ii)Multipath Effect: The wireless signals from the Tx get reflected off of the people and interfere constructively/destructively at the Rx, depending on the position of the people. This causes the wireless measurements to fluctuate as people are walking.
Fig. 1 illustrates the LOS blocking and multipath effects. The fluctuations of the received signal power, due to both LOS blocking and multipath effects, implicitly contain information about the total number of people walking in . In the next section, we propose a method for crowd counting behind the walls, based on LOS blockage and Renewal theory.
Iii Crowd Counting Behind the Walls
In this section, we propose a new framework to estimate the number of people walking inside an occluded area using only the RSSI of WiFi nodes located outside of the area. Specifically, we first model the motion of a single person as a discrete-time random process. We then utilize theories from the Renewal process literature to characterize the impact of multiple people and identify the statistics that can be used to estimate the number of people. As we shall see, the inter-event times of the resulting process carry vital information on the number of people, as we shall mathematically characterize.
Iii-a Motion of a single person as a Renewal-type process
Consider a scenario where people are walking in the workspace , as shown in Fig. 1. Without loss of generality, assume that the transmitter and the receiver are at the midpoint of the corresponding walls. We then say a person crosses the LOS link at time , if or . The time intervals between successive crosses (i.e., LOS crossings) implicitly carry vital information about the total number of people walking in the area, as we show in the next section. In this section, we first mathematically characterize the statistics of the time intervals between successive crosses, when a single person is walking in . We then utilize the results derived here to model the impact of on the statistics of the cross times in the next section, when people are walking in .
Consider a single person walking in the workspace . Let denote an event of the person crossing the LOS link. Due to the non-deterministic nature of the walk, the times at which event happens are random in nature. Let
denote a sequence of random variables such that,
Let denote the times at which event occurs and let denote the inter-event times. As mentioned in Section II-A, we have discretized the time to a step size of . Thus, , for , and , for , are non-negative integers.
), the positions/headings will have a uniform distribution asymptotically in theory and after a sufficient time in practice. We thus assume that the positions/headings have no spatial bias in our derivations.
Then, we have,
where denotes the probability of the argument. This implies that , are identically distributed. If the inter-event times are also independent, then the process is called a Renewal process . However, the inter-event times of our case are not necessarily independent. We thus use the term “Renewal-type process” in this paper, to refer to this type of process where the inter-event times are identically distributed but not independent. We next characterize the PMF of the inter-event times.
Let denote the PMF of the inter-event times . Let denote the backward recurrence time at , i.e., the time from time instant that we need to travel back before encountering an event, as shown in Fig. 2. Let denote the PMF of . We next characterize the relationship between and , which we shall utilize in Section III-B.
Let denote the probability that occurs at time , i.e., , where denotes the probability of the argument. Then, , i.e., the probability that we need to travel backward time steps from time to encounter an event, is the product of the probability of an event occurring at time and the probability that there is no event at times , given that an event occurs at . Formally, can be written as
is the complimentary cumulative distribution function (CCDF) of the inter-event times. As shown in, is given by the following:
Iii-B Motion of Multiple People as a Superposition of Renewal-type Processes
In this section, we characterize the PMF of the inter-event times when people are walking in and show that it contains useful information about the total number of people . We then propose a ML estimator to estimate , based on our characterization of the inter-event times.
Consider people walking in the workspace . Let , for , denote the sequence of events as defined in (3), but for the person. Let , for , denote the corresponding superposed sequence. We define as . Fig. 3 shows sample individual and superposed event sequences, for the case of people, along with their sample occurrence and inter-event times. For the superposed sequence of events, we say that an event occurred at time if . In other words, an event occurs at time if at least one person crosses the LOS link at time . Since multiple events can occur at the same time, we have . However, we do not distinguish the events based on the value of , as our proposed method does not rely on the exact values of and only depends on if it is zero or non-zero, which will result in a more robust estimator to measurement errors.
Let denote the PMF of the inter-event times of the superposed process due to people. Let and denote the backward recurrence time at and its corresponding PMF respectively.
We have the following expression for the PMF of the inter-event time: , where is a normalizing constant that is not a function of , and is the forward difference operator.
The backward recurrence time, , for the superposed process can be written as
where , is the backward recurrence time for the event sequence, and denotes the minimum of the arguments. Then, since people are walking independently, we have,
This proves the theorem. ∎
It can be seen from (12) that the PMF of the inter-event times is an implicit function of the number of people . We next use this PMF to derive an ML-based estimator for the number of people . Given the inter-event times, we can estimate the number of people by maximizing the log-likelihood of the inter-event times. Specifically, assuming the inter-event times are independent, the log-likelihood of the observed inter-event times, , can be characterized as a function of the number of people as follows:
We can then estimate the number of people by maximizing the log-likelihood function,
where is the estimate of the number of people based on the underlying renewal-type process and the inter-event times. We note that we derived (13) under the assumption that ’s are independent. As we mentioned earlier, this is not necessarily the case for our process. Thus, the ML estimator of (14) is not the optimum, but can provide a good estimate of the number of people, as we shall see in the next section, while maintaining a low computational complexity.
In order to implement our derived estimator, one needs to identify the inter-event times due to the LOS blocking. Furthermore, an estimate of , the CCDF of the inter-event times when single person is walking, is needed. In the next section, we show how the inter-event times and can be estimated in practice.
Iv Experimental Results
In this section, we validate our proposed framework through extensive experiments. We start by explaining our experimental setup and then present the experimental results for five different areas with up to and including people.
Iv-a Experiment Setup
As shown in Fig. 1, our experimental setup consists of a pair of WiFi nodes for transmission and reception of wireless signals. One of the WiFi nodes is configured as a Tx, which constantly transmits wireless signals. The other WiFi node, which acts as a Rx, measures the signals that are emitted from the Tx node and records the corresponding signal strength. We use a D-Link WBR-1310 WiFi router  as a Tx node, which operates using 802.11g wireless standard. For the Rx WiFi node, we use a TP-Link Wireless N150 WLAN card  in 802.11g mode. This wireless card needs to be interfaced with a computer in order to make WiFi measurements. In our setup, we then use a Raspberry Pi (RPI) board  for this purpose, i.e., to collect and store WiFi RSSI measurements. Fig. 4 shows the WiFi router, the WLAN card, and the RPI board used in our experiments. Omnidirectional antennas that come along with the WiFi router/card are used for transmitting and receiving the wireless signals. We use standard GHz frequency of WiFi in all our experiments.
Using the aforementioned experimental setup, we then run several experiments when up to people walk in the area of interest. We next first discuss the processing of the experimental data, which is followed by our experimental results.
Iv-B Initial Data Processing
In Section III, we developed a framework to estimate the number of people based on the PMF of the inter-event times, where an event refers to an instant of time where people are crossing the LOS link. As discussed in Section II, the RSSI measurements are significantly attenuated when people cross the LOS link. Therefore, the RSSI measurements contain information about the times at which a cross has occurred and hence about the inter-event times. However, the received measurements are not only affected by the LOS blockage but also by the multipath fading that is caused by scattering off of the people that are not necessarily on the direct LOS. Therefore, we need to identify the times at which a LOS cross has occurred in the presence of multipath.
Our analysis of several measurements has shown that the fluctuations and dips caused by multipath are typically much smaller than those caused by any LOS blockage. Fig. 5 (left), for instance, shows the RSSI measurements of an experiment with people walking in an area, while Fig. 5 (right) shows the corresponding RSSI measurements in the same area but when the same number of people were instructed not to cross the LOS link. More specifically, people were instructed to walk on one side of the LOS link, with the other walking on the other side, without any person crossing the LOS link. Since there is no LOS blocking in this second case, the fluctuations in the RSSI measurements are solely due to the multipath effect. As can be seen, the measurements in Fig. 5 indicate that the effect of LOS blocking is more significant compared to the multipath effect. Specifically, the fluctuations in the RSSI measurements due to multipath are concentrated around the mean level of the RSSI signal, while blocking the LOS causes a pronounced dip in the signal level.
Based on several similar observations, we then contribute any dip in the RSSI signal level that is larger than a sufficiently-large threshold, , to people blocking the LOS link.222Note that we are only interested in detecting the time instants where any number of people block the LOS link, without the need to know the particular number of people that are along the LOS. Furthermore, if is chosen properly (not too large), then the chance of filtering a dip that was due to the LOS blockage becomes low. Thus, we utilize this approach in our experiments in order to identify the events of people crossing the LOS and hence the inter-event times.
In terms of the choice of the threshold, we choose the threshold of dB in all our experiments, based on several observations similar to Fig. 5. This means that any dip that is larger than is labeled as a LOS blockage. We note that, based on our observations, the choice of is not strongly dependent on the area of interest, which allows us to set it without the need to make prior measurements in a specific area of interest. We thus use the same value of in all the five areas of interest considered in the next section. Furthermore, as we shall see in the sensitivity analysis of Section IV-E, the threshold is not sensitive to the specifics of the scenario such as the density of people and their walking speeds. Thus, estimated with a specific number of people walking at a specific speed can be used to estimate a different number of people walking at other speeds, and more importantly in other areas. Finally, Section IV-E explicitly shows that our experimental results are not that sensitive to the assumed and moderate errors in estimating are well tolerated.
Iv-C Considering the Temporal Width of a Dip
In practice, when a person crosses the LOS, the drop in the signal level is not an impulse drop. Rather, crossing the LOS link takes a finite amount of time, which means that each dip will have a small temporal duration. Let denote this time. Therefore, a person crossing the LOS link blocks the signal for a period of time . This then implies that we can not identify inter-event times that are less than . In other words, any two events of crossing the LOS with an inter-event time smaller than are not identifiable. Therefore, given that we can only identify inter-event times that are larger than in practice, we modify our derived PMF of (12) to account for this. Then, , is given as follows:
in (13) is then replaced with to estimate the total number of people.
The value of depends on the speed of people. In this paper, we have assumed that people are walking casually. Based on simple experimental tests of one person crossing a link at a walking speed, we have chosen second in our results of the next section. We note that we do not need to measure this value in the particular experimental site of interest, as it is not that dependent on a particular site, but is rather more a function of the speed of people. Furthermore, as we shall see in section IV-E, the experimental results are not that sensitive to the exact value of the assumed speed (and thus not that sensitive to the exact value of ).
The PMF of inter-event times in (15) is a function of the CCDF of a single person inter-event times, , as shown in (12). In this paper, we obtain using simulations. More specifically, we simulate motion of person using the motion model of Section II-A. We then identify the times at which the person crosses the LOS link and extract the inter-event times. is then obtained using these simulated inter-event times for a single person. We note that such a simulation is low in computation time (e.g., s), since it involves only one person.
Iv-D Experimental Results and Discussion
To validate the proposed framework of Section III, we ran several experiments using the aforementioned experimental setup. We next present the results.
Fig. 6 shows the first experimental area (Area 1), which is a closed classroom on our campus, bounded by concrete walls on all four sides. We asked people to walk inside the room while the WiFi nodes are located outside of the room, as shown in Fig. 6. The walls are made of concrete bricks which are highly attenuating. The thickness of each wall is cm based on our assessment. The dimensions of inside of the room, where people are walking, are m and m, with the Tx and Rx positioned at (See Fig. 1).
We have conducted several experiments in Area 1 when , and people walked inside the room. In each experiment, the measurements are collected for seconds at samples/sec. People are assumed to have a casual walking speed, which we take it to be m/s in our theoretical modeling.333Note that we do not ask people to walk with a specific speed or in a specific pattern during the experiments. Instead, we simply ask them to walk casually in the area of interest. Table I shows sample results for the estimation of the number of people. It can be seen that our approach can estimate the total number of people walking inside the classroom with a high accuracy, by making WiFi measurements from outside, behind the classroom walls. To further validate our framework statistically, we have run a series of experiments on different times/days to collect statistics of the estimation error. More specifically, we have run experiments on 5 different occasions in the classroom area of Fig. 6 (Area 1). In each run, , and people are asked to walk in the classroom. Fig. 7 shows the Cumulative Distribution Function (CDF) of the estimation error based on these repeated measurements. It can be seen from the CDF plot that the estimation error is person or less % of the time and people or less % of the time, confirming a good statistical performance.
To further validate our approach, we next run experiments in an outdoor area occluded by walls. Fig. 8 shows the outdoor area of interest (Area 2). As can be seen, two parallel walls are constructed with concrete bricks. The thickness of each wall is cm in this case. The dimensions of the area of interest are m and m. People are then asked to walk in the hallway created in between the walls, while a Tx and a Rx node are mounted outside of each wall. Table II shows a sample result obtained in Area 2. As can be seen, the number of people is estimated with a good accuracy. Fig. 9 shows a third area of interest (Area 3), which is another classroom on our campus. The area is bounded by concrete walls on all four sides. People walk in part of this room with the dimensions of m and m as shown in Fig. 9. Note that Area 3 has rich multipath due to the furniture in the room. Table III shows a sample result obtained in Area 3. It can be seen that the number of people are estimated accurately.
To further validate our framework with walls made of different material than concrete, we ran experiments in a room enclosed by wooden walls. Fig. 11 shows the fourth area of interest (Area 4), which is a conference room on our campus. The dimensions of the area of interest are m and m. We then run experiments with up to and including people in this area. Table IV shows the performance of our framework in this case. It can be seen that our framework can estimate the number of people with a high accuracy, which shows the robustness of our approach to the wall material.
So far, we demonstrated experimental results with up to and including people in different areas on our campus. To test the scalability of our approach, we further run experiments with people walking inside a classroom. Fig. 12 shows the fifth area of interest which is a classroom on our campus enclosed on all four sides by walls that are made of a mixture of concrete and plaster (Area 5). The dimensions of this area are m and m. We then run experiments with people walking inside this classroom as shown in Fig. 12. Our framework estimates the number of people inside as in this case, which shows the scalability of our framework to the higher number of people with only one WiFi link.444We note that as the size of the area and the number of people increases, at some point we inevitably have to use more links. However, the fact that people can be counted through walls with only one WiFi link in an area of the size is promising for how this approach will scale to bigger areas and more people. This experiment further tests the proposed approach with a third kind of wall material, a mixture of plaster and concrete, and confirms its robustness. Overall, considering all five areas, our framework can estimate up to and including people with an error of people or less % of the time and with an error of person or less % of the time.
So far, we have demonstrated that the proposed framework can estimate the total number of people walking inside an occluded area of interest with a high accuracy. In all the experimental results so far, we have used data collected for seconds. Next, we show the time we need to wait before the estimates converge to their final values. More specifically, Fig. 10 shows the estimates as a function of time for an experiment with , , and people for the classroom scenario of Fig. 6 (Area 1). It can be seen that the estimates converge to within person of their final values within the first seconds.
Overall, our experimental results confirm that the proposed framework can estimate the number of people inside a room or a building, or in general behind walls, solely from WiFi RSSI measurements acquired from outside, with a good accuracy.
Iv-E Sensitivity Analysis
In the experimental results of this section, we took as dB and assume a walking speed of m/s. We next show that the our framework is not sensitive to the exact value of and the speed of people and that moderate errors in both can be well tolerated. Furthermore, we show that the estimation of is not that sensitive to the specifics of the scenarios such as the density of people and their walking speeds. This then greatly reduces the calibration demand of our approach as estimated with a specific number of people walking at a specific speed in the calibration phase can be used to estimate a different number of people walking at a different speed in the estimation phase. We furthermore have only calibrated in one area and have used it in the other areas in all our experiments, which indicates the generalizability of it across different areas, further reducing the calibration burden, which is important for behind-wall scenarios.
Iv-E1 Sensitivity to the Assumed Walking Speed
The results of Section IV-D assumed that the people in the area of interest are walking at an average speed of m/s, based on the typical walking speed of humans. However, the average walking speed could vary slightly from this value depending on the person or the environment, for instance due to the density of people in the region. In this section, we consider the effect of errors in the assumed walking speed (as compared to the true speed of people) on the estimation of the number of people.
In order to analyze the effect of the assumed walking speed and its deviation from the true speed of people during the experiment, consider an experiment where people are told to walk casually, which amounts to a speed of around 1 m/s. We then assume that people are walking at a speed of m/s in our derivations and estimate the number of people based on our framework. Fig. 14 shows the mean absolute estimation error in the number of people as a function of the error in the assumed walking speed. At each assumed speed, the estimates with different number of people (=1, 3, 5, 7, and 9) walking in the classroom area of Fig. 6 are obtained over 5 repeated sets of experiments. The mean of the absolute error is then shown in Fig. 14. It can be seen that the estimation error is less than 2 people in most of the assumed speed range, showing the robust nature of our framework to small errors in the assumed walking speed of the people as compared to the true speed.
Iv-E2 Sensitivity to the Assumed Threshold
As explained in Section IV-B, a threshold is used to separate the dips of the wireless measurements that are due to people blocking the LOS path from the dips due to multipath. The time instants at which these dips occur are then used to estimate the number of people in the area as explained in Section III. As discussed in Section IV-B, we have used dB in all our results. However, the true optimal value of is hard to quantify. In this section, we consider the impact of the choice of on the estimates of the number of people. More specifically, we consider a range of values for and estimate the number of people. At each , the estimates with different number of people (=1, 3, 5, 7, and 9) walking in the classroom area of Fig. 6 are obtained over 5 repeated sets of experiments. The mean of the absolute error is then shown in Fig. 14. As can be seen, the mean error is less than people for a wide range of , which shows the robust nature of our framework to moderate errors in the estimated threshold .
Iv-E3 Sensitivity of the Threshold to the Density and Speed of People
As explained in Section IV-B, the threshold is estimated by collecting wireless measurements when people are walking without blocking the LOS link. This threshold is then used to separate the LOS blockage from the multipath. For instance, the estimate of dB used in all our experiments is obtained in the calibration phase when people are walking on either side of the LOS link in one area. In this section, we consider the effect of the number of people walking in the area and their walking speed in estimating . More specifically, we let different number of people (=1, 3, 5, and 9) walk on either side of the LOS link without blocking the LOS link as explained in Section IV-B. Furthermore, we let people walk at three different speeds of standing still, normal walking, and running. Table V and VI show the estimated threshold as a function of the number of people in the area and their walking speeds, respectively. It can be seen that the estimated threshold is not that sensitive to the number of people walking in the area or to their speeds, which explains the good accuracy of our results with different number of people and with an assumed speed of m/s.
In this paper, we proposed a framework to count the total number of people walking in an area that is occluded by walls, using only the RSSI of WiFi transceivers that are installed outside of the area. We proposed to use the inter-event times corresponding to the signal dips for crowd counting through walls as it is more robust to the attenuation of the walls. More specifically, we showed how to model the impact of people on the received power measurements using superposition of Renewal-type processes. We then mathematically characterized the statistics of the inter-event times of the resulting process and showed how it contains vital information on the total number of people, which then became the base for our ML estimation of the total number of people. To validate our proposed framework, we ran extensive experiments in five different areas on our campus, three classrooms, a conference room, and a hallway, with walls made of different material such as concrete, plaster, and wood, and with up to and including people, and showed that our approach can estimate the total number of people through walls with a high accuracy.
-  Y. Agarwal, B. Balaji, R. Gupta, J. Lyles, M. Wei, and T. Weng, “Occupancy-driven energy management for smart building automation,” in Proceedings of the 2nd ACM Workshop on Embedded Sensing Systems for Energy-Efficiency in Building. ACM, 2010, pp. 1–6.
-  O. Ardakanian, A. Bhattacharya, and D. Culler, “Non-intrusive techniques for establishing occupancy related energy savings in commercial buildings,” in Proceedings of the 3rd ACM International Conference on Systems for Energy-Efficient Built Environments. ACM, 2016.
-  O. Perdikaki, S. Kesavan, and J. M. Swaminathan, “Effect of traffic on sales and conversion rates of retail stores,” Manufacturing & Service Operations Management, vol. 14, no. 1, pp. 145–162, 2012.
-  Bluescan, www.bluescan.org/english/counting/traffic-counting/.
-  J. D. Nichols, L. L. Bailey, N. W. Talancy, E. H. Campbell Grant, A. T. Gilbert, E. M. Annand, T. P. Husband, J. E. Hines et al., “Multi-scale occupancy estimation and modelling using multiple detection methods,” Journal of Applied Ecology, vol. 45, no. 5, pp. 1321–1329, 2008.
-  M. Li, Z. Zhang, K. Huang, and T. Tan, “Estimating the number of people in crowded scenes by mid based foreground segmentation and head-shoulder detection,” in Pattern Recognition, 2008. ICPR 2008. 19th International Conference on. IEEE, 2008, pp. 1–4.
-  S.-F. Lin, J.-Y. Chen, and H.-X. Chao, “Estimation of number of people in crowded scenes using perspective transformation,” IEEE Trans. on Systems, Man, and Cybernetics-Part A: Systems and Humans, vol. 31, no. 6, pp. 645–654, 2001.
-  K. P. Lam, M. Höynck, B. Dong, B. Andrews, Y.-S. Chiou, R. Zhang, D. Benitez, J. Choi et al., “Occupancy detection through an extensive environmental sensor network in an open-plan office building,” IBPSA Building Simulation, vol. 145, pp. 1452–1459, 2009.
-  C. Jiang, M. K. Masood, Y. C. Soh, and H. Li, “Indoor occupancy estimation from carbon dioxide concentration,” Energy and Buildings, vol. 131, pp. 132–141, 2016.
-  S. Wang, J. Burnett, and H. Chong, “Experimental validation of CO2-based occupancy detection for demand-controlled ventilation,” Indoor and Built Environment, vol. 8, no. 6, pp. 377–391, 2000.
-  Z. Chen, Q. Feng, F. Wang, Q. Zhao, Z. Cheng, J. Zou, Y. Zhang, J. Mai, Y. Li, and H. Reeve, “Predictive control of indoor environment using estimated occupant number by video and CO2 concentration.”
-  S. Depatla, L. Buckland, and Y. Mostofi, “X-ray vision with only wifi power measurements using rytov wave models,” IEEE Trans. on Vehicular Technology, vol. 64, no. 4, pp. 1376–1387, 2015.
-  A. Gonzalez-Ruiz, A. Ghaffarkhah, and Y. Mostofi, “An integrated framework for obstacle mapping with see-through capabilities using laser and wireless channel measurements,” IEEE Sensors Journal, vol. 14, no. 1, pp. 25–38, 2014.
-  C. R. Karanam and Y. Mostofi, “3d through-wall imaging with unmanned aerial vehicles using wifi,” in Proceedings of the 16th ACM/IEEE International Conference on Information Processing in Sensor Networks. ACM, 2017, pp. 131–142.
-  J. Wilson and N. Patwari, “Through-wall tracking using variance-based radio tomography networks,” arXiv preprint arXiv:0909.5417, 2009.
-  J. Weppner and P. Lukowicz, “Bluetooth based collaborative crowd density estimation with mobile phones,” in Pervasive computing and communications (PerCom), 2013 IEEE international conference on. IEEE, 2013, pp. 193–200.
M. Wirz, T. Franke, D. Roggen, E. Mitleton-Kelly, P. Lukowicz, and
G. Tröster, “Probing crowd density through smartphones in city-scale
EPJ Data Science, vol. 2, no. 1, p. 1, 2013.
-  Y. Yuan, C. Qiu, W. Xi, and J. Zhao, “Crowd density estimation using wireless sensor networks,” in Mobile Ad-hoc and Sensor Networks (MSN), 2011 Seventh International Conference on. IEEE, 2011, pp. 138–145.
-  T. Yoshida and Y. Taniguchi, “Estimating the number of people using existing WiFi access point in indoor environment.”
-  C. Xu, B. Firner, R. S. Moore, Y. Zhang, W. Trappe, R. Howard, F. Zhang, and N. An, “SCPL: indoor device-free multi-subject counting and localization using radio signal strength,” in Information Processing in Sensor Networks (IPSN), 2013 ACM/IEEE International Conference on. IEEE, 2013, pp. 79–90.
-  S. Di Domenico, M. De Sanctis, E. Cianca, and G. Bianchi, “A trained-once crowd counting method using differential WiFi channel state information,” in Proceedings of the 3rd International on Workshop on Physical Analytics. ACM, 2016, pp. 37–42.
-  W. Xi, J. Zhao, X.-Y. Li, K. Zhao, S. Tang, X. Liu, and Z. Jiang, “Electronic frog eye: Counting crowd using WiFi,” in IEEE INFOCOM 2014-IEEE Conference on Computer Communications. IEEE, 2014, pp. 361–369.
-  S. Depatla, A. Muralidharan, and Y. Mostofi, “Occupancy estimation using only WiFi power measurements,” IEEE Journal on Selected Areas in Communications, vol. 33, no. 7, pp. 1381–1393, 2015.
V. S. Barbu and N. Limnios,
Semi-Markov chains and hidden semi-Markov models toward applications: their use in reliability and DNA analysis. Springer Science & Business Media, 2009, vol. 191.
-  D-link, support.dlink.com/ProductInfo.aspx?m=WBR-1310.
-  TPlink, www.tp-link.com/en/products/details/cat-11_TL-WN722N.html.
-  RaspberryPi, www.raspberrypi.org/products/raspberry-pi-3-model-b/.