Papers
Topics
Authors
Recent
Search
2000 character limit reached

Occupancy-Based Detection Models

Updated 5 July 2026
  • 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 SS sites and KK 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 pp (Karavarsamis et al., 2018). For site ii, the detection history is yi=(yi1,,yiK)y_i=(y_{i1},\ldots,y_{iK}), with yij{0,1}y_{ij}\in\{0,1\}, and the occupancy probability is ψ\psi. The probability of at least one detection at an occupied site is

θ=1(1p)K.\theta = 1 - (1-p)^K.

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

L(ψ,p)    (1ψθ)f0ψSf0py(1p)OKy,L(\psi, p) \;\propto\; (1-\psi\theta)^{f_0}\,\psi^{S - f_0}\,p^{y}\,(1-p)^{O K - y},

where f0f_0 is the number of sites with no detections, KK0 is the number of sites with at least one detection, and KK1 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

KK2

with closure, conditional independence, no false positives, and independence across sites retained as the standard assumptions (Karavarsamis et al., 2018). In this setting, KK3 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 KK4 and detection outcomes KK5 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

KK6

which turns the likelihood into a form that separates a binomial component in KK7 from a conditional component in KK8 (Karavarsamis et al., 2018). The resulting log-likelihood is

KK9

and the cross-derivative satisfies

pp0

This yields a natural two-stage inference procedure: first estimate pp1 by maximizing the conditional likelihood over sites with at least one detection, then estimate pp2 as pp3, and back-transform to pp4.

The conditional likelihood for detection in the homogeneous case is

pp5

with pp6 defined as its maximizer. The occupancy estimator then becomes

pp7

A further simplification is the partial-likelihood estimator

pp8

where pp9 is the total number of post-first-detection occasions across detected sites, giving

ii0

The paper reports that ii1 is unbiased conditional on ii2, ii3 is consistent under the homogeneous model, and the efficiency relative to full MLE is near or above ii4 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,

ii5

and occupancy is then estimated by treating ii6 as Bernoulli with success probability ii7 (Karavarsamis et al., 2018). The occupancy score is

ii8

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 ii9, VOC, light, temperature, and humidity in a yi=(yi1,,yiK)y_i=(y_{i1},\ldots,y_{iK})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 yi=(yi1,,yiK)y_i=(y_{i1},\ldots,y_{iK})1 is consistently highly informative for single offices, that VOC is a strong indicator in some cases, and that combined features such as yi=(yi1,,yiK)y_i=(y_{i1},\ldots,y_{iK})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 yi=(yi1,,yiK)y_i=(y_{i1},\ldots,y_{iK})3-minute windows with input tensors yi=(yi1,,yiK)y_i=(y_{i1},\ldots,y_{iK})4, where in the reported experiments yi=(yi1,,yiK)y_i=(y_{i1},\ldots,y_{iK})5 and yi=(yi1,,yiK)y_i=(y_{i1},\ldots,y_{iK})6, using features yi=(yi1,,yiK)y_i=(y_{i1},\ldots,y_{iK})7power consumption, yi=(yi1,,yiK)y_i=(y_{i1},\ldots,y_{iK})8, yi=(yi1,,yiK)y_i=(y_{i1},\ldots,y_{iK})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,

yij{0,1}y_{ij}\in\{0,1\}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 yij{0,1}y_{ij}\in\{0,1\}1 and F1 yij{0,1}y_{ij}\in\{0,1\}2; on NIOM, the corresponding averages are Accuracy yij{0,1}y_{ij}\in\{0,1\}3 and F1 yij{0,1}y_{ij}\in\{0,1\}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

yij{0,1}y_{ij}\in\{0,1\}5

