key: cord-0872018-mnqu80t3 authors: Wang, Junqi; Huang, Jingjing; Feng, Zhuangbo; Cao, Shi-Jie; Haghighat, Fariborz title: Occupant-density-detection based energy efficient ventilation system: Prevention of infection transmission date: 2021-03-09 journal: Energy Build DOI: 10.1016/j.enbuild.2021.110883 sha: da0c3585588b64d29e7719838472c44cfd70da77 doc_id: 872018 cord_uid: mnqu80t3 Ventilation plays an important role in prevention and control of COVID-19 in enclosed indoor environment and specially in high-occupant-density indoor environments (e.g., underground space buildings, conference room, etc.). Thus, higher ventilation rates are recommended to minimize the infection transmission probability, but this may result in higher energy consumption and cost. This paper proposes a smart low-cost ventilation control strategy based on occupant-density-detection algorithm with consideration of both infection prevention and energy efficiency. The ventilation rate can be automatically adjusted between the demand-controlled mode and anti-infection mode with a self-developed low-cost hardware prototype. YOLO (You Only Look Once) algorithm was applied for occupancy detection based on video frames from surveillance cameras. Case studies show that, compared with a traditional ventilation mode (with 15% fixed fresh air ratio), the proposed ventilation control strategy can achieve 11.7% energy saving while lowering the infection probability to 2%. The developed ventilation control strategy provides a feasible and promising solution to prevent transmission of infection diseases (e.g., COVID-19) in public and private buildings, and also help to achieve a healthy yet sustainable indoor environment. COVID-19 is a respiratory disease caused by a coronavirus (SARS-COV-2), which has a high-level of infection and morbidity [1, 2] . Till 14 February 2021, COVID-19 has caused 108 million confirmed infected cases including 2.38 million deaths [3] . As the reopening of social economy, there is a high probability to involve large number of transportation activities, and creating large mobility of people. Thus, there is a strong need to develop control strategies to prevent the transmission of COVID-19 and alike diseases in public and private buildings (PPBs) (e.g., airport terminal, train station, bus station, super market and shopping centers, universities, entertainment events, etc.). For this purpose, some control measures have been widely used [1, 4] , such as the source control (to separate suspected infected patients), virus spread control (to restrict going out), virus tracing, etc. In PPBs, ventilation can play essential and important role in reducing the infection transmission. It introduces outdoor air to dilute the indoor air contaminants generated by the occupants and their activities. ASHRAE Standard 62.1 [5] and Chinese Standard [6] specify the minimum amount of outdoor air that is to be provided by the HVAC systems. This airflow rate is calculated based on maximum occupancy conditions. The PPBs have highly transient occupancy condition, hence could provide fertile ground for transmission and infection during high-occupancy periods, and over ventilation during low-occupancy periods (which is a waste of energy). The transmission of SARS-CoV-2 mainly include contact transmission, exhaled droplet transmission and aerosol transmission [2, 7, 8] . The exhaled droplets of infectors may fall down and contaminate the surface, which could be infective for few hours to few days [9, 10] . Besides, the virus could re-enter the air upon the surface disturbances [11] . To reduce the infection risk of contact transmission, frequent hand washing with sanitize and surface disinfection are important; for contact and exhaled droplet transmission, wearing masks and keeping social distance are normally recommended [1, 12] . However, there are common occasions of dense crowd (e.g., queueing for boarding, for purchasing in supermarket, or for security checking) and off-mask activities (e.g., drinking or dining) in PPBs (see Fig. 1 ), which could pose a potential risk of infection especially when people exposed to a dense and crowded environment. The ventilation system is thus an efficient and important approach to reduce the transmission of infection in PPBs: the system introduces the outdoor air to dilute the indoor air contaminant that is mainly responsible for the aerosol transmission [1] . (b) Queueing in a metro station [14] When the situation of dense crowd occurs, ventilation rate should be increased to reduce the infection risk. However, the standard minimum outdoor airflow rate of public buildings is insufficient to control the infection risk at low level (e.g., 2%) [15] . It is thus essential and widely recommended to improve the ventilation rate for the sake of reducing infection probability (IP) of COVID-19 in such high-density indoor environment [2] . For instance, it is reported that to control the IP in office under 2%, the ventilation rate should be improved from 30 m 3 /(h·p) (a designed rate) to 225 m 3 /(h·p) for a full occupant density with a 2-h exposure time [15] . However, high ventilation rates would result in higher energy consumption and may cause some thermal discomfort [15] . Especially for PPBs, which may have variable temporal distribution and uneven spatial distribution of occupants [16] . Under this circumstance, the ventilation rate can be reduced to a lower level in order to save energy [17] . Therefore, the challenge is how to balance the ventilation energy consumption and the prevention of infection risk in such indoor environment during pandemic [7] . One technique to reduce this transmission is demand-controlled ventilation (DCV) systems [18] . This approach gives the ability to control the supply of outdoor airflow rate based on the building occupant density. It is however, challenging and expensive to re-design and retrofit the existing ventilation system [19] [20] [21] . Hence, a more practical solution is probably to make some minor adjustments or improvement to the existing ventilation system using the concept of DCV. This can be achieved by making the existing ventilation system capable of dynamically monitoring occupant density and adjusting the ventilation rate. Hereby, the efficient detection of occupant density is of great importance [22] . Currently, the occupant detection is based on environmental monitoring [23] , information and communication technology (e.g. Wi-Fi) [24, 25] and visual information using cameras [26] [27] [28] . Among the three occupant detection methods, the camerabased method is recommended since it cannot only provide the number and location of occupants, but also monitor the crowd gathering and individual behaviors (like hand shaking and hugging) as well as the occupant tracking [29] . Moreover, surveillance cameras are normally used in PPBs for the security and safety purposes. The information collected by these cameras can be easily provided to the ventilation system (almost at no extra cost on the hardware of sensing). In combating the COVID-19, many deep-learning-powered camera-based methods have been developed and used for social distance detection and face mask detection [30] [31] [32] If the sub-zonal occupant density is lower than or equal to θ, the demand-controlled mode is activated and the ventilation rate is determined according to the Standard (e.g., [6] ); If the sub-zonal occupant density is higher than θ, the signal is sent to the corresponding management personnel. Meanwhile, the anti-infection mode of ventilation is activated and the ventilation rate is adjusted based on the occupant density (based on the calculation using Wells-Riley model) to lower down the IP below a targeted value. Wells-Riley model is selected considering that it is has been widely used for the infection risk evaluation [35, 36] . Finally, the IP and ventilation energy consumption are evaluated (corresponding to the ventilation rate). Redmon et al. [37] proposed the YOLO algorithm which pioneered the solution in deeplearning based object detection and it has been applied in many areas, such as transportation [38] , robotics [39] , and safety management [40] . YOLO version 4 is selected in this study since it performed faster and more accurate than most modern object detection algorithms [41] . Fig. 3 shows the schematic of the system. Firstly, the input video frame is adjusted to a unified length and width, and then, the frame is fed into the convolutional network (a class of deep neural networks that commonly applied in visual information processing) to predict bounding boxes and the associated confidence scores. Next, the optimal bounding box of each detected object is identified through the non-maximum suppression [37] . With the information of bounding boxes, the detected occupant and its position can be obtained (detailed in the next section). Table 1 ) [6] . With the variation of occupant density levels, the corresponding minimal ventilation rates can be recommended (see Table 1 ), i.e., 15, 16 to 19 m 3 /(h·p). The anti-infection mode of ventilation targets for controlling an IP below a certain target (e.g., IP ≤ 2%). Based on the Wells-Riley model (see Equation (1), Section 2.4), the required ventilation rate can be calculated. The infection risk can be calculated using a modified Wells-Riley model which includes the effects of social distance and ventilation effectiveness [15] , where is the infection probability, is the social distance index, is initial infection rate, is the quantum generation rate produced by one infector (quantum/s), is the pulmonary ventilation rate of susceptible individual (m 3 /s), is the exposure time (s), is the air distribution effectiveness (see [5] ), is the room ventilation rate (m 3 /s), is the number of occupants, and is the transmission distance (m). d The ventilation system energy consumption includes both the energy consumption of the air-conditioning system and the fan. The energy consumption of conditioning the outdoor air (by the air-handling unit) can be estimated by equation (3), where the is calculated based ℎ on the enthalpy difference (between the indoor air and outdoor air) and the airflow rate. where is the energy consumption of conditioning the outdoor air (W), is the ℎ ℎ ventilation load (W), is the coefficient of performance. The power of fans is estimated by the affinity law (equation 4), where is the power consumption of fan (kW), is the airflow rate (m 3 /s), and is the coefficient ( is set to 0.8 based on the catalog of a fan). To demonstrate the proposed method, a schematic indoor space of a PPB is presented in Fig. 5 . Ventilation is designed with four supply air diffusers mounted at the room ceiling and two outlets along the side walls, which is a typical design considering its easy installation and well-functioning airflow pattern. For the easy design and understanding, each diffuser is used to ventilate a corresponding sub-zone (four equal-area sub-zones). As it has been reported, airflow pattern plays an essential role in air pollutant (i.e., virus in the current study) removal effectiveness. Many existing literatures have investigated the impact of airflow pattern on ventilation efficiency relying either on CFD (Computational Fluid Dynamics) modelling [43, 44] or experimental testing [45] . However, this is not a focus in this study. For simplicity, each sub-zone is assumed to be independent. The ventilation control procedures are described as follows: Step 1: Video acquisition of occupancy in each sub-zone (camera), Step 2: Occupant detection using the bounding box of each frame using YOLO algorithm (microcontroller unit) (a microcontroller is a compact microcomputer designed for specific tasks in embedded systems, e.g., receiving sensor data, outputting signals), Step 3: Occupant density calculation based on the bounding boxes of occupants and the boundary curves, Step 4: Ventilation mode determination and rates calculation, and Step 5: Control signal transmission to the diffuser dampers (main and branch). The lobby area is divided into four sub-zones corresponding to four ventilation air supply diffusers (numbered in Fig. 6(a) ). The area of each sub-zone is 19 m 2 (76.22 m 2 /4). To ensure a safe social distance of 2 m, each person is allowed to occupy a 1-m radius circle. In this application, by simply putting circles inside the area (each circle of 1-m radius), the maximum number of occupant density is 20 (see Fig. 6 (b)). Therefore, each sub-zone can accommodate maximum 5 occupants to maintain a 2-m social distance. An occupant density of 0.26 p/m 2 ( ) is set as the threshold (i.e., "θ") for each sub-zone. A 2-megapixel surveillance camera with a 2.8mm focal length was used to record the [46] , and the weights used can be found in [47] . Wells-Riley model (equation (1)) is used for the infection risk evaluation and, the values of parameters are selected based on the following settings: is set as 0.307 which is calculated by equation (2) with a distance (d) of 2m; B is set as 2.2% based on the similar cases (Appendix B); q is the quantum generation rate and is selected as 0.238 quantum/s [15] ; p is set as 8.2 L/min (or 1.37×10 -4 m 3 /h) based on the level of activities [48] ; t is the time of exposure, which is estimated by common experience. For the airport terminal, the exposure time could be roughly 1h or longer. For the train station, the typical exposure time is between 5mins to 1h [48] [49] [50] . Here, the exposure time is set as 30mins. In this study, the proposed ventilation mode, namely smart ventilation, is evaluated by the comparison with two other traditional ventilation control methods, i.e., fixed ventilation mode and DCV mode. This strategy fixes the fresh air supply ratio (defined as the outdoor airflow rate divided by the total air-conditioning supply air flow rate) at a certain value, e.g., 15%-30% [51] . Given a supply airflow rate, the fresh air flow rate is determined regardless of the occupancy condition. This strategy supplies the fresh air based on the demand which is quantified by occupant density. The ventilation rate for each occupant follows the recommended value in the design Standards (e.g., Table 1 ). In this strategy, the demand-controlled ventilation mode or anti-infection mode is used based on the threshold value (θ) of occupant density (Fig. 2) . For the anti-infection mode, the ventilation rate will be determined by the targeted IP value using Wells-Riley model (see equation (1)). A recorded video (Case 1) was used to validate the occupant density detection accuracy. The data sampling period was selected as 10 seconds to capture the occupancy dynamics. The regression functions of the horizontal and vertical boundary curves are shown in Fig. 7 (a) and ( is the true value and is the detected value). This section compares the ventilation rates and IP of three ventilation strategies, i.e., fixed ventilation, DCV and the proposed smart ventilation. Case 2 (see Section 2.3.2) was used for the evaluations of IP. For the fixed ventilation (constant fresh air ratio of 15%), the ventilation rate is 101 m 3 /h for each sub-zone (see Appendix A for the calculation details). For the DCV scenario, the subzonal ventilation rate ranges from 19 to 144 m 3 /h, which varied linearly with the detected occupant density by three levels of ventilation rates (see Table 1 ). The smart ventilation targeted for a IP of 2% [15] , and the ventilation rate is same with the DCV strategy when the sub-zone occupant density below the threshold (i.e., 0.26 p/m 2 ); when the occupant density surpassed the threshold, the ventilation rate was set as "70·N" m 3 /h (calculated based on equation (1)). Fig. 9 . Ventilation rate and IP of three ventilation strategies ("Vent." represents ventilation) Fig. 9 shows that the IP of fixed ventilation rate was increased with the increasing occupant density. For the occupant density larger than 0.16 p/m 2 , the IP is out of the infection control target (i.e., 2%) and can reach up to 12.5% due to a constant but insufficient outdoor airflow rate. The IP of DCV is ranged from 2.9% to 8.5%, exceeding the targeted value of 2%. The main reason is that the primary goal of DCV is energy saving rather than infection prevention. On average, the DCV (an average IP of 6%) is slightly better than the fixed ventilation (an average IP of 6.5%) in terms of infection control. For the proposed smart ventilation, as the occupant density surpasses the safe threshold of 0.26 p/m 2 , the ventilation rate is increased immediately to prevent the transmission of infection, and to maintain the safe/targeted value of a 2% for IP. It is observed that the fixed or DCV ventilation strategies cannot reach the targeted lower value of IP in the majority of the situations, which agrees with a previous study [15] . Thus, improving the ventilation rate is generally recommended to reduce the risk of infection transmission in the public place. Improving the ventilation rate is a simple and effective procedure in infection prevention, however the associated energy consumption cannot be neglected. Table 2 shows the energy consumption of three ventilation strategies for Case 2 (see Section 2.3.2). The COP of the airconditioning system is set to be 4.2 [52] . The energy consumption of fixed ventilation is set as the benchmark. The strategy of DCV offers 66.6% of energy saving, but it cannot satisfy the goal of IP = 2% as mentioned before. The proposed smart ventilation strategy guarantees the IP goal of 2% in high occupancy conditions (namely the occupant density higher than 0.26 p/m 2 ) and provides 11.7% of energy saving at the same time, which demonstrates a good potential to ensure both the energy efficiency and infection prevention. To realize the proposed smart ventilation system, a hardware prototype was constructed (shown in Fig. 10 (a) ) based on a compact microcontroller (i.e., Raspberry Pi). Raspberry Pi can process different kinds of data and integrate cameras, sensors and other devices in one platform. The control process is as follow: acquiring video frame from the camera, data processing in Raspberry Pi, obtaining the occupant density and controlling the fan speed. Gaussian mixture model is a kind of background substruction algorithm and can extract the moving object as the foreground, with which the occupant density is estimated using the detected foreground pixels (details can be referred to [28] ). A test was conducted in a small conference room which covers an area of about 22 m 2 (3.4 m width and 6.5 m depth). The fan airflow rate was measured by an anemograph (the item 4 and 5 in Fig. 10 ). Fig. 11 shows that the fan speed can be effectively adjusted corresponding to different detected occupant density (i.e., occupant number). Although a 5-seconds delay was observed in the experiment due to the video processing time, this short delay is acceptable for practical application. The results demonstrate the feasibility of this hardware prototype in occupant-based ventilation control. Alerting system (e.g., email) Based on the above-mentioned Raspberry Pi platform, an alert system can be integrated. A Python code (Fig. 12 ) was developed to send an email to alert the building manager or corresponding persons when the occupancy threshold is violated in any sub-zones of the public space. This function enables the automatic monitoring based on the real-time occupant detection, which could liberate some manpower from monitoring and thus improve the entire building management efficiency in PPBs. The released manpower can be put into more critical and emergent tasks. The occupant density is high in zone 1. Please take actions. An advantage of the proposed camera-based occupant detection method is that the sub-zone occupant density can be detected and the associated risk could be calculated. Without the subzone occupant information, only an overall occupant density can be observed, i.e., Wearing masks and keeping social distance are certainly two effective measures to lower down the infection risk of COVID-19 [12] . However, these two measures are controlled subjectively, which is not "robust". Any individual carrying with the coronavirus that does not stick to the mandatory rules would cause a potential infection risk. Besides, occupants may remove face masks (drinking or eating) and stay close (talking) occasionally in public space. Thus, relying solely on personal subjective behaviors is not robust to prevent occupant from being infected. In such scenario, the ventilation rate can be adjusted based on occupant density and behavior information to reduce the risk of infection. This is an effective and efficient approach. To realize and apply the proposed smart ventilation in this study, a microcontroller-based hardware prototype has been developed and tested. Besides, an email alert system is integrated to inform the occupants in real time in order to reduce the risk of infection transmission. The developed hardware prototype can be readily applied in PPBs and many other building spaces with a relatively low cost (the microcontroller costs around US $60). Besides, the automatic and real-time detection of occupant density can release the manpower for more critical tasks, bring extended value. Currently, mutations in SARS-CoV-2 have been observed, which may reduce the effect of vaccine and can cause another wave of epidemic [53] . In the next few years, the epidemic prevention and control probably may become the regular routine in public spaces. Constructing a healthy yet sustainable society is a urgent need now [54] . The developed hardware prototype of the smart ventilation is especially meaningful under the long-term risk of COVID-19 (or alike diseases), which can be a feasible and promising solution to build healthy yet sustainable indoor environments for public buildings. In our work, we focused on the high-dense building environment which may have potentially high risk of infection transmission. The ideal way to determine the ventilation rate is based on the concentration of virus and the location of the infected person(s). Unfortunately, the virus or infected person is difficult to be either detected or monitored. Therefore, the occupant-density-detection based ventilation system is proposed and a modified Wells-Riley model was used to evaluate the infection risk, based on which the ventilation rate was estimated. The main limitation of the camera-based occupant detection is that the occlusion of the video frame due to dense occupants, could miss the detection. A possible solution is to place the camera on the ceiling to minimize the occlusion. In the Wells-Riley model, the parameter (initial infection rate) is estimated based on the reported infection cases, while the (quantum generation rate) is referred to a similar study [15] . However, the values of parameters in the Wells-Riley model are case-dependent (e.g., an infected person may have a higher quantum generation rate than the assumed one This paper proposes a smart ventilation control that can actively self-adjust the ventilation rate when experiencing different occupant densities, with objectives of both mitigating infection risk of long-distance aerosol transmission and saving ventilation energy. The main conclusions are summarized below. (1) The YOLO-based occupant detection algorithms achieved a 92.5% of the detection accuracy, which is acceptable for practical application. (2) The proposed smart ventilation strategy can lower the infection probability and save energy consumption when compared with the traditional fixed ventilation mode. For the current study, with 15% outdoor air ratio as a test case, the infection probability can be up to 12.5%; the proposed ventilation mode can lower infection probability to 2% and save 11.7% of energy consumption. (3) A low-cost microcontroller-based hardware prototype is developed to realize both functions of occupant density detection and ventilation control. It should be noted that ventilation is one of the important prevention measures. Wearing masks, keeping social distancing and well-maintained hygiene are important ways that personnel can contribute, which will continually be recommended or reinforced in the future. However, with the chances of off-mask activities, close contact and insanitation, the ventilation control becomes essential as a proactive prevention measure in public spaces. Besides, given the rapid evaporation process (0.17s and 0.4s) of small droplets to droplet nuclei [55] , a realtime occupant-density-detection based ventilation control would be extremely important. The case study was conducted in the Winter. Thus, the heating load was calculated. The design settings are presented as follows: supply air temperature is 24 °C, room air temperature is 18 °C, specific heat of air is 1.005 kJ/(kg·°C), density of air is 1.17 kg/m 3 , and ambient outdoor air temperature is -2.5 °C for air-conditioning at the design condition of Suzhou, China. From Table A1 , the heating load is 5022.5 W. ( is temperature difference; CF stands for correction factor. The heat conduction coefficients and CF values can refer to [6] .) ∆ Based on the cases reported in Table B1 , the average initial infection rate (i.e., 2.2%) is used in the calculation of IP. BK20190942), and Innovation and Entrepreneurship Talents Introduction Program of Jiangsu Province of China The 2019-nCoV epidemic control strategies and future challenges of building healthy smart cities A systematic review of possible airborne transmission of the COVID-19 virus (SARS-CoV-2) in the indoor air environment COVID-19) Dashboard Vision of China's future urban construction reform: In the perspective of comprehensive prevention and control for multi disasters Design code for heating ventilation and air conditioning of civil buildings HVAC systems for environmental control to minimize the COVID-19 infection The contribution of dry indoor built environment on the spread of Coronavirus: Data from various Indian states Aerosol and Surface Stability of SARS-CoV-2 as Compared with SARS-CoV-1 Stability of SARS-CoV-2 in different environmental conditions Guidance for building operations during the COVID-19 pandemic Physical distancing, face masks, and eye protection to prevent person-to-person transmission of SARS-CoV-2 and COVID-19: a systematic review and meta-analysis US airports in disarray over screening Ranking of the country's most crowded streets released! Wuhan has 11 streets on the list The efficacy of social distance and ventilation effectiveness in preventing COVID-19 transmission Quantifying the impact of occupants' spatial distributions on office buildings energy and comfort performance Demand controlled ventilation (DCV) in school and office buildings: Lessons learnt from case studies Conventional vs CO2 demand-controlled ventilation systems Development and application of linear ventilation and temperature models for indoor environmental prediction and HVAC systems control Implementation and visualization of artificial intelligent ventilation control system using fast prediction models and limited monitoring data Ventilation online monitoring and control system from the perspectives of technology application Nationwide HVAC energysaving potential quantification for office buildings with occupant-centric controls in various climates Occupancy Detection via Environmental Sensing Wi-Fi based occupancy detection in a complex indoor space under discontinuous wireless communication: A robust filtering based on eventtriggered updating Multi-zone outdoor air coordination through Wi-Fi probe-based occupancy sensing Development and implementation of novel sensor fusion algorithm for occupancy detection and automation in energy efficient buildings Occupancy Detection in the Office by Analyzing Surveillance Videos and its Application to Building Energy Conservation A practical multi-sensor cooling demand estimation approach based on visual, indoor and outdoor information sensing Towards the sustainable development of smart cities through mass video surveillance: A response to the COVID-19 pandemic A deep learning-based social distance monitoring framework for COVID-19 SSDMNV2: A Real time DNN-Based Face Mask Detection System using Single Shot Multibox Detector and MobileNetV2 Fighting against COVID-19: A novel deep learning model based on YOLO-v2 with ResNet-50 for medical face mask detection Influence of wind and relative humidity on the social distancing effectiveness to prevent COVID-19 airborne transmission: A numerical study Airborne transmission route of covid-19: Why 2 meters/6 feet of inter-personal distance could not be enough Assessing and controlling infection risk with Wells-Riley model and spatial flow impact factor (SFIF), Sustain Airborne spread of measles in a suburban elementary school You Only Look Once: Unified, Real-Time Object Detection Automatic License Plate Recognition via sliding-window darknet-YOLO deep learning Detecting the shuttlecock for a badminton robot: A YOLO based approach Image fire detection algorithms based on convolutional neural networks, Case Stud YOLOv4: Optimal Speed and Accuracy of Object Detection Refrigerating and Air-Conditioning Engineers Ventilation control strategy using low-dimensional linear ventilation models and artificial neural network Jensen) Zhang, A review of the performance of different ventilation and airflow distribution systems in buildings Influence of air change rates on indoor CO2 stratification in terms of Richardson number and vorticity Object-Detection-and-Tracking Exposure factors handbook of Chinese population Passenger arrival and waiting time distributions dependent on train service frequency and station characteristics: A smart card data analysis Waiting time perceptions at transit stops and stations: Effects of basic amenities, gender, and security Optimization on fresh outdoor air ratio of air conditioning system with stratum ventilation for both targeted indoor air quality and maximal energy saving Design standard for energy efficiency of public buildings Tracking Changes in SARS-CoV-2 Spike: Evidence that D614G Increases Infectivity of the COVID-19 Virus Antivirus-built environment: Lessons learned from Covid-19 pandemic Toward understanding the risk of secondary airborne infection: Emission of respirable pathogens The authors would like to acknowledge the supports from Natural Science Foundation of China