Leveraging Hybrid Ensemble Machine Learning Techniques for Thermal Comfort Prediction of Buildings in Nairobi, Kenya

dc.contributor.authorNzue, Joseph Muasya
dc.date.accessioned2026-11-27T03:30:20Z
dc.date.issued2026-11-27
dc.descriptionA Master's Thesis submitted in partial fulfilment of the requirements for the Award of the Master of Science in Artificial Intelligence of the Open University of Kenya. Supervisor: Dr. Justus Okonda.
dc.description.abstractThermal comfort in buildings is directly affected by climate change due to global temperature rise, making it a critical consideration as it affects the well-being, health, and productivity in the built environment. Machine learning (ML) models offer a viable, affordable alternative; they can learn from complex static and dynamic environmental data and the adaptive behavior of building occupants. The study aims to improve building occupants' productivity by enhancing thermal comfort while reducing energy costs. The study adopted a positivist mixed-methods research design with a purposive sample of buildings across Nairobi, where primary environmental data were collected at the Architecture Design Development building and the University of Nairobi Towers, Nairobi, Kenya. Secondary datasets were collected from the UoN Architecture Department environmental lab to train the model. The model's performance was evaluated using Root Mean Squared Error, R², and Mean Absolute Error. Primary datasets logged from the buildings were used to bridge the data scarcity gap. A hybrid ensemble Machine Learning model was developed by combining non temporal methods, namely Random Forest (RF), Extreme Gradient Boosting (XGBoost), and temporal Gated Recurrent Unit (GRU) to form a robust, thermal comfort prediction model for buildings in Nairobi, Kenya. Fanger Predicted Mean Vote (PMV) was used as the premise for the thermal comfort prediction. The study found that ensemble ML models trained on datasets from temperate climates such as Europe and North America showed poor predictive accuracy due to climatic differences and bias, while the literature review identified a data-scarcity gap in Nairobi's environmental data. Results showed that mean indoor temperatures ranged from 19.40 ± 0.37 °C to 21.60 ± 0.68 °C, while the predicted PMV was -1.12, on the cool side of the ASHRAE 55 band. The hybrid model produced an RMSE of 0.103 PMV units (R² = 0.9147) and an MAE of 0.0183, indicating high prediction precision and strong one-hour thermal comfort forecasting. The results show that the hybrid ensemble model trained with local data accurately predicted thermal comfort and satisfied the ASHRAE Standards.
dc.identifier.urihttps://erepository.ouk.ac.ke/handle/123456789/1690
dc.language.isoen
dc.publisherOpen University of Kenya
dc.subjectThermal Comfort
dc.subjectGreen Building
dc.subjectSustainable Building
dc.subjectClimate Change
dc.subjectHybrid Ensemble Machine Learning
dc.subjectRandom Forest
dc.subjectGated Recurrent Unit
dc.subjectXGBoost
dc.subjectPredicted Mean Vote
dc.titleLeveraging Hybrid Ensemble Machine Learning Techniques for Thermal Comfort Prediction of Buildings in Nairobi, Kenya
dc.typeThesis

ST62801702024__Final Thesis Report.pdf
2.03 MB
Adobe Portable Document Format