and the decision rule is yij{0,1}y_{ij}\in\{0,1\}6 (Liang et al., 2023). The reported main result for the hybrid Transformer–Bi-LSTM concatenation is Accuracy yij{0,1}y_{ij}\in\{0,1\}7, Precision yij{0,1}y_{ij}\in\{0,1\}8, Recall yij{0,1}y_{ij}\in\{0,1\}9, F1 ψ\psi0, and ROC-AUC ψ\psi1 under ψ\psi2-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 ψ\psi3-minute intervals (Lee et al., 2022). A kernelized SVM and an autoencoder-based classifier are evaluated using confusion-matrix metrics. Reported results include Accuracy ψ\psi4 in Room 1, ψ\psi5 in Room 2, ψ\psi6 for Room 1 and 2 combined with SVM, and ψ\psi7 for Room 1 and 2 combined with the autoencoder-based method; the aggregate detection range is ψ\psi8–ψ\psi9 (Lee et al., 2022). The same study reports occupancy-aware control reducing total power at the θ=1(1p)K.\theta = 1 - (1-p)^K.0th, θ=1(1p)K.\theta = 1 - (1-p)^K.1th, and θ=1(1p)K.\theta = 1 - (1-p)^K.2th percentiles by θ=1(1p)K.\theta = 1 - (1-p)^K.3, θ=1(1p)K.\theta = 1 - (1-p)^K.4, and θ=1(1p)K.\theta = 1 - (1-p)^K.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 θ=1(1p)K.\theta = 1 - (1-p)^K.6, Recall θ=1(1p)K.\theta = 1 - (1-p)^K.7, F1 θ=1(1p)K.\theta = 1 - (1-p)^K.8, Accuracy θ=1(1p)K.\theta = 1 - (1-p)^K.9, ROC AUC L(ψ,p)    (1ψθ)f0ψSf0py(1p)OKy,L(\psi, p) \;\propto\; (1-\psi\theta)^{f_0}\,\psi^{S - f_0}\,p^{y}\,(1-p)^{O K - y},0; SVM: Precision L(ψ,p)    (1ψθ)f0ψSf0py(1p)OKy,L(\psi, p) \;\propto\; (1-\psi\theta)^{f_0}\,\psi^{S - f_0}\,p^{y}\,(1-p)^{O K - y},1, Recall L(ψ,p)    (1ψθ)f0ψSf0py(1p)OKy,L(\psi, p) \;\propto\; (1-\psi\theta)^{f_0}\,\psi^{S - f_0}\,p^{y}\,(1-p)^{O K - y},2, F1 L(ψ,p)    (1ψθ)f0ψSf0py(1p)OKy,L(\psi, p) \;\propto\; (1-\psi\theta)^{f_0}\,\psi^{S - f_0}\,p^{y}\,(1-p)^{O K - y},3, Accuracy L(ψ,p)    (1ψθ)f0ψSf0py(1p)OKy,L(\psi, p) \;\propto\; (1-\psi\theta)^{f_0}\,\psi^{S - f_0}\,p^{y}\,(1-p)^{O K - y},4, ROC AUC L(ψ,p)    (1ψθ)f0ψSf0py(1p)OKy,L(\psi, p) \;\propto\; (1-\psi\theta)^{f_0}\,\psi^{S - f_0}\,p^{y}\,(1-p)^{O K - y},5; LSTM: Precision L(ψ,p)    (1ψθ)f0ψSf0py(1p)OKy,L(\psi, p) \;\propto\; (1-\psi\theta)^{f_0}\,\psi^{S - f_0}\,p^{y}\,(1-p)^{O K - y},6, Recall L(ψ,p)    (1ψθ)f0ψSf0py(1p)OKy,L(\psi, p) \;\propto\; (1-\psi\theta)^{f_0}\,\psi^{S - f_0}\,p^{y}\,(1-p)^{O K - y},7, F1 L(ψ,p)    (1ψθ)f0ψSf0py(1p)OKy,L(\psi, p) \;\propto\; (1-\psi\theta)^{f_0}\,\psi^{S - f_0}\,p^{y}\,(1-p)^{O K - y},8, Accuracy L(ψ,p)    (1ψθ)f0ψSf0py(1p)OKy,L(\psi, p) \;\propto\; (1-\psi\theta)^{f_0}\,\psi^{S - f_0}\,p^{y}\,(1-p)^{O K - y},9, ROC AUC f0f_00 (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 f0f_01 and F1 score of approximately f0f_02 (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 f0f_03, 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 f0f_04, f0f_05, f0f_06, f0f_07, f0f_08, and f0f_09, for an average accuracy of KK00 (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 KK01, mounted on the upper bezel of a computer monitor in a single-occupant office, frames were captured every KK02 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 KK03 epochs, and occupancy was inferred from whether at least one face detection exceeded confidence threshold KK04: KK05 On the KK06-image test subset, the reported results are Precision KK07, Recall KK08, mAP@0.5 KK09, and mAP@[0.5:0.95] KK10, with only KK11 occupied images missed and false positives effectively suppressed at KK12 (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 KK13 to KK14, a KK15 reduction, relative to real-only training, and the AlexNet classifier achieved accuracy KK16 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 KK17 and semantic occupancy as

KK18

where KK19 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: KK20 with KK21 (Zhou et al., 2023). On the nuScenes test set with ResNet-101, the reported results are KK22 NDS / KK23 mAP for SOGDet-BO and KK24 NDS / KK25 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

KK26

with KK27 (Yuan et al., 28 Jul 2025). On the nuScenes test set, CoP achieves KK28 mAP and KK29 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: KK30 The overall training loss is

KK31

On KITTI Car test, the reported APKK32 at IoU KK33 is KK34 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

KK35

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 KK36 m by KK37 m grid with resolution KK38 m, and dynamic cells are selected as

KK39

In a quantitative scenario, the radar-based mean squared error for x-direction velocity estimation is KK40 m/s versus KK41 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 KK42 and KK43 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, KK44 and its slope contribute most to accuracy, and acceptable performance is achievable with only KK45 features, favoring lower-cost deployments (Farjadnia et al., 16 Apr 2026). In naturally ventilated classrooms, spatial KK46 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.

Definition Search Book Streamline Icon: https://streamlinehq.com
References (16)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Occupancy-Based Detection Model.