Fundamentals, Algorithms, and Technologies of Occupancy Detection for Smart Buildings Using IoT Sensors
<p>The structure of the paper outlines the detection of occupancy within smart buildings.</p> "> Figure 2
<p>How the occupancy detection for smart buildings using IoT sensors system works [<a href="#B14-sensors-24-02123" class="html-bibr">14</a>].</p> "> Figure 3
<p>IoT system architecture for occupancy sensing [<a href="#B11-sensors-24-02123" class="html-bibr">11</a>].</p> "> Figure 4
<p>Occupancy detection using the BOD Algorithm.</p> "> Figure 5
<p>The common steps of the process of occupancy detection via ML/DL.</p> "> Figure 6
<p>Optimal hyperplane using the SVM algorithm [<a href="#B71-sensors-24-02123" class="html-bibr">71</a>].</p> "> Figure 7
<p>Occupancy classification using the KNN Algorithm [<a href="#B71-sensors-24-02123" class="html-bibr">71</a>].</p> "> Figure 8
<p>Occupancy classification using the RF algorithm [<a href="#B71-sensors-24-02123" class="html-bibr">71</a>].</p> "> Figure 9
<p>FNN architecture with 3 layers [<a href="#B80-sensors-24-02123" class="html-bibr">80</a>].</p> "> Figure 10
<p>CNN architecture with five layers [<a href="#B82-sensors-24-02123" class="html-bibr">82</a>].</p> "> Figure 11
<p>RNN Architecture [<a href="#B85-sensors-24-02123" class="html-bibr">85</a>].</p> "> Figure 12
<p>LSTM architecture [<a href="#B88-sensors-24-02123" class="html-bibr">88</a>].</p> ">
Abstract
:1. Introduction
- Our paper provides a comprehensive overview of state-of-the-art sensor devices, occupancy detection methods, and detection architecture. We summarize their advantages and limitations. We also classify the occupancy detection methods into traditional methods and machine learning methods.
- Our paper compares the performance of different occupancy detection methods and provides recommendations for their optimal usage in different building environments.
- Our paper analyzes the challenges in real-world deployment and provides insights into future research directions. Identifying potential applications of occupancy detection beyond energy efficiency, such as improving indoor air quality and enhancing building security.
2. Review Methodology
2.1. Study Selection
2.2. Inclusion/Exclusion Criteria
3. Sensors for Occupancy Detection
3.1. Occupancy Detection Sensors
3.1.1. Motion Sensors
3.1.2. Acoustic Sensors
3.1.3. Camera-Based Sensors
3.1.4. HVAC Sensors
3.1.5. Communication as Sensing
3.2. Comparison of Occupancy Detection Sensors
- Sensor Type: Occupancy detection sensors detect human presence in space. There are different types of sensors available, such as ultrasonic sensors, Passive Infrared (PIR) sensors, and microwave sensors;
- Major Analytical Method: The primary analytical technique used by occupancy detection sensors is identifying environmental changes brought on by human presence. To determine whether a person is in space, the sensors take measurements of several environmental elements like temperature, sound, light, and motion;
- Intrusiveness Level: This refers to how invasive or disruptive the technology or methods used to detect occupancy are to the occupants’ privacy and daily activities. The goal is to strike a balance between effectively monitoring and managing building occupancy while respecting individuals’ privacy;
- Sensor Fusion: Data from several sensors are combined through sensor fusion to increase accuracy and decrease false positives. Sensor fusion is a technique that occupancy detection sensors can utilize to merge data from many sensor types, such as PIR, ultrasonic, and microwave sensors, to increase accuracy;
- Accuracy: Accuracy refers to the sensor’s ability to correctly detect a person’s presence or absence in space. Higher accuracy means fewer false positives and false negatives;
- Occupancy Resolution: Occupancy resolution refers to the level of detail at which the sensor can detect occupancy. For example, some sensors can detect the presence of a person but cannot distinguish between one or multiple people;
- Performance Measures: Accuracy, false positive and false negative rates, response time, and power consumption are performance indicators for occupancy detecting sensors. These metrics can be used to assess the potency and usefulness of various sensors and sensor assemblages.
3.3. Usage of Sensors in Smart Buildings
- Type of Sensor: This column lists the different types of sensors commonly used in buildings. Each sensor type has unique features and functions that suit specific applications.
- Building Type: This column specifies the type of building where the sensors are commonly used. Motion and acoustic sensors are used in both commercial and residential buildings, while camera-based and HVAC sensors are primarily used in commercial buildings.
- Application System: This column lists the specific application system for commonly used sensors. Motion sensors are used for lighting control, camera-based sensors for security and surveillance, acoustic sensors for occupancy detection, and HVAC sensors for temperature and humidity control.
- Centralized/Decentralized: This column specifies whether the energy savings associated with the sensor are centralized or decentralized. Centralized energy savings refer to situations where the sensors are connected to a central control system that manages the entire building’s energy usage. Decentralized energy savings refer to situations where each sensor manages energy usage in a specific area or room.
- Energy Saved: This column lists the approximate energy savings associated with each sensor type. These savings are based on research and case studies conducted in various types of buildings.
- Cost: This column lists the approximate cost of implementing each sensor type in a building. The cost varies depending on factors such as the size of the building, the number of sensors required, and the complexity of the application.
- Occupancy Detection: Real-time Monitoring:WiFi and Bluetooth sensing technologies enable continuous monitoring of spaces, providing real-time data on occupancy levels, movement patterns, and the utilization of different areas within the building [39,40]. Adaptive Systems: The data collected helps dynamically adapt building systems such as lighting, HVAC, optimizing energy usage based on actual occupancy.
- Energy Management: Plug Load Optimization: WiFi and Bluetooth sensing contribute to efficient plug load energy management by identifying and controlling the usage of energy-consuming devices in occupied spaces, reducing overall energy consumption. Context-Aware Controls: Understanding occupancy patterns allows for context-aware controls, such as adjusting lighting and climate settings based on the specific requirements of each area [39,40,41,42].
- Space Utilization Insights: Resource Allocation: Analyzing communication signals provides insights into popular gathering areas, high-traffic zones, and underutilized spaces. This information aids in optimizing resource allocation and space utilization for improved functionality and user satisfaction [40]. Workspace Design: Understanding how spaces are utilized allows for the design of workspaces that align with actual usage patterns, fostering a more productive and comfortable environment.
- Security and Emergency Response: Occupant Tracking: WiFi and Bluetooth sensing technologies play a vital role in tracking occupant locations during emergencies, ensuring swift and targeted responses for evacuation or assistance [39,41]. Security Monitoring: These sensing technologies contribute to security monitoring by providing information on the movement and presence of individuals within the building, enhancing overall security measures.
- User Experience Enhancement: Personalized Services: Context-aware insights derived from communication signals enable the delivery of personalized services to building occupants, enhancing their overall experience within the smart building environment. Automation and Convenience: By understanding occupancy patterns, smart building systems can automate processes and provide convenient services, such as automated check-ins, room bookings, and tailored environmental settings.
- Maintenance and Facility Management: Predictive Maintenance: Analyzing occupancy data can assist in predicting maintenance needs by identifying areas that experience higher usage and may require more frequent inspections or repairs. Efficient Cleaning Schedules: Knowledge of space utilization patterns aids in optimizing cleaning schedules based on actual demand, contributing to more efficient facility management.
4. IoT System Architecture for Smart Building
4.1. IoT System Architecture
- Collecting sensor data: Sensors in the room can detect things like temperature, humidity, light, and occupancy. These data are collected and sent to a data fusion center.
- Data fusion center: The data fusion center is responsible for receiving data from multiple sensors and integrating it into a single, cohesive view of the building. This includes identifying patterns and anomalies in the data that can inform decisions about how to control the building.
- Data communication: The data from the data fusion center are typically communicated over the internet through a wired or wireless connection.
- Decision-making: Based on the data collected and analyzed by the data fusion center, decisions are made about controlling the indoor equipment in the building. For example, if a room is too warm, the HVAC system might be adjusted to decrease the temperature.
4.2. Occupancy Detection in Smart Buildings
- Energy efficiency: Occupancy detection sensors can help reduce energy consumption by turning off lights, HVAC systems, and other equipment in areas that are not in use. This can significantly reduce energy waste and lower utility bills.
- Improved space utilization: By analyzing occupancy data, building managers can identify underutilized areas and adjust to better utilize space. For example, a conference room that is rarely used can be repurposed as a workspace, helping to optimize the use of building resources.
- Enhanced comfort: Occupancy detection sensors can help to maintain a comfortable environment for occupants by adjusting temperature, lighting, and other environmental factors based on occupancy patterns. This can help to improve the overall occupant experience and productivity.
- Increased security: Occupancy detection sensors can be used to monitor and control access to sensitive areas of the building. This can help to enhance security by preventing unauthorized access.
- Data-driven decision-making: By collecting and analyzing occupancy data, building managers can gain insights into occupancy patterns, peak usage hours, and areas with low utilization. These data can be used to make informed decisions on resource allocation and building operations.
- Cost savings: By optimizing energy usage, improving space utilization, and enhancing comfort, occupancy detection sensors can help lower operating costs and improve the overall financial performance of the building.
- Communication Technologies: Occupancy detection in smart buildings is a multifaceted process that hinges on integrating wired and wireless advanced communication technologies, processing cores, data fusion, control systems, and user interfaces. This comprehensive approach enables the efficient collection, analysis, and utilization of data for optimal building management. Various communication protocols play a crucial role in fostering seamless connectivity across the different components of the system:
- –
- Wired Communication: [43] Ethernet: Wired Ethernet is a reliable and high-speed communication technology that connects a building’s sensors, devices, and control systems. It ensures robust data transmission and is suitable for applications where stability is crucial.
- –
- Power Line Communication (PLC): PLC utilizes existing electrical wiring for data transmission. This wired communication method is beneficial in scenarios where additional wiring may be challenging, providing an alternative connectivity means.
- –
- Serial Communication: Serial communication interfaces, such as RS-485, are employed for connecting devices in a daisy-chain fashion. This is useful in scenarios where multiple sensors need to communicate over longer distances.
- –
- Wireless Communication: [43]
- *
- Wi-Fi (IEEE 802.11): Wi-Fi is a fundamental wireless technology in smart buildings, operating at 2.4 GHz and 5 GHz frequency bands [44]. It provides high data rates and reliable connectivity, with strategically placed Wi-Fi access points ensuring comprehensive coverage throughout the building.
- *
- Zigbee (IEEE 802.15.4): Zigbee is a low-power, low-data-rate wireless protocol designed for sensor networks. Zigbee devices form a mesh network, enabling sensors to communicate and relay data efficiently. Its usage spans smart lighting, temperature control, and occupancy sensing applications.
- *
- LoRaWAN (long-range wide area network): For long-range communication with low power consumption, LoRaWAN operates in sub-GHz frequency bands (e.g., 868 MHz in Europe and 915 MHz in the US) [45]. LoRaWAN gateways collect data from sensors across a wide area, making it ideal for large-scale deployments in smart buildings.
- *
- Bluetooth Low Energy (BLE): BLE, energy-efficient and operating over short distances, is employed for device-to-device communication within smart buildings. It is commonly used to connect smartphones, wearables, and beacons [40].
- Processing Cores: Beyond communication protocols, the efficacy of occupancy detection also relies on sophisticated processing cores, including microcontrollers (MCUs), system-on-chip (SoC) solutions, and edge servers [42]:
- –
- Microcontrollers (MCUs): MCUs, integrated systems with processors, memory, and peripherals, serve as the backbone of IoT devices. Cost-effective and widely used in sensor nodes, MCUs handle sensor data, execute algorithms, and manage power efficiently.
- –
- System-on-Chip (SoC): SoCs integrate multiple components into a single chip, including CPU, memory, and radio. Efficient for edge devices and sensor nodes, SoCs contribute to compact, energy-efficient designs.
- –
- Edge Servers: In larger buildings, edge servers locally process data before transmitting it to the cloud. These servers handle complex analytics, equipped with powerful processors, such as ARM-based architectures, ensuring faster response times.
- Data Fusion and Analytics: In tandem with communication technologies and processing cores, data fusion and analytics play a critical role:
- –
- Data Fusion Center: This central hub aggregates data from various sensors, employing techniques like Kalman filtering or Bayesian inference to enhance data accuracy. It combines information from temperature sensors, motion detectors, and other sources.
- –
- Analytics Algorithms: Machine learning algorithms analyze sensor data for various purposes, including occupancy prediction and anomaly detection. Predictive models estimate future occupancy levels, while anomaly detection algorithms identify irregularities that may indicate security breaches or equipment malfunctions.
- Control Systems: The culmination of these components facilitates effective control systems and user interfaces:
- –
- Building Management System (BMS): The BMS monitors and controls building equipment based on real-time occupancy information. It receives sensor data and adjusts HVAC, lighting, and access control system settings [46].
- –
- Actuators: Actuators, such as motorized blinds and smart thermostats, respond to control signals triggered by occupancy data. For instance, lighting levels or room temperatures are adjusted when occupancy is detected.
- User Interface:
- –
- Dashboard: Building managers and occupants interact with the system through a web-based or mobile dashboard. Real-time occupancy insights, energy usage, and alerts are displayed for efficient monitoring [46].
- –
- Mobile Apps: Occupants can use mobile apps to adjust settings like lighting and temperature based on their preferences. For instance, employees can book meeting rooms through an app, considering real-time occupancy availability.
- Privacy Considerations:
- –
- Anonymization: Occupancy data is anonymized to protect individual privacy, avoiding associations with specific individuals.
- –
- Consent: Occupants’ consent is obtained regarding data collection and usage, transparently communicating how occupancy data will be utilized.
5. Occupancy Detection Algorithms
5.1. Traditional Occupancy Detection Algorithms
5.1.1. Bayesian Occupancy Detection (BOD) Algorithm
5.1.2. Walking Occupancy Detection (WOD) Algorithm
5.1.3. Multi-Sensor Occupancy Detection (MOD) Algorithm
5.1.4. Fuzzy Logic-Based Occupancy Detection (FLOD) Algorithm
5.2. Machine Learning Occupancy Detection Algorithms
- Handling missing values: If any data are missing, strategies like imputation (filling in missing values) might be used based on the characteristics of the data and the problem.
- Feature scaling/normalization: Features often have different scales, and scaling them to a common range (e.g., between 0 and 1) helps algorithms perform better and converge faster during training.
- Feature selection: Not all features might be relevant or contribute equally to the model’s performance. Feature selection techniques can be employed to choose the most informative features.
- Encoding categorical variables: If the data include categorical variables (e.g., room names), they must be encoded into numerical values for the algorithms to process.
- Splitting the data into training and testing sets: The data are split into two parts: a training set for the model’s training and a testing set for its performance evaluation. Common ratios are 70-30 or 80-20 for training and testing, respectively.
- Handling imbalanced data (if applicable): If one class (e.g., occupied) is significantly more frequent than the other, techniques like oversampling, under-sampling, or generating synthetic samples might be used to balance the dataset.
5.2.1. Support Vector Machine
- Domain knowledge: Domain experts can provide valuable insights into which features are likely important for occupancy detection. For example, in an office occupancy prediction scenario, features like temperature, humidity, and light intensity might be deemed important
- Feature importance techniques: Machine learning provides various methods to assess the importance of each feature quantitatively. Common techniques include:
- –
- Correlation analysis: This measures the linear relationship between each feature and the target variable (occupancy status). Features with high absolute correlations are often considered important.
- –
- Feature importance scores: Algorithms like Random Forest or Gradient Boosting can be used to compute feature importance scores. Features with higher scores are considered more influential.
- –
- Recursive feature elimination (RFE): RFE retrains the model after iteratively removing the least significant features until the target number of features is obtained.
- Hyperplane: The data are divided by this decision boundary. There are two classes in a binary classification problem, such as occupancy detection: occupied and unoccupied. The margin, or the separation between the hyperplane and the closest data points from both classes, should be maximized by the hyperplane.
- Support Vectors: The data points nearest to the hyperplane. They are essential in determining the margin and the hyperplane. These support vectors define the hyperplane.
- Margin: The margin is the difference between the closest support vectors and the hyperplane. Finding the hyperplane that optimizes this margin while reducing classification mistakes is the goal of SVM.
- Linear Kernel: This is used for linearly separable data.
- Polynomial Kernel: Suitable for data that polynomial curves or surfaces can separate.
- Radial Basis Function (RBF) Kernel: Effective for complex, non-linear data.
- Sigmoid Kernel: Suitable for data with sigmoid-shaped decision boundaries.
- Accuracy: The percentage of cases that were accurately categorized.
- Precision: It is measured as a ratio of real positives to all anticipated positives.
- Recall: The ratio of actual positive and true positive results.
- F1-Score: The harmonic mean of recall and precision strikes a balance between the two.
- ROC-AUC: The area beneath the Receiver Operating Characteristic curve gauges a model’s capacity for class distinction.
5.2.2. K-Nearest Neighbour (KNN)
- Small K: A small value of K (e.g., ) can lead to a noisy decision boundary. The model may be overly sensitive to individual data points, resulting in erratic predictions and vulnerability to outliers.
- Large K: A large value of K (e.g., ) can lead to over-smoothing of the decision boundary. The model may ignore local patterns in the data and produce overly generalized predictions.
- Euclidean distance: This calculates the straight-line distances in Euclidean space between two places. For continuous, numerical properties, it is appropriate.
- Manhattan distance: It determines the total absolute differences along each dimension and is referred to as the L1 norm or city block distance. Features with varied scales or units are helpful.
- Cosine similarity: The cosine of the angle between two vectors is measured using this metric. It is frequently used for text data or where the direction of the vectors is more crucial than their size.
- Determine the distance between the new data point and every point in the training dataset.
- Choose the K data points with the shortest distances between them (the closest neighbors).
- Count the frequency of each class among the K closest neighbors while doing classification tasks (like occupancy detection).
- Designate the projected class for the new data point as the one with the highest frequency.
5.2.3. Random Forest
- N is the number of samples.
- are the feature vectors like time of day, temperature, humidity, etc.
- is the binary class label.
- M is the decision trees (hyperparameter), each trained independently on a different subset of the data.
- Create a bootstrapped sample by randomly selecting N samples from the original dataset with replacement.
- The size of is the same as the original dataset but may contain duplicates.
- A choose a subset of the features at random to be considered for splitting at each decision tree node.
- Let K represent how many features were chosen at random. features, where p is the total number of features, is a popular option.
- The selection of is different for each tree, introducing feature diversity.
- Build the decision tree iteratively by selecting the optimal feature Fm to divide the data into subsets according to a given criterion (such as Gini impurity or information gain).
- The feature is chosen at each node to either increase data acquisition or minimize impurity.
- A predetermined stopping criterion (such as a maximum depth or a minimum number of samples per leaf) is reached as the tree grows.
- To predict the occupancy of a new data point with features , pass it through each of the M decision trees.
- Each tree m makes a prediction (1 for “Occupied” or −1 for “Not Occupied”).
- The final prediction is defined by majority voting:
- The combined outcome of all the decision trees in the Random Forest is represented by the final prediction, .
- A majority vote guarantees that the ensemble’s consensus will serve as the foundation for the final projection.
- Random Subsets: By training each decision tree on a random subset of the training data and a random selection of characteristics, Random Forest adds diversity to its ensemble. Through this procedure, overfitting is lessened, and the model is improved.
- Robust Predictions: Because Random Forest aggregates predictions from multiple trees, it is less prone to overfitting than individual decision trees. This ensemble approach improves generalization and the overall predictive performance.
- Bootstrap Samples: Bagging involves repeatedly sampling the training data with replacement. This creates multiple bootstrap samples, each of which may contain duplicate instances and exclude some data points. Each bootstrap sample is used to train a separate decision tree.
- Random Feature Subset: Random Forest additionally chooses a random subset of characteristics for each tree in addition to randomizing the data. This further increases diversity by ensuring that several trees are exposed to various subsets of data and characteristics.
- Recursive Splitting: The data is recursively split into subsets according to the chosen features, and then the decision tree is constructed. This procedure continues until a stopping requirement, such as obtaining a minimum number of samples in a leaf node or reaching a maximum tree depth, is fulfilled.
- Impurity Minimization: The method seeks to maximize information gain or minimize impurity at each decision tree node. Entropy and Gini impurity are two popular impurity measurements. The splits are picked to aid in distinguishing between the classes (occupied or unoccupied) by increasing the purity of the resulting subsets.
- Leaf Nodes: The leaf nodes of the decision tree represent the final predictions for different combinations of feature values. For occupancy detection, these predictions will be whether a space is occupied or unoccupied.
- Individual Tree Predictions: Each decision tree produces its prediction based on the new data point’s features.
- Aggregation: A majority vote (classification) or average (regression) of the individual tree predictions yields the final prediction for the new data point. The majority vote will determine whether the place is occupied or vacant in the context of occupancy detection.
5.2.4. Deep Learning
- Let X be the input feature vector representing various features (e.g., time of day, temperature, humidity) for occupancy detection.
- y is the corresponding binary class label: for “Occupied” and for “Not Occupied.”
- Let L represent the total number of layers, where in a simple network (input layer, hidden layer, output layer).
- The output of each layer can be mathematicallyrepresented as:
- –
- l represents the layer index.
- –
- is the weighted sum of inputs plus the bias for layer l.
- –
- is the output of layer l after applying the activation function .
- –
- is the weight matrix for layer l, and is the bias vector for layer l.
- –
- is typically a non-linear activation function like the sigmoid or ReLU.
- The feedforward process calculates the predicted output Y based on the input X and the learned weights and biases.
- l represents the output layer, and Ẏ is the predicted probability of occupancy (between 0 and 1).
- The binary cross-entropy loss, often known as the loss function for binary classification, is defined as:
- y is the true class label (0 or 1), and Y is the predicted probability of occupancy.
- It is possible to minimize the average loss across the entire training dataset during training,
- The gradient of the loss relative to the activation of the output layer is:
Convolutional Neural Network
- In occupancy detection, input data often include sequential features, such as time, temperature, humidity, and other environmental variables.
- These sequential features can be represented as a 1D time series: , where n is the number of time steps or data points [77].
- The core component of a CNN is the convolutional layer. In occupancy detection, a 1D convolutional layer can be applied to capture local patterns in the sequential data.
- The convolution operation extracts features by applying a set of learnable filters to the input data.
- For each filter, the convolution operation computes a weighted sum of the input values within a window of size k (where k is the filter size):
- After the weighted sum, an activation function.
- This process is repeated for each filter, creating a feature map.
- Max-pooling is a popular pooling approach where the highest value found in a particular local region is kept while the others are discarded.
- The hidden and output layers in a Feedforward Neural Network (FNN) are comparable to these layers.
- Gradient descent with backpropagation is used to optimize the weights and biases of the network during the training of a CNN for occupancy detection.
- Depending on the specific occupancy detection task, the loss function is selected (for example, binary cross-entropy loss for binary classification).
- The CNN gains the ability to identify and predict relevant patterns and features from the input time series data during training.
Recurrent Neural Network
- Input features: where n is the number of time steps.
- Each represents a feature at a specific time step i.
- These features could include environmental variables like temperature, humidity, light intensity, and time of day, which can be relevant for occupancy detection.
- The recurrent layer in RNNs is designed to capture temporal dependencies in sequential data.
- The hidden state at each time step (h(t)) is computed as follows:
- –
- is the hidden state at time step t.
- –
- is a non-linear activation function (e.g., sigmoid or hyperbolic tangent).
- –
- and are weight matrices that control the flow of information from the previous hidden state and the current input to the current hidden state.
- –
- is the bias term.
- By updating the hidden state at each time step depending on both the current input and the knowledge from the past, this recurrent connection enables the network to represent data sequences.
- The specific occupancy detection task determines the output layer’s architecture. Typically, a single output neuron with a sigmoid activation function is utilized for binary occupancy detection (occupied or not).
- The loss function is chosen based on the task. For binary occupancy detection, binary cross-entropy loss is often used.
- Train the model on a training dataset to compare the performance of the RNN model for occupancy detection.
- Validate the model using a validation dataset (and, if necessary, adjust the hyperparameters).
- Test the model on a test dataset to determine how well it performs.
- To measure how well the model is predicting occupancy status, use metrics like accuracy, precision, recall, F1-score, and ROC-AUC.
Long Short-Term Memory
- Input Gate : identifies the amount of new data added to the cell state .
- Forget Gate : establishes which data from the previous cell state should be forgotten.
- Output Gate : controls how much information is revealed to the output and how the cell status affects the hidden stat .
- Cell State : based on the input gate and forget gate , it updates the memory of the cell.
- Hidden State : This is the output of the LSTM cell’s output, influenced by the cell state and the output gate .
- LSTM training involves optimizing weights and biases using backpropagation through time (BPTT) and gradient descent to minimize a suitable loss function.
- The loss function to use (such as binary cross-entropy loss) depends on the unique occupancy detection problem.
5.3. Comparison of Algorithms
5.3.1. Comparison of Traditional Occupancy Detection Algorithms
5.3.2. Comparison of Machine Learning Occupancy Detection Algorithms
6. Discussion
7. Challenges and Future Works
8. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
References
- Zhou, K.; Yang, S. 5.11 Smart Energy Management. In Comprehensive Energy Systems; Elsevier: Oxford, UK, 2018; pp. 423–456. [Google Scholar] [CrossRef]
- Smart Buildings Market Worth 121.6 Billion Dollars by 2026-Report by Marketsandmarkets. Available online: https://www.marketsandmarkets.com/PressReleases/smartbuilding.asp (accessed on 7 September 2023).
- The Edge, Amsterdam: Showcasing an Exemplary IoT Building. Available online: https://www.cdbb.cam.ac.uk/system/files/documents/TheEdge_Paper_LOW1.pdf (accessed on 8 September 2023).
- Asim, N.; Badiei, M.; Mohammad, M.; Razali, H.; Rajabi, A.; Chin Haw, L.; Jameelah Ghazali, M. Sustainability of Heating, Ventilation and Air-conditioning (HVAC) Systems in Buildings—An Overview. Int. J. Environ. Res. Public Health 2022, 19, 1016. [Google Scholar] [CrossRef]
- Auffenberg, F.; Snow, S.; Stein, S.; Rogers, A. A Comfort-based Approach to Smart Heating and Air Conditioning. ACM Trans. Intell. Syst. Technol. 2017, 9, 28. [Google Scholar] [CrossRef]
- Akkaya, K.; Guvenc, I.; Aygun, R.; Pala, N.; Kadri, A. Iot-based Occupancy Monitoring Techniques for Energy-efficient Smart Buildings. In Proceedings of the 2015 IEEE Wireless Communications and Networking Conference Workshops, New Orleans, LA, USA, 9–12 March 2015; pp. 58–63. [Google Scholar] [CrossRef]
- Chasta, R.; Singh, R.; Gehlot, A.; Mishra, R.; Choudhury, S. A Smart Building Automation System. Int. J. Smart Home 2016, 10, 217–224. [Google Scholar] [CrossRef]
- Murali, M.; Ramsami, A.; Varanasi, S. Smart Building Automation Using Internet of Things. IRJET J. 2019, 6, 1504–1510. [Google Scholar]
- Statista. Smart and Connected Home Market Revenue Worldwide in 2019 and Forecast for 2025. Available online: https://www.statista.com/statistics/805213/building-energy-management-system-market-worldwide/ (accessed on 10 September 2023).
- Taunk, K.; De, S.; Verma, S.; Swetapadma, A. A Brief Review of Nearest Neighbor Algorithm for Learning and Classification. In Proceedings of the 2019 International Conference on Intelligent Computing and Control Systems (ICCS), Madurai, India, 15–17 May 2019; pp. 1255–1260. [Google Scholar]
- Hernández, J.L.; Sanz, R.; Corredera, Á.; Palomar, R.; Lacave, I. A Fuzzy-based Building Energy Management System for Energy Efficiency. Buildings 2018, 8, 14. [Google Scholar] [CrossRef]
- Whitmore, A.; Agarwal, A.; Da Xu, L. The Internet of Things—A Survey of Topics and Trends. Inf. Syst. Front. 2014, 17, 261–274. [Google Scholar] [CrossRef]
- Ding, Y.; Chen, W.; Wei, S.; Yang, F. An Occupancy Prediction Model for Campus Buildings Based on the Diversity of Occupancy Patterns. Sustain. Cities Soc. 2021, 64, 102533. [Google Scholar] [CrossRef]
- Jeon, Y.; Cho, C.; Seo, J.; Kwon, K.; Park, H.; Oh, S.; Chung, I.-J. Iot-based Occupancy Detection System in Indoor Residential Environments. Build. Environ. 2018, 132, 181–204. [Google Scholar] [CrossRef]
- Luo, L.; Xiao, Y.; Liang, W. Encoding Space to Count Multi-targets with Multiplexed Binary Infrared Sensors. In Proceedings of the 2019 15th International Conference on Mobile Ad-Hoc and Sensor Networks (MSN), Shenzhen, China, 11–13 December 2019; pp. 390–394. [Google Scholar] [CrossRef]
- Zhang, H.; Davigny, A.; Colas, F.; Poste, Y.; Robyns, B. Fuzzy Logic Based Energy Management Strategy for Commercial Buildings Integrating Photovoltaic and Storage Systems. Energy Build. 2012, 54, 196–206. [Google Scholar] [CrossRef]
- What Is Statistical Modeling? When and Where to Use It. Available online: https://www.g2.com/articles/statistical-modeling, (accessed on 12 September 2023).
- Zhao, L.; Li, Y.; Liang, R.; Wang, P. A State of Art Review on Methodologies of Occupancy Estimating in Buildings from 2011 to 2021. Electronics 2022, 11, 3173. [Google Scholar] [CrossRef]
- Tien, P.W.; Wei, S.; Darkwa, J.; Wood, C.; Calautit, J.K. Machine Learning and Deep Learning Methods for Enhancing Building Energy Efficiency and Indoor Environmental Quality—A Review. Energy AI 2022, 10, 100198. [Google Scholar] [CrossRef]
- Akinosho, T.D.; Oyedele, L.O.; Bilal, M.; Ajayi, A.O.; Delgado, M.D.; Akinade, O.O.; Ahmed, A.A. Deep learning in the construction industry: A review of present status and future innovations. J. Build. Eng. 2020, 32, 101827. [Google Scholar] [CrossRef]
- Rueda, L.; Agbossou, K.; Cardenas, A.; Henao, N.; Kelouwani, S. A comprehensive review of approaches to building occupancy detection. Build. Environ. 2020, 180, 106966. [Google Scholar] [CrossRef]
- Zhang, W.; Wu, Y.; Calautit, J.K. A review on occupancy prediction through machine learning for enhancing energy efficiency, air quality and thermal comfort in the built environment. Renew. Sustain. Energy Rev. 2022, 167, 112704. [Google Scholar] [CrossRef]
- Saha, H.; Florita, A.R.; Henze, G.P.; Sarkar, S. Occupancy sensing in buildings: A review of data analytics approaches. Energy Build. 2019, 188–189, 278–285. [Google Scholar] [CrossRef]
- Turgut, Z.; Akgün, G. Occupancy detection for energy efficiency of smart buildings using machine learning. In Proceedings of the 19th International Conference on Sustainable Energy Technologies, Istanbul, Turkey, 16–18 August 2022. [Google Scholar]
- Rafsanjani, H.N.; Ahn, C.R.; Alahmad, M. A Review of Approaches for Sensing, Understanding, and Improving Occupancy-Related Energy-Use Behaviors in Commercial Buildings. Energies 2015, 8, 10996–11029. [Google Scholar] [CrossRef]
- Chen, Z.; Jiang, C.; Xie, L. Building occupancy estimation and detection: A review. Energy Build. 2018, 169, 260–270. [Google Scholar] [CrossRef]
- Kanthila, C.; Boodi, A.; Beddiar, K.; Amirat, Y.; Benbouzid, M. Building Occupancy Behavior and Prediction Methods: A Critical Review and Challenging Locks. IEEE Access 2021, 9, 79353–79372. [Google Scholar] [CrossRef]
- Peng, M.; Xiao, Y.; Li, N.; Liang, X. Monitoring Space Segmentation in Deploying Sensor Arrays. IEEE Sens. J. 2014, 14, 197–209. [Google Scholar] [CrossRef]
- Shih, O.; Lazik, P.; Rowe, A. Aures: A Wide-band Ultrasonic Occupancy Sensing Platform. In Proceedings of the 3rd ACM International Conference on Systems for Energy-Efficient Built Environments, Palo Alto, CA, USA, 16–17 November 2016; pp. 157–166. [Google Scholar]
- Rahman, H.; Han, H. Bayesian Estimation of Occupancy Distribution in a Multi-room Office Building Based on CO2 Concentrations. Build. Simul. 2018, 11, 575–583. [Google Scholar] [CrossRef]
- Chițu, C.; Stamatescu, G.; Stamatescu, I.; Sgârciu, V. Wireless System for Occupancy Modelling and Prediction in Smart Buildings. In Proceedings of the 25th Mediterranean Conference on Control and Automation, Valletta, Malta, 3–6 July 2017; pp. 1094–1099. [Google Scholar] [CrossRef]
- Mahanta, M.; Taparugssanagorn, A.; Pati, B.M. Assessment of spectrum sensing using support vector machine combined with principal component analysis. Int. J. Sens. Netw. 2022, 39, 256–278. [Google Scholar] [CrossRef]
- Surasakhon, W.; Taparugssanagorn, A.; Lerspalungsanti, S.; Thipprachak, K. Early detection of a fall using Wi-Fi and deep learning. Int. J. Sens. Netw. 2022, 40, 190–202. [Google Scholar] [CrossRef]
- Filippoupolitis, A.; Oliff, W.; Loukas, G. Bluetooth Low Energy Based Occupancy Detection for Emergency Management. In Proceedings of the 2016 15th International Conference on Ubiquitous Computing and Communications and 2016 International Symposium on Cyberspace and Security (IUCC-CSS), Granada, Spain, 14–16 December 2016. [Google Scholar] [CrossRef]
- Tekler, Z.D.; Low, R.; Gunay, B.; Andersen, R.K.; Blessing, L. A scalable Bluetooth Low Energy approach to identify occupancy patterns and profiles in office spaces. Build. Environ. 2020, 171, 106681. [Google Scholar] [CrossRef]
- Luo, L.; Xiao, Y.; Liang, W. The Maximum Number of Cells with Modulated Binary Sensors. IEEE Sens. J. 2021, 21, 11061–11074. [Google Scholar] [CrossRef]
- Elkhoukhi, H.; NaitMalek, Y.; Berouine, A.; Bakhouya, M.; Elouadghiri, D.; Essaaidi, M. Towards a Real-time Occupancy Detection Approach for Smart Buildings. Procedia Comput. Sci. 2018, 134, 114–120. [Google Scholar] [CrossRef]
- Luo, L.; Xiao, Y.; Liang, W.; Zheng, M. A Cell Reconstruction Tool to Deploy Binary Pyroelectric Sensor Arrays. IEEE Sens. J. 2020, 20, 2117–2131. [Google Scholar] [CrossRef]
- Demrozi, F.; Turetta, C.; Chiarani, F.; Kindt, P.H.; Pravadelli, G. Estimating indoor occupancy through low-cost BLE devices. IEEE Sens. J. 2021, 21, 17053–17063. [Google Scholar] [CrossRef]
- Mateos Sánchez, M.; Berjón Gallinas, R.; Beato Gutiérrez, M.E.; Fermoso García, A.M. A Tool to Calculate the Level of Occupancy in Indoor and Outdoor Spaces Using BLE and Open Data to Be Published in Real-Time. Sensors 2020, 20, 3916. [Google Scholar] [CrossRef]
- Leitch, S.G.; Ahmed, Q.Z.; Abbas, W.B.; Hafeez, M.; Laziridis, P.I.; Sureephong, P.; Alade, T. On Indoor Localization Using WiFi, BLE, UWB, and IMU Technologies. Sensors 2023, 23, 8598. [Google Scholar] [CrossRef]
- Heidary, R.; Prasad Rao, J.; Pinon Fischer, O.J. Smart Buildings in the IoT Era—Necessity, Challenges, and Opportunities. In Handbook of Smart Energy Systems; Fathi, M., Zio, E., Pardalos, P.M., Eds.; Springer: Cham, Switzerland, 2023. [Google Scholar] [CrossRef]
- Thieme, W. Smart Building Communications: Three Building Blocks Explained. Available online: https://www.forbes.com/sites/forbestechcouncil/2021/01/06/smart-building-communications-three-building-blocks-explained/ (accessed on 4 March 2024).
- Xiao, Y. IEEE 802.11 Performance Enhancement via Concatenation and Piggyback Mechanisms. IEEE Trans. Wirel. Commun. 2005, 4, 2182–2192. [Google Scholar] [CrossRef]
- Spathi, K.P.; Beletsioti, G.A.; Kantelis, K.F.; Valkanis, A.; Nicopolitidis, P.; Papadimitriou, G.I. Increasing device energy efficiency in LoRaWAN networks via a learning-automata-based approach. Int. J. Sens. Netw. 2023, 42, 87–101. [Google Scholar] [CrossRef]
- King, J.; Perry, C. Smart Buildings: Using Smart Technology to Save Energy in Existing Buildings. Available online: https://www.aceee.org/sites/default/files/publications/researchreports/a1701.pdf (accessed on 4 March 2024).
- Wang, C.; Jiang, J.; Roth, T.; Nguyen, C.; Liu, Y.; Lee, H. Integrated Sensor Data Processing for Occupancy Detection in Residential Buildings. Energy Build. 2021, 237, 110810. [Google Scholar] [CrossRef]
- Amayri, M.; Ploix, S.; Kazmi, H.; Ngo, Q.-D.; Safadi, E. Estimating Occupancy from Measurements and Knowledge Using the Bayesian Network for Energy Management. J. Sens. 2019, 2019, 7129872. [Google Scholar] [CrossRef]
- Bapin, Y.; Zarikas, V. Smart Building’s Elevator with Intelligent Control Algorithm Based on Bayesian Networks. Int. J. Adv. Comput. Sci. Appl. 2019, 10, 16–24. [Google Scholar] [CrossRef]
- Youssef, Y. Bayes Theorem and Real-Life Applications. Ph.D. Thesis, Cairo University, Giza, Egypt, 2022. [Google Scholar]
- Kontou, E.; Stylianides, N. Bayes Theorem and Its Recent Applications. Math. Res. J. 2020, 2, 1–2. [Google Scholar]
- Singh, A.; Kansal, V.; Gaur, M.; Pandey, M.S. Predicting Smart Building Occupancy Using Machine Learning. In Proceedings of the Third Doctoral Symposium on Computational Intelligence, Lucknow, India, 5 March 2022; pp. 145–151. [Google Scholar] [CrossRef]
- Drira, S.; Pai, S.G.S.; Reuland, Y.; Olsen, N.F.H.; Smith, I.F.C. Using Footstep-induced Vibrations for Occupant Detection and Recognition in Buildings. Adv. Eng. Informat. 2021, 49, 101289. [Google Scholar] [CrossRef]
- Chen, L.; Chen, F.; Guan, X. A Video-based Indoor Occupant Detection and Localization Algorithm for Smart Buildings. In Proceedings of the Emerging Intelligent Computing Technology and Applications: 5th International Conference on Intelligent Computing, ICIC, Ulsan, Republic of Korea, 16–19 September 2009; Springer: Berlin/Heidelberg, Germany, 2009; pp. 565–573. [Google Scholar]
- Shih, H.-C. A Robust Occupancy Detection and Tracking Algorithm for the Automatic Monitoring and Commissioning of a Building. Energy Build. 2014, 77, 270–280. [Google Scholar] [CrossRef]
- Sarkar, S.; Ghosh, A.; Chatterjee, S. Multi-sensor Data Fusion for Occupancy Detection Using Dempster—Shafer Theory. In Computational Intelligence in Data Mining: Proceedings of ICCIDM; Springer: Singapore, 2022; pp. 1–12. [Google Scholar]
- Rajabi, H.; Hu, Z.; Ding, X.; Pan, S.; Du, W.; Cerpa, A. MODES: Multi-sensor Occupancy Data-driven Estimation System for Smart Buildings. In Proceedings of the Thirteenth ACM International Conference on Future Energy Systems, Virtual, 28 June–1 July 2022; pp. 228–239. [Google Scholar]
- Xu, S.; Hou, Y.; Deng, X.; Chen, P.; Ouyang, K.; Zhang, Y. A Novel Divergence Measure in Dempster–shafer Evidence Theory Based on Pignistic Probability Transform and Its Application in Multi-sensor Data Fusion. Int. J. Distrib. Sens. Netw. 2021, 17, 15501477211031473. [Google Scholar] [CrossRef]
- Su, X.; Dong, Z. A Modified Combination Rule to Conflict Evidence for Dempster-Shafer Theory. In Proceedings of the 2015 International Conference on Computational Intelligence and Communication Networks (CICN), Jabalpur, India, 12–14 December 2015; pp. 993–996. [Google Scholar]
- Ding, Y.; Han, S.; Tian, Z.; Yao, J.; Chen, W.; Zhang, Q. Review on Occupancy Detection and Prediction in Building Simulation. Build. Simul. 2022, 15, 333–356. [Google Scholar] [CrossRef]
- Baniyounes, A. Energy Performance of Fuzzy Logic Controllers in Smart Buildings. Int. J. Energy Econ. Policy 2019, 9, 41–47. [Google Scholar]
- Escobar, L.M.; Aguilar, J.; Garcés-Jiménez, A.; De Mesa, J.A.G.; Gomez-Pulido, J.M. Advanced Fuzzy-logic-based Con-text-driven Control for HVAC Management Systems in Buildings. IEEE Access 2020, 8, 16111–16126. [Google Scholar] [CrossRef]
- Boultache, T.; Achour, B.; Laghrouche, M. Human activity detection from inertial data using RNN and LSTM network. Int. J. Sens. Netw. 2022, 39, 156–161. [Google Scholar] [CrossRef]
- Toutiaee, M. Occupancy Detection in Room Using Sensor Data. arXiv 2021, arXiv:2101.03616. [Google Scholar] [CrossRef]
- Sayed, A.N.; Himeur, Y.; Bensaali, F. Deep and Transfer Learning for Building Occupancy Detection: A Review and Comparative Analysis. Eng. Appl. Artif. Intell. 2022, 11, 105254. [Google Scholar] [CrossRef]
- Kim, M.-L.; Park, K.-J.; Son, S.-Y. Occupancy-based Energy Consumption Estimation Improvement through Deep Learning. Sensors 2023, 23, 2127. [Google Scholar] [CrossRef] [PubMed]
- Mitra, D.; Malekpour Koupaei, D.; Cetin, K. Occupancy Data Sensing, Collection, and Modeling for Residential Buildings. In Renewable Energy for Buildings: Technology, Control, and Operational Techniques; Springer: Cham, Switzerland, 2022; pp. 103–121. [Google Scholar]
- Chen, Z.; Wang, Y.; Liu, H. Unobtrusive Sensor-based Occupancy Facing Direction Detection and Tracking Using Advanced Machine Learning Algorithms. IEEE Sens. J. 2018, 18, 6360–6368. [Google Scholar] [CrossRef]
- Murray, D.G.; Simsa, J.; Klimovic, A.; Indyk, I.T. Data: A Machine Learning Data Processing Framework. arXiv 2021, arXiv:2101.12127. [Google Scholar] [CrossRef]
- Cervantes, J.; Garcia-Lamont, F.; Rodríguez-Mazahua, L.; Lopez, A. A Comprehensive Survey on Support Vector Machine Classification: Applications, Challenges and Trends. Neurocomputing 2020, 408, 189–215. [Google Scholar] [CrossRef]
- Boateng, E.; Otoo, J.; Abaye, D. Basic Tenets of Classification Algorithms K-Nearest-Neighbor, Support Vector Machine, Random Forest and Neural Network: A Review. J. Data Anal. Inf. Process. 2020, 8, 341–357. [Google Scholar] [CrossRef]
- Al-Habashna, A.; Wainer, G.; Aloqaily, M. Machine learning-based indoor localization and occupancy estimation using 5G ultra-dense networks. Simul. Model. Pract. Theory 2022, 118, 102543. [Google Scholar] [CrossRef]
- Wu, L.; Wang, Y. Stationary and Moving Occupancy Detection Using the SLEEPIR Sensor Module and Machine Learning. IEEE Sens. J. 2021, 21, 14701–14708. [Google Scholar] [CrossRef]
- Parzinger, M.; Hanfstaengl, L.; Sigg, F.; Spindler, U.; Wellisch, U.; Wirnsberger, M. Comparison of Different Training Data Sets from Simulation and Experimental Measurement with Artificial Users for Occupancy Detection—Using Machine Learning Methods Random Forest and LASSO. Build. Environ. 2022, 223, 109313. [Google Scholar] [CrossRef]
- Li, X.; Chen, W.; Zhang, Q.; Wu, L. Building Auto-encoder Intrusion Detection System Based on Random Forest Feature Selection. Comput. Secur. 2020, 95, 101851. [Google Scholar] [CrossRef]
- Lork, C.; Li, W.-T.; Qin, Y.; Zhou, Y.; Yuen, C.; Tushar, W.; Saha, T.K. An Uncertainty-aware Deep Reinforcement Learning Framework for Residential Air Conditioning Energy Management. Appl. Energy 2020, 276, 115426. [Google Scholar] [CrossRef]
- Feng, C.; Mehmani, A.; Zhang, J. Deep Learning-based Real-time Building Occupancy Detection Using AMI Data. IEEE Trans. Smart Grid 2020, 11, 4490–4501. [Google Scholar] [CrossRef]
- Becker, V.; Kleiminger, W. Exploring Zero-training Algorithms for Occupancy Detection Based on Smart Meter Measurements. Comput. Sci. Res. Dev. 2018, 33, 25–36. [Google Scholar] [CrossRef]
- Zheng, T.; Chen, Z.; Ding, S.; Luo, J. Enhancing RF Sensing with Deep Learning: A Layered Approach. IEEE Commun. Mag. 2021, 59, 70–76. [Google Scholar] [CrossRef]
- Wei, Y.; Xia, L.; Pan, S.; Wu, J.; Zhang, X.; Han, M.; Zhang, W.; Xie, J.; Li, Q. Prediction of occupancy level and energy consumption in office building using blind system identification and neural networks. Appl. Energy 2019, 240, 276–294. [Google Scholar] [CrossRef]
- Tekler, Z.D.; Chong, A. Occupancy Prediction Using Deep Learning Approaches Across Multiple Space Types: A Minimum Sensing Strategy. Build. Environ. 2022, 226, 109689. [Google Scholar] [CrossRef]
- Amato, G.; Carrara, F.; Falchi, F.; Gennaro, C.; Meghini, C.; Vairo, C. Deep learning for decentralized parking lot occupancy detection. Expert Syst. Appl. 2017, 72, 327–334. [Google Scholar] [CrossRef]
- Zhang, Z.; Feng, F.; Huang, T. FNNS: An Effective Feedforward Neural Network Scheme with Random Weights for Processing Large-scale Datasets. Appl. Sci. 2022, 12, 12478. [Google Scholar] [CrossRef]
- Zhang, Y.; Wu, J.; Xie, H.; Hua, R.; Li, Q. NASA space station rolling bearings anomaly detection based on PARA-LSTM model. Int. J. Sens. Netw. 2024, 44, 49–61. [Google Scholar] [CrossRef]
- Zhao, H.; Qi, Z.; Wang, S.; Vafai, K.; Wang, H.; Chen, H.; Tan, S.X.-D. Learning-based occupancy behavior detection for smart buildings. In Proceedings of the 2016 IEEE International Symposium on Circuits and Systems (ISCAS), Montreal, QC, Canada, 22–25 May 2016; pp. 954–957. [Google Scholar] [CrossRef]
- Zhang, Y.; Zhao, L.; Fang, Y.; Mu, D.; Zhang, H. LSTM-based multi-PIR sensor information fusing for estimating the speed and position of pedestrians on green campus. Int. J. Sens. Netw. 2023, 43, 223–231. [Google Scholar] [CrossRef]
- Asiri, S.; Xiao, Y.; Alzahrani, S.; Li, S.; Li, T. A Survey of Intelligent Detection Designs of HTML URL Phishing Attacks. IEEE Access 2023, 11, 6421–6443. [Google Scholar] [CrossRef]
- Colace, S.; Laurita, S.; Spezzano, G.; Vinci, A. Room Occupancy Prediction Leveraging LSTM: An Approach for Cognitive and Self-adapting Buildings. In IoT Edge Solutions for Cognitive Buildings; Springer: Cham, Switzerland, 2022; pp. 197–219. [Google Scholar] [CrossRef]
- Tao, Z.; Chen, L.; Guo, X.; Li, J.; Guo, J.; Liu, Y. Gaussian fitting based human activity recognition using Wi-Fi signals. Int. J. Sens. Netw. 2023, 43, 1–12. [Google Scholar] [CrossRef]
Ref. | Year | Analysis Algorithms Used | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
BOD | WOD | MOD | FLOD | SVM | KNN | RF | DL: FNN | DL: CNN | DL: RNN | DL: LSTM | ||
[17] | 2022 | ✓ | ✓ | ✓ | ||||||||
[18] | 2022 | ✓ | ✓ | ✓ | ||||||||
[19] | 2022 | ✓ | ✓ | ✓ | ✓ | |||||||
[20] | 2020 | ✓ | ✓ | |||||||||
[21] | 2020 | ✓ | ✓ | ✓ | ||||||||
[22] | 2022 | ✓ | ✓ | ✓ | ✓ | |||||||
[23] | 2019 | ✓ | ✓ | ✓ | ✓ | ✓ | ||||||
[24] | 2022 | ✓ | ✓ | |||||||||
[25] | 2015 | ✓ | ||||||||||
[26] | 2018 | ✓ | ✓ | ✓ | ✓ | |||||||
[27] | 2021 | ✓ | ✓ | |||||||||
OURS | 2024 | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
Sensor Type | Major Analytical Methods | Intrusiveness Level | Sensor Fusion | Accuracy | Occupancy Resolution | Performance Measure |
---|---|---|---|---|---|---|
Motion sensors | PIR, ultrasonic, microwave, or a combination | Low because they blend into the environment and do not directly interact with occupants | Can use sensor fusion with other sensors | Can have high accuracy but may be affected by environmental factors | Can distinguish between one or multiple people depending on sensor type | Faster response time, limited detection range (up to 30 feet), energy efficient and consume very little power. |
Camera-based sensors | Image processing algorithms that detect human shapes and movements | High due to their visual recording capabilities | Can combine data from multiple cameras | Can have high accuracy but may be affected by lighting and occlusions | Can distinguish between one or multiple people depending on camera resolution | Slower response time, wide detection range, and consume more power due to continuous image capture and processing. |
Acoustic sensors | Measure sound waves and patterns to detect human presence | Low to Moderate as they emit sound waves, which occupants might notice. However, they are less intrusive than cameras. | Can use sensor fusion with other sensors | Can have lower accuracy than other sensors but are less affected by environmental factors | Can detect general occupancy but cannot distinguish between one or multiple people | Fast response time, covers larger area for detecting sound range and consume low power. |
HVAC sensors | Measure changes in temperature and airflow caused by human presence | Low because they blend into the environment and do not directly interact with occupants | Usually not used with sensor fusion | Can have lower accuracy than other sensors, and may be affected by other factors such as HVAC system settings | Can detect general occupancy but cannot distinguish between one or multiple people | Near-instantaneous response time, detection range depend on the specific parameter measured and it is energy efficient. |
Sensor | Building Type | Centralized/Decentralized | Application System | Energy Saved | Cost |
---|---|---|---|---|---|
Motion sensors | Commercial/residential | Decentralized | Lightning control | Up to 30% | Low |
Camera-based sensors | Commercial | Centralized | Security and surveillance | Up to 20% | High |
Acoustic sensors | Commercial/residential | Decentralized | Occupancy detection | Up to 20% | Moderate |
HVAC sensors | Commercial | Centralized | Temperature and humidity control | Up to 30% | Moderate |
Advantages | Disadvantages | Applications |
---|---|---|
Flexibility: It can be adapted to different types of spaces and sensor configurations. | Data requirements: It needs a large amount of data to accurately estimate occupancy state, which may be difficult to obtain in older buildings. | Building energy management: Optimizing heating, cooling, and lighting systems based on occupancy patterns for energy savings and comfort. |
Accuracy: It provides accurate occupancy state estimations by considering various factors. | Complexity: It is complex and requires advanced data processing techniques and machine learning algorithms. | Indoor air quality monitoring: Optimizing ventilation systems based on occupancy patterns to improve indoor air quality in schools and offices. |
Energy efficiency: It helps optimize energy usage by accurately detecting occupancy states. | Sensitivity to sensor errors: It is sensitive to sensor errors, which can affect occupancy state estimations. | Security monitoring: Detecting unusual occupancy patterns to improve building security and response times to threats. |
Cost-effectiveness: It is a cost-effective solution that does not require expensive hardware or complex installations. | Privacy concerns: It raises privacy concerns due to sensor data capturing personal information. | Retail analytics: Analyzing customer traffic patterns in retail stores to optimize layouts and improve customer experience. |
Advantages | Disadvantages | Applications |
---|---|---|
Low cost: It is a cost-effective solution using inexpensive motion sensors. | Limited sensing range: It may require multiple sensors for accurate detection in larger spaces. | Smart home automation: Automating home devices based on occupancy and movement for enhanced comfort. |
Ease of installation: It is easy to install, requiring minimal hardware and modifications. | Sensitivity to environmental factors: Environmental conditions can impact accuracy. | Health monitoring: Monitoring the walking patterns of the elderly or disabled to detect health abnormalities. |
High accuracy: It provides accurate occupancy state estimations based on movement and direction. | False positives: It may generate false positives due to non-human movement detection. | Retail analytics: Tracking customer movements in retail stores to gather behavior data and optimize store layout. |
Real-time monitoring: It enables real-time occupancy state monitoring for energy optimization and comfort. | Privacy concerns: Data from motion sensors may raise privacy concerns regarding personal information. | Security monitoring: Detecting and tracking intruders’ movements in a building to enhance security. |
Advantages | Disadvantages | Applications |
---|---|---|
High accuracy: The MOD algorithm provides more accurate occupancy state estimations using multiple sensors. | High cost: The MOD algorithm requires expensive installation and maintenance of multiple sensors. | Smart building automation: Automating building systems based on occupancy patterns for energy savings and occupant comfort. |
Robustness: The MOD algorithm is less sensitive to environmental factors, enhancing accuracy compared to single-sensor algorithms. | Complexity: The MOD algorithm is more complex, making installation and configuration more challenging. | Healthcare monitoring: Monitoring patient movements in hospitals and nursing homes for timely assistance. |
Flexibility: The MOD algorithm can be customized to suit different building types and occupancy patterns. | Data management: Effective data management is required due to the substantial amount of data produced by multiple sensors. | Industrial automation: Optimizing production by tracking worker and material movements in manufacturing plants. |
Real-time monitoring: The MOD algorithm provides real-time occupancy state monitoring for energy optimization and occupant comfort. | Maintenance: Regular maintenance is needed to ensure sensors provide accurate estimations. | Home security: Detecting and tracking intruders’ movements in homes for enhanced security. |
Advantages | Disadvantages | Applications |
---|---|---|
Handling imprecise data: Fuzzy Logic-based Occupancy Detection can effectively handle imprecise and uncertain data, which is common in real-world environments. This capability allows it to make reasonable decisions even when exact information is unavailable or noisy. | Lower accuracy compared to advanced techniques: While fuzzy logic is effective in dealing with uncertainty, it may not achieve the same level of accuracy as some advanced occupancy detection methods, such as machine learning algorithms or Deep Learning-based models. | Energy management in smart buildings: Occupancy detection algorithms based on fuzzy logic can automate building systems such as security, lighting, and HVAC. The algorithm can detect occupancy patterns and adjust building systems accordingly, resulting in energy savings and increased occupant comfort. |
Flexibility: The approach offers flexibility in defining input variables and linguistic rules. This adaptability allows the system to accommodate diverse and complex scenarios, making it suitable for various applications. | Complex rule design: Designing fuzzy rules can be time-consuming, especially in more complex applications with numerous input variables and fuzzy sets. Expert knowledge is often required to create effective rules. More challenging. | Healthcare monitoring: Fuzzy logic-based occupancy detection algorithms can be used to monitor patient movements in hospitals and nursing homes. If the algorithm detects that a patient has fallen or is in distress, it will notify healthcare personnel and request immediate assistance. |
Robustness to noise: Fuzzy Logic-based Occupancy Detection is robust to noisy sensor readings and fluctuations, enabling it to provide more stable occupancy predictions in dynamic environments. | Interpretability challenges: The interpretability of the fuzzy rules can be challenging, which may hinder understanding the decision-making process in the system. | Vehicle occupancy detection algorithms based on fuzzy logic can be used to detect the presence of passengers in vehicles. This is useful for collecting tolls and monitoring carpool lanes. |
Human-like decision making: The method closely mimics human reasoning, making it suitable for applications where human-like decision-making is desired, especially in ambiguous situations. | Performance in noisy environments: Although fuzzy logic is robust to some noise, in extremely noisy environments, the system’s performance may degrade, affecting its reliability. | Industrial automation: Fuzzy logic-based occupancy detection algorithms can be used in manufacturing plants to optimize production by detecting and tracking worker and material movements. This can help to increase efficiency and decrease waste. |
Real-time responsiveness: Fuzzy Logic-based Occupancy Detection can make real-time predictions, making it applicable to time-sensitive systems that require immediate occupancy status updates. | Tuning and maintenance: Proper tuning of membership functions and rule sets is essential for optimal performance. Maintenance and updates may also be required to adapt to changing environmental conditions. | Home automation: Occupancy detection algorithms based on fuzzy logic can automate home systems such as lighting, heating, and security. The algorithm can detect occupancy patterns and adjust home systems, accordingly, resulting in energy savings and increased occupant comfort. |
Advantages | Disadvantages | Applications |
---|---|---|
It can handle the complexity of occupancy detection in environments with multiple influencing factors (e.g., temperature, humidity, light) that affect occupancy. Good at handling complex decision boundaries. | It can be computationally demanding, leading to longer training times and potential hardware requirements, especially with large datasets. | It can be used in smart building systems to detect occupancy in various rooms and spaces. It can determine whether a room is occupied by analyzing temperature, humidity, and motion sensor data. |
It creates clear boundaries between occupied and unoccupied spaces, even in cases of overlapping data, making it effective for binary classification. | Its performance relies on choosing the right hyperparameters, like the regularization parameter (C) and kernel function. This requires careful tuning. | This information can be used to optimize heating, cooling, lighting, and ventilation systems, leading to energy savings. |
It performs well even with noisy data, making it suitable for real-world occupancy detection where sensor data may have inaccuracies. | It is naturally suited for binary classification, so adapting it for occupancy detection scenarios with more than two states (e.g., unoccupied, occupied, partially occupied) can be complex. | It can trigger alarms or notifications when unexpected occupancy patterns are detected, which can be valuable in security, safety, and emergency response systems. |
Advantage | Disadvantage | Applications |
---|---|---|
As a non-parametric approach, it makes no assumptions about data distribution, making it suitable for complex and nonlinear occupancy detection scenarios. Its versatility allows it to capture local patterns effectively, providing valuable insights into specific spatial or temporal occupancy patterns in buildings or spaces. | It does not handle irrelevant features well. In occupancy detection, it is essential to carefully choose and preprocess features to avoid noise in the data. | It can be used for presence detection in smart homes, triggering automated lighting, heating, and security systems based on whether rooms are occupied or unoccupied. |
It is Intuitive and easy to implement. | It is sensitive to the choice of K and distance metric; Poor choices can lead to suboptimal results. | It can monitor crowd density and occupancy levels for security and resource management. |
It can adapt to changing occupancy patterns as it continuously learns from incoming data. This adaptability is useful for occupancy detection in dynamic environments. | It may be computationally expensive With huge datasets or high-dimensional feature spaces. It can take some time to determine the distances to all data points. | It can help optimize lighting systems in buildings by adjusting light intensity based on the number of people in a room, contributing to energy savings. |
Advantage | Disadvantage | Applications |
---|---|---|
It frequently offers good accuracy in tasks involving occupancy detection. It is renowned for its capacity to reduce overfitting and model complex relationships in data. It can handle categorical characteristics and high-dimensional data. | While Random Forest offers high accuracy, its ensemble nature makes it less interpretable than individual decision trees. Understanding how the model makes decisions can be challenging. | It can optimize energy usage in buildings by predicting occupancy and controlling heating, cooling, and lighting systems accordingly, leading to energy savings. |
It mitigates overfitting by aggregating multiple decision trees. This makes it suitable for noisy datasets common in occupancy detection scenarios. | Training a Random Forest with many trees can be computationally intensive and time-consuming, especially with extensive datasets. | It can assist security systems by detecting unauthorized access or intrusions based on occupancy patterns, sensor data, and motion detection. |
It can handle datasets with numerous features, accommodating the multiple sensors often used in occupancy detection systems. | Using more trees in a Random Forest can consume significant memory, which can be a limitation on resource-constrained systems. | It can be applied to adjust lighting levels in response to occupancy changes dynamically, ensuring efficient use of electricity in commercial and residential spaces. |
Advantages | Disadvantages | Applications |
---|---|---|
FNNs are computationally efficient, making them suitable for real-time applications in smart building systems. | FNNs do not inherently handle sequential data or time-dependent patterns, which is essential in occupancy detection tasks. | FNNs can be used for binary occupancy detection tasks, where the goal is to guess whether a space is occupied or not |
FNN can capture complicated non-linear relationships between input features, allowing for accurate occupancy predictions. | FNNs do not have memory of past inputs, which is crucial for tasks where temporal dependencies matter. | They can predict when maintenance is needed based on occupancy patterns, helping to prevent system failures. |
They can be easily scaled to handle large datasets, making them adaptable to different building environments. | Without proper regularization techniques, FNNs can overfit the training data, leading to poor generalization of new data. | They can assist in optimizing energy usage in smart buildings by predicting occupancy patterns and adjusting HVAC systems accordingly. |
FNNs can generalize well to new, unseen data, provided they are properly trained and not overfitted. | Extracting relevant features from raw data might require domain expertise, and the effectiveness of features depends on the engineer’s knowledge. | They can be easily scaled to handle large datasets, making them adaptable to different building environments. |
Advantages | Disadvantages | Applications |
---|---|---|
CNNs are great at capturing spatial hierarchies in data, which makes them perfect for processing grid-like data, such as pictures and occupancy grid maps. | CNNs are specifically designed for grid-like data, which may limit their applicability in tasks that involve sequential or non-grid data. | CNNs can process images from cameras to detect occupancy in smart buildings, making them suitable for security and energy optimization applications. |
CNNs can recognize patterns regardless of their position in the input, which is useful in occupancy detection jobs where the spatial arrangement of sensors may vary. | CNN architectures can be complex, requiring careful design and tuning of hyperparameters. | They can process occupancy grid maps, common representations of spaces in smart building environments, to predict occupancy patterns. |
In smart buildings, CNNs can process images from cameras and other sensors, extracting valuable information for occupancy detection. | The internal workings of CNNs may be less interpretable than simpler models like FNNs. | CNNs can be used for facial recognition systems, which can be integrated into access control systems for occupancy verification. |
Advantages | Disadvantages | Applications |
---|---|---|
RNNs are specifically designed for processing sequential data, making them ideal for tasks involving time series information, which is common in occupancy detection. | Due to the vanishing or inflating gradient problem, training RNNs can be difficult, especially for deep networks or lengthy sequences. | RNNs are well-suited for predicting future occupancy based on historical data, making them valuable for energy optimization in smart buildings. |
They can capture temporal dependencies and model how occupancy patterns evolve. | RNNs can be computationally intensive, which may lead to longer training times compared to simpler models. | They can classify activities based on sensor data sequences, helping to infer occupancy patterns in different building areas. |
RNNs can handle sequences of varying lengths, which is crucial in occupancy detection where the duration of data collection may differ. | Standard RNNs may struggle to capture long-range dependencies, which may be crucial in some occupancy detection scenarios. | They can model occupants’ behavior over time, enabling the prediction of occupancy patterns and optimizing building systems. |
Advantages | Disadvantages | Applications |
---|---|---|
LSTMs are designed to capture long-range dependencies in sequential data, which is crucial for modeling occupancy patterns that evolve over extended periods. | LSTMs can be computationally intensive, which may lead to longer training times compared to simpler models. | LSTMs are well-suited for predicting future occupancy based on historical data, making them valuable for energy optimization in smart buildings |
LSTMs can retain and utilize information from earlier time steps, making them effective for tasks where historical context is important. | Properly configuring an LSTM network with appropriate hyperparameters can be challenging. It may require some expertise | They can identify unusual patterns or events in occupancy data, which is crucial for security and safety applications. |
They are highly effective for processing time series data, which is common in occupancy detection tasks in smart buildings. | Without proper regularization techniques, LSTMs can overfit to the training data, leading to poor generalization on new data | LSTMs can model the behavior of occupants over time, enabling the prediction of occupancy patterns and optimizing building systems |
Algorithms | PIR | Environmental Sensors | Accuracy | Smart Meters | Sensor Fusion |
---|---|---|---|---|---|
BOD | High | Low | High | No | No |
FLOD | Low | Medium | High | No | Yes |
MOD | Low | High | Medium | Yes | Yes |
WOD | Medium | Low | Low | Yes | No |
Algorithm | Accuracy | Training Time | Memory Requirement | Scalability | Robustness |
---|---|---|---|---|---|
SVM | High | Low | High | Low | High |
KNN | Medium | Low | High | High | Low |
Random Forest | High | Medium | High | High | High |
Deep Learning | High | High | High | High | High |
Metric | SVM | KNN | Random Forest |
---|---|---|---|
Accuracy | 0.85 | 0.88 | 0.90 |
Precision | 0.87 | 0.86 | 0.91 |
Recall | 0.82 | 0.89 | 0.94 |
F1-Score | 0.84 | 0.87 | 0.92 |
ROC-AUC | 0.91 | 0.92 | 0.96 |
Metric | FNN | CNN | RNN | LSTM |
---|---|---|---|---|
Accuracy | 0.89 | 0.91 | 0.88 | 0.93 |
Precision | 0.88 | 0.90 | 0.87 | 0.92 |
Recall | 0.90 | 0.92 | 0.89 | 0.94 |
F1-Score | 0.89 | 0.91 | 0.88 | 0.93 |
ROC-AUC | 0.94 | 0.95 | 0.93 | 0.96 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2024 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Chaudhari, P.; Xiao, Y.; Cheng, M.M.-C.; Li, T. Fundamentals, Algorithms, and Technologies of Occupancy Detection for Smart Buildings Using IoT Sensors. Sensors 2024, 24, 2123. https://doi.org/10.3390/s24072123
Chaudhari P, Xiao Y, Cheng MM-C, Li T. Fundamentals, Algorithms, and Technologies of Occupancy Detection for Smart Buildings Using IoT Sensors. Sensors. 2024; 24(7):2123. https://doi.org/10.3390/s24072123
Chicago/Turabian StyleChaudhari, Pratiksha, Yang Xiao, Mark Ming-Cheng Cheng, and Tieshan Li. 2024. "Fundamentals, Algorithms, and Technologies of Occupancy Detection for Smart Buildings Using IoT Sensors" Sensors 24, no. 7: 2123. https://doi.org/10.3390/s24072123
APA StyleChaudhari, P., Xiao, Y., Cheng, M. M.-C., & Li, T. (2024). Fundamentals, Algorithms, and Technologies of Occupancy Detection for Smart Buildings Using IoT Sensors. Sensors, 24(7), 2123. https://doi.org/10.3390/s24072123