key: cord-0783104-ro6zz1qk authors: Savazzi, Stefano; Rampa, Vittorio; Costa, Leonardo; Kianoush, Sanaz; Tolochenko, Denis title: Processing of body-induced thermal signatures for physical distancing and temperature screening date: 2020-12-22 journal: Ieee Sensors Journal DOI: 10.1109/jsen.2020.3047143 sha: eb249775fbabfca957fd1432997877dc782b10a0 doc_id: 783104 cord_uid: ro6zz1qk Massive and unobtrusive screening of people in public environments is becoming a critical task to guarantee safety in congested shared spaces, as well as to support early non-invasive diagnosis and response to disease outbreaks. Among various sensors and Internet of Things (IoT) technologies, thermal vision systems, based on low-cost infrared (IR) array sensors, allow to track thermal signatures induced by moving people. Unlike contact tracing applications that exploit short-range communications, IR-based sensing systems are passive, as they do not need the cooperation of the subject(s) and do not pose a threat to user privacy. The paper develops a signal processing framework that enables the joint analysis of subject mobility while automating the temperature screening process. The system consists of IR-based sensors that monitor both subject motions and health status through temperature measurements. Sensors are networked via wireless IoT tools and are deployed according to different configurations (wall- or ceiling-mounted setups). The system targets the joint passive localization of subjects by tracking their mutual distance and direction of arrival, in addition to the detection of anomalous body temperatures for subjects close to the IR sensors. Focusing on Bayesian methods, the paper also addresses best practices and relevant implementation challenges using on field measurements. The proposed framework is privacy-neutral, it can be employed in public and private services for healthcare, smart living and shared spaces scenarios without any privacy concerns. Different configurations are also considered targeting both industrial, smart space and living environments. T HE introduction of new sensors, digital technologies and processes [1] to monitor the mobility of the citizens is the key to address future challenges related to active health monitoring of smart spaces [2] , to guarantee safety and human wellness [3] . In addition, the automatic verification of indoor social distance requirements, namely without the need of a human operator intervention, is expected to become critical for long-term containment of epidemic spreads, to sustain and Fig. 1 . Bayesian models and setups for occupancy estimation, distance/AOA tracking and body temperature screening. Examples of thermal signature backlogs from EnviSense devices [34] are also sketched. optimize the environment, and to monitor the people behavior in shared spaces as well. The use of thermal sensors for human body sensing [4] is attractive in many Internet of Things (IoT) relevant scenarios, such as assisted or smart living and industrial automation just to cite a few. In fact, these sensors are able to detect body occupancy, position and distance (both mutual and relative to walls and other objects), capturing also body surface/skin temperatures via a contactless approach. Low-cost passive InfraRed (IR) sensors, also known as thermopiles, are mostly used for subject detection in intrusion alarm systems and lighting applications [5] . Unlike emerging contact tracing applications [6] or other active technologies [7] , IR-based sensing systems do not need the cooperation of the monitored subjects. In addition, these systems enable body motion detection, without being limited by privacy issues, since no specific person can be recognized through the analysis of thermal frames and no electronic records are stored. IR sensors also overcome some known computer vision limitations [8] , since humans thermal profile does not depend on light conditions. Finally, the analysis of body-induced thermal signatures enable advanced applications, i.e. body occupancy detection, passive localization and tracking [9] , [10] . As shown in Fig. 1 , the paper targets a system consisting of multiple networked IR sensor arrays detecting the IR radiation in the Long Wavelength InfraRed (LWIR) band. Sensors can be deployed according to different configurations, i.e. wall-or ceiling-mounted. A Bayesian signal processing framework is proposed to optimize both distancing monitoring (localization and counting) and unobtrusive body temperature screening procedures for early diagnosis. The joint analysis of mobility and body temperatures is validated in several indoor operational environments exploiting real field measurements. A. Related works IR sensor arrays [9] , [11] , [12] have typically low-cost and are characterized by a high temporal and a low spatial resolution. When deployed for monitoring large spaces, multiple arrays can be also placed in selected spots to optimize coverage. Signal processing methods usually apply to raw thermal measurements and target the estimation of human subject(s) space occupancy in real-time, for monitoring body positions, motion intentions such as speed, Direction/Angle Of Arrival (DOA/AOA) [5] , and for activity recognition [13] . Existing techniques are mostly based on frame-based computer vision approaches [4] . They consider analytics over individual time-slices (frames) of raw temperature measurements, ranging from K-nearest neighbor (K-NN) classifiers [11] , [12] , decision trees [14] , [15] , Kalman filtering [5] , [16] , support vector machines [8] , [13] up to deep convolutional encoderdecoder networks [17] . Typical challenges in thermal vision need to face the temporal disappearance of the subjects [18] , due to noisy readings and external heat sources that might be interpreted as false targets. Adaptive background subtraction methods, thresholding or probabilistic methods [19] should be therefore adopted to filter out noisy thermal sources that are not induced by body presence. More recently, the adoption of Bayesian tools over backlogs of thermal images has shown to prevent the problem of human body disappearance [10] . Temperature measurement through contactless devices [20] , [21] are becoming attractive as they allow the automatic screening of large populations [22] - [24] . Existing automatic systems are capable of providing continuous real-time monitoring at the price of a reduced user's mobility. However, contactless instruments like thermal camera scanners, have some limitations concerning temperature accuracy, and lack of a standardized processing interface, tools and protocols. Several studies have been conducted to investigate usability and reliability of thermal cameras for fever measurements [19] , [25] - [28] . Autonomy, size, and costs are generally the main issues limiting the mass diffusion of these devices. The paper focuses on the analysis, design and verification of a unified Bayesian framework for the real-time tracking of body-induced thermal signatures obtained from LWIR sensor arrays arbitrarily deployed in the monitored area. The proposed framework enables three main functions: i) the estimation of the body occupancy in selected spots from which the mutual distance between subjects [29] (i.e., physical distancing) can be inferred; ii) the anonymous tracking of the relative position of the subject(s) with respect to the IR array, namely the distance and the angle of arrival (AOA) of the targets moving in the considered space, and iii) the contactless body temperature screening for subjects located nearby the sensors. Compared to conventional frame-based methods [8] , [9] , [11] , the proposed framework adopts a statistical model for the extraction of body-induced thermal signatures from noisy data, and a mobility model to track multi-body movements and to avoid false target detection. The approach generalizes the system proposed in [10] to arbitrary sensor deployments, including wall-and ceiling-mounted setups. It can be thus used to assess the combined use of wall-and ceiling-mounted distributed sensors and to improve accuracy or coverage. Body temperature screening [21] is rooted here at Bayesian decision theory: first, a statistical model is proposed to relate the body surface temperature with the noisy IR sensor readings. Next, a method for anomalous body temperature detection is developed to account for variable air/background temperature, noisy heat sources and small voluntary or involuntary body (e.g., head) movements. It also fuses IR data with a radio-frequency (RF) low-cost radar for finer grained head positioning. The paper is organized as follows: Sect. II introduces the main challenges and assumptions. Focusing on occupancy estimation and distancing, Sect. III targets the problem of bodyinduced thermal signature modeling, while Sect. IV develops Bayesian filtering methods for real-time subject tracking. Body temperature screening is described in Sect. V, while Sect. VI addresses both best practices and relevant implementation challenges, including sensor calibration, IR and radar data fusion strategies. Finally, the performances of the proposed methods are verified by measurements targeting both industrial and smart living scenarios. We introduce here the statistical model for the raw thermal data captured by the IR sensor array. This model can serve as a general framework for application to multi-sensor deployments and large IR arrays as well. Sensor readings at time t are collected in the vector y t of size M , y t = [y t,1 , ..., y t,M ] T , assuming M thermopile elements, or detectors (in 1D linear or 2D grid format). In the examples of Fig. 1 , the detector array acquires raw thermal IR images organized as 2D frames of 8 × 8 pixels (M = 64). For the purpose of localization, the area X within the Field Of View (FOV) of each IR array sensor is organized into a grid consisting of K ≤ M different physical Regions Of Interest (ROI). Each region k (with 1 ≤ k ≤ K) thus covers a 2D space X k with ∪ k X k = X . As depicted in Fig. 2(a) , for wall-mounted sensors, namely 2D sensor arrays looking inward and deployed in a vertical plane, the K ROIs represent different access areas for the subjects: they are characterized by θ k , namely the target AOA. Subject position is given in terms of distance d and AOA θ relative to the IR array sensor. Similarly, for ceilingmounted sensors in Fig. 2(b) , namely 2D sensor arrays looking downward and deployed in an horizontal plane, each ROI k is characterized by the relative 2D location footprint x k with respect to the intersection of the vertical axis passing through the sensor array center and the horizontal plane of the floor. Considering both setups (i.e., wall-and ceiling-mounted sensors), the problem we tackle is threefold: 1) to estimate, for all K regions, the occupancy vector r t = [r t,1 , ..., r t,k , ..., r t,K ] T of size K ×1, where r t,k ∈ [0, 1] provides the binary information about the presence of the subject at time t in the k-th region; 2) to quantify the relative position of the subject(s) in the estimated region(s), i.e. the relative 2D position of the subject Θ t,k = [d t,k , θ t,k ], with distance d t,k and AOA θ t,k , when crossing the FOV of the corresponding sensor at time t; 3) to detect the body temperature of the identified subject T body via a contactless and non-invasive (i.e., cameraless) approach, triggered by the specific locations occupied by the body. The occupancy r t and locations Θ t,k can be used to count the number of people in the area, to estimate their positions and to monitor the mutual distance between subjects [29] as well. The noisy temperature readings y t depend linearly on the occupancy pattern r t as where each m-th element y t,m of y t is thus y t,m = K k=1 h m,k (Θ t,k ) · r t,k + w t,m . The matrix H = H(Θ t,k ), of size M × K collects the thermal signatures vectors Signatures describe the pattern of temperature increases induced by a body occupying the region k at position Θ t,k . Clearly, in absence of the target i.e. for Θ t,k = ∅, it is h k (Θ t,k ) = 0. Modeling of h k in (1) depends on wall or ceiling sensor layouts and it is addressed in the next sections. The background column vector w t = [w t,1 , ..., w t,M ] T of size M × 1 conveys information about detectors noise and noisy heat-sources that are not caused by body movements but characterize the empty space. This is modeled here as multivariate Gaussian w t ∼ N (µ, C) described by the average vector µ = [µ 1 , ..., µ M ] T and the covariance matrix C. Learning of the body-induced thermal signatures in H and the background/ambient temperature {µ, C} in (1) can be based on a supervised method, i.e. the conditional maxi- However, considering the interpolated (1 : 4) thermal image examples of Fig. 2 , it is reasonable to assume that the individual elements h m,k of matrix H are intrinsically sparse [10] . Assuming the linear coefficients of H to have a Laplace prior distribution [30] , and Gaussian background 1 (1), the model H is estimated using a Least-Squares (LS) method: (3) This is based on N labeled training measurements collected in the set r , namely the thermal frames y .., N , and the corresponding true occupancy patterns r (i) t . A regularization parameter λ = 41 is used for optimization, while y C = y T C −1 y denotes weighting by covariance C. Although the above Lasso-type regularization [30] sets matrix H to have a sparse representation, the solution is sensitive to training impairments, and thus requires time-consuming calibration. In what follows, we propose a stochastic model for thermal signatures that is less sensitive to such impairments. The proposed simplified model sets the individual thermal signatures h k , namely the columns of H, to depend linearly on the body distances d t,k and have binary and sparse representations. Signatures are thus approximated as where σ(d t,k ) measure the body-induced temperature increase at distance d t,k and is a binary vector, where 1 x >τ k (x) is the indicator function, The threshold τ k is set, for each region k, according to the 1 Ambient temperature µ and deviations C are obtained during initial sensor startup by using thermal measurements in the empty area. selected layout. In Tab. I and Sect. VI-A, we assume that ∀k it is τ k = τ . Coefficient σ(d t,k ) models the temperature increase as a stochastic function of the body distance, for d t,k ≥ d min . Finally, deviation term σ T accounts for random, small body movements around the nominal position. Body-induced effects decay almost linearly with the distance from the IR array, with rate γ: in fact, when the distance increases, not only the body is measured, but also whatever else falls within the spot area, including the background. Using field measurements collected from 3 subjects and two environments, as described in Sect. VI, in Fig. 3 we highlight the s-relu model approximation using the parameters shown in Tab. I that are optimized by LS method. Body effects converge smoothly to σ(d t,k ) 0 when d t,k > d max = 3.5 m. Examples of thermal signatures (4) for selected ROIs with AOA θ k = {0°, 20°} are also shown in Fig. 2 (a) and compared with the averaged temperature increases E t y (i) t with respect to the background. Considering ceiling-mounted sensors as special case, the distance of the body from the array can be assumed as constant within the sensor FOV. Thus, we further simplify (4) as where the term σ models the body-induced thermal increase compared to the background. Temperature increases typically fall in the range σ = 1.1 • C ÷ 1.4 • C, for 2.5 m ÷3 m ceilingmounted sensors, and are consistent with the s-relu model (6) . Increase σ is modelled here by the Gaussian probability density function σ ∼ N (σ, σ 2 T ) where σ is obtained from (6) using the sensor height from the ground as input distance (here 2.5 m). For the layout of Sect. VI, Fig. 2(b) shows examples of the signatures h k for a subject located at selected positions, labelled as x k . Signatures are compared with the corresponding averaged temperature increases E t y We estimate here, for each region k, the body positions Θ t,k , namely the (binary) occupancy Θ t,k = [r t,k ], or the subject locations Θ t,k = [d t,k , θ t,k ] , by considering an arbitrary sensor layout (wall or ceiling mounts). Following the Bayesian approach, the decision on subject locations is based on the a-posteriori probability Pr (Θ t,k | Y t ) conditioned on all the observed temperature measurements Y t = [y 1 , ..., y t ] T up to time t. By defining Pr (Θ t,k | Y t ) = Λ t,k , the probability terms can be evaluated iteratively as [2] h the a-priori probability. The likelihood function depends on the background temperature (µ, C) and the bodyinduced thermal signatures h k , defined in (4) or (7) for ceilingor wall-mounted setups, respectively, as The vector µ k = {µ k,q : ∀q, b k,q > 0} considers only the elements from µ corresponding to the non-zero indexes of the binary vector is computed according to the selected layoutspecific mobility model [31] . For monitoring body distances and movements Θ t,k = [d t,k , θ t,k ], we resort to the pseudo-code detailed in the Algorithm 1 and described in the following for wall-mounted IR sensors. As depicted in Fig. 2(a) , each ROI k corresponds to a different access area, with AOA θ k (i.e., azimuth) and unknown distance d t,k , but in the range [d min , d max ]. We first detect the access arear t,k , by solving the occupancy problem. Then, both the AOA θ t,k = θ k (r t,k ) and the distance estimate Θ t,k = d t,k (distancing) are considered. Occupancy detection is based on the maximum likelihood (ML) algorithm with (11) is implemented as a finite sum with interval ∆d = 0.25 m while Pr(d t,k = x) is assumed to be uniformly distributed as Pr(d t, Algorithm 1 Distancing and AOA tracking initialize multivariate Gaussian functions: 3 : ∀d : Pr(d|h) ← N [d;h, W] random walk (0.5 m/s) 6: for each round t do Main loop 7: ∀k, d: Occupancy r t,k 9: for d ← d min , d max ,∆d do 12: 14: end for 29: end procedure for all the occupied access areas for which r t,k = 1,∀k: it is obtained via Bayesian filtering (8) now with Λ t,k = Pr (d t,k | Y t ) and Θ t,k = [d t,k ] where the conditional probability Pr(Θ t,k |Θ t−1,h ) is given by a 1D random walk [31] . The subject(s) in the area k may thus move backward or forward along the range segment [d min , d max ] with AOA θ t,k = θ k . Subject counting is drawn from the ceiling-mounted IR sensors. In fact, they can be more easily deployed in crowded areas, compared with wall-mounted setups. Counting requires first to detect the presencer t,k of the subjects in the K ROIs, then to identify the number of occupied spots S t = K k=1r t,k at time t. The goal is to detect critical distancing situations (i.e., crowded areas). We adopt here the Bayesian filtering Pr (r t,k | Y t ) where . Notice that the a-priori probabilities Pr (r t,k | Y t−1 ) are now binary and, as in (8), they can be updated iteratively as by summing over all (binary) combinations in r t−1 . The transition probability Pr(r t,k | r t−1 ) is drawn from the motion model as shown in the eq. 8 of the reference [10] . The analysis proposed in this section targets the automation of the temperature screening process, namely the problem of massive and unobtrusive identification of anomalous body temperatures in public environments, where keeping user privacy is critical. The temperature measurement is automatically triggered when the user is located near the IR sensor array. As introduced in Sect. III-A, the temperature readings obtained from the IR sensor do not reveal the precise body temperature, as measurements are influenced by the (time-varying) background and the ambient (i.e., air) temperature T amb . In addition, body-induced effects also decay almost linearly with the distance of the body from the IR sensors. Compared with state-of-the-art low-cost IR devices [25] , [32] , the proposed screening method draws from a statistical model and Bayesian decision theory: the user is allowed to move during the screening process while its position is estimated (continuously) using the Bayesian framework proposed in Sect. IV. The screening process gives the probability that the estimated surface body temperature T body rises above a given threshold T max (37.5°C). This indicator can be used as initial fever screening, to select the subject(s) that require a more careful treatment (e.g., using manual thermometers or higherprecision devices). Screening precision and recall figures decay with the body distance from the IR array and positioning accuracy: this is quantified in Sect. VI, experimentally. Body surface temperature measurement is obtained from sensor readings y t through the Gaussian function T (y t ) ∼ N (T (y t ), σ 2 body ). The average absolute temperature T (y t ) is The term σ 2 body accounts for time-varying readings due to random, voluntary or involuntary head/body movements. The (true) body temperature T body can be obtained as the solution of where T amb corresponds to the ambient temperature. Coefficient β models the change of the temperature measurement with T amb , or ambient-to-skin difference [27] . In addition, it corrects the absolute temperature measurement error (±2.5°C typical) observed during initial sensor startup: with T min = 20 • C. Ambient temperature T amb can be obtained directly from the background µ in (1) as T amb = 1 M M m=1 µ m or drawn from other sensors. Considering a body at distance d t,k and AOA θ t,k , the coefficient α = α(d t,k ), with 0 < α < 1, models the fraction of the sensor spot area size that is occupied by the body (Fig. 4) . According to [32] , it linearly depends on the body distance d t,k as However, the LS model fitting depicted in Fig. 5 shows that the linear approximation (18) is effective as far as the body distance is lower than 0.75 m. On the contrary, the quadratic approximation α(d t,k ) = α 0 − α 1 d t,k − α 2 d 2 t,k , superimposed for comparison on the same figure, gives improvements for larger distances. The experiments in Sect. VI further reveal that the model (15) gives good results as far as 20 • C ≤ T amb ≤ 28 • C. Notice that for more general applicability, the relative humidity of the air should be considered as well [24] . All optimized parameters are summarized in Tab. I assuming a FOV of the IR array equal to 60°. Temperature screening discriminates an anomalous body temperature observation (T body > T max ), described here as state F 1 , from a safe condition (T body < T max ), indicated as F 0 . Decision at time t is made by collecting Q samples Y t,Q = [y t−Q+1 , ..., y t ] T within the inspection interval [t − Q + 1, t]. The log-likelihood ratio (LLR) function is used as decision metric: for states F 1 and F 0 , the likelihoods are Pr (y t |F 1 ; Θ t,k , T amb ) and Pr (y t |F 0 ; Θ t,k , T amb ) , respectively. In particular, using (15) and (16), it is (9) and Pr [T (y t ) > y] = Q y−T (yt) σ body with Q (·) the Q-function [33] . We also assume that F 0 and F 1 have the same a-priori probabilities Pr (F 0 ) = Pr (F 1 ) = 1/2. Pr (y t |F 0 ; Θ t,k , T amb ) is defined similarly and thus omitted. Being [t − Q + 1, t] the inspection interval, the detector implements a majority voting policy: it votes for state The detector also outputs a soft indicator, namely the sample probability 1 Q τ ∈[t−Q+1, t] 1 LLR(yτ )≥ξ , that quantifies the severity of the alert defined in the [0, 1] interval. The optimal threshold value ξ is obtained from a measurement campaign and it is optimized in Sect. VI targeting the maximization of the true positive rates (i.e., or recall figure), as critical for preliminary screening and diagnosis operations. The experimental validation scenarios exploit IoT devices [34] equipped with thermopile sensor arrays each consisting of M = 64 IR detectors and FOV of 60°. They are sensible in the 8 − 13 µm LWIR infrared band, with a noise equivalent temperature difference of ±0.08°C @ 1 Hz at room temperature (T amb = 20°C). In the scenario #1 on top of Fig. 6 , two wallmounted devices are installed to monitor the subjects access areas and their distances from a manipulator machine [35] , for safety purposes. In the scenario #2 at the bottom of Fig. 6 , four devices are mounted on different ceiling panels. They monitor a corridor and count the number of moving subjects, thus analyzing motion patterns in real-time to generate an alert when crowded areas are detected. A wall-mounted device is also installed nearby the entrance for temperature screening while the subject is moving towards the corridor. The proposed processing framework for joint localization and body temperature screening is summarized in the block diagram of Fig. 7 . The IR sensor array readings Y t are processed continuously and independently for counting, mutual distance monitoring (ceiling-mounted sensors), localization and temperature screening (wall-mounted). In Sect. VI-A, we first detail the sensor calibration procedures and the necessary initialization stages. Optimized model parameters are summarized in Tab. I. Localization is addressed in Sect. VI-B by analyzing the subject positioning accuracy (distance and AOA) and the ability to identify crowded areas for social distancing monitoring as well. Finally, temperature screening in Sect. VI-C is corroborated by an experimental study involving both real and simulated body surfaces. The impact of the inspection interval [t−Q+1, t] and the subject positioning errors on temperature estimation is also discussed. All proposed Bayesian methods (Sect. IV and V) are implemented on a low-power System on Chip (SoC) exploiting a 1.5 GHz quad core ARM Cortex-A72 processor with 4 GB internal RAM. Each IoT device samples its IR array every t = 0.3 s. Raw data are then forwarded to an intermediate access point via the Thread (IEEE 802.15.4) protocol and sent to a server by exploiting the Message Queuing Telemetry Transport (MQTT) one. The server is in charge of data storage, caching and processing, and acts as a broker accepting subscriptions from an ad-hoc application optimized for visualization of the subject locations in polar or Cartesian coordinates. During initialization, all deployed devices estimate the background parameters µ k and C k in (9) for each location/region k. Reestimation of the parameters µ k and C k is required to possibly track time-varying background temperature. It is implemented by a Multivariate Exponentially Weighted Moving Average (MEWMA) and Covariance Matrix (MEWMC) [36] , with smoothing constants set to 0.99 and 0.995 for the µ k and C k updates, respectively. These are optimized in [10] to track small background changes caused by external thermal sources (e.g., air conditioners, heaters and radiators). Locations k, or access areas, are pre-configured for each sensor (wall-or ceiling-mounted) at installation time. Once the locations k are assigned, the thermal features h k are computed according to (4) and (7) . They consist, for all cases, of the binary functions b k and the corresponding temperature increases σ ∼ N (σ, σ 2 T ), whose parameters are defined in Tab. I according to the approximation (6). Binary functions depend on the number of areas K to be monitored, and therefore on the sensor layout, so they do not require online training/calibration. Considering ceiling-mounted devices, the observed scene is divided up into K = 12 ROIs that form a regular grid of 0.5 m. One individual device can monitor a 2.5 sqm area when mounted on a 3.0 m ceiling (faced down). For wall-mounted devices, the monitored area is divided into K = 5 ROIs representing different access areas for the subjects with corresponding AOAs defined as In all the proposed scenarios, up to ζ = 3 bodies might be co-present within the sensor FOV. Temperature screening adopts the parameters in Tab. I. Notice that the β 0 and β 1 terms depend on the absolute temperature measurement errors and need a re-calibration stage at device start-up. On the contrary, α 0 , α 1 (and α 2 for the quadratic approximation) do not require re-calibration, as they depend on the geometry of the acquisition (i.e., the physical distance of the subject). In Tab. II, we analyze the performance of distance and AOA estimators, considering a wall-mounted array. Accuracy is given in terms of Root-Mean Squared Error (RMSE). For localization performance verification, we first consider the industrial scenario #1 where we deployed labeled landmarks in selected positions that are occupied by the subject(s) when moving in the area. Estimator errors are thus compared with the true positions from landmarks. The subject is located at (true) distances from the IR array ranging from d t,k = 0.5 m to d t,k = 2.5 m and covering access areas with AOAs in the interval −30 • ≤ θ t,k ≤ 30 • . AOA and distance resolution tradeoff can be controlled by tuning the model parameter σ 0 : large σ 0 values allow to better track subject AOAs, but give incorrect distance estimates, generally larger than the true ones. Smaller σ 0 values produce the opposite effect. For subject positioning, we thus choose σ 0 = 4.5°C, while the other parameters are summarized in Tab. I. The maximum detectable body distance, above which body-induced thermal signatures are almost indistinguishable from the (time-varying) background could be reasonably assumed as 2.5 m. In Fig. 8 , the RMSE of the location estimate, namely ( d t,k , θ t,k ) is now evaluated as a function of the true target position within the sensor FOV. In all cases, distance estimation error reduces when the subject approaches the sensor, while the situation is reversed for AOA estimation, namely AOA estimation improves when the subject is entering in the sensor FOV. With respect to positioning performance, the IR array thus behaves like a conventional radio-frequency radar as it is sensitive in the range-azimuth domain. Notice that, although not addressed in this paper, subject speed and motion directions could be easily inferred by analyzing the estimated motion pattern over the time domain. Subject counting and physical/social distancing monitoring are now considered in Fig. 9 , using ceiling-mounted devices deployed as shown in the scenario #2 of Fig. 6 . In particular, 4 devices monitor a corridor of 10×3 m: cumulative alerts can be triggered, e.g., every minute/quarter/hour, when the subject mutual distance falls below a threshold (set here to 1 m), corresponding to two distinct subjects moving in adjacent spots. Alerts give a finer-grained information about space usage and indicate potential criticalities depending on the specific application. Fig. 9 highlights the estimated occupancy patterns r t (13) versus time considering 6 selected ROIs, with known 2D location footprint x k=1,...,6 . Example motion patterns involve 1 up to 3 people: subjects moving in adjacent ROIs cause an alert, i.e., a violation of the distancing requirements, highlighted by red boxes. By labeling a (true) violation of distancing limits as true positive, and considering a single IR sensor array, we observe a high precision 99%, corresponding to negligible false positives, and a recall of 90%, namely the 90% of all true violations are correctly identified. Precision is however more critical considering that alerts are typically cumulative, as issued on minute/quarter/hour time-frames. The combined use of multiple IR arrays is also recommended to increase the coverage area. As previously described, scenarios #1 and #2 cover almost all situations where localization and tracking of people are critical, such as in assisted living, homecare and smart spaces applications. Sensors deployed as in case #1 can be configured to monitor specific locations (e.g., corridors, aisles and access points) by acting as virtual fences not to be trespassed. A single wall-mounted device is sufficient to cover an area with maximum range distance of 2.5 m and AOAs in the interval −30 • ≤ θ t,k ≤ 30 • . In addition, people intentions (e.g., motion directions and speed) and safety information (e.g., distance from dangerous positions) can be easily inferred. Unlike case #1, in case #2 the devices track people density in small/medium size rooms. In such cases, the ceiling mounted IR arrays should be installed so that the corresponding monitored areas overlap (i.e., ∼ 0.4 ÷ 0, 5 device/sqm density for devices with 3-meter-high rooms). It is worth mentioning that combined wall-and ceiling-mounted devices deployments provide a finer-grained control of the space utilization. These configurations are useful for applications that require the si-multaneous distancing monitoring and temperature screening, as detailed in the next Sect. VI-C. Localization RMSE performance (Table II) is in-line with Bluetooth Low Energy (BLE) based proximity monitoring systems that are based on Received Signal Strength Indicator (RSSI) processing. In smartphone-based contact tracing apps, RSSI values are used to extract relative location estimations, with typical RMSE figures in the range 0.5 − 1 m in the short range [6] . Notice that the proposed setup does not need the subject to wear or possess any device; in addition it does not pose any privacy issue as no identity tags are tracked. With respect to previous works on motion detection through thermal imaging, modified K-NN and decision tree based (C4.5) models reported precision and recall figures in the range of 80% ÷ 90% [9]- [12] for subject counting (1 ÷ 4 people up to a distance of 3 m). Such figures have been improved (by 5% ÷ 7%) in [14] . However, these early works did not considered the specific problem of localization and physical distancing monitoring. More recent implementations that use thermal sensor with M = 768 detectors (32 × 24 pixels) achieve an occupancy estimation accuracy of 98% using a modified AdaBoost classifier [17] and considering both ceiling and wall mounted setups. For temperature screening tests, we collected measurements from 3 different subjects (2 male, 1 female) in healthy condition, namely having T body < T max . An artificial object with size comparable to the subject (i.e., head) is also adopted to simulate Covid-19 true positives with T body > T max . During the tests, bodies can freely move around the IR sensor array with distance ranging between 0.1 m, up to 1.1 m. Besides the IR sensor array, a low-cost radar [37] working in the mmWave band was co-located ( Fig. 6 ) with the IR sensor array, and used to refine body distance measurements during the screening process. The goal is to obtain a finer-grained estimation of the body location, still preserving the user privacy with respect to camera-based techniques [27] , [28] . The radar is equipped with Multiple-Input-Multiple Output (MIMO) antennas (2 transmitters, 4 receivers) and implements a Frequency Modulated Continuous Wave (FMCW) system. It works in the 77 − 81 GHz band and allows for precise range (i.e., distance) estimation d t,k . The subject positioning algorithm fuses the location estimates produced by the IR sensor array with the ones obtained from the FMCW radar. Data fusion, highlighted in Fig. 7 , is built sequentially (boosting method): the location estimate is first obtained by the Bayesian tool presented in Sect. IV (Pseudocode 1), then cross-verified using the radar outputs and corrected, in case of inconsistencies. Combined IR and radar-based positioning gives a localization RMSE of 0.1 m in the short range (d t,k ≤ 1 m). Using positioning refinements, temperature estimation is obtained by solving (16) . Estimation RMSE is analyzed in Fig. 10 for varying subject distances, and T amb = 23°C. Linear and quadratic approximations for α(d t,k ) in (18) are also compared. The linearized model gives a body temperature estimate with average RMSE of 0.37°C for distances lower than 0.75 m. For larger distances (but still ≤ 1.1 m), the quadratic approximation performs better, although the RMSE increases up to 0.45°C. The maximum body distance for screening could be thus reasonably set to 1 m. In Fig. 11 , we analyze the Receiver Operating Characteristic (ROC) figures for varying number of samples (Q = 6, 12) and positioning accuracy, with body location RMSE ranging from 0.10 m to 0.32 m. The ROC curve using true body distance information is also superimposed in dashed line as benchmark while the random (i.e., trivial) detector is shown as well. In particular, we consider 2888 true negative examples, namely healthy subjects with T body ranging from 36°C to 37.2°C, and 1800 true positives, with T body ranging from 37.8°C to 38.5°C. True temperatures are measured by a contact thermometer. Pre-screening inspection systems [28] need high true positive rates (TPR), or recall, to maximize the number of subjects correctly detected as unhealthy. In addition, false positive rates (FPR) should be kept as low as possible to limit post-screening operations. Considering Q = 12 samples, corresponding to an inspection interval of ∼ 4 seconds, the TPR and the FPR are 97% and 15%, respectively, for the detector threshold set to ξ = −0.2 (optimized for maximum recall), and subject positioning RMSE of 0.1 m. Distancing Tab . III using both radar and IR array for distance monitoring. The wall-mounted IR-based devices configured for localization gives an RMSE of 0.32 m (as in Tab. II) while screening precision and recall are 79.1% and 88%, respectively. The combined use of the IR array and the radar gives an RMSE of 0.1 m and thus improve both figures that are now 87.5% and 97%, respectively. These results are in-line with RGB-thermal image-based screening tools with SVM classification [28] that report a recall figure equal to 85.7% and a specificity, namely 1 − FPR, equal to the 90.1% one. In the same reference [28] , conventional fever screening methods based on electronic thermometers show recall and specificity values equal to 60.7% and 86.4%, respectively. The paper proposed a Bayesian tool for joint body localization and temperature screening that is based on the realtime analysis of infrared (IR) body emissions using devices equipped with low-cost thermopile-type passive IR sensor arrays. A statistical model is validated experimentally in an industrial test plant to represent the thermal signatures induced by bodies at different locations. The model is general enough to support different device layouts (ceiling-and wall-mounted devices) and it has been verified experimentally targeting the passive detection of body motion directions, distances from the sensor and mutual body distances, to monitor crowded areas. Thus, the proposed sensing platform can be easily adapted for applications ranging from assisted living to homecare, and smart spaces. Contactless temperature pre-screening, rooted at Bayesian decision theory, is integrated with body localization that fuses IR emissions and backscattered radar signals for finer-grained positioning. It thus allows non-invasive body diagnosis by letting the subject freely move in the surroundings of the IR sensor, during the measurement process. Screening is designed to minimize false negatives with performances that are in-line with state of the art inspection tools, but, preserving subject privacy by avoiding imaging from video cameras. The infra-red array sensor is supported by the multi-sensor box Envisense Smart equipped with a 2.4 GHz IEEE 802.15.4 radio interface. The infra-red array performs 10 measurements per second of the thermal profile of the space in front of itself, with a range of coverage that reaches up to 7 m and an angular opening of 60 deg. Sensors are identified by a unique 64-bit number corresponding to the address of their IEEE 802.15.4 radio module. They transmit infra-red array data with a lowpower 2.4 GHz mesh network, each 8x8 thermal map sampled at 10 Hz is sent to the data collector called EnviCore. The thermal map sample is quantized with 8-bits representing the temperature ranging from 0 to 64°C with a 0.25°C resolution. Data collected by the gateway is converted to a JSON data packet, marked with a absolute timestamp in order to keep the timing information and allow the synchronization with other sensors data. Finally, all collected and converted data is sent to the processing server by a Wi-Fi connection and MQTT protocol. In order to have the platform working the following configurations steps shall be done: i) EnviSense configuration using the Android App and a smartphone with NFC support; ii) EnviCore configuration with its web pages; iii) processing server configuration. In order to configure the Envisense device an Android App is provided. The Android Smartphone used for configuration must have NFC technology support in order to communicate with the EnviSense. After the app is launched the configuration is read by simply moving close the smartphone to the device between the solar panel and the PIR. As soon as the configuration is read all sensors are enabled. See [34] for further technical information. Transformative Computing and Communication Device-Free Radio Vision for assisted living: Leveraging wireless channel quality information for human sensing Illuminating the dark spaces of healthcare with ambient intelligence Thermal cameras and applications: a survey Tracking motion direction and distance with pyroelectric IR sensors A Survey of COVID-19 Contact Tracing Apps Wearable sensors in healthcare and sensorenhanced health information systems: all our tomorrows? Infrared ultrasonic sensor fusion for support vector machine based fall detection Occupancy estimation using a low-pixel count thermal imager Occupancy Pattern Recognition with Infrared Array Sensors: A Bayesian Approach to Multi-body Tracking Low power wireless human detector utilizing thermopile infrared array sensor Thermosense: Occupancy thermal based sensing for hvac control Activity recognition using low resolution infrared array sensor Hierarchical classification of low resolution thermal images for occupancy estimation Monitoring household activities and user location with a cheap, unobtrusive thermal sensor array Human tracking with an infrared camera using a curve matching framework Adaptive Thermal Sensor Array Placement for Human Segmentation and Occupancy Estimation Probabilistic method to determine human subjects for low-resolution thermal imaging sensor Contactless fever measurement based on thermal imagery analysis A Non Invasive Wearable Sensor for the Measurement of Brain Temperature Investigation of the Impact of Infrared Sensors on Core Body Temperature Monitoring by Comparing Measurement Sites Design, Calibration and Experimentation of an Epidermal RFID Sensor for Remote Temperature Monitoring Measurement of Core Body Temperature Using Graphene-Inked Infrared Thermopile Sensor Effect of ambient temperature and attachment method on surface temperature measurements Comparison of 3 infrared thermal detection systems and self-report for mass fever screening Limitations of forehead infrared body temperature detection for fever screening for severe acute respiratory syndrome Screening for fever by remote sensing infrared thermographic camera Contactless vital signs measurement system using RGB-thermal image sensors and its clinical screening test on patients with seasonal influenza The Visual Social Distancing Problem Regression shrinkage and selection via the Lasso: A retrospective Random walk: a modern introduction Size-of-source Effect in Infrared Thermometers with Direct Reading of Temperature Global Minimax Approximations and Bounds for the Gaussian Q-Function by Sums of Exponentials Device-Free RF Human Body Fall Detection and Localization in Industrial Workplaces Multivariate exponentially weighted moving covariance matrix A Multisensory Edge-Cloud Platform for Opportunistic Radio Sensing in Cobot Environments