Room Occupancy Prediction Using Environmental Sensors
A collaborative study comparing machine learning approaches to estimating room occupancy from temperature, CO₂, light, sound, and motion sensor data.
My role · Collaborative Research & Exploratory Visualization
- Python
- Pandas
- NumPy
- Matplotlib
- Seaborn
- Google Colab

Technology stack
- Python
- Runs the exploratory analysis of the UCI environmental sensor dataset.
- Pandas
- Loads the sensor readings and groups them by occupancy for comparison.
- NumPy
- Fits a trend line to the CO₂ readings for exploratory analysis.
- Matplotlib
- Draws and formats charts for the research report.
- Seaborn
- Creates box and violin plots to compare sensor readings across occupancy counts.
- Google Colab
- Provides the shared notebook environment for analysis and visualization.
Estimating occupancy without cameras
This Sacred Heart academic group project explored whether environmental measurements can estimate the number of people in a room. Temperature, CO₂, light, sound, and PIR motion readings offer signals that can inform smart-building research without using camera images.
The team worked with the UCI Room Occupancy Estimation dataset, containing 10,129 observations. Its measurements were collected in a controlled room with occupancy from zero to three people, which limits how broadly the results can be generalized.
My contribution
I collaborated on the class research and exploratory visualizations in Google Colab. The retained Python export includes CO₂ and temperature charts in a section labeled with my name, alongside teammates’ sensor analyses.
The work was collaborative. The exact division of the model-training code is not established, and the original training notebook is unavailable.
Sensor relationships and model comparison
The available analysis uses Pandas, NumPy, Matplotlib, and Seaborn to examine sensor relationships with occupancy. It includes CO₂ box plots, sound plots, temperature violin plots, and comparisons across temperature and light sensors.
The class research compared classification methods including Random Forest, XGBoost, and Extra Trees. The retained visualization export provides evidence of the exploratory work; it does not include the original model-training and evaluation workflow.
| Classifier | Reported accuracy |
|---|---|
| Random Forest | 99.21% |
| XGBoost | 99.28% |
| Extra Trees | 99.28% |
These are team-level results reported in class research, not independently replicated benchmarks. This project is not a verified IEEE publication.
Relevance and limitations
Occupancy estimation can support research into building usage and ventilation decisions. This project studied an existing dataset; it did not deploy sensors or measure energy savings.
The controlled collection environment, small occupancy range, and time-dependent observations make the evaluation split important. Without the original training notebook, the reported accuracy should not be treated as a demonstrated deployment result.
Read the UCI dataset documentation (opens in a new tab)