Occupancy-Based Detection Models
- Occupancy-based detection models are a recurring pattern where latent occupancy is inferred via diverse detection mechanisms in ecology, building analytics, and autonomous driving.
- They employ methodologies such as two-stage estimation, orthogonal reparameterization, and sensor fusion to address imperfect detection and computational trade-offs.
- These models serve as structural priors that enhance detection accuracy while balancing practical challenges like sensor availability, privacy concerns, and complexity.
Searching arXiv for the cited occupancy-model papers to ground the synthesis. An occupancy-based detection model is a model class in which occupancy is treated as the latent or explicit target of inference and detection is the mechanism by which occupancy becomes observable. In statistical ecology, the canonical formulation separates occupancy probability from detection probability under imperfect observation, and repeated surveys are used to identify both components (Karavarsamis et al., 2018). In building analytics, the same broad label is applied to binary or count inference from environmental sensors, smart-meter traces, appliance usage, thermal imagery, or hybrid deep architectures (Varnosfaderani et al., 2022, Luo et al., 2022, Liang et al., 2023, Cui et al., 13 May 2025). In autonomous driving and 3D perception, occupancy denotes voxelized spatial structure or semantic occupancy, which is then used to improve object detection in bird’s-eye-view or monocular 3D pipelines (Zhou et al., 2023, Yuan et al., 28 Jul 2025, Peng et al., 2023). This suggests that “occupancy-based detection model” is not a single algorithm but a recurring modeling pattern: occupancy is the target state, while detection may be statistical, sensor-driven, or spatially geometric.
1. Statistical definition and canonical formulation
The classical occupancy model is the single-season ecological model in which sites are visited repeatedly and occupancy is latent. In the homogeneous case, there are sites and visits per site, occupancy status is constant over visits under the closure assumption, sites are independent, and conditional on occupancy, detections across visits are independent Bernoulli trials with common detection probability (Karavarsamis et al., 2018). For site , the detection history is , with , and the occupancy probability is . The probability of at least one detection at an occupied site is
A central feature of the model is mixture structure at the all-zero history. An all-zero detection history may arise either because a site is unoccupied or because it is occupied but never detected. In the homogeneous formulation, the aggregated likelihood can be written as
where is the number of sites with no detections, 0 is the number of sites with at least one detection, and 1 is the total number of detections across sites (Karavarsamis et al., 2018).
The heterogeneous single-season model extends this formulation by allowing both occupancy and detection probabilities to depend on covariates. The site-specific occupancy and detection probabilities are modeled as
2
with closure, conditional independence, no false positives, and independence across sites retained as the standard assumptions (Karavarsamis et al., 2018). In this setting, 3 is site-specific, and orthogonality no longer holds globally.
A Bayesian variant replaces purely likelihood-based selection with intrinsic priors and explicit model-space priors that account for test multiplicity and respect polynomial hierarchy when higher-order terms are considered (Taylor-Rodriguez et al., 2015). In that framework, occupancy indicators 4 and detection outcomes 5 are linked through latent probit variables, and candidate occupancy and detection models are explored with stochastic search over admissible model spaces.
2. Two-stage estimation and partial likelihood
A defining methodological contribution in the homogeneous model is the orthogonal reparameterization
6
which turns the likelihood into a form that separates a binomial component in 7 from a conditional component in 8 (Karavarsamis et al., 2018). The resulting log-likelihood is
9
and the cross-derivative satisfies
0
This yields a natural two-stage inference procedure: first estimate 1 by maximizing the conditional likelihood over sites with at least one detection, then estimate 2 as 3, and back-transform to 4.
The conditional likelihood for detection in the homogeneous case is
5
with 6 defined as its maximizer. The occupancy estimator then becomes
7
A further simplification is the partial-likelihood estimator
8
where 9 is the total number of post-first-detection occasions across detected sites, giving
0
The paper reports that 1 is unbiased conditional on 2, 3 is consistent under the homogeneous model, and the efficiency relative to full MLE is near or above 4 in many scenarios (Karavarsamis et al., 2018).
In the heterogeneous model, the same logic is retained but orthogonality is lost. Detection is first estimated with a conditional likelihood based only on sites with at least one detection,
5
and occupancy is then estimated by treating 6 as Bernoulli with success probability 7 (Karavarsamis et al., 2018). The occupancy score is
8
and an iterative weighted least squares update follows the generalized linear model template. This reduction in parameter space is presented as the practical advantage of the two-stage approach for covariate-rich occupancy analysis (Karavarsamis et al., 2018).
3. Sensor-driven occupancy detection in buildings and homes
In buildings, occupancy-based detection models are framed as supervised classification or regression over environmental, electrical, or temporal signals rather than as latent-state mixture models. A representative environmental-sensing study recorded continuous measurements of 9, VOC, light, temperature, and humidity in a 0 sqft open office space for around four months and evaluated SVM, Gaussian Naive Bayes, Logistic Regression, Random Forest Classifier, and K-Nearest Neighbors for binary occupancy detection (Varnosfaderani et al., 2022). The study found that 1 is consistently highly informative for single offices, that VOC is a strong indicator in some cases, and that combined features such as 2 improve performance, especially in the conference room (Varnosfaderani et al., 2022).
A related line of work studies smart-meter-based detection. ABODE-Net formulates occupancy detection as time-series classification on 3-minute windows with input tensors 4, where in the reported experiments 5 and 6, using features 7power consumption, 8, 9 (Luo et al., 2022). The model comprises a Fully Convolutional Network feature extractor, a Parallel Attention block that combines temporal, variable, and channel attention,
0
and a classification head with Global Max Pooling, a fully connected layer with spectral normalization, and softmax output (Luo et al., 2022). On ECO, the reported average performance across four cases is Accuracy 1 and F1 2; on NIOM, the corresponding averages are Accuracy 3 and F1 4 (Luo et al., 2022).
Another smart-meter model uses hourly aggregate data from the ECO dataset and combines a Bi-LSTM branch with a Transformer encoder in parallel (Liang et al., 2023). The per-hour occupancy probability is
5
and the decision rule is 6 (Liang et al., 2023). The reported main result for the hybrid Transformer–Bi-LSTM concatenation is Accuracy 7, Precision 8, Recall 9, F1 0, and ROC-AUC 1 under 2-fold cross-validation (Liang et al., 2023).
Occupancy has also been inferred directly from technical information of electric appliances in smart residential buildings. In that work, occupancy detection is posed on multivariate time-series from smart meters, appliance controllers, lighting, HVAC, and environmental sensors, resampled to 3-minute intervals (Lee et al., 2022). A kernelized SVM and an autoencoder-based classifier are evaluated using confusion-matrix metrics. Reported results include Accuracy 4 in Room 1, 5 in Room 2, 6 for Room 1 and 2 combined with SVM, and 7 for Room 1 and 2 combined with the autoencoder-based method; the aggregate detection range is 8–9 (Lee et al., 2022). The same study reports occupancy-aware control reducing total power at the 0th, 1th, and 2th percentiles by 3, 4, and 5, respectively (Lee et al., 2022).
Generalizability has become a distinct research question in residential settings. On environmental sensor data from the KTH Live-In Lab, Logistic Regression, SVM, and an attention-enhanced LSTM were evaluated on same-apartment, cross-apartment, and synthetic data (Farjadnia et al., 16 Apr 2026). With all features, the same-apartment test results are LR: Precision 6, Recall 7, F1 8, Accuracy 9, ROC AUC 0; SVM: Precision 1, Recall 2, F1 3, Accuracy 4, ROC AUC 5; LSTM: Precision 6, Recall 7, F1 8, Accuracy 9, ROC AUC 0 (Farjadnia et al., 16 Apr 2026). On cross-apartment data, the LSTM shows the strongest generalization capability, summarized in the abstract as Accuracy of approximately 1 and F1 score of approximately 2 (Farjadnia et al., 16 Apr 2026).
4. Vision and thermal occupancy detection
Thermal imaging has been adopted where privacy constraints limit RGB deployment. One thermal-image occupancy counting system combines intensity-based and motion-based human segmentation using difference catcher, connected component labeling, noise filter, and memory propagation (Qin et al., 2021). Frames are sampled every two seconds, cropped to 3, processed with an illumination mask and Gaussian filtering, and then segmented via k-means thresholding and frame differencing (Qin et al., 2021). Across six experiments under Over Lighting, Local Lighting, Multiple People, and Thermal Noises conditions, the reported accuracies are 4, 5, 6, 7, 8, and 9, for an average accuracy of 00 (Qin et al., 2021).
A later thermal approach casts occupancy as face detection in low-resolution thermal imagery. Using a FLIR C3-X compact thermal camera at resolution 01, mounted on the upper bezel of a computer monitor in a single-occupant office, frames were captured every 02 seconds throughout a single workday and annotated with face bounding boxes (Cui et al., 13 May 2025). A YOLOv5 model pretrained on COCO was fine-tuned end-to-end for 03 epochs, and occupancy was inferred from whether at least one face detection exceeded confidence threshold 04: 05 On the 06-image test subset, the reported results are Precision 07, Recall 08, mAP@0.5 09, and mAP@[0.5:0.95] 10, with only 11 occupied images missed and false positives effectively suppressed at 12 (Cui et al., 13 May 2025).
A distinct computer-vision application appears in seat-level library monitoring. The reported system is a serial dual-channel model in which Faster R-CNN detects persons and AlexNet classifies objects versus no-objects in seat tiles where no person is detected (Yang et al., 2023). Seat state is then inferred as In-use, Occupied-by-belongings, or Vacant. The mixed synthetic-real training set for person detection reduced average training loss from 13 to 14, a 15 reduction, relative to real-only training, and the AlexNet classifier achieved accuracy 16 on the binary tile classification task (Yang et al., 2023).
These thermal and vision-based formulations share an immediate-response interpretation of occupancy: the target is estimated per frame or per short interval, and occupancy is the presence, count, or occupancy-related state of people or objects in the field of view. A plausible implication is that privacy-preserving imaging, especially low-resolution thermal sensing, has become a distinct design axis rather than merely a sensor substitution (Cui et al., 13 May 2025, Qin et al., 2021).
5. Occupancy as a spatial representation in 3D detection
In autonomous driving, “occupancy” refers not to human presence in a room but to whether cells in discretized 3D space are empty or occupied, possibly with semantic labels. SOGDet defines occupancy as a voxel grid 17 and semantic occupancy as
18
where 19 is the number of semantic classes (Zhou et al., 2023). The framework augments a BEV detector with a 3D semantic-occupancy branch and fuses occupancy and detection features via bidirectional adapters: 20 with 21 (Zhou et al., 2023). On the nuScenes test set with ResNet-101, the reported results are 22 NDS / 23 mAP for SOGDet-BO and 24 NDS / 25 mAP for SOGDet-SE (Zhou et al., 2023).
Collaborative Perceiver develops the same occupancy-guided principle further by generating Local-Density-aware Dense Occupancy ground truth, extracting Voxel-Height-Guided Sampling features, and fusing global and local context (Yuan et al., 28 Jul 2025). The joint objective is
26
with 27 (Yuan et al., 28 Jul 2025). On the nuScenes test set, CoP achieves 28 mAP and 29 NDS (Yuan et al., 28 Jul 2025). The occupancy branch is auxiliary in training but designed to produce more robust BEV representations for detection.
OccupancyM3D brings the idea to monocular 3D detection. It learns occupancy in both frustum and 3D space from synchronized raw sparse LiDAR during training, with frustum and 3D occupancy predictions used as multiplicative gates: 30 The overall training loss is
31
On KITTI Car test, the reported AP32 at IoU 33 is 34 for Easy/Moderate/Hard, and the paper reports large gains relative to CaDDN (Peng et al., 2023).
A radar-based dynamic occupancy grid map uses yet another occupancy representation: the frame of discernment is
35
with evidential masses over free space, static occupancy, dynamic occupancy, unclassified occupancy, and unknown (Diehl et al., 2020). Multiple radar sensors are fused into a 36 m by 37 m grid with resolution 38 m, and dynamic cells are selected as
39
In a quantitative scenario, the radar-based mean squared error for x-direction velocity estimation is 40 m/s versus 41 m/s for the lidar-based comparator (Diehl et al., 2020).
This family of methods uses occupancy not as the final output for end users, but as an intermediate structural prior for downstream detection. That use is conceptually different from ecological or building occupancy estimation, but the common formal device remains the same: space is partitioned, occupancy is inferred per partition, and detection is improved by exploiting that structured representation.
6. Evaluation criteria, design trade-offs, and limitations
Across domains, evaluation depends on what occupancy denotes. In ecological models, the principal concern is bias, consistency, efficiency, and identifiability of 42 and 43 under imperfect detection (Karavarsamis et al., 2018, Karavarsamis et al., 2018). In building and residential models, confusion-matrix metrics dominate: Accuracy, Precision, Recall, F1, and sometimes ROC-AUC or RMSE for occupancy counts (Lee et al., 2022, Liang et al., 2023, Huang et al., 2024, Farjadnia et al., 16 Apr 2026). In 3D perception, occupancy-guided detectors are judged with mAP, NDS, and occupancy metrics such as SSC.mIoU or SC.IoU (Zhou et al., 2023, Yuan et al., 28 Jul 2025).
Several recurring trade-offs are explicit in the literature. First, there is a detectability–complexity trade-off. The two-stage occupancy estimators are computationally light and numerically stable, but partial likelihood discards first-detection timing information and can incur a small efficiency loss (Karavarsamis et al., 2018). Second, there is a sensor-availability–accuracy trade-off. In residential environmental sensing, 44 and its slope contribute most to accuracy, and acceptable performance is achievable with only 45 features, favoring lower-cost deployments (Farjadnia et al., 16 Apr 2026). In naturally ventilated classrooms, spatial 46 features such as vertical difference and horizontal difference substantially improve state detection and quantity detection relative to room-average temporal features alone (Huang et al., 2024). Third, there is a privacy–fidelity trade-off. RGB-based computer vision offers immediate response and strong accuracy, but low-resolution thermal imagery is specifically adopted to mitigate privacy risks while maintaining strong detection performance (Cui et al., 13 May 2025).
Several limitations recur as well. Homogeneous ecological models may be unrealistic under site or visit heterogeneity, and partial likelihood may underperform relative to full joint hierarchical models when random effects or covariate-driven heterogeneity are strong (Karavarsamis et al., 2018). Building models often depend on room-specific or household-specific signatures, so cross-building or cross-apartment transfer can degrade unless explicit generalization measures are built in (Luo et al., 2022, Farjadnia et al., 16 Apr 2026). Thermal imaging models are sensitive to face visibility, side-face orientations, and domain shift across rooms or mounting positions (Cui et al., 13 May 2025). Occupancy-guided 3D detectors rely on expensive or dataset-specific supervision and add training-time complexity; finer voxel resolution improves accuracy but raises memory and compute requirements (Yuan et al., 28 Jul 2025, Peng et al., 2023).
A common misconception is that occupancy detection is intrinsically tied to a single sensing modality or a single mathematical form. The literature does not support that view. In one branch, occupancy is a latent Bernoulli state with imperfect repeated detection (Karavarsamis et al., 2018). In another, it is a binary label inferred from electrical, environmental, or thermal signals (Lee et al., 2022, Luo et al., 2022, Cui et al., 13 May 2025). In another, it is a semantic or dynamic spatial field that regularizes 3D object detection (Zhou et al., 2023, Diehl et al., 2020). The unifying principle is instead architectural: occupancy is treated as the state that must be inferred, while the detection model specifies how observations, covariates, or spatial features reveal that state.